diff --git a/components/detail-list-item/detail-list-item.vue b/components/detail-list-item/detail-list-item.vue
index 451a775..258c14f 100644
--- a/components/detail-list-item/detail-list-item.vue
+++ b/components/detail-list-item/detail-list-item.vue
@@ -220,7 +220,7 @@ export default {
.baoxiang-tag {
position: absolute;
- left: 15rpx;
+ right: 15rpx;
top: 15rpx;
z-index: 5;
font-weight: 400;
diff --git a/components/detail-preview-popup/detail-preview-popup.vue b/components/detail-preview-popup/detail-preview-popup.vue
index e62562d..4427e8e 100644
--- a/components/detail-preview-popup/detail-preview-popup.vue
+++ b/components/detail-preview-popup/detail-preview-popup.vue
@@ -11,6 +11,7 @@
{{ innerTipTitle }}
+
@@ -422,6 +423,24 @@ export default {
box-sizing: border-box;
border-radius: 25rpx;
}
+ .baoxiang-tag {
+ height: 64rpx;
+ width: 136rpx;
+ position: absolute;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ top: 12rpx;
+ right: 24rpx;
+ font-weight: 400;
+ line-height: 40rpx;
+ font-size: 20rpx;
+ color: #FFFFFF;
+ background-image: url($iconurl + "baoxiang.png");
+ background-size: 100% 100%;
+ box-sizing: border-box;
+ border-radius: 25rpx;
+ }
}
// 商品标题
diff --git a/components/order-confirm-popup/order-confirm-popup.vue b/components/order-confirm-popup/order-confirm-popup.vue
index f6cfe4a..0464754 100644
--- a/components/order-confirm-popup/order-confirm-popup.vue
+++ b/components/order-confirm-popup/order-confirm-popup.vue
@@ -51,7 +51,7 @@
¥
{{ orderData.goods.price }}
- {{currencyName2}}
+ {{ currencyName2 }}
×{{ orderData.goods.prize_num }}
@@ -60,8 +60,9 @@
-
-
+
+
+
优惠券
@@ -72,13 +73,9 @@
-
-
-
-
- 使用{{ balanceName }}{{deduction_name}}¥{{ orderData.use_money }}
+ 使用{{ balanceName }}{{ deduction_name }}¥{{ orderData.use_money }}
(剩余:{{ orderData.money }})
@@ -91,9 +88,9 @@
- 使用{{ currencyName }}{{deduction_name}}¥{{ orderData.use_integral_money }}
- (剩余:{{ orderData.integral }})
+ 使用{{ currencyName }}{{ deduction_name }}¥{{ orderData.use_integral_money }}
+ (剩余:{{ orderData.integral
+ }})
@@ -102,11 +99,12 @@
-
+
- 使用{{ currencyName2 }}{{deduction_name}}¥{{ (orderData.use_score/100).toFixed(2) }}
+ 使用{{ currencyName2 }}{{ deduction_name }}¥{{ (orderData.use_score / 100).toFixed(2) }}
(剩余:{{ orderData.score }})
@@ -144,7 +142,7 @@
确认支付
{{
- pageData.goods.type == 5 ? ` ${(orderData.use_score/100).toFixed(2)}积分` : ` ¥${orderData.price}`
+ pageData.goods.type == 5 ? ` ${(orderData.use_score / 100).toFixed(2)}积分` : ` ¥${orderData.price}`
}}
@@ -205,7 +203,7 @@ export default {
//pageData.goods.type
return {
currencyName: '',
- currencyName2:'',
+ currencyName2: '',
balanceName: '',
pay_balance: 1,
pay_coupon: 1,
@@ -213,40 +211,50 @@ export default {
pay_currency2: 1,
pay_wechat: 1,
is_deduction: 1,
- deduction_name:''
+ deduction_name: ''
}
},
created() {
+ console.log('创建了');
+
// 获取货币名称和余额名称
this.currencyName = this.$config.getAppSetting('currency1_name') || 'UU币';
this.currencyName2 = this.$config.getAppSetting('currency2_name') || '达达卷';
this.balanceName = this.$config.getAppSetting('balance_name') || '余额';
let goodType = this.$config.getGoodTypeFind(this.pageData.goods.type);
- //是否显示余额支付
- this.pay_balance = goodType.pay_balance;
- //是否显示优惠卷
- this.pay_coupon = goodType.pay_coupon;
- //是否显示货币支付
- this.pay_currency = goodType.pay_currency;
- //是否显示货币2支付
- this.pay_currency2 = goodType.pay_currency2;
- //是否显示微信支付
- this.pay_wechat = goodType.pay_wechat;
- //抵扣还是支付
- this.is_deduction=goodType.is_deduction;
- if(this.is_deduction==1){
- this.deduction_name='抵扣';
- }else{
- this.deduction_name='支付';
- }
-
+ this.setPayType(goodType);
+
},
methods: {
+ setPayType(good_extend) {
+ if (good_extend != null) {
+ //是否显示余额支付
+ this.pay_balance = good_extend.pay_balance;
+ //是否显示优惠卷
+ this.pay_coupon = good_extend.pay_coupon;
+ //是否显示货币支付
+ this.pay_currency = good_extend.pay_currency;
+ //是否显示货币2支付
+ this.pay_currency2 = good_extend.pay_currency2;
+ //是否显示微信支付
+ this.pay_wechat = good_extend.pay_wechat;
+ //抵扣还是支付
+ this.is_deduction = good_extend.is_deduction;
+ if (this.is_deduction == 1) {
+ this.deduction_name = '抵扣';
+ } else {
+ this.deduction_name = '支付';
+ }
+ }
+ },
/**
* 打开弹窗
*/
open() {
+ if (this.orderData != null && this.orderData.goods_extend != null) {
+ this.setPayType(this.orderData.goods_extend);
+ }
this.$refs.popup.open();
},
@@ -262,15 +270,15 @@ export default {
* @param {String} method 支付方式
*/
changePayMethod(method) {
- if(this.is_deduction==0){
+ if (this.is_deduction == 0) {
// 如果是支付模式,检查可用的支付方式数量
let availablePayMethods = 0;
- if(this.pay_balance) availablePayMethods++;
- if(this.pay_currency) availablePayMethods++;
- if(this.pay_currency2) availablePayMethods++;
-
+ if (this.pay_balance) availablePayMethods++;
+ if (this.pay_currency) availablePayMethods++;
+ if (this.pay_currency2) availablePayMethods++;
+ if (this.pay_wechat) availablePayMethods++;
// 如果只有一种支付方式可用,则不允许切换
- if(availablePayMethods <= 1) {
+ if (availablePayMethods <= 1) {
return;
}
}
diff --git a/pages/shouye/detail.vue b/pages/shouye/detail.vue
index 5f2e8af..b8c6f1d 100644
--- a/pages/shouye/detail.vue
+++ b/pages/shouye/detail.vue
@@ -133,7 +133,7 @@
-
-
+