|
@ -27,6 +27,14 @@ |
|
|
</navigator> |
|
|
</navigator> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<u-modal :show="showLogOut" :confirmText="i18n.Versionupdate" :cancelText="i18n.Cancel" :showCancelButton="false" |
|
|
|
|
|
@confirm="logOut" @cancel="showLogOut=false" confirmColor="#00E8A2" cancelColor="#96959E"> |
|
|
|
|
|
<view class="slot-content" v-html="conInfo.info"> |
|
|
|
|
|
<rich-text></rich-text> |
|
|
|
|
|
</view> |
|
|
|
|
|
</u-modal> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -37,6 +45,8 @@ |
|
|
name: 'login', |
|
|
name: 'login', |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
conInfo: {}, |
|
|
|
|
|
showLogOut: false, |
|
|
// 邮箱号码是否正确 |
|
|
// 邮箱号码是否正确 |
|
|
isCanGetCode: false, |
|
|
isCanGetCode: false, |
|
|
userInfo: { |
|
|
userInfo: { |
|
@ -73,9 +83,64 @@ |
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad() { |
|
|
// console.log(this.$t('login.emailInputMessage')); |
|
|
// console.log(this.$t('login.emailInputMessage')); |
|
|
|
|
|
// #ifdef APP-PLUS |
|
|
|
|
|
this.appVersion() |
|
|
|
|
|
// #endif |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
onShow() { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onShow() {}, |
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
logOut() { |
|
|
|
|
|
plus.runtime.openURL(this.conInfo.appUrl); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 校验APP应用版本 |
|
|
|
|
|
appVersion() { |
|
|
|
|
|
console.log("校验APP应用版本", uni.getSystemInfoSync().platform) |
|
|
|
|
|
// console.log('ss' + JSON.stringify(uni.getSystemInfoSync())) |
|
|
|
|
|
// const response = await this.$api.appVersion(param) |
|
|
|
|
|
// console.log(response) |
|
|
|
|
|
|
|
|
|
|
|
plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => { |
|
|
|
|
|
console.log('当前版本号' + wgtinfo.versionCode) |
|
|
|
|
|
console.log(wgtinfo) |
|
|
|
|
|
// console.log((wgtinfo.versionCode < response.versionCode)) |
|
|
|
|
|
// console.log(wgtinfo.versionCode, response.versionCode) |
|
|
|
|
|
let param = { |
|
|
|
|
|
'appId': uni.getSystemInfoSync().platform, |
|
|
|
|
|
'versionCode': wgtinfo.version |
|
|
|
|
|
} |
|
|
|
|
|
console.log(param) |
|
|
|
|
|
this.$api.appVersion(param).then(response => { |
|
|
|
|
|
console.log(response) |
|
|
|
|
|
if (!response.isUpgrade) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
if (wgtinfo.version < response.versionCode) { |
|
|
|
|
|
// console.log('更新了吗') |
|
|
|
|
|
let that = this; |
|
|
|
|
|
this.conInfo = response |
|
|
|
|
|
this.showLogOut=true |
|
|
|
|
|
// uni.showModal({ |
|
|
|
|
|
// title: this.$t("login").Versionupdate, |
|
|
|
|
|
// content: response.info, |
|
|
|
|
|
// showCancel: false, |
|
|
|
|
|
// success: function(res) { |
|
|
|
|
|
// if (res.confirm) { |
|
|
|
|
|
// plus.runtime.openURL(response.appUrl); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// }); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 登录 |
|
|
// 登录 |
|
|
login() { |
|
|
login() { |
|
|
if (!this.isCanGetCode) { |
|
|
if (!this.isCanGetCode) { |
|
@ -111,6 +176,22 @@ |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
|
|
|
|
|
|
|
|
|
/deep/ .u-modal__content__text { |
|
|
|
|
|
color: #96959E !important; |
|
|
|
|
|
} |
|
|
|
|
|
/deep/.u-popup__content { |
|
|
|
|
|
background: #323045; |
|
|
|
|
|
|
|
|
|
|
|
.u-modal__title { |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.u-modal__content__text { |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
page { |
|
|
page { |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
background: url(../../static/public/BG.png) no-repeat fixed; |
|
|
background: url(../../static/public/BG.png) no-repeat fixed; |
|
|