|
@@ -36,7 +36,7 @@
|
|
|
v-if="info.type && JSON.parse(info.type).value == 2 && info.useArea && JSON.parse(info.useArea).value == 1">
|
|
|
适用范围:点击查看</view>
|
|
|
<view class="desc"
|
|
|
- v-else-if="info.type && JSON.parse(info.type).value == 2 && info.useArea && JSON.parse(info.useArea).value == 2">
|
|
|
+ v-else-if="info.type && JSON.parse(info.type).value == 2 && info.useArea && JSON.parse(info.useArea).value == 0">
|
|
|
适用范围:点击查看</view>
|
|
|
<view class="desc" v-else>适用范围:{{ info.useAreaDesc || '-' }}</view>
|
|
|
<view class="desc">使用期限:{{ $parseTime(info.validStart, '{y}.{m}.{d}') }} ~
|
|
@@ -62,10 +62,15 @@
|
|
|
<view class="txt detail">共{{info.channelTotal}}家门店可使用 <view class="detail-address" @click="toAddress">立即查看</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="detail-explain" v-if="info && info.useArea && JSON.parse(info.useArea).value == 0">
|
|
|
+ <view class="txt">使用范围:</view>
|
|
|
+ <view class="txt detail">共{{info.channelTotal}}家门店可使用 <view class="detail-address" @click="toAddress">立即查看</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<!-- 说明 -->
|
|
|
<view class="detail-explain">
|
|
|
<view class="txt">使用说明:</view>
|
|
|
- <view class="txt detail">{{ info.description }}</view>
|
|
|
+ <view class="txt detail" v-html="info.description" style="white-space: pre-wrap;"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -96,6 +101,7 @@
|
|
|
uni.hideLoading();
|
|
|
if (res.code == 0) {
|
|
|
this.info = res.data
|
|
|
+ this.info.description = this.info.description.replaceAll('\n','<br/>')
|
|
|
setTimeout(() => {
|
|
|
uni.hideLoading();
|
|
|
this.couponQrCode()
|
|
@@ -127,6 +133,7 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+
|
|
|
.detail {
|
|
|
margin: 20rpx;
|
|
|
background-color: #FFFFFF;
|
|
@@ -158,8 +165,7 @@
|
|
|
color: #fff;
|
|
|
|
|
|
text:first-child {
|
|
|
- font-size: 70rpx;
|
|
|
- padding-right: 20rpx;
|
|
|
+ font-size: 45rpx;
|
|
|
}
|
|
|
|
|
|
text:last-child {
|