1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <template>
- <view class="head">
- <u-navbar :border-bottom="false"></u-navbar>
- <view class="content">
- <view style="text-align: center;">
- <image src="../../static/192x192.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>
- </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) => {
- 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>
|