虚拟商品下单
This commit is contained in:
		
							parent
							
								
									73246e1dc6
								
							
						
					
					
						commit
						b3863568d6
					
				@ -123,7 +123,7 @@
 | 
				
			|||||||
            <Button type="error" :loading="loading" :disabled="skuDetail.quantity === 0" @click="pointPay">积分购买</Button>
 | 
					            <Button type="error" :loading="loading" :disabled="skuDetail.quantity === 0" @click="pointPay">积分购买</Button>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
          <div class="add-buy-car" v-if="$route.query.way !== 'POINT' && skuDetail.isAuth === 'PASS'">
 | 
					          <div class="add-buy-car" v-if="$route.query.way !== 'POINT' && skuDetail.isAuth === 'PASS'">
 | 
				
			||||||
            <Button type="error" :loading="loading" :disabled="skuDetail.quantity === 0" @click="addShoppingCartBtn">加入购物车</Button>
 | 
					            <Button type="error" v-if="skuDetail.goodsType !== 'VIRTUAL_GOODS'" :loading="loading" :disabled="skuDetail.quantity === 0" @click="addShoppingCartBtn">加入购物车</Button>
 | 
				
			||||||
            <Button type="warning" :loading="loading1" :disabled="skuDetail.quantity === 0" @click="buyNow">立即购买</Button>
 | 
					            <Button type="warning" :loading="loading1" :disabled="skuDetail.quantity === 0" @click="buyNow">立即购买</Button>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -199,7 +199,6 @@ export default {
 | 
				
			|||||||
        skuId: this.skuDetail.id
 | 
					        skuId: this.skuDetail.id
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
      this.loading = true;
 | 
					      this.loading = true;
 | 
				
			||||||
      console.log(11111111);
 | 
					 | 
				
			||||||
      addCartGoods(params).then(res => {
 | 
					      addCartGoods(params).then(res => {
 | 
				
			||||||
        debugger;
 | 
					        debugger;
 | 
				
			||||||
        this.loading = false;
 | 
					        this.loading = false;
 | 
				
			||||||
@ -219,11 +218,15 @@ export default {
 | 
				
			|||||||
        skuId: this.skuDetail.id,
 | 
					        skuId: this.skuDetail.id,
 | 
				
			||||||
        cartType: 'BUY_NOW'
 | 
					        cartType: 'BUY_NOW'
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					      // 虚拟商品购买
 | 
				
			||||||
 | 
					      if (this.skuDetail.goodsType === 'VIRTUAL_GOODS') {
 | 
				
			||||||
 | 
					        params.cartType = 'VIRTUAL'
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
      this.loading1 = true;
 | 
					      this.loading1 = true;
 | 
				
			||||||
      addCartGoods(params).then(res => {
 | 
					      addCartGoods(params).then(res => {
 | 
				
			||||||
        this.loading1 = false;
 | 
					        this.loading1 = false;
 | 
				
			||||||
        if (res.success) {
 | 
					        if (res.success) {
 | 
				
			||||||
          this.$router.push({path: '/pay', query: {way: 'BUY_NOW'}});
 | 
					          this.$router.push({path: '/pay', query: {way: params.cartType}});
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          this.$Message.warning(res.message);
 | 
					          this.$Message.warning(res.message);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
@ -2,8 +2,7 @@
 | 
				
			|||||||
  <div class="order-detail" v-if="order.order">
 | 
					  <div class="order-detail" v-if="order.order">
 | 
				
			||||||
    <card _Title="订单详情" :_Size="16"></card>
 | 
					    <card _Title="订单详情" :_Size="16"></card>
 | 
				
			||||||
    <div class="order-card">
 | 
					    <div class="order-card">
 | 
				
			||||||
      <p class="global_color fontsize_18">{{ order.orderStatusValue }}</p>
 | 
					      <p class="global_color fontsize_18">{{ order.orderStatusValue }} <span class="verificationCode" v-if="order.order.verificationCode">核验码:{{order.order.verificationCode}}</span></p>
 | 
				
			||||||
      <p class="global_color fontsize_16" v-if="order.orderStatusValue === '待核验'">核验码:{{order.orderCode || 'AHDN4123'}}</p>
 | 
					 | 
				
			||||||
      <p class="global_color">订单号:{{ order.order.sn }}</p>
 | 
					      <p class="global_color">订单号:{{ order.order.sn }}</p>
 | 
				
			||||||
      <div style="color:#999;" class="operation-time">操作时间:{{order.order.updateTime}}</div>
 | 
					      <div style="color:#999;" class="operation-time">操作时间:{{order.order.updateTime}}</div>
 | 
				
			||||||
      <Steps class="progress" :current="progressList.length" direction="vertical">
 | 
					      <Steps class="progress" :current="progressList.length" direction="vertical">
 | 
				
			||||||
@ -235,7 +234,12 @@ table {
 | 
				
			|||||||
    font-size: 20px;
 | 
					    font-size: 20px;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					.verificationCode {
 | 
				
			||||||
 | 
					  font-size: 16px;
 | 
				
			||||||
 | 
					  margin-left: 240px;
 | 
				
			||||||
 | 
					  color: rgb(65, 63, 63);
 | 
				
			||||||
 | 
					  font-weight: bold;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
/** 订单进度条 */
 | 
					/** 订单进度条 */
 | 
				
			||||||
.progress {
 | 
					.progress {
 | 
				
			||||||
  margin: 15px 0;
 | 
					  margin: 15px 0;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user