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.
53 lines
1.1 KiB
53 lines
1.1 KiB
<template>
|
|
<view class="container" :style="{backgroundColor:pageinfo.bgcolor}">
|
|
<dp :pagecontent="pagecontent"></dp>
|
|
<view v-if="copyright!=''" class="copyright">{{copyright}}</view>
|
|
<!-- 悬浮按钮 -->
|
|
<drag-button></drag-button>
|
|
<dp-tabbar :opt="opt"></dp-tabbar>
|
|
<popmsg ref="popmsg"></popmsg>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
var app = getApp();
|
|
export default {
|
|
data() {
|
|
return {
|
|
opt:{},
|
|
loading:false,
|
|
isload: false,
|
|
pageinfo: [],
|
|
pagecontent: [],
|
|
copyright:'',
|
|
}
|
|
},
|
|
onLoad: function (opt) {
|
|
this.opt = app.getopts(opt);
|
|
this.getdata();
|
|
},
|
|
onPullDownRefresh:function(e){
|
|
this.getdata();
|
|
},
|
|
methods: {
|
|
getdata:function(){
|
|
var that = this;
|
|
that.loading = true;
|
|
app.get('ApiMy/usercenter',{},function (data){
|
|
that.loading = false;
|
|
var pagecontent = data.pagecontent;
|
|
that.pageinfo = data.pageinfo;
|
|
that.pagecontent = data.pagecontent;
|
|
that.copyright = data.copyright;
|
|
uni.setNavigationBarTitle({
|
|
title: data.pageinfo.title
|
|
});
|
|
that.loaded();
|
|
});
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style>
|
|
|
|
</style>
|