From fc3387081112ed5eb7633a85e327032557d6c56f Mon Sep 17 00:00:00 2001 From: yangjie <812952667@qq.com> Date: Mon, 10 May 2021 10:15:31 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=94=BE=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 12 ++++++------ pages/goods/goods.vue | 15 +++++++++++---- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/App.vue b/App.vue index 0368922..80e20c0 100644 --- a/App.vue +++ b/App.vue @@ -5,13 +5,13 @@ // brestUrl: 'http://192.168.3.4:9302/brest', // imgUrl: 'https://192.168.3.4:9301/filesystem/', //正式 - url: 'https://hsg.dctpay.com/crest', - imgUrl: 'https://hsg.dctpay.com/filesystem/', - brestUrl : 'https://hsg.dctpay.com/brest', + // url: 'https://hsg.dctpay.com/crest', + // imgUrl: 'https://hsg.dctpay.com/filesystem/', + // brestUrl : 'https://hsg.dctpay.com/brest', //测试 - // url: 'https://hsgcs.dctpay.com/crest', - // brestUrl : 'https://hsgcs.dctpay.com/brest', - // imgUrl: 'https://hsgcs.dctpay.com/filesystem/', + url: 'https://hsgcs.dctpay.com/crest', + brestUrl : 'https://hsgcs.dctpay.com/brest', + imgUrl: 'https://hsgcs.dctpay.com/filesystem/', userInfo: "", brestUserInfo : '', diff --git a/pages/goods/goods.vue b/pages/goods/goods.vue index 3790a46..1bbbc76 100644 --- a/pages/goods/goods.vue +++ b/pages/goods/goods.vue @@ -12,8 +12,8 @@ - - + + {{currentSwiper+1}}/{{swiperList.length}} @@ -21,7 +21,7 @@ ¥{{goodsData[0].discountPrice}} ¥{{goodsData[0].salesPrice}} @@ -86,7 +86,7 @@ ———— 商品详情 ———— - + @@ -189,6 +189,13 @@ } }) }, + //查看大图 + perImage(item) { + uni.previewImage({ + current: 0, //预览图片的下标 + urls: [this.imageUrl+item] //预览图片的地址,必须要数组形式,如果不是数组形式就转换成数组形式就可以 + }) + }, //商品跳转 // toGoods(e) { // console.log('=========='+e);