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' ENV = 'production'
VUE_APP_BASE_API = 'https://jiqu-library.peidikeji.cn/api' # 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.abcdefg.fun/api'

View File

@ -30,9 +30,12 @@ export default {
}) })
}, },
toBack() { toBack() {
uni.navigateBack({ // uni.redirectTo({
delta: 4, // url: '/pageB/select_store/index'
}); // })
uni.reLaunch({
url: '/pageB/select_store/index'
})
}, },
toSwitchTab() { toSwitchTab() {
uni.switchTab({ uni.switchTab({

View File

@ -77,7 +77,7 @@
<!-- 删除提示 --> <!-- 删除提示 -->
<cu-modal <cu-modal
v-model="delShow" v-model="delShow"
:content="`确定要删除${selectedCart.length}种商品吗?`" :content="`确定要删除${selectedLength}种商品吗?`"
show-cancel-button show-cancel-button
async-close async-close
@confirm="delConfirm" @confirm="delConfirm"
@ -121,6 +121,9 @@ export default {
return this.cartList.length > 0 && this.cartList.length == this.selectedCart.length; return this.cartList.length > 0 && this.cartList.length == this.selectedCart.length;
}, },
}, },
selectedLength() {
return this.cartList.length;
},
height() { height() {
const { windowHeight, statusBarHeight } = this.$u.sys(); const { windowHeight, statusBarHeight } = this.$u.sys();
@ -130,7 +133,7 @@ export default {
methods: { methods: {
getCartList() { getCartList() {
uni.showLoading() uni.showLoading()
this.$store.dispatch('storeCart/getCartList', { mid: 1 }).then(res => { this.$store.dispatch('storeCart/getCartList', { mid: this.mid }).then(res => {
this.cartList = res this.cartList = res
uni.hideLoading() uni.hideLoading()
}) })