|
|
@@ -188,6 +188,7 @@ export default {
|
|
|
subOrderNo:'',
|
|
|
id:'',
|
|
|
storeId:'',
|
|
|
+ techNo:'',
|
|
|
activity:{},
|
|
|
requestStatus:false,
|
|
|
isActivityCheck:true, //是否参与过该活动
|
|
|
@@ -203,8 +204,14 @@ export default {
|
|
|
console.log('上一个页面传递过来的活动ID===>',this.id)
|
|
|
}
|
|
|
|
|
|
+ // 扫技师端携带的参数,已存在缓存中
|
|
|
+ let promotionParam = uni.getStorageSync('promotionParam')
|
|
|
+ if (promotionParam){
|
|
|
+ this.storeId = promotionParam.storeId
|
|
|
+ this.techNo = promotionParam.techNo
|
|
|
+ }
|
|
|
if (e.q) {
|
|
|
- //用户扫技师端或者拓客端二维码传递过来的参数
|
|
|
+ //扫店长端二维码进来的活动参数
|
|
|
const q = decodeURIComponent(e.q)
|
|
|
let a = q.split('?')
|
|
|
let b = a[1].split('&')
|
|
|
@@ -214,6 +221,7 @@ export default {
|
|
|
}
|
|
|
this.id= param.activityId
|
|
|
this.storeId= param.storeId
|
|
|
+ this.techNo= ''
|
|
|
console.log("扫店长端二维码进来的活动参数===》",param)
|
|
|
}
|
|
|
|
|
|
@@ -298,6 +306,7 @@ export default {
|
|
|
serviceObjectId:this.serviceObjectId,
|
|
|
activityId: this.activity.id,
|
|
|
storeId:this.storeId,
|
|
|
+ techNo:this.techNo
|
|
|
}).then(res => {
|
|
|
console.log('++++++++++++++++++订单提交+++++++++++', res)
|
|
|
uni.hideLoading();
|