123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <template>
- <view class="head">
- <u-navbar :border-bottom="false"></u-navbar>
- <view class="content">
- <view style="text-align: center;">
- <image src="../../static/uview/common/logo.png" mode="" style="width: 200rpx;height: 200rpx;"></image>
- <h3>{{name}}</h3>
- <view>version:{{version}}</view>
- </view>
- <view class="u-m-t-20">
- <u-cell-group>
- <u-cell-item icon="setting" title="检查更新" @click="checkVersion"></u-cell-item>
- </u-cell-group>
- </view>
- </view>
- <view style="width: 100%;position:fixed; bottom:200rpx;padding: 0;">
- <view style="width: 92%;margin: 0 auto;">
- <u-button type="primary" @click="logOut">退出登录</u-button>
- </view>
- <view style="width: 100%;position:fixed;bottom:20rpx;background-color: #FFFFFF;text-align: center;">
- <view>
- {{name}}软件许可及服务协议
- </view>
- <view style="color: #2796F2;">
- 《隐私保护指引》
- </view>
- <view>
- 青岛途宝软件开发有限公司提供服务
- </view>
- </view>
- </view>
- </u-modal>
- <!-- 更新组件 force 是否强制更新 tabbar:页面是否有原生tabbar组件-->
- <app-update ref="app_update" :force="false" :tabbar="false"></app-update>
- </view>
- </template>
- <script>
- import appUpdate from "@/components/yzhua006-update/app-update.vue"
- export default {
- components: {
- appUpdate
- },
- data() {
- return {
- name: '获取失败',
- version: '获取失败'
- }
- },
- onLoad() {
- },
- created() {
- // #ifdef APP-PLUS
- plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
- console.log(wgtinfo)
- this.version = wgtinfo.version
- this.name = wgtinfo.name
- })
- //#endif
- },
- onBackPress(e){
- console.log(e.from)
- if(e.from == 'backbutton'){
- return true
- }
- },
- methods: {
- logOut() {
- uni.clearStorageSync();
- uni.redirectTo({
- url: '/pages/login/login'
- });
- },
- checkVersion() {
- this.$refs.app_update.update();//调用子组件 检查更新
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .content {
- width: 96%;
- margin: 140rpx auto;
- }
- .head ::v-deep.u-navbar-inner{
- z-index: -99999;
- }
- </style>
|