|
|
|
@ -8,7 +8,7 @@ |
|
|
|
<view class="flex justify-between align-start padding-top-sm padding-lr"> |
|
|
|
<image :src="orderDetails.goods.cover" mode="aspectFill" style="width: 240rpx; height: 240rpx;border-radius: 10rpx;"></image> |
|
|
|
<view class="flex-sub padding-left-sm"> |
|
|
|
<view class="bref-box margin-top-xs lf-font-32 lf-font-bold" style="height: 88rpx;line-height: 44rpx;color: #222;"> |
|
|
|
<view class="bref-box lf-font-32 lf-font-bold" style="height: 88rpx;line-height: 44rpx;color: #222;"> |
|
|
|
{{orderDetails.goods.name}} |
|
|
|
</view> |
|
|
|
<view class="flex justify-between align-center text-center"> |
|
|
|
@ -66,7 +66,8 @@ |
|
|
|
{{ total(num, orderDetails.goods.specs[0].selling_price) }} |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
<button class="cu-btn block bg-orange round shadow" @tap="submit"> |
|
|
|
|
|
|
|
<button class="btn" @tap="submit"> |
|
|
|
<text class="lf-font-32 text-white" v-if="type == 1">立即付款</text> |
|
|
|
<text class="lf-font-32 text-white" v-else>下单付款</text> |
|
|
|
</button> |
|
|
|
@ -132,7 +133,7 @@ |
|
|
|
methods: { |
|
|
|
changeNum(num) { |
|
|
|
if(num > this.limit) { |
|
|
|
this.$msg('该商品限购数量'+this.limit) |
|
|
|
this.$msg('该商品限购'+this.limit+'件') |
|
|
|
this.num = this.limit |
|
|
|
return |
|
|
|
}else if(num < 1) { |
|
|
|
@ -155,7 +156,7 @@ |
|
|
|
if(this.num < this.limit) { |
|
|
|
this.num++ |
|
|
|
}else { |
|
|
|
this.$msg('该商品限购数量'+this.limit) |
|
|
|
this.$msg('该商品限购'+this.limit+'件') |
|
|
|
this.num = this.limit |
|
|
|
return |
|
|
|
} |
|
|
|
@ -229,7 +230,6 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
pay(){ |
|
|
|
console.log("this.order_id", this.order_id) |
|
|
|
this.$http(this.API.API_PAYMENT_DIRECT, {order_id: this.order_id}).then(res => { |
|
|
|
this.order_id = res.data.order_id |
|
|
|
uni.requestPayment({ |
|
|
|
@ -267,6 +267,17 @@ |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.btn{ |
|
|
|
margin: 0; |
|
|
|
padding: 0; |
|
|
|
width: 208rpx; |
|
|
|
height: 80rpx; |
|
|
|
background-color: #FE9903; |
|
|
|
color: #FFFFFF; |
|
|
|
line-height: 80rpx; |
|
|
|
font-size: 32rpx; |
|
|
|
border-radius: 42rpx; |
|
|
|
} |
|
|
|
.bref-box { |
|
|
|
text-overflow: -o-ellipsis-lastline; |
|
|
|
overflow: hidden; |
|
|
|
|