Commit 5e609892 authored by zhengke's avatar zhengke

修改

parent 7e05c2d7
<template> <template>
<view class="near-good" @click="goDetail"> <view class="near-good" @click="goDetail">
<image :src="goodItem.CoverImg" mode="aspectFill"></image> <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> </view>
</template> </template>
......
...@@ -160,10 +160,10 @@ ...@@ -160,10 +160,10 @@
hotelObj: {}, //酒店信息 hotelObj: {}, //酒店信息
} }
}, },
onLoad() { onLoad(options) {
if (options.hotelObj) { if (options.hotelObj) {
this.hotelObj = JSON.parse(options.hotelObj); this.formData = JSON.parse(decodeURIComponent(options.hotelObj));
console.log("this.hotelObj", this.hotelObj) console.log(this.formData,'this.formData');
} }
}, },
created() { created() {
......
...@@ -319,7 +319,7 @@ ...@@ -319,7 +319,7 @@
openDescription() { openDescription() {
let hotelObj = JSON.stringify(this.dataList); let hotelObj = JSON.stringify(this.dataList);
uni.navigateTo({ 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