浏览代码

feat:参加活动传技师门店和技师编号

zhanghui 1 年之前
父节点
当前提交
bf53c72664
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      orderPages/activityDetail/activityDetail.vue

+ 10 - 1
orderPages/activityDetail/activityDetail.vue

@@ -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();