zhangdan 4 years ago
parent
commit
d956d96bbb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/pages/orderDetail/index.vue

+ 4 - 1
src/pages/orderDetail/index.vue

@@ -120,6 +120,7 @@ export default {
       formId:null,
       detailData: null,
       bundleType:'',  // 0: 套餐 1:非套餐
+	  itemBundleId:'' // 套餐id
     };
   },
   computed: {
@@ -148,9 +149,10 @@ export default {
   methods: {
     // 套餐查看详情
     toDetail(){
+      console.log(this.itemBundleId,'this.itemBundleId','----------套餐id')
       if(this.bundleType==0){
         wx.navigateTo({
-          url: `/pages/bundleDetail/main?id=${this.$mp.query.id}`
+          url: `/pages/bundleDetail/main?id=${this.itemBundleId}`
         })
       }
     },
@@ -220,6 +222,7 @@ export default {
           _this.coupon = res.data.coupon;
           _this.orderBundle = res.data.orderBundle;
           _this.bundleType=res.data.freeChoiceFlag
+		  _this.itemBundleId=res.data.bundleId
           res.data.customerBundleItemList.map(item => {
             if((item.expiryDate && (item.expiryDate.substr(0,10) != '2099-01-01')) && item.cycleFlag== 0){
               item.expiryDateStr = '过期时间:' + item.expiryDate