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

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

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