diff --git a/bundle/pages/user_spread/user_spread.vue b/bundle/pages/user_spread/user_spread.vue index 6c281b7..b0c1b84 100644 --- a/bundle/pages/user_spread/user_spread.vue +++ b/bundle/pages/user_spread/user_spread.vue @@ -95,7 +95,7 @@ - + - + @@ -141,6 +141,7 @@ if (code == 1) { this.data = data this.shop_original_price = data.original_price || 0 + this.file = data.pic.map((item) => { return { image: item.url @@ -209,6 +210,19 @@ path: `/bundle_b/pages/local_shop/local_shop_buy?id=${this.id}&lstore_id=${this.lstore_id}`, imageUrl: this.data.pic[0].url } + }, + + preview(i) { + console.log('i=', i) + console.log('i=', this.file) + let f = this.file.map((item) => { + return item.image + }) + console.log('f=',f) + uni.previewImage({ + current: i, + urls: f + }); } } } diff --git a/bundle_b/pages/local_shop/local_shop_detail.vue b/bundle_b/pages/local_shop/local_shop_detail.vue index ee63e56..ed17155 100644 --- a/bundle_b/pages/local_shop/local_shop_detail.vue +++ b/bundle_b/pages/local_shop/local_shop_detail.vue @@ -25,7 +25,6 @@ - {{info.shopName}} @@ -86,17 +85,30 @@ {{item.title}} - - - - + + + + + + + + + + @@ -133,7 +145,8 @@ fixed: false }, toTop: { - offset: 100 + offset: 100, + bottom: 300 } }, shopWidth: '346rpx', @@ -350,4 +363,26 @@ color: $-color-primary; } } + + .sel-spec { + background-color: #FF2C3C; + color: #fff; + border-radius: 20rpx; + width: 100rpx; + text-align: center; + font-size: 24rpx; + padding: 10rpx; + } + + .footer { + width: 80%; + position: fixed; + bottom: calc(80rpx + env(safe-area-inset-bottom)); + left: 50%; + transform: translateX(-50%); + color: #fff; + background-color: #FF2C3C; + padding: 20rpx; + border-radius: 20rpx; + } \ No newline at end of file