feat:抵扣券换成数字积分

This commit is contained in:
2026-06-25 19:44:48 +08:00
parent 3523cc3a21
commit 363f4a0c52
7 changed files with 76 additions and 48 deletions
+23 -24
View File
@@ -1,35 +1,34 @@
<template>
<view :style="{ height: safeHeight + 'px',width:width + 'px',backgroundColor:bgColor}"
class="top-view">
<view :style="{ height: safeHeight + 'px', width: width + 'px', backgroundColor: bgColor }" class="top-view">
</view>
</template>
<script>
import {screen} from './global.js'
export default {
data() {
return {
safeHeight:screen.top,
width:screen.width
}
},
props: {
bgColor:{
type:String,
default:'#fff'
}
},
onShow(){
import { screen } from './global.js'
export default {
data() {
return {
safeHeight: screen.top,
width: screen.width
}
},
props: {
bgColor: {
type: String,
default: '#fff'
}
},
onShow() {
// safeHeight:screen.top,
// width:screen.width,
},
mounted(){
this.width = screen.width;
}
},
mounted() {
this.width = screen.width;
}
}
</script>
<style lang="scss" scoped>
.top-view{
display: flex;
}
.top-view {
display: flex;
}
</style>
+1 -1
View File
@@ -8,7 +8,7 @@
<!-- 有优惠券 -->
<view class="flex-r-lr price-line coupon-line" v-if="obj.buyDeductionValue">
<view class="text-28 text-zi text-bold">
<view class="text-36 text-bold">{{ obj.buyDeductionValue }}抵扣券</view>
<view class="text-28 text-bold">{{ obj.buyDeductionValue }}数字积分</view>
<view class="text-24">+{{ obj.price }}元</view>
</view>
<text class="text-20 sold">兑换</text>