优化:会员卡购买绑定邀请员工和商户

This commit is contained in:
wuhui_zzw 2024-01-26 20:14:29 +08:00
parent b29fb8906f
commit 9d2f4cd843
2 changed files with 17 additions and 3 deletions

View File

@ -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',

View File

@ -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 +