更改购物车
This commit is contained in:
@@ -54,9 +54,7 @@
|
||||
|
||||
const goBack = () => {
|
||||
try {
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
uni.pro.switchTab('index/index')
|
||||
} catch (error) {
|
||||
uni.pro.switchTab('index/index')
|
||||
//TODO handle the exception
|
||||
|
||||
@@ -63,9 +63,15 @@
|
||||
|
||||
});
|
||||
|
||||
const orderVIP = ref(uni.cache.get('orderVIP'))
|
||||
const orderVIP = ref(null)
|
||||
const emits = defineEmits(['customevent', 'groupChange']);
|
||||
watchEffect(() => {
|
||||
orderVIP.value = uni.cache.get('orderVIP')
|
||||
})
|
||||
|
||||
const orderVIPfun = (data) => {
|
||||
orderVIP.value = data
|
||||
}
|
||||
|
||||
const paymentMethodList = ref([{
|
||||
name: "余额支付",
|
||||
@@ -140,7 +146,8 @@
|
||||
}
|
||||
// 将方法暴露给父组件
|
||||
defineExpose({
|
||||
groupChanges
|
||||
groupChanges,
|
||||
orderVIPfun
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user