Commit e64f93b2 by 岑成威

fix: 更改隐私协议时机

1 parent f83f3435
{ {
"name" : "广爱展业助手", "name" : "零售展业助手",
"appid" : "__UNI__761633C", "appid" : "__UNI__761633C",
"description" : "", "description" : "",
"versionName" : "1.1.0", "versionName" : "1.1.0",
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<view class="form-footer"> <view class="form-footer">
<view <view
class="autoLogin" class="autoLogin"
@click="readingStatus = !readingStatus" @click="toggleReadingStatus"
> >
<uni-icons <uni-icons
:type="`${readingStatus ? 'checkbox-filled' : 'circle'}`" :type="`${readingStatus ? 'checkbox-filled' : 'circle'}`"
...@@ -122,12 +122,15 @@ export default { ...@@ -122,12 +122,15 @@ export default {
}, },
onLoad (options) { onLoad (options) {
if (options.username) this.username = options.username if (options.username) this.username = options.username
const {
deviceId
} = uni.getDeviceInfo()
this.deviceId = deviceId
}, },
methods: { methods: {
toggleReadingStatus () {
this.readingStatus = !this.readingStatus
if (this.readingStatus && !this.deviceId) {
const { deviceId } = uni.getDeviceInfo()
this.deviceId = deviceId
}
},
copyText () { copyText () {
uni.setClipboardData({ uni.setClipboardData({
data: this.deviceId, data: this.deviceId,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!