DaMowang %!s(int64=3) %!d(string=hai) anos
pai
achega
01899cbf22
Modificáronse 1 ficheiros con 7 adicións e 13 borrados
  1. 7 13
      src/pages/product/p_details.vue

+ 7 - 13
src/pages/product/p_details.vue

@@ -255,24 +255,18 @@ export default {
         appEv.errTips("请阅读并同意购买协议");
         return;
       }
-      this.toPayOrder();
-      //   if (this.btnIndex == 0) {
-      //     // if(this.type != 1){
-      //     this.toPayOrder();
-      //     // }else{
-      //     // 	this.SetCartGoodsList()
-      //     // }
-      //   } else {
-      //     this.toPayOrder();
-      //   }
+      if (this.btnIndex == 0) {
+        this.toPayOrder();
+      }
     },
     // 创建购买订单
     toPayOrder: function () {
-      this.goto("/pages/to-pay-list/index", {
+      let da = {
         ...this.goodsDa,
-        is_sell: this.pfway,
         num: this.buyNum,
-      });
+      }
+      if(this.type == 2) da.is_sell = this.pfway
+      this.goto("/pages/to-pay-list/index", da);
     },
     // 添加到购物车
     SetCartGoodsList: function () {