diff --git a/components/certifiedCj/certifiedCj.vue b/components/certifiedCj/certifiedCj.vue index af123df..d2df719 100644 --- a/components/certifiedCj/certifiedCj.vue +++ b/components/certifiedCj/certifiedCj.vue @@ -27,7 +27,7 @@ } }, created() { - this.imgUrl = uni.getStorageSync('img_url') + this.imgUrl = uni.getStorageSync('img_url') this.getCertifiedCj() }, methods: { diff --git a/packageReport/certifiedCj/certifiedCj.vue b/packageReport/certifiedCj/certifiedCj.vue index 77b7c17..0753f72 100644 --- a/packageReport/certifiedCj/certifiedCj.vue +++ b/packageReport/certifiedCj/certifiedCj.vue @@ -31,7 +31,7 @@ } }, onLoad() { - this.imgUrl = uni.getStorageSync('img_url') + this.imgUrl = uni.getStorageSync('img_url') this.getCertifiedCj() }, onReachBottom() { diff --git a/pages/detail/productsDetail/productsDetail.vue b/pages/detail/productsDetail/productsDetail.vue index 7204415..2ca3ecd 100644 --- a/pages/detail/productsDetail/productsDetail.vue +++ b/pages/detail/productsDetail/productsDetail.vue @@ -124,7 +124,7 @@ } }, onLoad(option) { - this.imgUrl = uni.getStorageSync('img_url') + this.imgUrl = uni.getStorageSync('img_url') this.id = option.id this.getProductDetail() this.getCsTel() @@ -139,7 +139,7 @@ //获取详情信息 getProductDetail() { this.$apiServe.getProductDetail(this.id).then(res => { - console.log('产品详情mtype', res.data.data.mytpe); + console.log('产品详情mtype', res.data.data); let detail = res.data.data let dataCode = res.data.code //授权登录拦截 diff --git a/pages/index/index.vue b/pages/index/index.vue index 55a7f6b..0d1c2fe 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -24,7 +24,9 @@ - + @@ -64,6 +66,7 @@ initStart: false, swiperList: [], reachBottomLength: '', + currentNum: '' } }, onReachBottom() { @@ -81,7 +84,7 @@ }, methods: { init() { - this.imgUrl = uni.getStorageSync('img_url') + this.imgUrl = uni.getStorageSync('img_url') this.getCategories() this.getBanner() wx.showShareMenu({ @@ -144,6 +147,13 @@ this.swiperList = res.data.data }).finally(_ => {}) }, + //点击轮播图 + handleSwiperList(currentNum, swiperList) { + swiperList[currentNum].link = swiperList[currentNum].link.replace(/\s*/g, "") + uni.navigateTo({ + url: '/' + swiperList[currentNum].link + }) + }, //点击搜索框跳转到搜索页面 toSearch() { uni.navigateTo({