1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <template>
- <view class="box">
- <view class="img text-center mt-50">
- <image src="../../static/logo-1.png" mode=""></image>
- </view>
- <view class="mt-20 mb-80 text-center gray-2">
- 版本号v{{version}}
- </view>
- <u-cell-item :title="item.title" v-for="(item,i) in list" :key="i" @click="goDetails(item.id)"></u-cell-item>
- <!-- <u-cell-item title="检查版本更新" :value="version"></u-cell-item> -->
- <view class="fixed-bottom text-center gray-2 pb-30">
- Copyright © 2011-2021
- </view>
- </view>
- </template>
- <script>
- var _this;
- export default {
- data() {
- return {
- version:'1.0.0',
- list:[]
- }
- },
- onLoad() {
- _this = this;
- //#ifdef APP-PLUS
- plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
- _this.version = wgtinfo.version;
- });
- //#endif
- this.init()
- },
- methods: {
- init(){
- this.$http('/addons/ddrive/message/notice',{
- category_id: 5
- },"POST").then(data=>{
- console.log(data);
- this.list = data.list_array
- })
- },
- goDetails(id){
- uni.navigateTo({
- url:'/pages/my/help/details?id=' + id
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- /deep/.u-cell_title{
- font-weight: 400 !important;
- }
- .box{
- width: 100%;
- height: 100vh;
- overflow: hidden;
- }
- .img{
- image{
- width: 224rpx;
- height: 224rpx;
- }
- }
- </style>
|