|
@@ -81,7 +81,17 @@
|
|
<image src="../../static/linkService.png" mode="" />
|
|
<image src="../../static/linkService.png" mode="" />
|
|
<button open-type="contact">联系客服</button>
|
|
<button open-type="contact">联系客服</button>
|
|
</view>
|
|
</view>
|
|
- <view class="bot_version"> v3.0.1 </view>
|
|
|
|
|
|
+ <view class="bot_version"> v3.0.3 </view>
|
|
|
|
+
|
|
|
|
+ <view class="shareInfo" @click="goDeviceShare()" v-if="shareNum > 0">
|
|
|
|
+ <image src="../../static/ln_small.png" class="shareImage"></image>
|
|
|
|
+ <text class="shareTitle"
|
|
|
|
+ >您有<text class="shareNum">{{ shareNum }}</text
|
|
|
|
+ >个设备待授权</text
|
|
|
|
+ >
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <!-- <view> </view> -->
|
|
<alarModel />
|
|
<alarModel />
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -129,24 +139,45 @@ export default {
|
|
url: "/pagesA/loginNew/loginNew",
|
|
url: "/pagesA/loginNew/loginNew",
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- },
|
|
|
|
- onLoad() {},
|
|
|
|
- onShow() {
|
|
|
|
- if (uni.getStorageSync("userId")) {
|
|
|
|
|
|
+ goDeviceShare() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/pagesA/shareList/shareList?shareStatus=" + 0,
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ getperSonInfo() {
|
|
this.$http
|
|
this.$http
|
|
.get("wap/home/homeInfo", {
|
|
.get("wap/home/homeInfo", {
|
|
userId: uni.getStorageSync("userId"),
|
|
userId: uni.getStorageSync("userId"),
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.data.data) {
|
|
if (res.data.data) {
|
|
- const { groupNum, shareNum, devNum, warnNum } =
|
|
|
|
- res.data.data;
|
|
|
|
|
|
+ const { groupNum, devNum, warnNum } = res.data.data;
|
|
this.groupNum = groupNum;
|
|
this.groupNum = groupNum;
|
|
- this.shareNum = shareNum;
|
|
|
|
this.devNum = devNum;
|
|
this.devNum = devNum;
|
|
this.warnNum = warnNum;
|
|
this.warnNum = warnNum;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ },
|
|
|
|
+ getShareNum() {
|
|
|
|
+ // uni.showLoading({
|
|
|
|
+ // title: "雷能守护中...",
|
|
|
|
+ // });
|
|
|
|
+ this.$http
|
|
|
|
+ .post("wap/share/queryDevShare", {
|
|
|
|
+ userId: uni.getStorageSync("userId"),
|
|
|
|
+ state: 0,
|
|
|
|
+ })
|
|
|
|
+ .then((res) => {
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ this.shareNum = res.data.data?.length || 0;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ onLoad() {},
|
|
|
|
+ onShow() {
|
|
|
|
+ if (uni.getStorageSync("userId")) {
|
|
|
|
+ this.getperSonInfo();
|
|
|
|
+ this.getShareNum();
|
|
}
|
|
}
|
|
// 配置服务器
|
|
// 配置服务器
|
|
let selectedService = uni.getStorageSync("sercviceChoice");
|
|
let selectedService = uni.getStorageSync("sercviceChoice");
|
|
@@ -337,17 +368,40 @@ export default {
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
-// .headerInfo {
|
|
|
|
-// position: fixed;
|
|
|
|
-// top: 40rpx;
|
|
|
|
-// left: 0;
|
|
|
|
-// width: 750rpx;
|
|
|
|
-// height: 105rpx;
|
|
|
|
-// background: linear-gradient(
|
|
|
|
-// 90deg,
|
|
|
|
-// rgba(255, 97, 97, 0) 0%,
|
|
|
|
-// #6ddea7 50.44%,
|
|
|
|
-// rgba(255, 97, 97, 0) 100%
|
|
|
|
-// );
|
|
|
|
-// }
|
|
|
|
|
|
+
|
|
|
|
+.shareInfo {
|
|
|
|
+ width: 100%;
|
|
|
|
+ padding: 3rpx 0;
|
|
|
|
+ padding-left: 70rpx;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 210rpx;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
|
+ background: linear-gradient(
|
|
|
|
+ to right,
|
|
|
|
+ #6f4e37 0%,
|
|
|
|
+ rgba(210, 180, 140, 0.3) 100%
|
|
|
|
+ );
|
|
|
|
+ .shareImage {
|
|
|
|
+ width: 60rpx;
|
|
|
|
+ height: 60rpx;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ margin-left: 10rpx;
|
|
|
|
+ }
|
|
|
|
+ .shareTitle {
|
|
|
|
+ margin-left: 20rpx;
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ letter-spacing: 4rpx;
|
|
|
|
+ }
|
|
|
|
+ .shareNum {
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|