Merge remote-tracking branch 'origin/wp'

# Conflicts:
#	api/public.js
#	config/app.js
#	config/cache.js
#	main.js
#	pages/goods_details/index.vue
#	pages/index/index.vue
#	pages/users/wechat_login/index.vue
This commit is contained in:
邱贞招 2024-02-01 21:17:49 +08:00
commit 280d71140e
37 changed files with 390 additions and 301 deletions

12
App.vue
View File

@ -18,13 +18,13 @@
mapActions
} from 'vuex'
import {
spread,copyrightApi,channelId
spread,copyrightApi
} from "@/api/user";
// const app = getApp();
export default {
globalData: {
spread: 0, //广id
channelId:0, //id
code: 0,
isLogin: false,
userInfo: {},
@ -117,14 +117,14 @@
let value = this.$util.getUrlParams(decodeURIComponent(option.query.scene));
that.globalData.spread = value.spread?value.spread:'';
// id
that.globalData.channelId = value.channelId?value.channelId:'';
that.globalData = this.$util.formatMpQrCodeData(value);
break;
}
}
if (option.spread) that.globalData.spread = option.spread;
// id
if (option.channelId) that.globalData.channelId = option.channelId;
// #endif
//
uni.getSystemInfo({
@ -159,8 +159,7 @@
// code
uni.setStorageSync('snsapiCode', code);
let spread = that.globalData.spread ? that.globalData.spread : 0;
// id
let channelId = that.globalData.channelId ? that.globalData.channelId : 0;
Auth.auth(code, that.$Cache.get('SPREAD'))
.then(res => {
uni.setStorageSync('snRouter', decodeURIComponent(decodeURIComponent(option.query
@ -195,6 +194,7 @@
location.replace(uni.getStorageSync('snRouter'));
}
}
// #endif
// #ifdef MP

View File

@ -360,12 +360,10 @@ export function getinstallment(data) {
}
// 首页记录ip
export function logoip() {
return request.get(`login/log`, {}, {
noAuth: true
});
}
// 查询签约是否成功
// export function getqytrue(data) {
// return request.get('order/getSignResult/',data,{
// noAuth: true
// })
// }

View File

@ -19,19 +19,19 @@ export function getWechatConfig() {
* 获取微信sdk配置
* @returns {*}
*/
export function wechatAuth(code, spread,channelId) {
export function wechatAuth(code, spread,) {
var reg=/^[0-9]+.?[0-9]*$/; //判断字符串是否为数字 ,判断正整数用/^[1-9]+[0-9]*]*$/
spread = reg.test(spread) ? spread : 0;
channelId = reg.test(channelId) ? channelId : 0;
return request.get(
"wechat/authorize/login?code=" + code + "&spread_spid=" + spread+"&channelId="+channelId, {},
"wechat/authorize/login?code=" + code + "&spread_spid=" + spread , {},
{ noAuth: true }
);
}
/**
* 获取登录授权login
*
*
*/
export function getLogo()
{
@ -109,4 +109,4 @@ export function appleLogin(data) {
*/
export function iosBinding(data) {
return request.post("ios/binding/phone", data, { noAuth : true });
}
}

View File

@ -119,7 +119,7 @@ export function getSignMonthList(data){
*/
export function userActivity(){
return request.get('user/activity');
}
}
/*
* 余额明细types|2=全部,1=支出,2=收入

View File

@ -20,7 +20,7 @@
</view>
</view>
</view>
</view>
</view>
</template>
@ -61,10 +61,10 @@
return 0;
}
}
},
},
data() {
return {
totalNmu: ''
totalNmu: ''
};
},
watch: {

View File

@ -1,32 +1,33 @@
//移动端商城API
// let domain = 'http://117.50.163.143:20410'
let domain = 'http://117.50.215.20:20410'
// let domain = 'http://192.168.2.14:8081'
// let domain = 'http://106.75.49.247:20410'
// let domain = 'http://117.50.215.20:20410'
// let domain = 'http://192.168.2.14:8081'
// let domain = 'http://106.75.49.247:20410'
let domain = 'https://yruibao.com/prod'
module.exports = {
// 请求域名 格式: https://您的域名
// #ifdef MP || APP-PLUS
// HTTP_REQUEST_URL:'',
HTTP_REQUEST_URL: domain,
// H5商城地址
// HTTP_H5_URL: 'http://106.75.49.247:20410',
HTTP_H5_URL: 'http://117.50.215.20:20410',
// HTTP_REQUEST_URL:'',
HTTP_REQUEST_URL: domain,
// H5商城地址
HTTP_H5_URL: 'https://yruibao.com/prod', //正式
// HTTP_H5_URL: 'http://192.168.2.14:8081', //本地
// HTTP_H5_URL: 'http://117.50.215.20:20410', //测试
// #endif
// #ifdef H5
HTTP_REQUEST_URL:domain,
HTTP_REQUEST_URL: domain,
// #endif
HEADER:{
HEADER: {
'content-type': 'application/json',
},
HEADERPARAMS:{
HEADERPARAMS: {
'content-type': 'application/x-www-form-urlencoded'
},
// 回话密钥名称 请勿修改此配置
TOKENNAME: 'Authori-zation',
// 缓存时间 0 永久
EXPIRE:0,
EXPIRE: 0,
//分页最多显示条数
LIMIT: 10
};
};

View File

@ -26,12 +26,12 @@ module.exports = {
TIPS_KEY: 'TIPS_KEY',
SPREAD: 'SPREAD',
CHANNELID: 'CHANNELID',
SPREAD: 'SPREAD',
//缓存经度
CACHE_LONGITUDE: 'LONGITUDE',
//缓存纬度
CACHE_LATITUDE: 'LATITUDE',
//app手机信息
PLATFORM: 'systemPlatform'
}
}

View File

@ -33,5 +33,6 @@ class Apps{
.catch(reject);
});
}
}
export default new Apps();

View File

@ -232,6 +232,7 @@ class AuthWechat {
});
}
/**
* 获取跳转授权后的地址
* @param {Object} appId

12
main.js
View File

@ -29,13 +29,13 @@ import {
} from "./utils";
import Auth from './libs/wechat';
import {
SPREAD,CHANNELID
SPREAD
} from './config/cache';
Vue.prototype.$wechat = Auth;
let cookieName = "VCONSOLE",
query = parseQuery(),
urlSpread = query["spread"],
urlChannelId = query["channelId"],
vconsole = query[cookieName.toLowerCase()],
md5Crmeb = "b14d1e9baeced9bb7525ab19ee35f2d2", //CRMEB MD5 加密开启vconsole模式
md5UnCrmeb = "3dca2162c4e101b7656793a1af20295c"; //UN_CREMB MD5 加密关闭vconsole模式
@ -46,13 +46,7 @@ let cookieName = "VCONSOLE",
value: urlSpread,
})
}
if (urlChannelId) {
urlChannelId = parseInt(urlChannelId);
Cache.setItem({
name: 'channelId',
value: urlChannelId,
})
}
if (vconsole !== undefined) {
if (vconsole === md5UnCrmeb && Cache.has(cookieName))
Cache.clear(cookieName);

View File

@ -163,7 +163,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wx46c3a73d8c4f7051",
"appid" : "wx424c861adb20990f",
"libVersion" : "latest",
"setting" : {
"urlCheck" : false,

View File

@ -342,7 +342,7 @@
import countDown from '@/components/countDown';
import parser from "@/components/jyf-parser/jyf-parser";
import {
silenceBindingSpread
silenceBindingSpread,
} from "@/utils";
// #ifdef APP-PLUS
import {
@ -494,8 +494,7 @@
// id
if(options.spread) app.globalData.spread = options.spread;
// id
// if(options.channelId) app.globalData.channelId = options.channelId;
var pages = getCurrentPages();
if (pages.length <= 1) {
@ -525,7 +524,7 @@
} else {
this.$Cache.set(BACK_URL,
'/pages/activity/goods_bargain_details/index?id=' + options.id +
'&startBargainUid=' + this.uid + '&spread=' + this.uid + '&storeBargainId=' + this.storeBargainId
'&startBargainUid=' + this.uid + '&spread=' + this.uid + '&storeBargainId=' + this.storeBargainId
);
toLogin();
}
@ -535,6 +534,7 @@
if(this.isLogin && parseInt(app.globalData.spread)>0){
silenceBindingSpread()
}
},
methods: {
//
@ -586,7 +586,7 @@
"//" +
window.location.host +
'/pages/activity/goods_bargain_details/index?id=' + this.id + '&startBargainUid=' + this
.uid + '&spread=' + this.uid + '&storeBargainId=' + this.storeBargainId,
.uid + '&spread=' + this.uid + '&storeBargainId=' + this.storeBargainId,
imgUrl: that.bargainInfo.image
};
if (this.$wechat.isWeixin()) {

View File

@ -494,6 +494,7 @@
//
if(options.spread) app.globalData.spread = options.spread; //广
if (options.id) this.id = options.id; // id
// id
if (options.scene) {
@ -504,6 +505,7 @@
if (this.isLogin) {
this.combinationDetail();
if(parseInt(app.globalData.spread)>0) silenceBindingSpread()
} else {
this.$Cache.set('login_back_url',
`/pages/activity/goods_combination_details/index?id=${options.id}&spread=${app.globalData.spread?app.globalData.spread:0}`
@ -616,6 +618,7 @@
getCombinationDetail(data).then(function(res) {
//
that.openPages = '/pages/activity/goods_combination_details/index?id=' + that.id + '&spread=' + that.uid;
that.dataShow = 1;
uni.setNavigationBarTitle({
title: res.data.storeCombination.storeName.substring(0, 16)
@ -1105,6 +1108,7 @@
//
make() {
let href = location.href.split('?')[0] + "?id="+ this.id + "&spread=" + this.uid;
uQRCode.make({
canvasId: 'qrcode',
text: href,
@ -1122,6 +1126,7 @@
}
})
},
/*
* 保存到手机相册
*/
@ -1178,9 +1183,8 @@
if (this.$wechat.isWeixin()) {
href =
href.indexOf("?") === -1 ?
href + "?spread=" + this.uid :
href + "&spread=" + this.uid;
href + "?spread=" + this.uid : href + "&spread=" + this.uid;
let configAppMessage = {
desc: data.storeInfo,
title: data.storeName,

View File

@ -237,6 +237,7 @@
if (newV) {
this.getCombinationPink();
if(parseInt(app.globalData.spread)>0)silenceBindingSpread()
}
},
deep: true
@ -254,6 +255,7 @@
this.$set(this,'theme',this.$Cache.get('theme'));
this.pinkId = options.id;
if(options.spread) app.globalData.spread = options.spread;
switch (this.theme) {
case 'theme1':
this.posterbackgd = '../../../static/images/bargain_post1.png' // 使
@ -275,10 +277,12 @@
this.timestamp = (new Date()).getTime();
this.getCombinationPink();
if(parseInt(app.globalData.spread)>0)silenceBindingSpread()
}else{
this.$Cache.set('login_back_url',
`/pages/activity/goods_combination_status/index?id=${options.id}&spread=${app.globalData.spread?app.globalData.spread:0}`
);
toLogin();
}
},
@ -305,6 +309,7 @@
this.timestamp = (new Date()).getTime();
this.getCombinationPink();
silenceBindingSpread()
}else{
toLogin();
}
@ -658,6 +663,7 @@
}
})
},
//
getCombinationPink: function() {
var that = this;
@ -665,6 +671,7 @@
.then(res => {
that.openPages = '/pages/activity/goods_combination_status/index?id=' + that.pinkId +
"&spread=" + that.uid;
let storeCombination = res.data.storeCombination;
res.data.pinkT.stop_time = parseInt(res.data.pinkT.stopTime);
that.$set(that, 'storeCombination', storeCombination);
@ -708,6 +715,7 @@
desc: that.storeCombination.title,
link: window.location.protocol + '//' + window.location.host +
'/pages/activity/goods_combination_status/index?id=' + that.pinkId + "&spread=" + this.uid,
imgUrl: that.storeCombination.image
};
if (this.$wechat.isWeixin()) {

View File

@ -446,23 +446,15 @@
this.id = value.id ? value.id : '';
}
if(options.spread) app.globalData.spread = options.spread;
// if (options.hasOwnProperty('id') || options.scene){
// if (options.scene) { //
// let qrCodeValue = this.$util.getUrlParams(decodeURIComponent(options.scene));
// let mapeMpQrCodeValue = this.$util.formatMpQrCodeData(qrCodeValue);
// app.globalData.spread = mapeMpQrCodeValue.spread;
// this.id = mapeMpQrCodeValue.id;
// }else{
// this.id = options.id;
// }
// }
if (this.isLogin) {
this.getSeckillDetail();
} else {
this.$Cache.set('login_back_url',
'/pages/activity/goods_seckill_details/index?id=' + this.id + '&spread=' + app.globalData.spread?app.globalData.spread:0);
'/pages/activity/goods_seckill_details/index?id=' + this.id + '&spread=' + app.globalData.spread?app.globalData.spread:0);
toLogin();
}
this.$nextTick(() => {
@ -477,9 +469,10 @@
.exec();
// #endif
})
if(this.isLogin && parseInt(app.globalData.spread)>0){
if(this.isLogin && parseInt(app.globalData.spread)>0){
silenceBindingSpread()
}
},
methods: {
// app
@ -492,7 +485,8 @@
provider: "weixin",
scene: scene,
type: 0,
href: `${HTTP_H5_URL}${curRoute}&spread=${that.uid}`,
href: `${HTTP_H5_URL}${curRoute}&spread=${that.uid}}`,
title: that.storeInfo.storeName,
summary:app.globalData.companyName,
imageUrl: that.storeInfo.image,
@ -614,7 +608,8 @@
setTimeout(function() {
that.infoScroll();
}, 1000);
that.openPages = '/pages/activity/goods_seckill_details/index?id=' + that.id + '&spread=' + that.uid ;
that.openPages = '/pages/activity/goods_seckill_details/index?id=' + that.id + '&spread=' + that.uid+ '&channelI=' + that.uid;
// that.openPages = '/pages/activity/goods_seckill_details/index?id=' + that.id + '&channelI=' + that.uid ;
setTimeout(() => {
that.showSkeleton = false
}, 1000)
@ -1068,7 +1063,7 @@
},
//
make() {
let href = location.href.split('?')[0] + "?id="+ this.id + "&spread=" + this.uid;
let href = location.href.split('?')[0] + "?id="+ this.id + "&spread=" + this.uid + "&channelI=" + this.uid;
uQRCode.make({
canvasId: 'qrcode',
text: href,
@ -1086,6 +1081,25 @@
}
})
},
// make() {
// let href = location.href.split('?')[0] + "?id="+ this.id + "&channelI=" + this.uid;
// uQRCode.make({
// canvasId: 'qrcode',
// text: href,
// size: this.qrcodeSize,
// margin: 10,
// success: res => {
// this.PromotionCode = res;
// },
// complete: (res) => {
// },
// fail:res=>{
// this.$util.Tips({
// title: ''
// });
// }
// })
// },
//
getpreviewImage: function() {
if (this.posterImage) {
@ -1157,8 +1171,12 @@
if (this.$wechat.isWeixin()) {
href =
href.indexOf("?") === -1 ?
href + "?spread=" + this.uid :
href + "&spread=" + this.uid;
href + "?spread=" + this.uid+ "?channelI=" + this.uid :
href + "&spread=" + this.uid+"&channelI=" + this.uid;
// href =
// href.indexOf("?") === -1 ?
// href + "?channelI=" + this.uid :
// href + "&channelI=" + this.uid;
let configAppMessage = {
desc: app.globalData.companyName,

View File

@ -145,6 +145,34 @@
}
})
},
make(uid) {
let href = location.protocol + '//' + window.location.host + '/pages/activity/goods_combination_status/index?id=' + this.id ;
uQRCode.make({
canvasId: 'qrcode',
text: href,
size: this.qrcodeSize,
margin: 10,
success: res => {
this.PromotionCode = res;
let arrImages = [this.posterbackgd, this.imgTop, this.PromotionCode];
let storeName = this.storeCombination.storeCombination.title;
let price = this.storeCombination.storeCombination.price;
let people = this.storeCombination.storeCombination.people;
let otPrice = this.storeCombination.storeCombination.otPrice;
let count = this.storeCombination.count;
setTimeout(() => {
this.PosterCanvas(arrImages, storeName, price, people,otPrice,count);
}, 300);
},
complete: () => {
},
fail:res=>{
this.$util.Tips({
title: '海报二维码生成失败!'
});
}
})
},
//
PosterCanvas:function(arrImages, storeName, price, people,otPrice,count){
uni.showLoading({

View File

@ -252,7 +252,7 @@
@getImg="showImg" @installments="installments">
</productWindow>
<couponListWindow :coupon='coupon' :typeNum="couponDeaultType[0].useType"
@ChangCouponsClone="ChangCouponsClone" @ChangCoupons="ChangCoupons"
@ChangCouponsClone="ChangCouponsClone" @ChangCoupons="ChangCoupons"
@ChangCouponsUseState="ChangCouponsUseState" @tabCouponType="tabCouponType"></couponListWindow>
<!-- 分享按钮 -->
<view class="generate-posters" :class="posters ? 'on' : ''">
@ -368,7 +368,8 @@
import shareRedPackets from '@/components/shareRedPackets';
import cusPreviewImg from '@/components/cus-previewImg/cus-previewImg.vue'
import {
silenceBindingSpread,silenceBindingChannelId
silenceBindingSpread,
} from "@/utils";
import parser from "@/components/jyf-parser/jyf-parser";
import {
@ -550,8 +551,6 @@
this.getTokenIsExist();
},
onLoad(options) {
// console.log(JSON.stringify(options),"options.spread")
alert("options.spread"+JSON.stringify(options))
//
this.$set(this, 'theme', this.$Cache.get('theme'));
@ -609,7 +608,7 @@
// #endif
if (options.spread) app.globalData.spread = options.spread;
if (options.channelId) app.globalData.channelId = options.channelId;
this.getGoodsDetails(); //
this.getCouponType(); //
@ -648,6 +647,8 @@
title: that.productInfo.storeName || '',
imageUrl: that.productInfo.image || '',
path: '/pages/goods_details/index?id=' + that.id + '&spread=' + that.uid,
}
},
// #endif
@ -660,11 +661,11 @@
uni.$emit('scroll');
},
methods: {
//
//
//
// getfqList: function() {
// let data = {
@ -674,7 +675,7 @@
// }
// getfenqilist(data).then(res => {
// this.fenqlist = res.data.list
// // localStorage.setItem('fqlist',JSON.stringify(this.fenqlist))
// })
// },
@ -686,7 +687,7 @@
this.getCartCount(true); //
//
if (parseInt(app.globalData.spread) > 0) silenceBindingSpread();
if (parseInt(app.globalData.channelId) > 0) silenceBindingChannelId();
}
});
},
@ -700,6 +701,8 @@
scene: scene,
type: 0,
href: `${HTTP_H5_URL}${curRoute}&spread=${that.uid}`,
title: that.productInfo.storeName,
summary: app.globalData.companyName,
imageUrl: that.productInfo.image,
@ -751,7 +754,7 @@
},
/**
* 购物车手动填写
*
*
*/
iptCartNum: function(e) {
this.$set(this.attr.productSelect, 'cart_num', e ? e : 1);
@ -793,7 +796,7 @@
that.$set(that.sharePacket, 'touchstart', true); //
},
/*
*去商品详情页
*去商品详情页
*/
goDetail(item) {
if (!item.activityH5) {
@ -836,7 +839,7 @@
},
/**
* 购物车数量加和数量减
*
*
*/
ChangeCartNum: function(changeValue) {
//changeValue: |
@ -868,7 +871,7 @@
},
/**
* 属性变动赋值
*
*
*/
ChangeAttr: function(res) {
let productSelect = this.productValue[res];
@ -917,7 +920,7 @@
},
/**
* 优品推荐
*
*
*/
getGoods() {
getProductGood().then(res => {
@ -952,7 +955,7 @@
},
/**
* 获取产品详情
*
*
*/
getGoodsDetails: function() {
let that = this;
@ -1072,7 +1075,7 @@
},
/**
* 默认选中属性
*
*
*/
DefaultSelect: function() {
let productAttr = this.attr.productAttr;
@ -1125,7 +1128,7 @@
},
/**
* 获取优惠券
*
*
*/
getCouponList(type) {
let that = this;
@ -1180,9 +1183,9 @@
that.$set(that.coupon, 'list', that.coupon.list);
that.$set(that.coupon, 'coupon', false);
},
/**
*
*
/**
*
*
* 收藏商品
*/
setCollect: function() {
@ -1229,7 +1232,7 @@
},
/**
* 打开属性加入购物车
*
*
*/
joinCart: function(e) {
//
@ -1316,7 +1319,7 @@
/**
* 立即购买
*/
goBuy: Debounce(function(e) {
goBuy: Debounce(function(e) {
if (this.isLogin === false) {
toLogin();
} else {
@ -1341,7 +1344,7 @@
},
/**
* 分享打开
*
*
*/
listenerActionSheet: function() {
if (this.isLogin === false) {
@ -1428,6 +1431,7 @@
}
})
},
getImageBase64: function(images) {
let that = this;
imageBase64({
@ -1580,7 +1584,8 @@
let data = this.productInfo;
let href = location.href;
if (this.$wechat.isWeixin()) {
href = href.indexOf("?") === -1 ? href + "?spread=" + this.uid : href + "&spread=" + this.uid;
href = href.indexOf("?") === -1 ? href + "?spread=" + this.uid: href + "&spread=" + this.uid;
let configAppMessage = {
desc: app.globalData.companyName,
title: data.storeName,
@ -2533,7 +2538,7 @@
border-radius: 8rpx;
text-align: center;
}
</style>
</style>

View File

@ -70,7 +70,7 @@
</view>
<!-- menu -->
<view class='nav acea-row' @click.native="bindEdit('indexMenu')">
<block v-for="(item,index) in menus" :key="index">
<block v-for="(item,index) in menus" :key="index" v-if="item.id != 1698">
<view class='item' @click="menusTap(item.url)">
<view class='pictrue'>
<image :src='item.pic' class="skeleton-radius"></image>
@ -176,10 +176,11 @@
} from "@/api/user";
// #ifdef MP-WEIXIN || APP-PLUS
import {
getTemlIds
getTemlIds,
logoip
} from '@/api/api.js';
// #endif
// #ifdef H5
// #ifdef H5
import {
follow
} from '@/api/public.js';
@ -210,7 +211,7 @@
getGroomList
} from '@/api/store.js';
import {
silenceBindingSpread,silenceBindingChannelId,
silenceBindingSpread,
getCityList
} from '@/utils';
import animationType from '@/utils/animationType.js'
@ -418,10 +419,11 @@
let qrCodeValue = this.$util.getUrlParams(decodeURIComponent(options.scene));
let mapeMpQrCodeValue = this.$util.formatMpQrCodeData(qrCodeValue);
app.globalData.spread = mapeMpQrCodeValue.spread;
app.globalData.channelId = mapeMpQrCodeValue.channelId;
}
if (options.spread) app.globalData.spread = options.spread; //urlidglobalDta
if (options.channelId) app.globalData.channelId = options.channelId; //urlidglobalDta
// #endif
// #ifndef MP || APP-PLUS
this.navH = 0;
@ -433,12 +435,9 @@
if (this.isLogin && parseInt(app.globalData.spread) > 0) {
silenceBindingSpread()
}
if (this.isLogin && parseInt(app.globalData.channelId) > 0) {
silenceBindingChannelId()
}
if (this.isLogin && parseInt(options.channelId) > 0) {
silenceBindingChannelId()
}
},
onShow() {
let self = this;
@ -453,8 +452,18 @@
}, 1000)
// #endif
uni.showTabBar();
// ip
this.getip()
},
methods: {
// ip
getip(){
logoip().then(res => {
console.log(res,'记录ip')
})
},
menusTap(url) {
goPage().then(res => {
if (url == '/pages/goods_cate/goods_cate') {
@ -516,13 +525,13 @@
callback(data[0]);
});
},
xieyiApp() {
xieyiApp(){
uni.navigateTo({
url: '/pages/users/web_page/index?webUel=https://admin.java.crmeb.net/useragreement/xieyi.html&title=协议内容'
})
},
// #ifdef APP-PLUS
xieyiApp() {
xieyiApp(){
uni.navigateTo({
animationType: animationType.type,
animationDuration: animationType.duration,
@ -530,26 +539,26 @@
})
},
//
confirmApp() {
confirmApp(){
uni.setStorageSync('privacyStatus', true)
this.privacyStatus = false
},
// Model
closeModel() {
closeModel(){
this.privacyStatus = false
},
// #endif
// #ifdef MP || APP-PLUS
getTemlIds() {
for (var i in arrTemp) {
getTemlIds(){
for(var i in arrTemp){
this.getTem(arrTemp[i]);
}
},
getTem(data) {
getTem(data){
getTemlIds({
type: data
}).then(res => {
if (res.data) {
if (res.data){
let arr = res.data.map((item) => {
return item.tempId
})
@ -559,13 +568,13 @@
},
// #endif
//
onColse() {
onColse(){
this.$set(this, "window", false);
},
/**
* 获取我的推荐
*/
get_host_product: function() {
get_host_product: function(){
let that = this;
that.loading = true;
@ -581,7 +590,7 @@
},
//
getIndexConfig: function() {
getIndexConfig: function(){
let that = this;
//this.isNodes++;
getIndexData().then(res => {
@ -592,8 +601,8 @@
that.$set(that, "imgUrls", res.data.banner);
that.$set(that, "menus", res.data.menus);
that.$set(that, "roll", res.data.roll ? res.data.roll : []);
that.$set(that, 'cardShow', res.data.homePageSaleListStyle == '' ? 1 : Number(res.data
.homePageSaleListStyle)); //
that.$set(that, 'cardShow', res.data.homePageSaleListStyle == '' ? 1 : Number(res.data.homePageSaleListStyle)); //
// console.log(this.menus,11)
//
that.$Cache.setItem({
name: 'categoryConfig',
@ -626,10 +635,10 @@
});
},
appVersionConfig() {
appVersionConfig(){
var that = this;
//app
//
//
getAppVersion().then(res => {
that.$set(that.appUpdate, 'androidAddress', res.data.androidAddress);
that.$set(that.appUpdate, 'appVersion', res.data.appVersion);
@ -662,7 +671,6 @@
.iosAddress));
break;
}
}
}
});
@ -1294,4 +1302,4 @@
height: 344rpx;
@include index-gradient(theme);
}
</style>
</style>

View File

@ -62,7 +62,7 @@
class='picTxt acea-row row-between-wrapper'>
<view class='pictrue'>
<image :src='item.image'></image>
</view>
</view>
<view class='text'>
<view class='line1' :class="item.attrStatus?'':'reColor'">{{item.storeName}}
</view>

View File

@ -130,7 +130,7 @@
<!-- 加载logo -->
<view class="logobox" v-show="logoflag">
<image class="logoicon" :src="logoicon"></image>
<image class="logoicon" src="../../static/img/logo.png"></image>
<text>正在生成签署证书中...</text>
</view>
@ -316,7 +316,6 @@
codeImg: '',
qrcodeSize: 100,
order_id: '',
logoicon: 'https://www.bing.com/th/id/OGC.2a900b3c36d322151e95758438f7969c?pid=1.7&rurl=http%3a%2f%2fimg.zcool.cn%2fcommunity%2f014d8456df99c332f875520fefa07d.gif&ehk=UeVN2KesER9OKAkq%2fTigaUKsvSNK%2bndZDjePMEecfmQ%3d',
evaluate: 0,
cartInfo: [], //
orderInfo: {
@ -332,7 +331,7 @@
icon: "icon-weixinzhifu",
value: 'weixin',
title: '微信快捷支付',
payStatus: 1,
payStatus: 1,
},
{
name: "余额支付",
@ -771,11 +770,11 @@
transform: translateX(-50%);
}
.logoicon {
width: 100%;
height: 500rpx;
width: 80rpx;
height: 140rpx;
z-index: 99;
position: absolute;
top: 30%;
top: 38%;
left: 50%;
transform: translateX(-50%);
}

View File

@ -27,7 +27,7 @@
<view class="num" v-if="userInfo && userInfo.phone && uid">
<view class="num-txt">{{userInfo.phone}}</view>
<view class="icon">
<image src="/static/images/edit.png" mode=""></image>
<image src="/static/images/edit.png" mode="" @click="goEdit()"></image>
</view>
<view class="real_name" @click="btnreal">
{{realname}}
@ -44,10 +44,10 @@
<text class="num">{{userInfo.nowMoney && uid ? userInfo.nowMoney:0}}</text>
<view class="txt">余额</view>
</view>
<view class="num-item" @click="goMenuPage('/pages/users/user_integral/index')">
<!-- <view class="num-item" @click="goMenuPage('/pages/users/user_integral/index')">
<text class="num">{{userInfo.integral && uid ? userInfo.integral: 0}}</text>
<view class="txt">积分</view>
</view>
</view> -->
<view class="num-item" @click="goMenuPage('/pages/users/user_coupon/index')">
<text class="num">{{userInfo.couponCount && uid ? userInfo.couponCount : 0}}</text>
<view class="txt">优惠券</view>
@ -103,7 +103,7 @@
<view class="menu-title">我的服务</view>
<view class="list-box">
<block v-for="(item,index) in MyMenus" :key="index"
v-if="item.id == 1622 || item.id == 1625|| item.id == 1626 || item.id == 1627|| item.id == 1628|| item.id == 1630|| item.id == 1631|| item.id == 1632|| item.id == 1634">
v-if="item.id != 1751 && item.id != 1754 && item.id !=1752 &&item.id !=1744">
<view class="item" @click="menusTap(item.url)"
v-if="!(item.url =='/pages/service/index' || (item.url =='/pages/users/user_spread_user/index' && !userInfo.isPromoter))">
<image :src="item.pic"></image>
@ -180,6 +180,7 @@
} from '@/utils/setTheme.js'
import animationType from '@/utils/animationType.js'
const app = getApp();
export default {
computed: mapGetters(['isLogin', 'chatUrl', 'uid']),
data() {
@ -273,6 +274,7 @@
that.$set(that, 'pageHeight', app.globalData.windowHeight);
// #endif
that.$set(that, 'MyMenus', app.globalData.MyMenus);
that.$set(that, 'chatConfig', Cache.getItem('chatConfig'));
// #ifdef H5
that.shareApi();
@ -323,6 +325,7 @@
uid: this.$store.getters.uid
}
getidentity(data).then(res=>{
// console.log(res.data)
if (res.message == '操作成功') {
this.realname = '已实名'
this.identification = res.data
@ -336,7 +339,7 @@
})
},
//token,truefalse
getTokenIsExist() {
getTokenIsExist(){
tokenIsExistApi().then(res => {
let tokenIsExist = res.data;
if (this.isLogin && tokenIsExist) {
@ -353,7 +356,7 @@
})
},
//
copyrightImage() {
copyrightImage(){
copyrightApi().then(res => {
if (res.data) {
this.copyImage = res.data.companyImage;
@ -481,13 +484,13 @@
// if (this.MyMenus.length) return;
getMenuList().then(res => {
that.$set(that, 'MyMenus', res.data.routine_my_menus);
console.log(this.MyMenus,11)
that.wechatUrl = res.data.routine_my_menus.filter((item) => {
return item.url.indexOf('service') !== -1
})
res.data.routine_my_menus.map((item) => {
if (item.url.indexOf('service') !== -1) that.servicePic = item.pic
})
// that.imgUrls = res.data.routine_my_banner
if (res.data.routine_my_banner) {
that.imgUrls = res.data.routine_my_banner
}

View File

@ -1,6 +1,6 @@
<template>
<view class="">
<web-view :src="https" @message="handleGetMessage"></web-view>
<web-view ref="webview" :src="https" @message="handleGetMessage"></web-view>
</view>
</template>
@ -14,17 +14,16 @@
onShow() {
},
onLoad(option) {
this.https = decodeURIComponent(option.https)
// console.log(option.http)
onLoad() {
this.https = this.$Cache.get('https')
// this.https = decodeURIComponent(option)
console.log(this.https,111)
},
methods: {
handleGetMessage:function(e){
console.log(e)
if(e.detail.data[0].result == 'success'){
uni.navigateTo({
uni.redirectTo({
url:'/pages/users/signin/index'
})
}

View File

@ -315,8 +315,9 @@
loginMobile({
phone: that.account,
captcha: that.captcha,
spread_spid: that.$Cache.get("spread")
// spread_spid: uni.getStorageSync('spid')
spread_spid: that.$Cache.get("spread"),
})
.then(res => {
let data = res.data;
@ -358,8 +359,9 @@
account: that.account,
captcha: that.captcha,
password: that.password,
spread_spid: that.$Cache.get("spread")
// spread_spid: uni.getStorageSync('spid') || 0
spread_spid: that.$Cache.get("spread"),
})
.then(res => {
that.$util.Tips({
@ -420,7 +422,9 @@
loginH5({
account: that.account,
password: that.password,
spread_spid: that.$Cache.get("spread")
spread_spid: that.$Cache.get("spread"),
}).then(({data}) => {
this.$store.commit("LOGIN", {
'token': data.token,

View File

@ -55,12 +55,11 @@
<view class="pad30">
<view class="pad30">
<!-- 完善身份信息 -->
<view class="identity" @click="btnimprovess">
<view class="lt">
<image src="https://img.51miz.com/Element/00/77/81/22/fcdde517_E778122_151271f0.png" mode="">
</image>
<image src="../../../static/images/xx.png" mode=""></image>
</view>
<view class="cen">
<text>完善身份信息 &nbsp;&nbsp;{{sfxx}}</text>
@ -86,7 +85,7 @@
</view>
</view>
<view class='item acea-row row-between-wrapper'
<!-- <view class='item acea-row row-between-wrapper'
v-if="!orderInfoVo.bargainId && !orderInfoVo.combinationId && !orderInfoVo.seckillId && productType==='normal'">
<view>积分抵扣</view>
<view class='discount acea-row row-middle'>
@ -99,7 +98,7 @@
:disabled="orderInfoVo.userIntegral==0 && !useIntegral" @click="btnjf" />
</checkbox-group>
</view>
</view>
</view> -->
<!-- <view class='item acea-row row-between-wrapper'
v-if="priceGroup.vipPrice > 0 && userInfo.vip && !pinkId && !BargainId && !combinationId && !seckillId">
<view>会员优惠</view>
@ -403,18 +402,16 @@
downPaymentAmount: 0,
totalAmount: 0,
identification:{}, //
zongmey:'',
zongmey:''
};
},
computed: {
computed:{
...mapGetters(['isLogin', 'systemPlatform', 'productType']),
markNum() {
let markNum = 0;
if (this.mark) {
markNum = 150 - this.mark.length
return markNum
return markNum
}
},
},

View File

@ -157,10 +157,11 @@
import {
getInformation
} from '@/api/api.js'
// import config from '@/config/app.js'
// const baseUrl = config.domain
export default {
data() {
return {
//
positiveImg: '', //
upLoadPositiveImg: 'https://tse1-mm.cn.bing.net/th/id/OIP-C.zrlmSg7klHyl3uDBB-nG3wAAAA?w=280&h=170&c=7&r=0&o=5&pid=1.7', //
reverseImg: '', //
@ -202,11 +203,14 @@
//
if (JSON.parse(option.identification)) {
this.identification = JSON.parse(option.identification)
console.log(this.identification)
this.realName = this.identification.realName
this.idcard = this.identification.idCardNumber
this.tel = this.identification.commonPhoneNumber
this.upLoadReverseImg = this.identification.idCardBackPhoto.slice(21)
this.upLoadPositiveImg = this.identification.idCardFrontPhoto.slice(21)
// this.upLoadReverseImg = this.identification.idCardBackPhoto.slice(21)
// this.upLoadPositiveImg = this.identification.idCardFrontPhoto.slice(21)
this.upLoadReverseImg = this.identification.idCardBackPhoto
this.upLoadPositiveImg = this.identification.idCardFrontPhoto
this.emitext = this.identification.email
// this.telthre = this.identification.phoneNumber
this.lxindex = this.identification.userEmergencyContactsList[0].relationship
@ -240,8 +244,7 @@
this.lxrmoren = '同事'
this.lxrmorens = '同事'
}
console.log(this.upLoadPositiveImg)
console.log(this.upLoadReverseImg)
// console.log('https://yruibao.com' + this.upLoadPositiveImg)
}
},
methods: {
@ -350,21 +353,7 @@
});
}
},
//
// idcardinp() {
// let result = /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}([0-9]|X)$/
// if (this.idcard == '') {
// return this.$util.Tips({
// title: ''
// });
// } else if (result.test(this.idcard)) {
// } else {
// return this.$util.Tips({
// title: ''
// });
// }
// },
//
telinp() {
let photopatten = /^1[3456789]\d{9}$/
@ -408,20 +397,7 @@
});
}
},
// telinpthre() {
// let photopatten = /^1[3456789]\d{9}$/
// if (this.telthre == '') {
// return this.$util.Tips({
// title: ''
// });
// } else if (photopatten.test(this.telthre)) {
// } else {
// return this.$util.Tips({
// title: ''
// });
// }
// },
//
openPopup(e) {
this.$refs[e].open();
@ -451,19 +427,6 @@
this.lxrmorenadd = val
this.personflagb = false
},
//
// emitextinp() {
// let aqq = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
// if (this.emitext == '') {
// return this.$util.Tips({
// title: ''
// });
// } else if (!aqq.test(this.emitext)) {
// return this.$util.Tips({
// title: ''
// });
// }
// },
//
btnclick() {
@ -651,7 +614,52 @@
uploadpic: function() {
let that = this;
that.$util.uploadImageOne({
url: 'upload/image',
name: 'multipart',
model: 'user',
pid: 7
}, function(res) {
that.upLoadPositiveImg = res.data.url;
// console.log(that.upLoadPositiveImg)
});
},
uploadpics: function() {
let that = this;
that.$util.uploadImageOne({
url: 'upload/image',
name: 'multipart',
model: 'user',
pid: 7
}, function(res) {
that.upLoadReverseImg = res.data.url;
});
},
// filebase64
// getImageBase64(blob) {
// return new Promise((resolve, reject) => {
@ -678,31 +686,7 @@
// }
// })
// },
uploadpic: function() {
let that = this;
that.$util.uploadImageOne({
url: that.upLoadPositiveImg,
name: 'multipart',
model: 'user',
pid: 7
}, function(res) {
that.upLoadPositiveImg = res.data.url;
console.log(that.upLoadPositiveImg)
});
},
uploadpics: function() {
let that = this;
that.$util.uploadImageOne({
url: 'upload/image',
name: 'multipart',
model: 'user',
pid: 7
}, function(res) {
// console.log(res)
that.upLoadReverseImg = res.data.url;
});
},
//
// uploadReverse() {
@ -787,12 +771,13 @@
display: flex;
width: 100%;
border-bottom: 1px solid #ccc;
text {
margin-right: 80rpx;
width: 160rpx;
}
input {
width: 100%;
height: 80rpx;
line-height: 80rpx;
font-size: 26rpx;

View File

@ -89,7 +89,7 @@
</view>
<!-- 加载logo -->
<view class="logobox" v-show="logoflag">
<image class="logoicon" :src="logoicon"></image>
<image class="logoicon" src="../../../static/img/logo.png"></image>
<text>正在生成签署证书中...</text>
</view>
</view>
@ -117,6 +117,7 @@
orderDel,
getnowqy
} from '@/api/order.js';
import {
openOrderSubscribe
} from '@/utils/SubscribeMessage.js';
@ -151,7 +152,6 @@
orderStatus: 0, //
page: 1,
limit: 20,
logoicon: 'https://www.bing.com/th/id/OGC.2a900b3c36d322151e95758438f7969c?pid=1.7&rurl=http%3a%2f%2fimg.zcool.cn%2fcommunity%2f014d8456df99c332f875520fefa07d.gif&ehk=UeVN2KesER9OKAkq%2fTigaUKsvSNK%2bndZDjePMEecfmQ%3d',
payMode: [{
name: "微信支付",
icon: "icon-weixinzhifu",
@ -226,10 +226,10 @@
getnowqy(id).then(res => {
this.logoflag = false //logo
this.https = res.data.url
console.log(res.data.url,2222)
this.$Cache.set('https',this.https)
uni.navigateTo({
url: '/pages/users/inbound/index?http=' + this.https
// url:'/pages/users/signin/index?=order45030170584172294634602'
url: '/pages/users/inbound/index'
})
// #ifdef H5
window.location.href=this.https
@ -259,7 +259,7 @@
},
/**
* 关闭支付组件
*
*
*/
payClose: function() {
this.pay_close = false;
@ -393,13 +393,14 @@
* 切换类型
*/
statusClick: function(status) {
// console.log(status);
if (status == this.orderStatus) return;
this.orderStatus = status;
this.loadend = false;
this.page = 1;
this.$set(this, 'orderList', []);
this.getOrderList();
//
this.getOrderData();
},
/**
* 获取订单列表
@ -510,11 +511,11 @@
}
.logoicon {
width:100%;
height: 500rpx;
width: 80rpx;
height: 140rpx;
z-index: 99;
position: absolute;
top: 30%;
top: 38%;
left: 50%;
transform: translateX(-50%);
}

View File

@ -25,7 +25,7 @@
<!-- 加载logo -->
<view class="logobox" v-show="logoflag">
<image class="logoicon" :src="logoicon"></image>
<image class="logoicon" src="../../../static/img/logo.png"></image>
<text>正在生成订单中请稍等...</text>
</view>
</view>
@ -38,8 +38,6 @@
shopobj: {},
ordermo: '',
logoflag:true,
logoicon: 'https://www.bing.com/th/id/OGC.2a900b3c36d322151e95758438f7969c?pid=1.7&rurl=http%3a%2f%2fimg.zcool.cn%2fcommunity%2f014d8456df99c332f875520fefa07d.gif&ehk=UeVN2KesER9OKAkq%2fTigaUKsvSNK%2bndZDjePMEecfmQ%3d',
}
},
onLoad(option) {
@ -47,7 +45,7 @@
this.timer = setInterval(() => {
this.ordermo = this.$Cache.get('ordernobh')
this.logoflag = false
console.log(this.ordermo)
// console.log(this.ordermo)
}, 3000); // 1
},
onShow() {
@ -104,11 +102,11 @@
transform: translateX(-50%);
}
.logoicon {
width: 100%;
height: 500rpx;
width: 80rpx;
height: 140rpx;
z-index: 99;
position: absolute;
top: 25%;
top: 38%;
left: 50%;
transform: translateX(-50%);
}

View File

@ -25,13 +25,13 @@
<navigator url="../../../pages/index/index" open-type="switchTab" class="fhsy">返回首页</navigator>
</view>
</view>
<!-- 加载logo -->
<view class="logobox" v-show="logoflag">
<image class="logoicon" :src="logoicon"></image>
<image class="logoicon" src="../../../static/img/logo.png"></image>
<text>正在签约中请稍等...</text>
</view>
</view>
</view>
</template>
@ -48,24 +48,28 @@
signStatus: '', //
flag: false,
text: '失败',
logoflag:true,
logoicon: 'https://www.bing.com/th/id/OGC.2a900b3c36d322151e95758438f7969c?pid=1.7&rurl=http%3a%2f%2fimg.zcool.cn%2fcommunity%2f014d8456df99c332f875520fefa07d.gif&ehk=UeVN2KesER9OKAkq%2fTigaUKsvSNK%2bndZDjePMEecfmQ%3d',
logoflag: true,
}
},
onLoad(option) {
this.id = this.$Cache.get('qyids')
this.orderNo = option.orderId
this.orderNo = this.$Cache.get('qyids')
// console.log(this.id)
// this.orderNo = option.orderId
// this.shopobj = JSON.parse(option.shopobj)
this.getnews(this.orderNo)
this.logoflag = true
this.timer = setInterval(() => {
this.getnews()
}, 1000);
},
onShow() {
this.getnews(this.orderNo)
this.logoflag = true
},
methods: {
getnews(id) {
getqianyue(id).then(res => {
getnews(orderNo) {
getqianyue(orderNo).then(res => {
console.log(res)
this.signStatus = res.data.signStatus
if (this.signStatus == 2) {
this.flag = true
@ -76,8 +80,11 @@
},
},
onReady() {
//
},
onUnload() {
//
clearInterval(this.timer);
}
}
</script>
@ -86,7 +93,7 @@
page {
position: relative;
}
.logobox {
width: 100%;
height: 100vh;
@ -97,11 +104,12 @@
opacity: 1;
padding-top: 30%;
box-sizing: border-box;
background-color:#000;
background-color: #000;
text-align: center;
z-index: 1;
}
.logobox text{
.logobox text {
display: block;
color: #fff;
font-size: 14px;
@ -111,15 +119,17 @@
left: 50%;
transform: translateX(-50%);
}
.logoicon {
width: 100%;
height: 500rpx;
width: 80rpx;
height: 140rpx;
z-index: 99;
position: absolute;
top: 25%;
top: 38%;
left: 50%;
transform: translateX(-50%);
}
.Pay_success {
width: 100%;
margin-top: 200rpx;

View File

@ -109,6 +109,7 @@
Debounce
} from '@/utils/validate.js'
import dayjs from "@/plugin/dayjs/dayjs.min.js";
import { login } from '../../../api/public';
let app = getApp();
export default {
data() {

View File

@ -42,15 +42,15 @@
</view>
<view>充值记录</view>
</navigator>
<navigator class='item' hover-class='none' url='/pages/users/user_integral/index'>
<!-- <navigator class='item' hover-class='none' url='/pages/users/user_integral/index'>
<view class='pictrue'>
<text class="iconfont icon-jifenzhongxin icon_txt"></text>
</view>
<view>积分中心</view>
</navigator>
</navigator> -->
</view>
<view class='advert acea-row row-between-wrapper'>
<navigator class='item acea-row row-between-wrapper' hover-class='none' url='/pages/users/user_sgin/index'>
<!-- <navigator class='item acea-row row-between-wrapper' hover-class='none' url='/pages/users/user_sgin/index'>
<view class='text'>
<view class='name'>签到领积分</view>
<view>赚积分抵现金</view>
@ -58,7 +58,7 @@
<view class='pictrue'>
<image src='../../../static/images/gift.png'></image>
</view>
</navigator>
</navigator> -->
<navigator class='item on acea-row row-between-wrapper' hover-class='none' url='/pages/users/user_get_coupon/index'>
<view class='text'>
<view class='name'>领取优惠券</view>

View File

@ -307,7 +307,7 @@
let configAppMessage = {
desc: '分销海报',
title: this.userInfo.nickname + '-分销海报',
link: '/pages/index/index?spread=' + this.uid,
link: '/pages/index/index?spread=' + this.uid ,
imgUrl: this.spreadList[0].pic
};
this.$wechat.wechatEvevt(["updateAppMessageShareData", "updateTimelineShareData"],

View File

@ -31,7 +31,7 @@
class='iconfont icon-weixin2'></text>一键绑定手机号</button>
<button v-if="routinePhoneVerification == 2 || routinePhoneVerification.length===3" hover-class="none"
@click="onUserPhone('isPhone')" class="btn2">手动绑定手机号</button>
</view>
</view>
<!-- #endif -->
</view>
</view>
@ -46,8 +46,8 @@
<script>
const app = getApp();
let statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
import mobileLogin from '@/components/login_mobile/index.vue'
import atModel from '@/components/accredit/index.vue'
import mobileLogin from '@/components/login_mobile/index.vue';
import atModel from '@/components/accredit/index.vue';
import {
mapGetters
} from "vuex";
@ -66,8 +66,7 @@
} from '@/config/app';
import {
getUserInfo,
spread,
channelId
spread
} from '@/api/user.js'
import Routine from '@/libs/routine';
import wechat from "@/libs/wechat";
@ -75,7 +74,7 @@
data() {
return {
isUp: false, //
phone: '',
phone: '',
statusBarHeight: statusBarHeight,
isHome: false,
isPhoneBox: false, //
@ -102,7 +101,6 @@
atModel
},
onLoad(options) {
//logo
getLogo().then(res => {
this.logoUrl = res.data.logoUrl
@ -146,9 +144,9 @@
//if(!code) location.replace(decodeURIComponent(decodeURIComponent(option.query.back_url)));
if (code && this.options.scope !== 'snsapi_base') {
let spread = app.globalData.spread ? app.globalData.spread : 0;
let channelId = app.globalData.channelId ? app.globalData.channelId : 0;
// wechatAuth(code, Cache.get("spread"), loginType)
wechat.auth(code, spread,channelId).then(res => {
wechat.auth(code, spread).then(res => {
if (res.type === 'register') {
this.authKey = res.key;
this.isUp = true
@ -253,7 +251,6 @@
let userInfo = {};
userInfo.code = code;
userInfo.spread_spid = app.globalData.spread; //广ID
userInfo.channelId = app.globalData.channelId; //ID
userInfo.avatar = '';
userInfo.nickName = '微信用户';
userInfo.type = 'routine'
@ -269,7 +266,6 @@
let userInfo = res.userInfo;
userInfo.code = code;
userInfo.spread_spid = app.globalData.spread; //广ID
userInfo.channelId = app.globalData.channelId; //ID
userInfo.avatar = userInfo.userInfo.avatarUrl;
userInfo.city = userInfo.userInfo.city;
userInfo.country = userInfo.userInfo.country;
@ -309,9 +305,6 @@
if (app.globalData.spread) {
spread(app.globalData.spread).then(res => {}) //spread
}
if (app.globalData.channelId) {
channelId(app.globalData.channelId).then(res => {}) //
}
self.$util.Tips({
title: res,
icon: 'success'
@ -464,4 +457,4 @@
height: 50rpx;
}
}
</style>
</style>

BIN
static/images/llqlogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
static/images/yilogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

29
template.html Normal file
View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-mobile-web-app-title" content="融合评价">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
<!-- Open Graph data -->
<!-- <meta property="og:title" content="Title Here" /> -->
<!-- <meta property="og:url" content="http://www.example.com/" /> -->
<!-- <meta property="og:image" content="http://example.com/image.jpg" /> -->
<!-- <meta property="og:description" content="Description Here" /> -->
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
<link rel="apple-touch-icon" href="/static/favicon.png">
</head>
<body>
<noscript>
<strong>Please enable JavaScript to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

View File

@ -612,17 +612,21 @@ export default {
let v1 = values[0].split(":");
if (v1[0] === 'pid') {
result.spread = v1[1];
} else {
result.id = v1[1];
}
let v2 = values[1].split(":");
if (v2[0] === 'pid') {
result.spread = v2[1];
} else {
result.id = v2[1];
}
} else {
result.spread = values[0].split(":")[1];
}
return result;
},