提交app
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
<!-- @click="jump('about')" -->
|
||||
<view class="mine-nav" style="border-bottom: none">
|
||||
<view class="mine-nav-label">版本信息</view>
|
||||
<view style="color: #828282; font-size: 14rpx">当前版本V<1.6.7</view>
|
||||
<view style="color: #828282; font-size: 14rpx">当前版本V{{ version }}</view>
|
||||
<!-- <uni-icons type="forward" color="#aaa" size="20"></uni-icons> -->
|
||||
</view>
|
||||
<view class="mine-nav" @click="jump('layout')" style="margin-top: 20rpx; border-bottom: none">
|
||||
@@ -64,10 +64,19 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
version: '1.0.0',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async init() {},
|
||||
async init() {
|
||||
const isDev = process.env.NODE_ENV === 'development'
|
||||
if (isDev) {
|
||||
return console.log('开发环境,不执行更新检查')
|
||||
}
|
||||
plus.runtime.getProperty(plus.runtime.appid, (info) => {
|
||||
this.version = info.version // 当前本地版本号
|
||||
})
|
||||
},
|
||||
jump(type) {
|
||||
switch (type) {
|
||||
case 'changePwd':
|
||||
|
||||
Reference in New Issue
Block a user