From 42d20f0fd9c3bbeb2aec844cfd67d9ed233a22ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Mon, 30 May 2022 16:37:50 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E5=B0=81=E8=A3=85=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=A8=A1=E5=9D=97=EF=BC=8C=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E7=AE=A1=E7=90=86=E6=A0=BC=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E5=B0=86=E6=97=A7=E7=89=88=E5=95=86=E5=93=81=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=83=A8=E5=88=86=E4=BC=98=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/m-goods-list/README.md | 10 + components/m-goods-list/list.vue | 293 ++++++++++++++++++ components/m-goods-recommend/index.vue | 21 +- pages/navigation/search/search.scss | 180 ----------- pages/navigation/search/searchPage.vue | 96 +----- .../product/goods/-goods-recommend.vue | 161 +--------- pages/product/shopPage.vue | 64 +--- pages/product/shopPageGoods.vue | 204 +++++------- 8 files changed, 402 insertions(+), 627 deletions(-) create mode 100644 components/m-goods-list/README.md create mode 100644 components/m-goods-list/list.vue diff --git a/components/m-goods-list/README.md b/components/m-goods-list/README.md new file mode 100644 index 0000000..74fa4c2 --- /dev/null +++ b/components/m-goods-list/README.md @@ -0,0 +1,10 @@ +## 商品列表展示 + +### OBJECT 参数说明 + +| 属性 | 说明 | 类型 | 必填 | +| ----------- | ---------------------------------------------------------- | ------- | ---- | +| `res` | 显示数据 | Array | 是 | +| `type` | 商品展示类型 oneColumns twoColumns ,默认展示一行两列商品 | String | 否 | +| `storeName` | 是否展示店铺名称,默认展示 | Boolean | 否 | + diff --git a/components/m-goods-list/list.vue b/components/m-goods-list/list.vue new file mode 100644 index 0000000..55446b7 --- /dev/null +++ b/components/m-goods-list/list.vue @@ -0,0 +1,293 @@ + + + + + diff --git a/components/m-goods-recommend/index.vue b/components/m-goods-recommend/index.vue index dbd5815..8f60967 100644 --- a/components/m-goods-recommend/index.vue +++ b/components/m-goods-recommend/index.vue @@ -1,27 +1,11 @@ - diff --git a/pages/product/shopPage.vue b/pages/product/shopPage.vue index 07f050c..161bcf6 100644 --- a/pages/product/shopPage.vue +++ b/pages/product/shopPage.vue @@ -60,18 +60,7 @@
暂无商品信息 - - - - -
{{ item.content.goodsName }}
-
-
¥{{ item.content.price | unitPrice }}
-
- -
已售 {{ item.content.buyCount || "0" }}
-
-
+
@@ -94,7 +83,8 @@ - - \ No newline at end of file + + + + + From ded0ab5381b4b6e947d8cedfee40456bc6e6f26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Tue, 31 May 2022 12:06:30 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E4=B8=AD=20=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/set/securityCenter/editPassword.vue | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pages/mine/set/securityCenter/editPassword.vue b/pages/mine/set/securityCenter/editPassword.vue index 7be7247..7da13e0 100644 --- a/pages/mine/set/securityCenter/editPassword.vue +++ b/pages/mine/set/securityCenter/editPassword.vue @@ -1,12 +1,13 @@ \ No newline at end of file From 3c9f0d3c5c725149f458d21b94922494e21229e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Tue, 31 May 2022 15:42:21 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A2=86=E5=8A=B5?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E7=9A=84=E9=80=BB=E8=BE=91=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cart/coupon/couponCenter.vue | 549 ++++++++++++++--------------- uni.scss | 8 + 2 files changed, 280 insertions(+), 277 deletions(-) diff --git a/pages/cart/coupon/couponCenter.vue b/pages/cart/coupon/couponCenter.vue index 0a48d22..c7f9457 100644 --- a/pages/cart/coupon/couponCenter.vue +++ b/pages/cart/coupon/couponCenter.vue @@ -1,299 +1,294 @@ + .receive { + color: #ffffff; + background-color: $main-color; + border-radius: 50%; + width: 86rpx; + height: 86rpx; + text-align: center; + margin-right: 30rpx; + vertical-align: middle; + padding-top: 8rpx; + position: relative; + z-index: 2; + } + + .bg-quan { + width: 244rpx; + height: 244rpx; + border: 6rpx solid $main-color; + border-radius: 50%; + opacity: 0.1; + color: $main-color; + text-align: center; + padding-top: 30rpx; + font-size: 130rpx; + position: absolute; + right: -54rpx; + bottom: -60rpx; + } + } + } + } + } + + .coupon-title { + width: 260rpx; + + } + diff --git a/uni.scss b/uni.scss index 7fe2f11..20c6fca 100644 --- a/uni.scss +++ b/uni.scss @@ -168,4 +168,12 @@ $font-weight: 400; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; +} + +.wes-3 { + /* 适用于webkit内核和移动端 */ + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + overflow: hidden; } From b8fe2aacf132edee4f62a8da3bb2e52d55485b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Wed, 1 Jun 2022 10:58:54 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=B9=E5=8F=91?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=B1=95=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/m-buy/goods.vue | 5 ++++- pages/product/goods.vue | 11 ++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/components/m-buy/goods.vue b/components/m-buy/goods.vue index 075b1da..60724a3 100644 --- a/components/m-buy/goods.vue +++ b/components/m-buy/goods.vue @@ -473,6 +473,8 @@ color: #999 !important; font-size: 24rpx; margin:0 20rpx; + display: flex; + justify-content: center; } .goods-header { @@ -492,7 +494,8 @@ .goods-price { color: $price-color; - line-height: 80rpx; + line-height: 80rpx; + margin-right: 20rpx; >* { color: $price-color; line-height: 80rpx; diff --git a/pages/product/goods.vue b/pages/product/goods.vue index 0f24955..f6178d7 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -150,9 +150,14 @@ - ¥{{ formatPrice(goodsDetail.price)[0] }}.{{ formatPrice(goodsDetail.price)[1] }} + From ddcd03f0967666c66f48dc37f2a3c4567bbefe93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Wed, 1 Jun 2022 11:02:25 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E8=A1=A5=E5=85=A8=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/goods.vue | 50 ++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/pages/product/goods.vue b/pages/product/goods.vue index f6178d7..8e1af3c 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -150,14 +150,14 @@ - + + ¥{{ formatPrice(wholesaleList[wholesaleList.length-1].price)[0] }}.{{ formatPrice(wholesaleList[wholesaleList.length-1].price)[1] }} + ~ + ¥{{ formatPrice(wholesaleList[0].price)[0] }}.{{ formatPrice(wholesaleList[0].price)[1] }} + + + ¥{{ formatPrice(goodsDetail.price)[0] }}.{{ formatPrice(goodsDetail.price)[1] }} + @@ -352,7 +352,7 @@ :isGroup="isGroup" :id="productId" v-if="goodsDetail.id" - :pointDetail="pointDetail" + :pointDetail="pointDetail" :wholesaleList="wholesaleList" @handleClickSku="selectSku" :buyMask="buyMask" @@ -528,12 +528,12 @@ export default { startTimer: false, //未开启 是false routerVal: "", - IMLink: "", // IM地址 + IMLink: "", // IM地址 wholesaleList:[] }; }, - computed: { + computed: { // udesk IM IM() { return this.IMLink + this.storeDetail.merchantEuid; @@ -716,21 +716,21 @@ export default { }, linkMsgDetail() { - // lili 基础客服 - - uni.navigateTo({ - url: `/pages/tabbar/home/web-view?IM=${this.storeDetail.storeId}`, - }); - - // udesk 代码 - // if (this.storeDetail.merchantEuid) { - // uni.navigateTo({ - // url: `/pages/tabbar/home/web-view?src=${this.IM}`, - // }); - // } - + // lili 基础客服 + + uni.navigateTo({ + url: `/pages/tabbar/home/web-view?IM=${this.storeDetail.storeId}`, + }); + + // udesk 代码 + // if (this.storeDetail.merchantEuid) { + // uni.navigateTo({ + // url: `/pages/tabbar/home/web-view?src=${this.IM}`, + // }); + // } - // 客服 云智服代码 + + // 客服 云智服代码 // // #ifdef MP-WEIXIN // const params = { // storeName: this.storeDetail.storeName, From 470995c13d3bfa9fb8cd16e42e06ebbcc5b8873c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Wed, 1 Jun 2022 11:30:23 +0800 Subject: [PATCH 06/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E4=B8=AD=E5=8F=91=E7=8E=B0=E7=9A=84=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- pages/product/goods.vue | 20 +++++++++---------- .../product/goods/-goods-recommend.vue | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/manifest.json b/manifest.json index 119a102..4cc39c1 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "lili商城", - "appid" : "__UNI__83F0C3D", + "appid" : "__UNI__EC9FD60", "description" : "", "versionName" : "4.2.5", "versionCode" : 4000250, diff --git a/pages/product/goods.vue b/pages/product/goods.vue index 8e1af3c..1cf8b5c 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -7,7 +7,7 @@ - + {{ goodsDetail.goodsName || "" }} @@ -410,7 +410,6 @@ export default { return { setup, promotionShow: false, //弹窗开关 - promotionFlag: true, //活动开关 // #ifdef H5 navbarListX: 110, //导航栏列表栏x轴 navbarListY: 80, //导航栏列表栏y轴 @@ -447,9 +446,10 @@ export default { }, ], popupsSwitch: false, //导航栏列表栏开关 - shareFlage: false, + enableShare: false, selectedGoods: "", //选择的商品规格昵称 isGroup: false, // 是否是拼团活动 + isSeckill:false, // 是否秒杀活动 pointDetail: "", // 是否是积分商品 assemble: "", //拼团的sku navbarOnlyBack: { @@ -485,7 +485,6 @@ export default { id: "4", }, ], - oldtabScrollTop: 0, tabScrollTop: null, scrollArr: [], scrollId: "1", @@ -547,10 +546,7 @@ export default { this.$refs.popupGoods.buyType = "PINTUAN"; clearInterval(timer); }, 100); - - this.promotionFlag = false; } else { - this.promotionFlag = true; this.$refs.popupGoods.buyType = ""; } }, @@ -684,6 +680,10 @@ export default { if (item.indexOf("POINTS_GOODS") == 0) { this.pointDetail = this.PromotionList[item]; } + // 秒杀 + if (item.indexOf("SECKILL") == 0) { + this.isSeckill = true + } }); // 轮播图 this.imgList = this.goodsDetail.goodsGalleryList; @@ -1074,7 +1074,7 @@ export default { * 点击分享 */ async shareChange() { - this.shareFlage = true; + this.enableShare = true; }, }, }; diff --git a/pages/product/product/goods/-goods-recommend.vue b/pages/product/product/goods/-goods-recommend.vue index 3e3dadc..e2f9655 100644 --- a/pages/product/product/goods/-goods-recommend.vue +++ b/pages/product/product/goods/-goods-recommend.vue @@ -1,14 +1,14 @@ -