From e650ee66fff235be2e3a4f4a6ab9fb957748396e Mon Sep 17 00:00:00 2001 From: weian <20943448@qq.com> Date: Wed, 14 Dec 2022 06:17:24 +0000 Subject: [PATCH 1/9] =?UTF-8?q?update=20pages/tabbar/home/template/tpl=5Fg?= =?UTF-8?q?oods.vue.=20=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=9A=84=E5=95=86=E5=93=81=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=8C=E4=BB=A5lili=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E6=BC=94=E7=A4=BA=E7=AB=99=E7=82=B9=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E4=B8=BA=E4=BE=8B=EF=BC=8C=E7=82=B9=E5=87=BB=EF=BC=88=E7=B2=BE?= =?UTF-8?q?=E9=80=89=E3=80=81=E5=AE=9E=E6=83=A0=E3=80=81=E8=BF=9B=E5=8F=A3?= =?UTF-8?q?=E3=80=81=E7=83=AD=E5=8D=96=EF=BC=89=E8=BF=99=E4=B8=80=E6=8E=92?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E4=BC=9A?= =?UTF-8?q?=E6=9C=89=E9=BB=91=E8=89=B2=E7=9A=84=E5=BA=95=E8=89=B2=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=EF=BC=8Ch5=E6=B2=A1=E6=9C=89=E8=BF=99=E4=B8=AA?= =?UTF-8?q?=E5=BA=95=E8=89=B2=EF=BC=8C=E6=88=91=E8=B0=83=E8=AF=95=E5=90=8E?= =?UTF-8?q?=E5=8F=91=E7=8E=B0=E6=98=AF=E8=BF=99=E4=B8=AAuni-data-select?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=BA=90=E7=A0=81=E4=B8=ADcursor:=20pointer?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=BC=95=E8=B5=B7=E7=9A=84=EF=BC=8C=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E6=8E=89=EF=BC=8C=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=82=B9=E5=87=BB=E8=BF=99=E4=B8=80=E6=8E=92=E5=B0=B1?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E4=BA=86=E4=B8=8D=E4=BC=9A=E6=9C=89=E5=BA=95?= =?UTF-8?q?=E8=89=B2=EF=BC=8C=E5=AF=B9h5=E4=B9=9F=E6=B2=A1=E5=BD=B1?= =?UTF-8?q?=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: weian <20943448@qq.com> --- pages/tabbar/home/template/tpl_goods.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/pages/tabbar/home/template/tpl_goods.vue b/pages/tabbar/home/template/tpl_goods.vue index 9075aa0..db0a35e 100644 --- a/pages/tabbar/home/template/tpl_goods.vue +++ b/pages/tabbar/home/template/tpl_goods.vue @@ -187,7 +187,6 @@ $w_94: 94%; padding: 10px; transition: 0.35s; display: flex; - cursor: pointer; > .goods-item-title { flex: 1; From 0843e457b04c907e504ec44c216851f749e49db2 Mon Sep 17 00:00:00 2001 From: yeliang-king <2244255345@qq.com> Date: Fri, 13 Jan 2023 07:35:51 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8F=91=E5=88=B8=E5=89=8D=E7=AB=AF=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/login.js | 10 ++++ pages/passport/login.vue | 1 + pages/tabbar/home/index.vue | 8 +++ pages/tabbar/home/views.vue | 115 +++++++++++++++++++++++++++++++++++- static/cpauto1.png | Bin 0 -> 132520 bytes utils/storage.js | 8 +++ 6 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 static/cpauto1.png diff --git a/api/login.js b/api/login.js index f413ba8..af9a1a0 100644 --- a/api/login.js +++ b/api/login.js @@ -14,6 +14,16 @@ export function resetByMobile(params) { }); } + +//获取自动发券 +export function getAutoCoup(){ + return http.request({ + url:`/promotion/coupon/activity`, + method:"GET", + needToken: true, + }); +} + /** * 账号密码登陆 * @params password diff --git a/pages/passport/login.vue b/pages/passport/login.vue index 27328b7..7029dff 100644 --- a/pages/passport/login.vue +++ b/pages/passport/login.vue @@ -564,6 +564,7 @@ */ storage.setUserInfo(user.data.result); storage.setHasLogin(true); + storage.setAutoCp(0) // 登录成功 uni.showToast({ title: "登录成功!", diff --git a/pages/tabbar/home/index.vue b/pages/tabbar/home/index.vue index ea9406e..6d693ca 100644 --- a/pages/tabbar/home/index.vue +++ b/pages/tabbar/home/index.vue @@ -14,6 +14,14 @@ export default { backgroundColor: "#fff", }, }; + }, + onShow(){ + setTimeout(()=>{ + this.$refs.tpl.firstGetAuto(); + },1000) + }, + methods: { + }, onReachBottom(){ // 给子级监听触底加载 diff --git a/pages/tabbar/home/views.vue b/pages/tabbar/home/views.vue index e5b93b4..115be6f 100644 --- a/pages/tabbar/home/views.vue +++ b/pages/tabbar/home/views.vue @@ -1,5 +1,37 @@