[原下单页面去掉统一下单页面,服务券提货券商品详情页面调整]
This commit is contained in:
@@ -116,6 +116,9 @@
|
|||||||
满{{item.full}}可用
|
满{{item.full}}可用
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="coupons-left" v-if="item.type.value == '1' || item.type.value =='3'">
|
||||||
|
<image :src="item.cover" mode="aspectFill" class="coupon-left-img" />
|
||||||
|
</view>
|
||||||
<view class="coupons-left" v-else-if="item.type.value == '3'">
|
<view class="coupons-left" v-else-if="item.type.value == '3'">
|
||||||
<view class="coupons-number coupons-small">
|
<view class="coupons-number coupons-small">
|
||||||
提货券
|
提货券
|
||||||
@@ -202,12 +205,15 @@
|
|||||||
userLogin.Login()
|
userLogin.Login()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$Router.push({
|
// this.$Router.push({
|
||||||
name: 'Buy',
|
// name: 'Buy',
|
||||||
params: {
|
// params: {
|
||||||
skuId: this.goodsObj.skus[0].sku_id,
|
// skuId: this.goodsObj.skus[0].sku_id,
|
||||||
qty : this.goodsObj.skus[0].number
|
// qty : this.goodsObj.skus[0].number
|
||||||
}
|
// }
|
||||||
|
// })
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/property/coupon/confirmOrder?qty=1&type=2&goods_sku_id=' + this.goodsObj.skus[0].sku_id
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 打开微信小程序
|
// 打开微信小程序
|
||||||
@@ -637,9 +643,10 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: $margin;
|
margin-top: $margin;
|
||||||
|
// background-color: red;
|
||||||
.coupons-tips {
|
.coupons-tips {
|
||||||
// background-color: #211e17;
|
// background-color: #211e17;
|
||||||
background-image: linear-gradient(to right, #f8e5c0, #d6a46a);
|
background-image: linear-gradient(to right, #f8e5c0, #d6a46a);
|
||||||
color: #8d4928;
|
color: #8d4928;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border-radius: 0 0 20rpx 0;
|
border-radius: 0 0 20rpx 0;
|
||||||
@@ -648,6 +655,7 @@
|
|||||||
line-height: 34rpx;
|
line-height: 34rpx;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
z-index: 10;
|
||||||
.coupons-tips-text {
|
.coupons-tips-text {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
transform:scale(.85);
|
transform:scale(.85);
|
||||||
@@ -661,6 +669,11 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
padding: $padding - 10 0;
|
padding: $padding - 10 0;
|
||||||
border-right: 2rpx dashed #eccdd4;
|
border-right: 2rpx dashed #eccdd4;
|
||||||
|
.coupon-left-img{
|
||||||
|
width: 180rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
.coupons-number {
|
.coupons-number {
|
||||||
font-size: 40rpx;
|
font-size: 40rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<label>订单金额</label>
|
<label>订单金额</label>
|
||||||
<view class="price nowrap">{{amount}}</view>
|
<view class="price nowrap">{{amount}}</view>
|
||||||
</view>
|
</view>
|
||||||
<block v-if="coupons.length > 1">
|
<block v-if="coupons.length >= 1">
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<label>使用优惠券</label>
|
<label>使用优惠券</label>
|
||||||
<picker mode="selector" :range="coupons" range-key="title" :value="couponIndex" @change="couponsChange">
|
<picker mode="selector" :range="coupons" range-key="title" :value="couponIndex" @change="couponsChange">
|
||||||
@@ -134,7 +134,6 @@
|
|||||||
// 选择支付类型
|
// 选择支付类型
|
||||||
payType(e){
|
payType(e){
|
||||||
console.log(e.detail.value)
|
console.log(e.detail.value)
|
||||||
|
|
||||||
this.payValue = e.detail.value
|
this.payValue = e.detail.value
|
||||||
},
|
},
|
||||||
//数量变化
|
//数量变化
|
||||||
@@ -149,7 +148,7 @@
|
|||||||
goods_sku_id : this.$Route.query.skuId,
|
goods_sku_id : this.$Route.query.skuId,
|
||||||
qty : this.qty,
|
qty : this.qty,
|
||||||
coupon_grant_id : this.couponId,
|
coupon_grant_id : this.couponId,
|
||||||
type : 1,
|
type : this.payValue === 'wx'?2:1,
|
||||||
remark : 'app订单,易货产品',
|
remark : 'app订单,易货产品',
|
||||||
channel : 'app'
|
channel : 'app'
|
||||||
}, 'POST').then(res=>{
|
}, 'POST').then(res=>{
|
||||||
|
|||||||
@@ -148,11 +148,12 @@
|
|||||||
this.coupon_price = res.coupon_price
|
this.coupon_price = res.coupon_price
|
||||||
} else {
|
} else {
|
||||||
this.order_no = res.order_no
|
this.order_no = res.order_no
|
||||||
this.$refs.uToast.show({
|
// this.$refs.uToast.show({
|
||||||
title: '下单成功',
|
// title: '下单成功',
|
||||||
duration: 1888,
|
// duration: 1888,
|
||||||
type: 'primary',
|
// type: 'primary',
|
||||||
})
|
// })
|
||||||
|
|
||||||
this.nowPay()
|
this.nowPay()
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
@@ -190,8 +191,9 @@
|
|||||||
}
|
}
|
||||||
apiUrl(data).then(res => {
|
apiUrl(data).then(res => {
|
||||||
if (this.selectTypeId === '2') {
|
if (this.selectTypeId === '2') {
|
||||||
|
console.log(typeof res)
|
||||||
|
if (typeof res === 'string') {
|
||||||
let payInfo = JSON.parse(res)
|
let payInfo = JSON.parse(res)
|
||||||
if (payInfo.timestamp) {
|
|
||||||
|
|
||||||
|
|
||||||
// app 支付未完。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
|
// app 支付未完。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
|
||||||
|
|||||||
BIN
unpackage/dist/dev/app-plus/app-service.js
vendored
BIN
unpackage/dist/dev/app-plus/app-service.js
vendored
Binary file not shown.
2
unpackage/dist/dev/app-plus/app-view.js
vendored
2
unpackage/dist/dev/app-plus/app-view.js
vendored
@@ -22716,7 +22716,7 @@ var render = function() {
|
|||||||
),
|
),
|
||||||
attrs: { _i: "61-" + $34 }
|
attrs: { _i: "61-" + $34 }
|
||||||
},
|
},
|
||||||
[_vm._v("代金券")]
|
[_vm._v("代金券11")]
|
||||||
)
|
)
|
||||||
: _c(
|
: _c(
|
||||||
"v-uni-text",
|
"v-uni-text",
|
||||||
|
|||||||
Reference in New Issue
Block a user