Commit e64f93b2 by 岑成威

fix: 更改隐私协议时机

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