shish 1 an în urmă
părinte
comite
5a5e7ba490

+ 5 - 1
mallApp/src/pages/goods/components/sel-popup.vue

@@ -75,6 +75,10 @@ export default {
       type: Number,
       default: 0
     },
+    account:{
+      type:Number,
+      default:0
+    },
     show: {
       type: Boolean,
       default: true
@@ -113,7 +117,7 @@ export default {
         return false
       }
       uni.setStorageSync("buyGoodsDetil", this.info)
-      this.$util.pageTo({url:"/pages/order/buy?hdId="+this.hdId+'&goodsId='+this.info.id+'&goodsNum='+this.buyNum+'&selIndex='+this.selIndex,type:2})
+      this.$util.pageTo({url:"/pages/order/buy?hdId="+this.hdId+'&goodsId='+this.info.id+'&goodsNum='+this.buyNum+'&selIndex='+this.selIndex+'&account='+this.account,type:2})
     }
   }
 };

+ 4 - 2
mallApp/src/pages/goods/detail.vue

@@ -48,7 +48,7 @@
         </view>
       </view>
     </view>
-    <sel-popup :show="popupShow" :info="data" :buyNum="buyNum" :hdId="hdId" @change="changeNum" @close="hidePopup" />
+    <sel-popup :show="popupShow" :info="data" :buyNum="buyNum" :hdId="hdId" :account="account" @change="changeNum" @close="hidePopup" />
     <buy-foot @buy="showPopup" @goShop="goToShop" :stock="data.stock" />
   </view>
 </template>
@@ -83,11 +83,13 @@ export default {
       popupShow: false,
       loginShow: false,
       showShare: false,
-      hdId:0
+      hdId:0,
+      account:0
     };
   },
   onLoad(option) {
     this.hdId = this.option.hdId ? this.option.hdId : 0
+    this.account = this.option.account?this.option.account:0
   },
   mounted() {},
   computed: {