|
@@ -3,7 +3,7 @@
|
|
|
<view class="container-bg"></view>
|
|
|
|
|
|
<cu-custom bgColor="#fff">
|
|
|
- <view slot="content" style="color: #FFFFFF">睡眠监测</view>
|
|
|
+ <view slot="content" style="color: #FFFFFF">UU睡眠</view>
|
|
|
</cu-custom>
|
|
|
|
|
|
<view class="flex-col justify-start page">
|
|
@@ -77,6 +77,10 @@
|
|
|
<image class="image_4" src="../../static/home/homeIconAdd.png"/>
|
|
|
<view class="text_5" @click="addBindDevice">添加设备</view>
|
|
|
</view>
|
|
|
+ <view class="flex-row justify-center items-center home_add_devive space-x-10 margin-top-xs" @click="goBuy">
|
|
|
+ <image class="image_4" src="../../static/home/homeIconAdd.png"/>
|
|
|
+ <view class="text_5" @click="goBuy">购买设备</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<view v-if="deviceList.length > 0" v-for="(item, index) in deviceList" :key="index" class="flex-col my_device_default space-y-6">
|
|
@@ -149,6 +153,12 @@
|
|
|
<text class="self-start font_13">剩余语音</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view v-if="myBg" class="flex-row justify-center items-center space-x-10 my_shop" :style="'background-image: url(' + myBg + ')'" @click="goBuy">
|
|
|
+<!-- <image class="image_4" src="../../static/home/shop.png"/>-->
|
|
|
+<!-- <view class="text_5" @click="goBuy">必有好物<text class="text-xs margin-left">官方旗舰店</text></view>-->
|
|
|
+ </view>
|
|
|
+
|
|
|
<view class="flex-col justify-start my_settings">
|
|
|
<view class="grid">
|
|
|
<!-- <view class="flex-col items-center relative grid-item space-y-8">-->
|
|
@@ -183,6 +193,11 @@
|
|
|
<text class="font_13 text_28">用户协议</text>
|
|
|
</view>
|
|
|
|
|
|
+ <view class="flex-col items-center relative grid-item space-y-8" @click="goBuy">
|
|
|
+ <image class="image_17" src="../../static/mine/shop.png"/>
|
|
|
+ <text class="font_13 text_28">好物商城</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
<!-- <view class="flex-col items-center relative grid-item space-y-8">-->
|
|
|
<!-- <image-->
|
|
|
<!-- class="image_17"-->
|
|
@@ -224,9 +239,9 @@
|
|
|
</form>
|
|
|
</view>
|
|
|
<view class="cu-bar bg-white justify-end">
|
|
|
- <view class="action">
|
|
|
- <button class="cu-btn bg-cyan" @tap="goBuy">去购买</button>
|
|
|
- </view>
|
|
|
+<!-- <view class="action">-->
|
|
|
+<!-- <button class="cu-btn bg-cyan" @tap="goBuy">去购买</button>-->
|
|
|
+<!-- </view>-->
|
|
|
<view class="action">
|
|
|
<button class="cu-btn bg-green margin-left" @tap="bindDevice">确定</button>
|
|
|
</view>
|
|
@@ -296,7 +311,7 @@ import * as API_deviceMemberBind from '@/api/device_member_bind'
|
|
|
import * as API_SLEEP_REPORT from '@/api/sleep_report'
|
|
|
import * as API_MEMBER_WARN_SWITCH from '@/api/member_warn_switch'
|
|
|
import * as deviceDtypeEnum from '@/utils/enum/DeviceDTypeEnum'
|
|
|
-import {editDevice} from "../../api/device_member_bind";
|
|
|
+import { getArticleByPosition } from '../articles'
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -317,7 +332,8 @@ export default {
|
|
|
updateDeviceFrom: {
|
|
|
userName: '',
|
|
|
id: null
|
|
|
- }
|
|
|
+ },
|
|
|
+ myBg: null
|
|
|
|
|
|
};
|
|
|
},
|
|
@@ -359,10 +375,10 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
if (this.deviceList) {
|
|
|
- console.log('this.deviceList===', this.deviceList)
|
|
|
this.API_getNewReport()
|
|
|
}
|
|
|
this.getSmsVoiceQty()
|
|
|
+ this.getMyBg()
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -725,6 +741,11 @@ export default {
|
|
|
this.API_getDeviceList()
|
|
|
})
|
|
|
},
|
|
|
+ getMyBg() {
|
|
|
+ getArticleByPosition('MATTRESS_AD').then(res => {
|
|
|
+ this.myBg = res.outside_url
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
...mapActions({
|
|
|
logout: 'logoutAction',
|
|
@@ -740,17 +761,12 @@ export default {
|
|
|
background-color: rgba(14, 52, 147, 1);
|
|
|
border-radius: 1rem;
|
|
|
backdrop-filter: blur(0.63rem);
|
|
|
-
|
|
|
- .image_4 {
|
|
|
- width: 1.5rem;
|
|
|
- height: 1.5rem;
|
|
|
- }
|
|
|
.text_5 {
|
|
|
color: #ffffff;
|
|
|
font-size: 1.3rem;
|
|
|
font-family: PingFangSC;
|
|
|
line-height: 1.38rem;
|
|
|
- margin-left: 0.5rem
|
|
|
+ margin-left: 0.5rem
|
|
|
}
|
|
|
}
|
|
|
.power-module {
|
|
@@ -960,7 +976,7 @@ export default {
|
|
|
& > view:not(:first-child),
|
|
|
& > text:not(:first-child),
|
|
|
& > image:not(:first-child) {
|
|
|
- margin-top: 1.88rem;
|
|
|
+ margin-top: 1rem;
|
|
|
}
|
|
|
|
|
|
z-index: 100;
|
|
@@ -988,7 +1004,26 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ .image_4 {
|
|
|
+ width: 1.5rem;
|
|
|
+ height: 1.5rem;
|
|
|
+ }
|
|
|
+ .my_shop {
|
|
|
+ //background-image: url('/static/mine/shop (1).png');
|
|
|
+ background-size: 100% 100%;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ padding: 2.3rem 1.05rem;
|
|
|
+ background-color: rgba(250, 5, 74, 0.8);
|
|
|
+ border-radius: 1rem;
|
|
|
+ backdrop-filter: blur(0.63rem);
|
|
|
+ .text_5 {
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 1.3rem;
|
|
|
+ font-family: PingFangSC;
|
|
|
+ line-height: 1.38rem;
|
|
|
+ margin-left: 0.5rem
|
|
|
+ }
|
|
|
+ }
|
|
|
.my_settings {
|
|
|
padding: 0.63rem 0;
|
|
|
background-color: #1241b8cc;
|