From 8ca0626275ba0a288a20cba2aeb9599e2992be00 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Sun, 21 Jan 2024 09:54:09 +0800 Subject: [PATCH] 11111111 --- common/config.js | 4 +- pages/home/myCellar.vue | 432 +++++++++++++++++++++++----------------- 2 files changed, 246 insertions(+), 190 deletions(-) diff --git a/common/config.js b/common/config.js index ba87c1f..625f57d 100644 --- a/common/config.js +++ b/common/config.js @@ -6,9 +6,9 @@ * loginTimeoutPage = "/pages/login/index", // 登录超时或失效的情况下,跳转到的登录页面 */ module.exports = { - baseUrl: 'http://192.168.2.106:7211', // 本地 + // baseUrl: 'http://9jb9ws.natappfree.cc', // 本地 // baseUrl: 'https://lpk.yyundong.com/lpkapi', // 测试服务器 - // baseUrl: 'https://lpk.yyundong.com/mallapi', // 测试服务器 + baseUrl: 'https://lpk.yyundong.com/mallapi', // 测试服务器 // baseUrl: 'https://supervise.yxtsoft.com/lpkapi', // 正式服务器 tokenName: "Authorization", // 请求头中token的名字,与服务器端对应 loginTimeoutCode: "5001", // 登录超时或失效的情况下,服务器端返回的错误码 diff --git a/pages/home/myCellar.vue b/pages/home/myCellar.vue index 7cb26e6..336fcc9 100644 --- a/pages/home/myCellar.vue +++ b/pages/home/myCellar.vue @@ -1,83 +1,85 @@ @@ -306,6 +321,9 @@ showModal: false, showModal2: false, showModal3: false, + scrollHeight: "", + scrollLeftTop: "0", + scrollRightTop: "0", brandType: "0", styleObject: { // 'position': 'fixed', @@ -369,8 +387,8 @@ this.request() this.page.count = 0 }, + onLoad(options) { - onLoad() { this.shareSid = options.shareSid console.log("shareSid>>>>", this.shareSid); @@ -393,9 +411,10 @@ } }, + labelClick(index, item) { this.selectIndex = index - this.brandType = item.sid + this.brandType = item.id this.pickingUpGoods = [] this.page.count = 0 this.getgoods() @@ -412,6 +431,7 @@ _this.baseDataSuccess = true _this.getgoods() + _this.selectIndex = 0 }).catch(e => { _this.$nextTick(() => { _this.$refs.pageView.setLoadState(1) @@ -512,9 +532,6 @@ } }, - colseDialog() { - this.showModal = false - }, showGift() { let _this = this @@ -584,19 +601,31 @@ }).catch(e => {}) } + + } } \ No newline at end of file