问题修复
This commit is contained in:
@@ -20,10 +20,14 @@
|
||||
reactive,
|
||||
ref
|
||||
} from 'vue';
|
||||
import {
|
||||
onLoad
|
||||
} from '@dcloudio/uni-app';
|
||||
|
||||
const list = ref([])
|
||||
const query = reactive({
|
||||
shopName: ''
|
||||
shopName: '',
|
||||
shopId:''
|
||||
})
|
||||
async function getData() {
|
||||
const res = await shopList(query)
|
||||
@@ -38,12 +42,14 @@
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
|
||||
function toDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/user/member/billDetails?type=2&shopId=' + item.shopId
|
||||
})
|
||||
}
|
||||
onLoad((opt) => {
|
||||
Object.assign(query, opt)
|
||||
})
|
||||
// function toDetail(item) {
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/user/member/billDetails?type=2&shopId=' + item.shopId
|
||||
// })
|
||||
// }
|
||||
onMounted(getData)
|
||||
</script>
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
|
||||
function toShopList(){
|
||||
uni.navigateTo({
|
||||
url:'/pages/user/member/czzx-shop-list'
|
||||
url:'/pages/user/member/czzx-shop-list?shopId='+option.shopId
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user