src
parent
a33c4d14ac
commit
100a70b950
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue