挂账增加
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
<view> 领券后{{ item.validDays }}天过期 </view>
|
||||
</view>
|
||||
<view class="JQclass">
|
||||
<image :src="'/static/coupon/qrcode.svg'" mode="scaleToFill" />
|
||||
<image :src="'/static/coupon/qrcode.svg'" mode="scaleToFill" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="couponContentListcontent2">
|
||||
@@ -81,6 +81,7 @@
|
||||
<view class="bottomPop">
|
||||
<button @click="addCoupon">+添加{{pageData.status.tagName}}</button>
|
||||
</view>
|
||||
<up-modal :show="pageData.delShow" title="确认是否删除当前优惠券" @confirm="delConfirm" @cancel="pageData.delShow=false" showCancelButton></up-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -96,6 +97,8 @@
|
||||
onPullDownRefresh,
|
||||
onReachBottom, } from '@dcloudio/uni-app';
|
||||
const pageData = reactive({
|
||||
delShow: false,
|
||||
delItem: null,
|
||||
status: {
|
||||
list: [
|
||||
{name: '优惠券', type: 1},
|
||||
@@ -175,7 +178,12 @@
|
||||
* 删除
|
||||
*/
|
||||
let delCoupon = (item) => {
|
||||
delTbShopCoupon([item.id]).then((res) => {
|
||||
pageData.delShow = true;
|
||||
pageData.delItem = item;
|
||||
}
|
||||
let delConfirm = () => {
|
||||
pageData.delShow = false;
|
||||
delTbShopCoupon([pageData.delItem.id]).then((res) => {
|
||||
getCoupon();
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user