增加版本

h5
wangdong 10 months ago
parent 5b92e3254d
commit 88cfd930bd
  1. 13
      pages/news1/setting.vue

@ -63,6 +63,12 @@
关于我们 关于我们
</view> </view>
<u-icon style="margin-left: 5rpx; color: #8A8A8A" name="arrow-right"></u-icon> <u-icon style="margin-left: 5rpx; color: #8A8A8A" name="arrow-right"></u-icon>
</view>
<view class="box-avter conten-height" style="border: none;">
<view class="name-text">
当前版本
</view>
<text>{{ systemInfo.version }}</text>
</view> </view>
</view> </view>
<view class="box" style="padding: 0 40rpx;" @click="onOut"> <view class="box" style="padding: 0 40rpx;" @click="onOut">
@ -104,14 +110,17 @@ export default {
info: '', info: '',
imageList: [], imageList: [],
avatar_id: [], avatar_id: [],
nick_name: '' nick_name: '',
systemInfo: {},
}; };
}, },
onShow() { }, onShow() { },
onLoad(params) { onLoad(params) {
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();
console.log({...this.systemInfo});
}, },
methods: { methods: {
formSubmit(e) { formSubmit(e) {

Loading…
Cancel
Save