|
@@ -19,11 +19,15 @@
|
|
|
<view class="flex-row justify-between self-start equal-division">
|
|
|
<view class="flex-row items-end space-x-4 items-center">
|
|
|
<switch :checked="switchFrom.sign_sms_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchTzSms"/>
|
|
|
- <text class="font_2">短信提醒</text>
|
|
|
+ <text class="font_2">短信</text>
|
|
|
</view>
|
|
|
<view class="flex-row items-end space-x-4 items-center">
|
|
|
<switch :checked="switchFrom.sign_voice_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchTzVoice"/>
|
|
|
- <text class="font_2">电话语音</text>
|
|
|
+ <text class="font_2">电话</text>
|
|
|
+ </view>
|
|
|
+ <view class="flex-row items-end space-x-4 items-center">
|
|
|
+ <switch :checked="switchFrom.sign_horn_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchTzHorn"/>
|
|
|
+ <text class="font_2">喇叭</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex-col">
|
|
@@ -34,7 +38,7 @@
|
|
|
<view class="uni-input">
|
|
|
<text class="font_3">{{ sleepWorn.rh_high }}</text>
|
|
|
<text class="font_4">次/分钟</text>
|
|
|
- <image class="shrink-0 image_7" src="@/static/iconRight.png"/>
|
|
|
+ <text class="icon-right text-white"></text>
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
@@ -46,7 +50,7 @@
|
|
|
<view class="uni-input">
|
|
|
<text class="font_3">{{ sleepWorn.rh_low }}</text>
|
|
|
<text class="font_4">次/分钟</text>
|
|
|
- <image class="shrink-0 image_7" src="@/static/iconRight.png"/>
|
|
|
+ <text class="icon-right text-white"></text>
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
@@ -60,11 +64,15 @@
|
|
|
<view class="flex-row justify-between self-start equal-division">
|
|
|
<view class="flex-row items-end space-x-4 items-center">
|
|
|
<switch :checked="switchFrom.sign_sms_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchTzSms" />
|
|
|
- <text class="font_2">短信提醒</text>
|
|
|
+ <text class="font_2">短信</text>
|
|
|
</view>
|
|
|
<view class="flex-row items-end space-x-4 items-center">
|
|
|
<switch :checked="switchFrom.sign_voice_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchTzVoice"/>
|
|
|
- <text class="font_2">电话语音</text>
|
|
|
+ <text class="font_2">电话</text>
|
|
|
+ </view>
|
|
|
+ <view class="flex-row items-end space-x-4 items-center">
|
|
|
+ <switch :checked="switchFrom.sign_horn_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchTzHorn"/>
|
|
|
+ <text class="font_2">喇叭</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex-col">
|
|
@@ -75,7 +83,7 @@
|
|
|
<view class="uni-input">
|
|
|
<text class="font_3">{{ sleepWorn.hx_high }}</text>
|
|
|
<text class="font_4">次/分钟</text>
|
|
|
- <image class="shrink-0 image_7" src="@/static/iconRight.png"/>
|
|
|
+ <text class="icon-right text-white"></text>
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
@@ -87,7 +95,7 @@
|
|
|
<view class="uni-input">
|
|
|
<text class="font_3">{{ sleepWorn.hx_low }}</text>
|
|
|
<text class="font_4">次/分钟</text>
|
|
|
- <image class="shrink-0 image_7" src="@/static/iconRight.png" />
|
|
|
+ <text class="icon-right text-white"></text>
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
@@ -110,11 +118,15 @@
|
|
|
<view class="flex-row justify-between self-start equal-division">
|
|
|
<view class="flex-row items-end space-x-4 items-center">
|
|
|
<switch :checked="switchFrom.out_of_bed_sms_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchOutSms" />
|
|
|
- <text class="font_2">短信提醒</text>
|
|
|
+ <text class="font_2">短信</text>
|
|
|
</view>
|
|
|
<view class="flex-row items-end space-x-4 items-center">
|
|
|
<switch :checked="switchFrom.out_of_bed_voice_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchOutVoice" />
|
|
|
- <text class="font_2">电话语音</text>
|
|
|
+ <text class="font_2">电话</text>
|
|
|
+ </view>
|
|
|
+ <view class="flex-row items-end space-x-4 items-center">
|
|
|
+ <switch :checked="switchFrom.out_of_bed_horn_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchOutHorn"/>
|
|
|
+ <text class="font_2">喇叭</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex-col group_7">
|
|
@@ -143,7 +155,7 @@
|
|
|
<view class="uni-input">
|
|
|
<text class="font_3">{{sleepWorn.leave_duration }}</text>
|
|
|
<text class="font_4">分钟</text>
|
|
|
- <image class="shrink-0 image_7" src="@/static/iconRight.png" />
|
|
|
+ <text class="icon-right text-white"></text>
|
|
|
</view>
|
|
|
</picker>
|
|
|
|
|
@@ -158,11 +170,15 @@
|
|
|
<view class="flex-row space-x-6">
|
|
|
<view class="flex-row items-center equal-division-item space-x-4">
|
|
|
<switch :checked="switchFrom.sos_sms_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchSosSms" />
|
|
|
- <text class="font_2">短信提醒</text>
|
|
|
+ <text class="font_2">短信</text>
|
|
|
</view>
|
|
|
<view class="flex-row items-center equal-division-item space-x-4">
|
|
|
<switch :checked="switchFrom.sos_voice_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchSosVoice" />
|
|
|
- <text class="font_2">电话语音</text>
|
|
|
+ <text class="font_2">电话</text>
|
|
|
+ </view>
|
|
|
+ <view class="flex-row items-end space-x-4 items-center">
|
|
|
+ <switch :checked="switchFrom.sos_horn_switch" color="#1E09DE" style="transform:scale(0.7)" @change="switchSosHorn"/>
|
|
|
+ <text class="font_2">喇叭</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -172,7 +188,7 @@
|
|
|
<text class="self-start font_1 text_5">语音短信提示手机号码设置</text>
|
|
|
<view class="flex-col space-y-4">
|
|
|
<text class="font_5 text_6">
|
|
|
- 注:设置提醒手机号需注册“UU睡眠”小程序,前往“我的”-“购买套餐”中领取短信语言套餐包,才能发送短信语音提醒。
|
|
|
+ 注:设置提醒手机号需注册“守护之影”小程序,前往“我的”-“购买套餐”中领取短信语言套餐包,才能发送短信语音提醒。
|
|
|
</text>
|
|
|
<view class="flex-col section_9">
|
|
|
<view class="flex-row justify-center items-center list-item space-x-6" @click="handleShareClick">
|
|
@@ -249,10 +265,13 @@ export default {
|
|
|
switchFrom: {
|
|
|
sign_sms_switch: false,
|
|
|
sign_voice_switch: false,
|
|
|
+ sign_horn_switch: false,
|
|
|
out_of_bed_sms_switch: false,
|
|
|
out_of_bed_voice_switch: false,
|
|
|
+ out_of_bed_horn_switch: false,
|
|
|
sos_sms_switch: false,
|
|
|
sos_voice_switch: false,
|
|
|
+ sos_horn_switch: false
|
|
|
// falling_bed: false
|
|
|
},
|
|
|
userInfo: null,
|
|
@@ -382,6 +401,9 @@ export default {
|
|
|
switchTzVoice(e) {
|
|
|
this.switchFrom.sign_voice_switch = e.detail.value
|
|
|
},
|
|
|
+ switchTzHorn(e) {
|
|
|
+ this.switchFrom.sign_horn_switch = e.detail.value
|
|
|
+ },
|
|
|
switchFallingBed(e) {
|
|
|
this.switchFrom.falling_bed = e.detail.value
|
|
|
console.log(this.switchFrom.falling_bed)
|
|
@@ -392,12 +414,18 @@ export default {
|
|
|
switchOutVoice(e) {
|
|
|
this.switchFrom.out_of_bed_voice_switch = e.detail.value
|
|
|
},
|
|
|
+ switchOutHorn(e) {
|
|
|
+ this.switchFrom.out_of_bed_horn_switch = e.detail.value
|
|
|
+ },
|
|
|
switchSosSms(e) {
|
|
|
this.switchFrom.sos_sms_switch = e.detail.value
|
|
|
},
|
|
|
switchSosVoice(e) {
|
|
|
this.switchFrom.sos_voice_switch = e.detail.value
|
|
|
},
|
|
|
+ switchSosHorn(e) {
|
|
|
+ this.switchFrom.sos_horn_switch = e.detail.value
|
|
|
+ },
|
|
|
updateNickName() {
|
|
|
if (this.userInfo.nickname === '') {
|
|
|
uni.showToast({
|