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