增加取消优惠券

main
刘佳宇 1 year ago
parent c3f8b44b9a
commit f36f5dc862

@ -34,6 +34,12 @@ const selectCoupon = (item) => {
uni.navigateBack({ delta: 1 });
};
const noSelectCoupon = () => {
yytjInfo.value.couponId = "";
yytjInfo.value.couponPrice = "";
$store.setYytjInfo(yytjInfo.value);
};
const config_ref = ref(null);
const configRef = (e) => {
if (!config_ref.value) {
@ -73,7 +79,7 @@ onShow(() => {
<text class="text-#fff text-22rpx">{{ item.desc }}</text>
</view>
<view
class="grow box-border b-1 b-l-0 b-#E5E5E5 b-solid rounded-r-15rpx flex between py-5rpx"
class="grow box-border b-1 b-l-0 b-#E5E5E5 b-solid rounded-r-15rpx flex between"
>
<view
class="grow px-30rpx py-25rpx box-border flex-col between h-full items-start b-0 b-r-1 b-#E5E5E5 b-solid"
@ -84,10 +90,18 @@ onShow(() => {
}}</text>
</view>
<view
class="max-w-60rpx min-w-60rpx text-#B38933 text-25rpx center mx-0"
v-if="yytjInfo.couponId != item.id"
class="max-w-60rpx h-full min-w-60rpx text-#B38933 rounded-r-15rpx text-25rpx center mx-0"
>
<br /><br />使<br />
</view>
<view
v-else
@click.stop="noSelectCoupon()"
class="max-w-60rpx h-full min-w-60rpx text-#fff rounded-r-15rpx bg-#B38933 text-25rpx center mx-0"
>
<br /><br />使<br />
</view>
</view>
</view>
</view>

Loading…
Cancel
Save