6
0
Fork 0
develop
panliang 2023-02-15 15:22:25 +08:00
parent a33c4d14ac
commit 100a70b950
3 changed files with 13 additions and 7 deletions

View File

@ -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'

View File

@ -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({

View File

@ -77,7 +77,7 @@
<!-- 删除提示 -->
<cu-modal
v-model="delShow"
:content="`确定要删除${selectedCart.length}种商品吗?`"
:content="`确定要删除${selectedLength}种商品吗?`"
show-cancel-button
async-close
@confirm="delConfirm"
@ -121,6 +121,9 @@ export default {
return this.cartList.length > 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()
})