Commit 2fd94f6c authored by 罗超's avatar 罗超

新增订单详情支持优惠券弹窗

parent e26bbe1b
...@@ -578,6 +578,7 @@ ...@@ -578,6 +578,7 @@
<view style="display: flex; margin-left: 30rpx"> <view style="display: flex; margin-left: 30rpx">
</view> </view>
</view> </view>
<coupons v-if="showCoupons" :coupon-message="couponMessage" @goLook="()=>showCoupons=false" @closeBtn="()=>showCoupons=false"></coupons>
</view> </view>
</template> </template>
...@@ -585,8 +586,9 @@ ...@@ -585,8 +586,9 @@
</script> </script>
<script> <script>
import coupons from "@/components/coupons/coupons.vue";
export default { export default {
components: {}, components: {coupons},
data() { data() {
return { return {
pageTitle: "订单详情", pageTitle: "订单详情",
...@@ -604,6 +606,8 @@ ...@@ -604,6 +606,8 @@
OrderNo: '', OrderNo: '',
mainColor:'', mainColor:'',
orderId: 0, orderId: 0,
showCoupons:false,
couponMessage:[],
}; };
}, },
created() {}, created() {},
...@@ -618,6 +622,10 @@ ...@@ -618,6 +622,10 @@
this.initOrderInfo(); this.initOrderInfo();
} }
this.mainColor = this.$uiConfig.mainColor this.mainColor = this.$uiConfig.mainColor
if (uni.getStorageSync('coupons')) {
this.showCoupons = true;
this.couponMessage = uni.getStorageSync('coupons');
}
}, },
methods: { methods: {
submitGetCodeByOrderNo() { submitGetCodeByOrderNo() {
......
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