mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 05:50:50 +00:00
init: 代码整理
This commit is contained in:
parent
0621f097ea
commit
872ecd06e8
@ -81,7 +81,6 @@
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
console.log(this.globalData.cccc)
|
||||
const queryData = uni.getEnterOptionsSync() // uni-app版本 3.5.1+ 支持
|
||||
if (queryData.query.spread) {
|
||||
this.$Cache.set('spread', queryData.query.spread);
|
||||
@ -98,8 +97,6 @@
|
||||
// #ifdef MP
|
||||
if (queryData.query.scene) {
|
||||
let param = this.$util.getUrlParams(decodeURIComponent(queryData.query.scene))
|
||||
console.log(queryData.query.scene)
|
||||
console.log(param)
|
||||
if (param.pid) {
|
||||
this.$Cache.set('spread', param.pid);
|
||||
this.globalData.spid = param.pid;
|
||||
|
||||
@ -75,17 +75,12 @@
|
||||
this.$nextTick(this.onScroll)
|
||||
},
|
||||
handleImgLoad(e) {
|
||||
// console.log('success');
|
||||
this.showImg = true;
|
||||
// this.$nextTick(function(){
|
||||
// this.showTransition = true
|
||||
// })
|
||||
setTimeout(() => {
|
||||
this.showTransition = true
|
||||
}, 50)
|
||||
},
|
||||
handleImgError(e) {
|
||||
// console.log('fail');
|
||||
this.isLoadError = true;
|
||||
},
|
||||
onScroll() {
|
||||
|
||||
@ -119,7 +119,6 @@
|
||||
});
|
||||
},
|
||||
goPay: function(number, paytype) {
|
||||
console.log(paytype)
|
||||
if (this.isCall) {
|
||||
return this.$emit('onChangeFun', {
|
||||
action: 'payCheck',
|
||||
@ -145,7 +144,6 @@
|
||||
complete: () => {}
|
||||
});
|
||||
}
|
||||
console.log('11111')
|
||||
orderPay({
|
||||
uni: that.order_id,
|
||||
paytype: paytype,
|
||||
@ -168,7 +166,6 @@
|
||||
// #endif
|
||||
}).then(res => {
|
||||
let jsConfig = res.data.result.jsConfig;
|
||||
console.log(paytype)
|
||||
if (res.data.status == 'ALLINPAY_PAY') {
|
||||
uni.hideLoading();
|
||||
// #ifdef MP
|
||||
|
||||
@ -75,13 +75,6 @@ function _toLogin(push, pathLogin) {
|
||||
} else {
|
||||
urlData += '?go_longin=1';
|
||||
}
|
||||
// if (!Cache.has('snsapiKey')) {
|
||||
// auth.oAuth('snsapi_base', urlData);
|
||||
// } else {
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/users/wechat_login/index',
|
||||
// });
|
||||
// }
|
||||
uni.navigateTo({
|
||||
url: '/pages/users/wechat_login/index',
|
||||
});
|
||||
@ -97,16 +90,6 @@ function _toLogin(push, pathLogin) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/users/wechat_login/index'
|
||||
})
|
||||
// Routine.getCode()
|
||||
// .then(code => {
|
||||
// console.log(code)
|
||||
// Routine.silenceAuth(code).then(res => {
|
||||
// console.log(res)
|
||||
// })
|
||||
// })
|
||||
// .catch(err => {
|
||||
// uni.hideLoading();
|
||||
// });
|
||||
// #endif
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
|
||||
@ -189,8 +189,7 @@ export const sharePoster = {
|
||||
});
|
||||
// #endif
|
||||
// #ifdef H5 || APP-PLUS
|
||||
arr2 = [that.posterbackgd, that.storeImageBase64, that.PromotionCode];
|
||||
console.log(arr2)
|
||||
arr2 = [that.posterbackgd, that.storeImageBase64, that.PromotionCode];
|
||||
if (!that.storeImageBase64)
|
||||
return that.$util.Tips({
|
||||
title: i18n.t(`正在下载海报,请稍后再试`),
|
||||
|
||||
@ -671,7 +671,6 @@
|
||||
}, 500);
|
||||
|
||||
}).catch(function(err) {
|
||||
console.log(err)
|
||||
that.$util.Tips({
|
||||
title: err
|
||||
}, {
|
||||
|
||||
@ -188,7 +188,6 @@
|
||||
if (that.pageloading) return;
|
||||
this.pageloading = true
|
||||
getPresellList(data).then(res => {
|
||||
console.log(res);
|
||||
var presellList = res.data.list;
|
||||
var loadend = presellList.length < that.limit;
|
||||
that.page++;
|
||||
|
||||
@ -706,7 +706,6 @@
|
||||
let obj = res.data.productValue[key];
|
||||
that.skuArr.push(obj);
|
||||
}
|
||||
console.log(that.skuArr)
|
||||
that.$set(that, "selectSku", that.skuArr[0]);
|
||||
var navList = [that.$t(`商品`), that.$t(`评价`), that.$t(`详情`)];
|
||||
if (goodArray.length) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -22,8 +22,6 @@
|
||||
},
|
||||
methods: {
|
||||
change(e) {
|
||||
console.log(e)
|
||||
|
||||
const {
|
||||
before,
|
||||
after
|
||||
|
||||
@ -184,7 +184,6 @@
|
||||
},
|
||||
onLoad: function(options) {
|
||||
this.type = options.type;
|
||||
console.log(options)
|
||||
if (options.before) {
|
||||
this.before = options.before;
|
||||
}
|
||||
|
||||
@ -236,7 +236,6 @@
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.defaultImg)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -177,7 +177,6 @@ export default {
|
||||
this.$el.onselectstart = function() {
|
||||
return false;
|
||||
};
|
||||
console.log(this.defaultImg);
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
@ -226,7 +225,6 @@ export default {
|
||||
|
||||
// 鼠标按下
|
||||
start: function(e) {
|
||||
console.log(e)
|
||||
e.preventDefault();
|
||||
e = e || window.event;
|
||||
if (!e.touches.length) {
|
||||
|
||||
@ -17,7 +17,6 @@
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
console.log(option)
|
||||
this.url = option.url;
|
||||
try {
|
||||
const res = uni.getSystemInfoSync();
|
||||
|
||||
@ -86,7 +86,6 @@
|
||||
},
|
||||
filters: {
|
||||
typeName(type) {
|
||||
console.log(type)
|
||||
if (type == 2) {
|
||||
return '积分'
|
||||
} else if (type == 3) {
|
||||
|
||||
@ -605,7 +605,6 @@
|
||||
this.getUserInfo();
|
||||
this.getCustomerType();
|
||||
let opt = wx.getEnterOptionsSync();
|
||||
console.log(opt)
|
||||
if (opt.scene == '1038' && opt.referrerInfo.appId == 'wxef277996acc166c3') {
|
||||
// 代表从收银台小程序返回
|
||||
let extraData = opt.referrerInfo.extraData;
|
||||
@ -702,7 +701,6 @@
|
||||
},
|
||||
openSubcribe(e) {
|
||||
let page = e;
|
||||
console.log(page)
|
||||
// #ifndef MP
|
||||
uni.navigateTo({
|
||||
url: page,
|
||||
|
||||
@ -473,7 +473,6 @@
|
||||
let list = this.cartData.cartList;
|
||||
let num = list[index];
|
||||
let stock = list[index].trueStock;
|
||||
console.log(num, list[index].productInfo.limit_num)
|
||||
if (changeValue && list[index].productInfo.limit_type == 1 && num.cart_num >= list[index].productInfo
|
||||
.limit_num) {
|
||||
this.$set(num, 'cart_num', list[index].productInfo.limit_num)
|
||||
@ -604,7 +603,6 @@
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(that.attr)
|
||||
that.attr.productSelect.cart_num = that.attr.productSelect.limit_num
|
||||
return that.$util.Tips({
|
||||
title: err
|
||||
|
||||
@ -955,7 +955,6 @@
|
||||
*/
|
||||
ChangeAttr: function(res) {
|
||||
let productSelect = this.productValue[res];
|
||||
// console.log(productSelect)
|
||||
if (!productSelect) {
|
||||
this.$util.Tips({
|
||||
title: this.$t(`重新选择`),
|
||||
@ -1479,7 +1478,6 @@
|
||||
that.attr.productSelect.unique : "",
|
||||
virtual_type: that.storeInfo.virtual_type,
|
||||
};
|
||||
// console.log(q)
|
||||
postCartAdd(q)
|
||||
.then(function(res) {
|
||||
that.isOpen = false;
|
||||
@ -1557,6 +1555,7 @@
|
||||
*/
|
||||
listenerActionSheet() {
|
||||
this.currentPage = false
|
||||
this.downloadFilePromotionCode();
|
||||
if (this.isLogin === false) {
|
||||
toLogin();
|
||||
} else {
|
||||
@ -1569,7 +1568,6 @@
|
||||
// this.ShareInfo()
|
||||
this.weixinStatus = true;
|
||||
}
|
||||
this.downloadFilePromotionCode();
|
||||
// #endif
|
||||
// #ifdef MP
|
||||
// this.downloadFilePromotionCode();
|
||||
|
||||
@ -41,7 +41,6 @@
|
||||
getVersion(name) {
|
||||
uni.$emit('uploadFooter')
|
||||
getVersion(name).then(res => {
|
||||
console.log(res, '11')
|
||||
this.version = res.data.version
|
||||
this.isDiy = res.data.is_diy
|
||||
this.loading = true
|
||||
|
||||
@ -502,7 +502,6 @@
|
||||
diyData() {
|
||||
let that = this;
|
||||
getDiy().then((res) => {
|
||||
console.log('222', res)
|
||||
let data = res.data;
|
||||
that.headerSerch = data.headerSerch;
|
||||
that.swiperBg = data.swiperBg;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -236,7 +236,6 @@
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.defaultImg)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -386,12 +386,10 @@
|
||||
switch (that.from) {
|
||||
case 'order_confirm':
|
||||
if (that.id) {
|
||||
console.log(that.from, that.id, that.urlQuery, formData.type);
|
||||
uni.navigateTo({
|
||||
url: `/pages/goods/order_confirm/index${that.urlQuery}&invoice_id=${that.id}&invoice_type=${formData.type}`
|
||||
})
|
||||
} else {
|
||||
console.log(that.from, that.id, '2');
|
||||
uni.navigateTo({
|
||||
url: `/pages/goods/order_confirm/index${that.urlQuery}&invoice_id=${res.data.id}&invoice_type=${formData.type}`
|
||||
})
|
||||
|
||||
@ -1011,9 +1011,7 @@ export default {
|
||||
success: res => {
|
||||
console.log("打开成功", res);
|
||||
},
|
||||
fail: err => {
|
||||
console.log('sgdhgf', err);
|
||||
}
|
||||
fail: err => {}
|
||||
})
|
||||
//#endif
|
||||
//#ifndef MP
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user