| | |
| | | <view class="cell"> |
| | | <view class="name">账号</view> |
| | | <view class="input-box"> |
| | | <input type="text" v-model="names" placeholder="请输入账号" class="ipt" placeholder-class="hold" |
| | | <input type="text" v-model="names" placeholder="帐号为姓+身份证后4位" class="ipt" placeholder-class="hold" |
| | | @blur="handleInputCheck" /> |
| | | </view> |
| | | </view> |
| | |
| | | disabled: true |
| | | } |
| | | }, |
| | | onLoad() { |
| | | //检查应用版本号 |
| | | console.log("版本号为++++"+ plus.runtime.versionCode) |
| | | var code = plus.runtime.versionCode; |
| | | // uni.showToast({ |
| | | // title: '提交成功'+code, |
| | | // duration: 2000 |
| | | // }); |
| | | var that = this; |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + '/version/detail?id=1', |
| | | method: 'GET', |
| | | success: (res) => { |
| | | if(res.data.data.version > code){ |
| | | that.ccc(res.data.data); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | computed: { |
| | | OURpass() { |
| | | return this.$store.state.loging; |
| | | } |
| | | }, |
| | | methods: { |
| | | ccc(data) { |
| | | let content =data.content; |
| | | var url = data.address; |
| | | this.$u.route("/uview-ui/components/u-full-screen/u-full-screen?content=" + content + |
| | | "&src="+url); |
| | | }, |
| | | judgeUse() { |
| | | |
| | | // var main = plus.android.runtimeMainActivity();//获取当前的Activity |