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);