增加版本

h5
wangdong 10 months ago
parent 88cfd930bd
commit 33fa7e04b9
  1. 7
      pages/news1/setting.vue

@ -68,7 +68,7 @@
<view class="name-text"> <view class="name-text">
当前版本 当前版本
</view> </view>
<text>{{ systemInfo.version }}</text> <text>{{ accountInfo.miniProgram.version }}</text>
</view> </view>
</view> </view>
<view class="box" style="padding: 0 40rpx;" @click="onOut"> <view class="box" style="padding: 0 40rpx;" @click="onOut">
@ -111,7 +111,7 @@ export default {
imageList: [], imageList: [],
avatar_id: [], avatar_id: [],
nick_name: '', nick_name: '',
systemInfo: {}, accountInfo: {},
}; };
}, },
onShow() { }, onShow() { },
@ -119,8 +119,7 @@ export default {
console.log(uni.getStorageSync("userInfo")) console.log(uni.getStorageSync("userInfo"))
this.info = uni.getStorageSync("userInfo") this.info = uni.getStorageSync("userInfo")
this.genderIndex = this.info.gender == '男' ? 0 : 1 this.genderIndex = this.info.gender == '男' ? 0 : 1
this.systemInfo = uni.getSystemInfoSync(); this.accountInfo = uni.getAccountInfoSync();
console.log({...this.systemInfo});
}, },
methods: { methods: {
formSubmit(e) { formSubmit(e) {

Loading…
Cancel
Save