diff --git a/.env.production b/.env.production index c36eacc..1a032b7 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,6 @@ ENV = 'production' -VUE_APP_BASE_API = 'https://jiqu-library.peidikeji.cn/api' -# VUE_APP_BASE_API = 'https://jiqu-library.abcdefg.fun/api' +# VUE_APP_BASE_API = 'https://jiqu-library.peidikeji.cn/api' +VUE_APP_BASE_API = 'https://jiqu-library.abcdefg.fun/api' diff --git a/src/pageB/code/index.vue b/src/pageB/code/index.vue index 618e403..06ca41a 100644 --- a/src/pageB/code/index.vue +++ b/src/pageB/code/index.vue @@ -30,9 +30,12 @@ export default { }) }, toBack() { - uni.navigateBack({ - delta: 4, - }); + // uni.redirectTo({ + // url: '/pageB/select_store/index' + // }) + uni.reLaunch({ + url: '/pageB/select_store/index' + }) }, toSwitchTab() { uni.switchTab({ diff --git a/src/pageB/select_product/cart.vue b/src/pageB/select_product/cart.vue index 01c77a4..2a082fe 100644 --- a/src/pageB/select_product/cart.vue +++ b/src/pageB/select_product/cart.vue @@ -77,7 +77,7 @@ 0 && this.cartList.length == this.selectedCart.length; }, }, + selectedLength() { + return this.cartList.length; + }, height() { const { windowHeight, statusBarHeight } = this.$u.sys(); @@ -130,7 +133,7 @@ export default { methods: { getCartList() { uni.showLoading() - this.$store.dispatch('storeCart/getCartList', { mid: 1 }).then(res => { + this.$store.dispatch('storeCart/getCartList', { mid: this.mid }).then(res => { this.cartList = res uni.hideLoading() })