优化:会员卡购买绑定邀请员工和商户
This commit is contained in:
parent
b29fb8906f
commit
9d2f4cd843
|
|
@ -32,9 +32,8 @@
|
|||
|
||||
<script>
|
||||
import emptyPage from '@/components/emptyPage.vue'
|
||||
import shopList from '@/components/shopList';
|
||||
import {promoteQrCodes} from "@/api/merchant";
|
||||
import {onlinePaymentQrCodes} from "../../../api/merchant";
|
||||
import shopList from '@/components/shopList';
|
||||
import {promoteQrCodes,onlinePaymentQrCodes} from "@/api/merchant";
|
||||
|
||||
export default {
|
||||
name: 'business',
|
||||
|
|
|
|||
|
|
@ -210,6 +210,10 @@
|
|||
svipDef: {},
|
||||
isAuto: false, //没有授权的不会自动授权
|
||||
isShowAuth: false, //是否隐藏授权
|
||||
//员工邀请开通会员卡
|
||||
bind_mer_id: 0,
|
||||
bind_staff_id: 0,
|
||||
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
@ -217,6 +221,15 @@
|
|||
},
|
||||
computed: mapGetters(['isLogin','uid']),
|
||||
onLoad(options) {
|
||||
// 二维码参数接收
|
||||
if(options.scene){
|
||||
// console.log("接收参数 - 未转义",options.scene)
|
||||
var scene = this.$util.getUrlParams(decodeURIComponent(options.scene));
|
||||
// console.log("接收参数 - 转义后",scene)
|
||||
this.bind_mer_id = scene.mid || 0;
|
||||
this.bind_staff_id = scene.suid || 0;
|
||||
}
|
||||
|
||||
this.getCouponLst();
|
||||
if (this.isLogin) {
|
||||
this.getMemberCard();
|
||||
|
|
@ -347,6 +360,8 @@
|
|||
});
|
||||
let query = {
|
||||
pay_type: type,
|
||||
bind_mer_id: this.bind_mer_id,
|
||||
bind_staff_id: this.bind_staff_id,
|
||||
// #ifdef H5
|
||||
return_url: location.port ? location.protocol + '//' + location.hostname + ':' + location.port +
|
||||
'/pages/annex/vip_paid/index' : location.protocol + '//' + location.hostname +
|
||||
|
|
|
|||
Loading…
Reference in New Issue