diff --git a/pages/goods/goods.js b/pages/goods/goods.js index ad05abf..6d25c8e 100644 --- a/pages/goods/goods.js +++ b/pages/goods/goods.js @@ -20,8 +20,6 @@ Page({ openAttr: false, soldout: false, disabled: '', - is_show: 0, - endLoad: true, alone_text: '单独购买', userId: 0, priceChecked: false, @@ -69,17 +67,6 @@ Page({ current: current }) }, - getDetailInfo: function() { - let that = this; - let goods = that.data.goods; - WxParse.wxParse('goodsDetail', 'html', goods.goods_desc, that); - that.setData({ - is_show: 1 - }); - that.setData({ - endLoad: false - }); - }, inputNumber(event) { let number = event.detail.value; this.setData({ @@ -138,6 +125,7 @@ Page({ galleryImages: galleryImages, loading:1 }); + WxParse.wxParse('goodsDetail', 'html', res.data.info.goods_desc, that); wx.setStorageSync('goodsImage', res.data.info.https_pic_url); } else{ @@ -554,19 +542,5 @@ Page({ disabled: true }); } - }, - onReachBottom: function() { - let that = this; - let endLoad = that.data.endLoad; - if (endLoad == true) { - let goods = that.data.goods; - WxParse.wxParse('goodsDetail', 'html', goods.goods_desc, that); - that.setData({ - is_show: 1 - }); - that.setData({ - endLoad: false - }); - } } }) \ No newline at end of file diff --git a/pages/goods/goods.wxml b/pages/goods/goods.wxml index eee9bd5..349beb3 100644 --- a/pages/goods/goods.wxml +++ b/pages/goods/goods.wxml @@ -13,7 +13,7 @@ -