feat:抵扣券换成数字积分
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user