公司小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.5 KiB

<template>
<view class="main">
<view class="back" />
<u-navbar
title="大富翁区域"
:safeAreaInsetTop="true"
:fixed="true"
bgColor="#FFFFFF00"
:placeholder="true"
@leftClick="onTouchBack"
>
</u-navbar>
<view class="box">
<text class="title">{{pageData.title}}</text>
<!--<text class="time">{{this.$utils.formatTime(pageData.inserttime)}}</text>-->
<view style="height: 50rpx;" />
<u-parse :content="pageData.textmsg" :tagStyle="style"/>
<view style="height: 50rpx;" />
</view>
</view>
</template>
<script>
import SkipData from '@/common/SkipData.js'
import { post } from "@/common/api.js"
var Define = getApp().globalData.Define;
var pageData = new SkipData();
var isLoaded = false;
export default {
onLoad() {
let self = this;
post('pages/areapartner',{}).then(res=>{
var info = Define.onNetMessage(res);
if(!info){
return;
}
var areaskip = info.areaskip;
for(var key in areaskip){
pageData[key] = areaskip[key];
}
console.log("收到大富翁区域的数据:",pageData);
this.isLoaded = true;
});
},
data() {
return {
pageData,
isLoaded,
style : {
p : 'text-indent:50rpx;margin:5rpx;',
},
};
},
methods:{
onTouchBack(){
uni.navigateBack({
})
},
}
}
</script>
<style lang="scss" scoped>
.box{
width: 702rpx;
height: auto;
border-radius: 20rpx;
//background-color: #FFFFFF;
position: relative;
left: 24rpx;
top: 10rpx;
}
.image{
width: 702rpx;
height: 689rpx;
}
</style>