|
|
@@ -141,14 +141,6 @@
|
|
|
this.specialInit();
|
|
|
},
|
|
|
specialInit() {
|
|
|
- // #ifdef H5
|
|
|
- // 微信二次分享
|
|
|
- let href = window.location.href
|
|
|
- if (href.indexOf('from=singlemessage') > 0) {
|
|
|
- location.href = `${this.$constant.formal}/#/pages/pay/index${this.$util.parse(this.option)}`
|
|
|
- return false
|
|
|
- }
|
|
|
- // #endif
|
|
|
if (this.option.pageType) {
|
|
|
this.tabIndex = parseInt(this.option.pageType)
|
|
|
}
|
|
|
@@ -157,21 +149,20 @@
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: `向【${res.shop.showName}】付款`
|
|
|
})
|
|
|
-
|
|
|
this.$refs.couponSel._getUserDiscount().then(status => {
|
|
|
this.discountArr = status
|
|
|
})
|
|
|
-
|
|
|
// 设置分享
|
|
|
let shareParams = {
|
|
|
title: `点我付款`, // 分享标题
|
|
|
desc: '享随机优惠,最高20元', // 分享内容
|
|
|
imgUrl: '',
|
|
|
- pagePath: `/pages/pay/index?account=${res.shop.id}&store=0&sourceType=3`
|
|
|
+ pagePath: `/pages/pay/index?account=${res.shop.id}&store=0&fromType=3`
|
|
|
}
|
|
|
// #ifdef MP-WEIXIN
|
|
|
this.jweixinFn(shareParams)
|
|
|
// #endif
|
|
|
+ console.log(`/pages/pay/index?account=${res.shop.id}&store=0&fromType=3`)
|
|
|
})
|
|
|
},
|
|
|
_pay() {
|
|
|
@@ -205,9 +196,7 @@
|
|
|
if (this.option.store) {
|
|
|
params.store = this.option.store
|
|
|
}
|
|
|
- if (this.option.sourceType) {
|
|
|
- params.sourceType = this.option.sourceType
|
|
|
- }
|
|
|
+ params.fromType = this.option.fromType || 1
|
|
|
if (!this.$util.isEmpty(this.discountArr)) {
|
|
|
params.couponId = this.$refs.couponSel.couponId
|
|
|
}
|