2、首页:定位下移至餐厅推荐旁,并把展示文字由全国更换为地区筛选(包括省市的组件中的文字修改。) 3、首页:平台推荐改为餐厅推荐 4、餐厅推荐的加载更多 5、首页金刚区的三个入口的底图更换,文字更换,展示位置调整将买酱料放到左侧
55 lines
1.1 KiB
Vue
55 lines
1.1 KiB
Vue
<template>
|
|
<s-layout title="法律声明">
|
|
<view style="padding: 30rpx;">
|
|
<rich-text style="text-align: justify;" :nodes="legal_notice_agreement"></rich-text>
|
|
</view>
|
|
</s-layout>
|
|
</template>
|
|
|
|
<script setup>
|
|
import {
|
|
ref,
|
|
reactive
|
|
} from 'vue'
|
|
import {
|
|
onLoad,
|
|
onShow,
|
|
} from '@dcloudio/uni-app';
|
|
import sheep from '@/sheep';
|
|
import rent from '../../sheep/api/rent';
|
|
|
|
const rentId = ref('');
|
|
const legal_notice_agreement = ref('');
|
|
|
|
onLoad((options) => {
|
|
console.log('options', options.id);
|
|
if (options.id) {
|
|
rentId.value = options.id;
|
|
getDetail();
|
|
}
|
|
})
|
|
|
|
function getDetail() {
|
|
sheep.$api.rent.rentInfo(rentId.value).then((res) => {
|
|
console.log('获取招租详情', res);
|
|
if (res.code == 1) {
|
|
legal_notice_agreement.value = res.data.detail.legal_notice_agreement;
|
|
console.log(' legal_notice_agreement', legal_notice_agreement.value);
|
|
} else {
|
|
sheep.$helper.toast(res.msg);
|
|
// uni.showToast({
|
|
// title: res.msg,
|
|
// icon: 'none'
|
|
// })
|
|
}
|
|
}).catch((error) => {
|
|
console.log('error: ', error);
|
|
// 'error: ',
|
|
// error;
|
|
})
|
|
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
</style> |