From e7d949770d4e8f2604f1704a47528af1fa9027b4 Mon Sep 17 00:00:00 2001 From: donqi Date: Mon, 20 Jun 2022 15:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=83=AD=E9=97=A8=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=B1=95=E7=A4=BA=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=9Bgoods=E8=AF=A6=E6=83=85=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE=E9=AB=98=E5=BA=A6=E9=9A=8F=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8top=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/request.js | 4 +-- components/goods-card/vertical-goods-card.vue | 35 +++++++++++++++++-- pages/index/home.vue | 2 +- pages/product/product-detail.vue | 18 ++++++++-- style/default.css | 6 ++++ 5 files changed, 57 insertions(+), 8 deletions(-) diff --git a/common/js/request.js b/common/js/request.js index e9c7772..01ab5f6 100644 --- a/common/js/request.js +++ b/common/js/request.js @@ -10,9 +10,9 @@ export default { title: '加载中' }) // request 触发前拼接 url - args.url = 'https://www.opsoul.com' + args.url; + // args.url = 'https://www.opsoul.com' + args.url; // args.url = 'http://192.168.2.42:80' + args.url; - // args.url = 'http://127.0.0.1:80' + args.url; + args.url = 'http://127.0.0.1:80' + args.url; if (args.data) { args.data.deptId = globalData.deptId; args.data.from = globalData.from; diff --git a/components/goods-card/vertical-goods-card.vue b/components/goods-card/vertical-goods-card.vue index 04cf18b..b9838d9 100644 --- a/components/goods-card/vertical-goods-card.vue +++ b/components/goods-card/vertical-goods-card.vue @@ -5,9 +5,16 @@ {{title}} - + - + + + + + + + + @@ -33,6 +40,10 @@ goodsInfos: { type: Array, default: [] + }, + multiPicMode: { + type: Boolean, + default: false } }, data() { @@ -49,5 +60,25 @@ diff --git a/pages/index/home.vue b/pages/index/home.vue index b79403b..d52e7b4 100644 --- a/pages/index/home.vue +++ b/pages/index/home.vue @@ -72,7 +72,7 @@ - + diff --git a/pages/product/product-detail.vue b/pages/product/product-detail.vue index 36e33c8..8a0d62f 100644 --- a/pages/product/product-detail.vue +++ b/pages/product/product-detail.vue @@ -16,7 +16,7 @@ - + @@ -201,7 +201,8 @@ isShowAllSpecs: false, reviewers: [], productVideoPlaying: false, - showTopNav: false, + showTopNav: false, + changeSwiperHeight: false, curTopNav: 0, shopInfo: {}, ifShowPageMeta: false, @@ -223,7 +224,8 @@ this.productVideoContext = uni.createVideoContext('productVideo'); }, onPageScroll(e) { - this.showTopNav = e.scrollTop > 250 ? true : false + this.showTopNav = e.scrollTop > 250 ? true : false; + this.changeSwiperHeight = e.scrollTop > 50 ? true: false; }, methods: { async loadData(params) { @@ -339,5 +341,15 @@ right: 25rpx; top: 25rpx; z-index: 99; + } + + .sm-screen-swiper { + height: 400rpx; + transition: all 0.5s ease-in-out; + } + + .lg-screen-swiper { + height: 900rpx; + transition: all 0.5s ease-in-out; } diff --git a/style/default.css b/style/default.css index 8956bbd..5a690b8 100644 --- a/style/default.css +++ b/style/default.css @@ -94,4 +94,10 @@ .cu-form-group textarea { margin: 0 0 20rpx 0 !important; padding: 20rpx !important; +} + +.flex-column-start { + display: flex; + flex-direction: column; + justify-content: flex-start; } \ No newline at end of file