修改问题

This commit is contained in:
zpc 2025-04-10 03:53:24 +08:00
parent 4f79f70a8f
commit 0ca099af4a
5 changed files with 70 additions and 43 deletions

View File

@ -220,7 +220,7 @@ export default {
.baoxiang-tag {
position: absolute;
left: 15rpx;
right: 15rpx;
top: 15rpx;
z-index: 5;
font-weight: 400;

View File

@ -11,6 +11,7 @@
<view class="type-tag justify-center"
:style="{ backgroundColor: dataItem.shang_info ? dataItem.shang_info.color : '#000000' }"
v-if="innerTipTitle">{{ innerTipTitle }}</view>
<view class="baoxiang-tag justify-center" v-if="isTips"></view>
</view>
</view>
@ -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;
}
}
//

View File

@ -51,7 +51,7 @@
<view class="price">
<template v-if="pageData.goods.type != 5">¥</template>
<text>{{ orderData.goods.price }}</text>
<template v-if="pageData.goods.type == 5">{{currencyName2}}</template>
<template v-if="pageData.goods.type == 5">{{ currencyName2 }}</template>
</view>
<view class="num">×{{ orderData.goods.prize_num }}</view>
@ -60,8 +60,9 @@
</view>
</view>
<template v-if="pageData.goods.type != 5">
<view class="card-row" @click="$emit('to-coupon')">
<template>
<view v-if="pay_coupon" class="card-row" @click="$emit('to-coupon')">
<view class="title">优惠券</view>
<view class="row-r">
@ -72,13 +73,9 @@
</view>
</view>
</view>
</template>
<view v-if="pageData.goods.type == 6 && !getBtnXianShi()"> </view>
<template v-else>
<view class="pay-type" v-if="pay_balance" @click="changePayMethod('useMoney')">
<view class="title flex align-center">
使用{{ balanceName }}{{deduction_name}}¥{{ orderData.use_money }}
使用{{ balanceName }}{{ deduction_name }}¥{{ orderData.use_money }}
<text style="color: #676767; font-size: 16rpx; margin-left: 10rpx;">
(剩余:{{ orderData.money }})</text>
</view>
@ -91,9 +88,9 @@
<view class="pay-type" v-if="pay_currency" @click="changePayMethod('useIntegral')">
<view class="title flex align-center">
使用{{ currencyName }}{{deduction_name}}¥{{ orderData.use_integral_money }}
<text
style="color: #676767; font-size: 16rpx; margin-left: 10rpx;">(剩余:{{ orderData.integral }})</text>
使用{{ currencyName }}{{ deduction_name }}¥{{ orderData.use_integral_money }}
<text style="color: #676767; font-size: 16rpx; margin-left: 10rpx;">(剩余:{{ orderData.integral
}})</text>
</view>
<view class="icon">
@ -102,11 +99,12 @@
</view>
</view>
<view class="pay-type" v-if="pay_currency2" @click="changePayMethod('useMoney2')">
<view class="title flex align-center">
使用{{ currencyName2 }}{{deduction_name}}¥{{ (orderData.use_score/100).toFixed(2) }} <text style="color: #676767; font-size: 16rpx; margin-left: 10rpx;">
使用{{ currencyName2 }}{{ deduction_name }}¥{{ (orderData.use_score / 100).toFixed(2) }} <text
style="color: #676767; font-size: 16rpx; margin-left: 10rpx;">
(剩余:{{ orderData.score }})</text>
</view>
<view class="icon">
@ -144,7 +142,7 @@
<view class="pay-btn" @click="$emit('confirm')">
<text>确认支付</text>
<text>{{
pageData.goods.type == 5 ? ` ${(orderData.use_score/100).toFixed(2)}积分` : ` ¥${orderData.price}`
pageData.goods.type == 5 ? ` ${(orderData.use_score / 100).toFixed(2)}积分` : ` ¥${orderData.price}`
}}</text>
</view>
</view>
@ -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;
}
}

View File

@ -133,7 +133,7 @@
</view>
<!-- 确认订单弹窗 -->
<order-confirm-popup ref="buyPop" v-if="orderData" :order-data="orderData" :page-data="pageData"
<order-confirm-popup ref="buyPop" :order-data="orderData" :page-data="pageData"
:use-money="useMoney" :use-money2="useMoney2" :use-integral="useIntegral" :coupon-data="couponData"
:is-agree="isAgree" :send-rule-data="sendRuleData" :buy-num="buyNum" @close="close('buyPop')"
@change-pay="changePay" @toggle-agree="isAgree = !isAgree" @to-coupon="toCoupon"

View File

@ -169,7 +169,7 @@
<view class="log-list">
<view class="log-item br10" v-for="(a, b) in logList" :key="b">
<view class="avatar">
<image :src="a.user_info && a.user_info.headimg"></image>
<image :src="a.user_info && a.user_info.headimg" style="width:80rpx; height: 80rpx;"></image>
</view>
<view class="info">