123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <template>
- <view class="head">
- <u-navbar :autoBack="true" title="设置" bgColor="#fd5003" leftIconColor="#fff" titleStyle="color:#fff"></u-navbar>
- <view class="content">
- <view style="text-align: center;">
- <image src="../../static/images/logo/logo.png" mode=""
- style="width: 500rpx;height: 160rpx;border-radius: 40rpx;"></image>
- <h3>{{name}}</h3>
- <view>version:{{versionNumber}}</view>
- </view>
- <view class="u-m-t-20" style="margin-top: 100rpx;">
- <u-cell-group>
- <u-cell icon="setting-fill" :isLink="true" title="检查更新" @click="checkVersion"
- :iconStyle="{color: '#fd5003'}"></u-cell>
- </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" text="退出登录" color="#fd5003"></u-button>
- </view>
- <view style="width: 100%;position:fixed;bottom:20rpx;text-align: center;">
- <view>
- {{name}}软件许可及服务协议
- </view>
- <view style="color: #fd5003;">
- 《隐私保护指引》
- </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: '获取失败',
- versionNumber: '获取失败'
- }
- },
- onLoad() {
- },
- created() {
- // #ifdef APP-PLUS
- plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
- this.versionNumber = wgtinfo.version
- this.name = wgtinfo.name
- })
- //#endif
- },
- onBackPress(e) {
- 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{
- padding-top: var(--status-bar-height);
- }
- .head ::v-deep.u-navbar-inner {
- z-index: -99999;
- }
- </style>
|