From ef20f5370c3cd3f1f0de5f564278a951c3d1e094 Mon Sep 17 00:00:00 2001 From: whyneedname <542399163@qq.com> Date: Mon, 31 Oct 2022 13:47:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=AF=8C=E6=96=87=E6=9C=AC=E4=BD=BF=E7=94=A8?= =?UTF-8?q?mp-html=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/DargainGoodsDetails/index.vue | 39 ++++++++++++++++++- pages/activity/GroupDetails/index.vue | 39 +++++++++++++++++-- pages/activity/SeckillDetails/index.vue | 41 ++++++++++++++++++-- 3 files changed, 111 insertions(+), 8 deletions(-) diff --git a/pages/activity/DargainGoodsDetails/index.vue b/pages/activity/DargainGoodsDetails/index.vue index 25817da..516f8d1 100644 --- a/pages/activity/DargainGoodsDetails/index.vue +++ b/pages/activity/DargainGoodsDetails/index.vue @@ -72,7 +72,11 @@ 商品展示 - + + + + @@ -104,6 +108,14 @@ + + + + + {{entryInfo.entryInfo}} + + + @@ -111,6 +123,7 @@ import ProductConSwiper from '@/components/ProductConSwiper'; import CountDown from '@/components/CountDown'; import { getBargainDetail } from '@/api/activity'; + import { getEntry } from '@/api/store' import { handleQrCode } from '@/utils/index' export default { components: { @@ -129,6 +142,12 @@ imgUrls: [], styleAllStyle: 'width:30rpx;height:24rpx;background:#F5F6F8;border-radius:8rpx;font-size:20rpx;color:#3A3A3C;line-height:24rpx;', timeTxtStyle: 'font-size:20rpx;color:#F5F6F8;line-height:24rpx;padding:0rpx 4rpx;', + entryInfo: {}, + showEntry: false, + tagStyle: { + a: 'color:#0A59F7;text-decoration:underline;', + img: 'padding:0;margin:0;font-size:0;display:block;' + } }; }, onLoad() { @@ -191,7 +210,23 @@ path: "/pages/activity/DargainDetails/index", query: { id: this.bargainId, partake: 0 } }); - } + }, + linktap(e) { + // console.log('description', e.innerText); + if (e.innerText == this.entryInfo.entryName) { + this.showEntry = true; + return; + } + getEntry({ + name: e.innerText + }).then(res => { + this.entryInfo = res.data; + this.showEntry = true; + }) + }, + closeEntry() { + this.showEntry = false; + }, } } diff --git a/pages/activity/GroupDetails/index.vue b/pages/activity/GroupDetails/index.vue index 49799c8..bb1f420 100644 --- a/pages/activity/GroupDetails/index.vue +++ b/pages/activity/GroupDetails/index.vue @@ -188,8 +188,11 @@ 商品展示 - - + + + + @@ -257,6 +260,14 @@ + + + + + {{entryInfo.entryInfo}} + + + @@ -272,7 +283,7 @@ import UserEvaluation from '@/components/UserEvaluation' import ProductWindow from '@/components/ProductWindow' import StorePoster from '@/components/StorePoster' import { getCombinationDetail } from '@/api/activity' -import { postCartAdd } from '@/api/store' +import { postCartAdd, getEntry } from '@/api/store' import { imageBase64 } from '@/api/public' import { getCoupon, getCollectAdd, getCollectDel, getUserInfo } from '@/api/user' const NAME = 'GroupDetails' @@ -330,6 +341,12 @@ export default { }, cartNum: 1, userCollect: false, + entryInfo: {}, + showEntry: false, + tagStyle: { + a: 'color:#0A59F7;text-decoration:underline;', + img: 'padding:0;margin:0;font-size:0;display:block;' + } } }, computed: {}, @@ -600,6 +617,22 @@ export default { this.attr.cartAttr = true this.isOpen = true }, + linktap(e) { + // console.log('description', e.innerText); + if (e.innerText == this.entryInfo.entryName) { + this.showEntry = true; + return; + } + getEntry({ + name: e.innerText + }).then(res => { + this.entryInfo = res.data; + this.showEntry = true; + }) + }, + closeEntry() { + this.showEntry = false; + }, }, } diff --git a/pages/activity/SeckillDetails/index.vue b/pages/activity/SeckillDetails/index.vue index e7835f4..5f199ce 100644 --- a/pages/activity/SeckillDetails/index.vue +++ b/pages/activity/SeckillDetails/index.vue @@ -118,7 +118,11 @@ 商品展示 - + + + + @@ -189,7 +193,16 @@ --> - + + + + + + {{entryInfo.entryInfo}} + + + + @@ -207,7 +220,7 @@ import ProductWindow from '@/components/ProductWindow' import StorePoster from '@/components/StorePoster' import UserEvaluation from '@/components/UserEvaluation'; import { getSeckillDetail } from '@/api/activity' -import { postCartAdd } from '@/api/store' +import { postCartAdd, getEntry } from '@/api/store' import { imageBase64 } from '@/api/public' import { getCoupon, getCollectAdd, getCollectDel, getUserInfo } from '@/api/user' const NAME = 'SeckillDetails' @@ -254,6 +267,12 @@ export default { userCollect: false, styleAllStyle: 'width:30rpx;height:24rpx;background:#F5F6F8;border-radius:8rpx;font-size:20rpx;color:#3A3A3C;line-height:24rpx;', timeTxtStyle: 'font-size:20rpx;color:#F5F6F8;line-height:24rpx;padding:0rpx 4rpx;', + entryInfo: {}, + showEntry: false, + tagStyle: { + a: 'color:#0A59F7;text-decoration:underline;', + img: 'padding:0;margin:0;font-size:0;display:block;' + } } }, onShow: function() { @@ -526,6 +545,22 @@ export default { }) } }, + linktap(e) { + // console.log('description', e.innerText); + if (e.innerText == this.entryInfo.entryName) { + this.showEntry = true; + return; + } + getEntry({ + name: e.innerText + }).then(res => { + this.entryInfo = res.data; + this.showEntry = true; + }) + }, + closeEntry() { + this.showEntry = false; + }, }, } From 14dfd485f4550512ec33a95d69feadcd2d96cb0e Mon Sep 17 00:00:00 2001 From: whyneedname <542399163@qq.com> Date: Mon, 31 Oct 2022 18:11:01 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86ui=E5=85=BC=E5=AE=B9;=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E9=A1=B5=E6=90=9C=E7=B4=A2=E8=BE=93=E5=85=A5=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E7=9B=B4=E6=8E=A5=E6=90=9C=E7=B4=A2;=E4=B8=93?= =?UTF-8?q?=E5=AE=B6ui=E9=97=B4=E8=B7=9D=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/expert/index.vue | 5 +++-- pages/shop/GoodSearch/index.vue | 2 +- pages/shop/GoodsList/index.vue | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/expert/index.vue b/pages/expert/index.vue index db0b216..3eaf101 100644 --- a/pages/expert/index.vue +++ b/pages/expert/index.vue @@ -25,7 +25,7 @@ {{item.expertUnit}} - {{item.expertInfo}} + {{item.expertInfo}} 向ta留言咨询 @@ -109,6 +109,7 @@ // box-shadow: 0rpx 10rpx 16rpx 0rpx rgba(0, 0, 0, 0.06); } .text-box { + padding-top: 10rpx; width: 362rpx; height: 304rpx; @@ -141,7 +142,7 @@ } .info { padding-left: 4rpx; - height: 126rpx; + height: 132rpx; overflow: hidden; font-family: PingFang SC; line-height: 26rpx; diff --git a/pages/shop/GoodSearch/index.vue b/pages/shop/GoodSearch/index.vue index 9784730..9b4b7bb 100644 --- a/pages/shop/GoodSearch/index.vue +++ b/pages/shop/GoodSearch/index.vue @@ -7,7 +7,7 @@ - + 搜索 diff --git a/pages/shop/GoodsList/index.vue b/pages/shop/GoodsList/index.vue index ec312fa..ca50ed3 100644 --- a/pages/shop/GoodsList/index.vue +++ b/pages/shop/GoodsList/index.vue @@ -350,7 +350,8 @@ export default { } .search { input { - width: 376rpx; + width: 90%; + // width: 376rpx; font-size: 26rpx; font-family: PingFang SC; font-weight: 500;