handleTargetDetail(order) {
let orderDetail = encodeURIComponent(JSON.stringify(order));
uni.navigateTo({
url: '/orderdetaile/pages/scshopdetaile?storeId=' + orderDetail,
});
onLoad(options) {
// 外送的的时候清空默认选择
uni.$on('setupCategoryType',()=>{
this.categoryType = '';
})
if(options){
var emptyObj = JSON.stringify(options) == "{}";
if (!emptyObj) {
let obj = JSON.parse(decodeURIComponent(options.storeId));
this.clearStoreCartByChangeStore(obj);
uni.removeStorageSync('cartTotalNum');
this.options = obj;
}else{
console.log('kong')
}
}
},
navigateTo跳转传参
最新推荐文章于 2024-06-24 14:29:34 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)