Commit 5e609892 authored by zhengke's avatar zhengke

修改

parent 7e05c2d7
<template>
<view class="near-good" @click="goDetail">
<image :src="goodItem.CoverImg" mode="aspectFill"></image>
<view class="good-name">{{goodItem.Name}}</view>
<view class="good-name">{{goodItem.Name.substring(0,6)+'...'}}</view>
</view>
</template>
......
......@@ -160,10 +160,10 @@
hotelObj: {}, //酒店信息
}
},
onLoad() {
onLoad(options) {
if (options.hotelObj) {
this.hotelObj = JSON.parse(options.hotelObj);
console.log("this.hotelObj", this.hotelObj)
this.formData = JSON.parse(decodeURIComponent(options.hotelObj));
console.log(this.formData,'this.formData');
}
},
created() {
......
......@@ -319,7 +319,7 @@
openDescription() {
let hotelObj = JSON.stringify(this.dataList);
uni.navigateTo({
url: "/pages/hotel/description?hotelObj="+hotelObj
url: "/pages/hotel/description?hotelObj="+encodeURIComponent(hotelObj)
})
},
//返回周几
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment