Commit dc1de781 by zhangzhen

细节优化

parent 5730b1e7
...@@ -25,17 +25,18 @@ ...@@ -25,17 +25,18 @@
:class="item.useStatus==0?'text-pink':'text-gray'">{{statusEnum[item.useStatus]}}</text> :class="item.useStatus==0?'text-pink':'text-gray'">{{statusEnum[item.useStatus]}}</text>
</view> </view>
<view class="flex-1 flex-row text-gray"> <view class="flex-1 flex-row-center">
<text class="">来源:</text> <text class="text-gray">来源:</text>
<text>{{couponSourceEnum[item.sourceType]}} {{item.platformType!==1? '('+platformEnum[item.platformType]+')' : ''}}</text> <text class="text-gray">{{couponSourceEnum[item.sourceType]}} {{item.platformType!==1? '('+platformEnum[item.platformType]+')' : ''}}</text>
<text class="text-title margin-left-sm text-sm">(原价:¥{{item.originalPrice}})</text>
</view> </view>
<view v-if=" [4,5].includes(item.couponType) " class="flex-1 flex-row text-gray "> <view v-if="item.couponType == 3" class="flex-1 flex-row text-gray ">
<text class="">使用说明:</text> <text class="">使用说明:</text>
<text>{{item.remark || ''}}</text> <text class="">{{item.minPrice}}元,优惠{{item.subPrice}}</text>
</view> </view>
<view v-else class="flex-1 flex-row text-gray "> <view v-else class="flex-1 flex-row text-gray ">
<text class="">使用说明:</text> <text class="">使用说明:</text>
<text class="">{{item.minPrice}}元,优惠{{item.subPrice}}</text> <text >{{item.remark || '' }}</text>
</view> </view>
<view v-if="item.couponTimeStart && item.couponTimeEnd" class="flex-1 des text-gray "> <view v-if="item.couponTimeStart && item.couponTimeEnd" class="flex-1 des text-gray ">
<view class="flex-row"> <view class="flex-row">
...@@ -63,6 +64,7 @@ ...@@ -63,6 +64,7 @@
<text>适用门店:全门店通用</text> <text>适用门店:全门店通用</text>
</view> </view>
<view class=""> <view class="">
<button class="cu-btn bg-pink sm" @tap="onNavToHome(1)">去使用</button>
</view> </view>
</view> </view>
<view v-else-if="item.useStatus===1&&item.storeName" class="flex-between part-bottom-store"> <view v-else-if="item.useStatus===1&&item.storeName" class="flex-between part-bottom-store">
...@@ -70,6 +72,7 @@ ...@@ -70,6 +72,7 @@
<text>使用门店:{{item.storeName}}</text> <text>使用门店:{{item.storeName}}</text>
</view> </view>
<view class=""> <view class="">
<button class="cu-btn bg-pink sm" @tap="onNavToHome(2)">去使用</button>
</view> </view>
</view> </view>
</view> </view>
...@@ -277,6 +280,14 @@ ...@@ -277,6 +280,14 @@
this.list = [] this.list = []
this.onLoading() this.onLoading()
}, },
onNavToHome(val) {
if(val ===2){
uni.setStorageSync("storeId", this.list[0].storeId)
}
uni.switchTab({
url: `/pages/index/index`
})
},
} }
} }
</script> </script>
......
...@@ -8,18 +8,19 @@ ...@@ -8,18 +8,19 @@
<view class="coupon-name"> <view class="coupon-name">
<text class="text-title text-lg text-bold">{{item.name}}</text> <text class="text-title text-lg text-bold">{{item.name}}</text>
</view> </view>
<view v-if="item.couponType == 4" class="flex-row margin-top"> <view v-if="item.couponType == 2" class="flex-row margin-top">
<text class="part-tip">使用说明:</text> <text class="part-tip">使用说明:</text>
<text>{{item.remark || ''}}</text> <text>原价:{{item.originalPrice}}元,{{item.storeName}}门店核验</text>
</view> </view>
<view v-else class="flex-row margin-top"> <view v-else-if="item.couponType == 3" class="flex-row margin-top">
<text class="part-tip">使用说明:</text> <text class="part-tip">使用说明:</text>
<text class="">{{item.minPrice}}元,优惠{{item.subPrice}}</text> <text class="">{{item.minPrice}}元,优惠{{item.subPrice}}</text>
</view> </view>
<!-- <view class="flex-row margin-top"> <view v-else class="flex-row margin-top">
<text class="text-black">使用说明:</text> <text class="part-tip">使用说明:</text>
<text class="text-black">{{item.minPrice}}元,优惠{{item.subPrice}}</text> <text v-if="item.remark">{{item.remark }}</text>
</view> --> <text v-else>原价¥{{item.originalPrice}},可进行抵扣</text>
</view>
<view v-if="item.couponTimeStart && item.couponTimeEnd" class="des margin-top"> <view v-if="item.couponTimeStart && item.couponTimeEnd" class="des margin-top">
<view class="flex-row"> <view class="flex-row">
<text class="text-black">可用时段:</text> <text class="text-black">可用时段:</text>
...@@ -206,7 +207,7 @@ ...@@ -206,7 +207,7 @@
padding: 20upx 30upx; padding: 20upx 30upx;
z-index: 44; z-index: 44;
.part-tip{ .part-tip{
width: 160upx;
} }
} }
.part-bottom{ .part-bottom{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment