From 3e84a2c746727e91b25dca19e5c289fa594c2132 Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期二, 22 七月 2025 18:12:46 +0800 Subject: [PATCH] 解决bug --- config/api.js | 27 +++++++++---- vue.config.js | 38 +++++++++--------- pages.json | 6 ++ pages/cart/coupon/myCoupon.vue | 11 ++++- pages/commodity-square/commoditySquare.vue | 8 ++- 5 files changed, 55 insertions(+), 35 deletions(-) diff --git a/config/api.js b/config/api.js index 6e032b5..79f8add 100644 --- a/config/api.js +++ b/config/api.js @@ -10,18 +10,27 @@ // store: "http://192.168.0.15:8889", // common: "http://192.168.0.113:8890", // buyer: "http://192.168.0.113:8888", - // im: "http://192.168.0.113:8885", - im: "http://1.95.67.54:888", - common: "http://1.95.67.54:888", - buyer: "http://1.95.67.54:888", - store: "http://1.95.67.54:888", + // im: "http://192.168.0.113:8885",s + im: "https://myk.9village.cn", + common: "https://myk.9village.cn", + buyer: "https://myk.9village.cn", + store: "https://myk.9village.cn", + // im: "https://www.meiyikuang.com/mykapi", + // common: "https://www.meiyikuang.com/mykapi", + // buyer: "https://www.meiyikuang.com/mykapi", + // store: "https://www.meiyikuang.com/mykapi", + }; // 鐢熶骇鐜 const prod = { - im: "http://1.95.67.54:888", - common: "http://1.95.67.54:888", - buyer: "http://1.95.67.54:888", - store: "http://1.95.67.54:888", + // im: "http://1.95.67.54:888", + // common: "http://1.95.67.54:888", + // buyer: "http://1.95.67.54:888", + // store: "http://1.95.67.54:888", + im: "https://myk.9village.cn", + common: "https://myk.9village.cn", + buyer: "https://myk.9village.cn", + store: "https://myk.9village.cn", }; //榛樿鐢熶骇鐜 diff --git a/pages.json b/pages.json index 4c5472b..41ae757 100644 --- a/pages.json +++ b/pages.json @@ -1438,7 +1438,11 @@ { "path": "coupon/index", "style": { - "navigationBarTitleText": "浼樻儬鍒�" + "navigationBarTitleText": "浼樻儬鍒�", + "componentPlaceholder": { + "u-tabs": "view", + "u-empty": "view" + } } }, { diff --git a/pages/cart/coupon/myCoupon.vue b/pages/cart/coupon/myCoupon.vue index 80ffe7c..8193706 100644 --- a/pages/cart/coupon/myCoupon.vue +++ b/pages/cart/coupon/myCoupon.vue @@ -247,9 +247,14 @@ * 绔嬪嵆浣跨敤浼樻儬鍒� */ useItNow(item) { - uni.navigateTo({ - url: `/pages/navigation/search/searchPage?promotionsId=${item.couponId}&promotionType=COUPON`, - }); + + console.log('浼樻儬鍗疯鎯�--------------------->',JSON.stringify(item)) + // uni.navigateTo({ + // url: `/pages/navigation/search/searchPage?promotionsId=${item.couponId}&promotionType=COUPON`, + // }); + uni.navigateTo({ + url: '/pages/commodity-square/commoditySquare' + }); }, /** diff --git a/pages/commodity-square/commoditySquare.vue b/pages/commodity-square/commoditySquare.vue index 68da6c9..7001caf 100644 --- a/pages/commodity-square/commoditySquare.vue +++ b/pages/commodity-square/commoditySquare.vue @@ -17,7 +17,7 @@ </view> <view class="goodsInfos" > - <scroll-view :scroll-y="true" :show-scrollbar="false" style="height: 100%;"> + <scroll-view :scroll-y="true" :show-scrollbar="false" style="height: 100%;" @scrolltolower="loadMoreData()"> <view class="goodsItem" v-for="item in goodsList" :key="item.id" @click.prevent="goToGoodsInfo(item.id)" @@ -246,6 +246,7 @@ }, //瑙﹀簳鑾峰彇鏁版嵁 async loadMoreData() { + console.log("瑙﹀簳鍔犺浇------------銆�",this.maxPages) if (this.getGoodsParam.pageNumber < this.maxPages) { this.getGoodsParam.pageNumber++; await this.getgoodsData() @@ -285,8 +286,9 @@ item.cardNum = cardItem.num; } }) - this.goodsList = goodsList.data.result.records; - console.log('this.goodsList----------------------->',JSON.stringify(this.goodsList)) + this.goodsList = [...this.goodsList,...goodsList.data.result.records]; + this.maxPages = goodsList.data.result.pages + console.log('this.goodsList----------------------->',JSON.stringify(goodsList.data.result)) }, async chooseCategory(id) { diff --git a/vue.config.js b/vue.config.js index 02de6ab..5716f5e 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,21 +1,21 @@ -module.exports = { - /** - * 姝ゅ涓哄彂琛宧5,寰俊灏忕▼搴忥紝app涓垹闄onsole - * 濡傞渶鏄剧ずconsole 闇�瑕佹敞閲婃澶勯噸鏂拌繍琛� - */ - chainWebpack: (config) => { - // 鍙戣鎴栬繍琛屾椂鍚敤浜嗗帇缂╂椂浼氱敓鏁� - config.optimization.minimizer('terser').tap((args) => { - const compress = args[0].terserOptions.compress - // 闈� App 骞冲彴绉婚櫎 console 浠g爜(鍖呭惈鎵�鏈� console 鏂规硶锛屽 log,debug,info...) - compress.drop_console = true - compress.pure_funcs = [ - '__f__', // App 骞冲彴 vue 绉婚櫎鏃ュ織浠g爜 - // 'console.debug' // 鍙Щ闄ゆ寚瀹氱殑 console 鏂规硶 - ] - return args - }) +// module.exports = { +// /** +// * 姝ゅ涓哄彂琛宧5,寰俊灏忕▼搴忥紝app涓垹闄onsole +// * 濡傞渶鏄剧ずconsole 闇�瑕佹敞閲婃澶勯噸鏂拌繍琛� +// */ +// chainWebpack: (config) => { +// // 鍙戣鎴栬繍琛屾椂鍚敤浜嗗帇缂╂椂浼氱敓鏁� +// config.optimization.minimizer('terser').tap((args) => { +// const compress = args[0].terserOptions.compress +// // 闈� App 骞冲彴绉婚櫎 console 浠g爜(鍖呭惈鎵�鏈� console 鏂规硶锛屽 log,debug,info...) +// compress.drop_console = true +// compress.pure_funcs = [ +// '__f__', // App 骞冲彴 vue 绉婚櫎鏃ュ織浠g爜 +// // 'console.debug' // 鍙Щ闄ゆ寚瀹氱殑 console 鏂规硶 +// ] +// return args +// }) - } -} \ No newline at end of file +// } +// } \ No newline at end of file -- Gitblit v1.8.0