main
parent
0b9c37b446
commit
79d992ba8b
@ -0,0 +1,64 @@ |
||||
<template> |
||||
<view class="xieyi"> |
||||
<image :src="obj.store_image_url" mode="widthFix"></image> |
||||
<view class="title"> |
||||
{{obj.store_name}} |
||||
</view> |
||||
<view class=""> |
||||
{{obj.describe}} |
||||
</view> |
||||
<!-- <u-parse :html="obj.describe"></u-parse> --> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import StoreApi from '@/api/store' |
||||
export default{ |
||||
data(){ |
||||
return{ |
||||
|
||||
obj:{ |
||||
store_image_url:'', |
||||
store_name:'',// 名称标题 |
||||
describe:'', //介绍 |
||||
} |
||||
} |
||||
}, |
||||
methods:{ |
||||
|
||||
}, |
||||
onLoad(option) { |
||||
StoreApi.data().then(result => { |
||||
console.log(result,"lkjh") |
||||
this.obj.store_image_url = result.data.storeInfo.store_image_url; |
||||
this.obj.store_name = result.data.storeInfo.store_name; |
||||
this.obj.describe = result.data.storeInfo.describe; |
||||
// if(option.id==1){ |
||||
// uni.setNavigationBarTitle({ |
||||
// title: '用户协议' // 页面标题文本 |
||||
// }); |
||||
// this.content = result.data.storeInfo.YHXY |
||||
// }else if(option.id==2){ |
||||
// uni.setNavigationBarTitle({ |
||||
// title: '隐私政策' // 页面标题文本 |
||||
// }); |
||||
// this.content = result.data.storeInfo.YSZC |
||||
// } |
||||
}) |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss" scoped> |
||||
.xieyi{ |
||||
padding:24rpx; |
||||
image{ |
||||
width:100%; |
||||
height:auto; |
||||
} |
||||
.title{ |
||||
font-size:32rpx; |
||||
padding:10rpx 0; |
||||
} |
||||
} |
||||
</style> |
Loading…
Reference in new issue