|
|
@@ -71,12 +71,10 @@
|
|
|
import ModalModule from '@/components/plugin/modal'
|
|
|
import AppCouponSel from '@/components/app-coupon-sel'
|
|
|
import AlertModule from '@/components/plugin/alert'
|
|
|
- import { isLogin } from '@/utils/util'
|
|
|
import { isWxMiniapp } from '@/utils/common'
|
|
|
import { share } from '@/mixins'
|
|
|
import { fastPay } from '@/api/pay'
|
|
|
import { recharge } from '@/api/member'
|
|
|
- import { getShopUser } from '@/utils/auth'
|
|
|
import { getOrderShop } from '@/utils/config'
|
|
|
export default {
|
|
|
name: 'pay',
|
|
|
@@ -159,24 +157,20 @@
|
|
|
this.discountArr = status
|
|
|
})
|
|
|
})
|
|
|
- if (isLogin()) {
|
|
|
- getShopUser(true).then(res => {
|
|
|
- console.log('shopUser', res)
|
|
|
- // 设置分享
|
|
|
- let shareParams = {
|
|
|
- title: `点我付款`, // 分享标题
|
|
|
- desc: '享随机优惠,最高20元', // 分享内容
|
|
|
- imgUrl: `${this.$constant.imgUrl}/retail/pay.jpg`,
|
|
|
- // #ifdef H5
|
|
|
- pagePath: `${this.$constant.formal}/#/pages/pay/index?account=${res.merchantId}&store=0&sourceType=3`,
|
|
|
- // #endif
|
|
|
- // #ifndef H5
|
|
|
- pagePath: `/pages/pay/index?account=${res.merchantId}&store=0&sourceType=3`
|
|
|
- // #endif
|
|
|
- }
|
|
|
- this.jweixinFn(shareParams)
|
|
|
- })
|
|
|
+
|
|
|
+ // 设置分享
|
|
|
+ let shareParams = {
|
|
|
+ title: `点我付款`, // 分享标题
|
|
|
+ desc: '享随机优惠,最高20元', // 分享内容
|
|
|
+ imgUrl: `${this.$constant.imgUrl}/retail/pay.jpg`,
|
|
|
+ // #ifdef H5
|
|
|
+ pagePath: `${this.$constant.formal}/#/pages/pay/index?account=${res.merchantId}&store=0&sourceType=3`,
|
|
|
+ // #endif
|
|
|
+ // #ifndef H5
|
|
|
+ pagePath: `/pages/pay/index?account=${res.merchantId}&store=0&sourceType=3`
|
|
|
+ // #endif
|
|
|
}
|
|
|
+ this.jweixinFn(shareParams)
|
|
|
},
|
|
|
_pay() {
|
|
|
if (!this.amount) {
|