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