Commit adea96d1 authored by 黄奎's avatar 黄奎

优惠卷调整

parent e7a1cca4
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
<view class="coupondetailsStyle" :style="{ height: contentHeight }"> <view class="coupondetailsStyle" :style="{ height: contentHeight }">
<view class="cd_box"> <view class="cd_box">
<Text class='cd_name'> <Text class='cd_name'>
{{g.Name}} {{g.couponName}}
</Text> </Text>
<view style="display: flex;align-items: flex-end;"> <view style="display: flex;align-items: flex-end;">
<Text style='font-size: 32px;'>{{ g.DiscountsPrice }} </Text> <Text style='font-size: 32px;'>{{ g.denomination }} </Text>
<Text style='font-size: 14px;'>{{g.CouponType==2?'折':""}}</Text> <Text style='font-size: 14px;'>{{g.couponsType!=1?'折':""}}</Text>
</view> </view>
<Text class='condition'> <Text class='condition'>
{{g.MinConsumePrice }}可用 {{g.useCondition }}可用
</Text> </Text>
<view v-if='type==2 && g.IsReceive==0' class="receive" :style="{'background':mainColor}" @click="receive(g.CouponId)"> <view v-if='type==2 && g.IsReceive==0' class="receive" :style="{'background':mainColor}" @click="receive(g.CouponId)">
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
</view> </view>
<view style="width: 100%;border-top: 1px dashed #f5f5f5;margin: 10px 0;"></view> <view style="width: 100%;border-top: 1px dashed #f5f5f5;margin: 10px 0;"></view>
<Text class='c_name' style='margin-top: 25px;'>有效期</Text> <Text class='c_name' style='margin-top: 25px;'>有效期</Text>
<Text class='cd_content'>{{g.expirationDate}} 失效</Text>
<Text class='cd_content' v-if='g.IndateType==1'>领取后{{g.IndateDay}}天内有效</Text> <!-- <Text class='cd_content' v-if='g.IndateType==1'>领取后{{g.IndateDay}}天内有效</Text>
<Text class='cd_content' v-if='g.IndateType==2'>{{g.StartDate}}-{{g.EndDate}}</Text> <Text class='cd_content' v-if='g.IndateType==2'>{{g.StartDate}}-{{g.EndDate}}</Text> -->
<!-- <Text class='cd_content' >{{g.StartDate}}-{{g.EndDate}}</Text> --> <!-- <Text class='cd_content' >{{g.StartDate}}-{{g.EndDate}}</Text> -->
<Text class='c_name' style='margin-top: 1px;'>使用规则</Text> <Text class='c_name' style='margin-top: 1px;'>使用规则</Text>
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
this.type = option.type this.type = option.type
let item = JSON.parse(decodeURIComponent(option.item)) let item = JSON.parse(decodeURIComponent(option.item))
this.g = item; this.g = item;
console.log("this.g",this.g); console.log("this.g", this.g);
}, },
methods: { methods: {
receive(id) { receive(id) {
...@@ -99,6 +99,8 @@ ...@@ -99,6 +99,8 @@
} }
); );
}, },
gouseUrl(g) { gouseUrl(g) {
uni.redirectTo({ uni.redirectTo({
url: '/pages/index/index' url: '/pages/index/index'
......
...@@ -156,8 +156,9 @@ ...@@ -156,8 +156,9 @@
gbAuth() { gbAuth() {
uni.navigateBack(); uni.navigateBack();
}, },
//优惠劵详情
godetails(item) { godetails(item) {
if (this.msg.UseState == 0) { if (this.msg.CouponStatus == 1) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/coupon/details/details?item=" + url: "/pages/coupon/details/details?item=" +
encodeURIComponent(JSON.stringify(item)) + encodeURIComponent(JSON.stringify(item)) +
......
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