From 41426416bd250130129fb8a547bee874375768a8 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期四, 14 十一月 2024 09:47:15 +0800
Subject: [PATCH] 1.付款:改成15分钟,并使用服务器时间进行倒计时 2.优惠券中心:已经领取(达到最大次数),显示已领取且置灰,未领取根据创建时间放前面,已领取根据首次时间正序排序 3.购物车-提交订单:自动根据订单金额选择合适优惠券
---
sub_pages/customer/self/follow.vue | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/sub_pages/customer/self/follow.vue b/sub_pages/customer/self/follow.vue
index 1b9b188..6e19947 100644
--- a/sub_pages/customer/self/follow.vue
+++ b/sub_pages/customer/self/follow.vue
@@ -3,8 +3,8 @@
<no-data v-if="!list||list.length===0" style="width: 100%;"></no-data>
<view class="follow-item m-b-40 flex" v-for="(item,index) of list" :key="index">
- <image class="avatar img100" :src="item.cover" mode="aspectFill"></image>
- <view class="info">
+ <image class="avatar img100" :src="item.cover" mode="aspectFill" @click="toDetail(item)"></image>
+ <view class="info" @click="toDetail(item)">
<view class="name">{{ item.supplierName }}</view>
<view class="time">{{ item.createTime }}</view>
</view>
@@ -39,7 +39,7 @@
methods: {
toDetail(item) {
uni.navigateTo({
- url: '/sub_pages/customer/shop/shop?id=' + (item.id || '')
+ url: '/sub_pages/customer/shop/shop?id=' + (item.supplierId || '')
})
},
async clearFollow(item) {
@@ -48,22 +48,23 @@
code
} = await this.$http.request('get', `/api/follow/delete`, {
params: {
- supplierId: item.id
+ supplierId: item.supplierId
}
})
this.$message.hideLoading()
if (code === 0) {
//删除list里的本元素
- for (var i = 0; i < this.list.length; i++) {
- if (this.list[i].id === item.id) {
- this.list.splice(i, 1)
- }
- }
+ // for (var i = 0; i < this.list.length; i++) {
+ // if (this.list[i].id === item.id) {
+ // this.list.splice(i, 1)
+ // }
+ // }
+ this.refreshList()
}
},
- getList_after() {
- // uni.
- }
+ // getList_after() {
+ // // uni.
+ // }
}
}
</script>
--
Gitblit v1.9.3