navigateTo跳转传参

 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')
				}
			}
		},

你可能感兴趣的:(javascript,前端,开发语言)