2024-05-10 17:37:36 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="page">
|
2024-06-04 14:50:30 +08:00
|
|
|
|
<u-navbar title="地图模式" :border-bottom="false" :background="bgc" title-color='#fff' back-icon-color="#fff"
|
|
|
|
|
title-size='44' height='50'></u-navbar>
|
|
|
|
|
<view class="dtxs">
|
|
|
|
|
<map class='map' id="map" :latitude="latitude" :longitude="longitude" @markertap="handleMarkerClick"
|
2024-11-28 18:04:09 +08:00
|
|
|
|
:show-location="true" :markers="covers" :scale="mapScale" @regionchange="regionchange"/>
|
|
|
|
|
<image class="picimg" v-if="iconflag"
|
|
|
|
|
src="https://api.ccttiot.com/smartmeter/img/static/uEAmNMMt65U10qwijrsJ" mode=""></image>
|
2024-06-04 14:50:30 +08:00
|
|
|
|
</view>
|
2024-05-10 17:37:36 +08:00
|
|
|
|
<view class="listbox" v-if="falga">
|
|
|
|
|
<view class="moshi">
|
2024-11-08 18:01:35 +08:00
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uqv3e5ThWL8DqrRNBfoA" mode="aspectFit"
|
2024-06-04 14:50:30 +08:00
|
|
|
|
@click="btndt(1)"></image>
|
2024-11-08 18:01:35 +08:00
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/u7yxUJZqgPzESeI4tmiz" mode="aspectFit"
|
2024-06-04 14:50:30 +08:00
|
|
|
|
@click="btndt(2)" v-if="isMch"></image>
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="saoyisao">
|
|
|
|
|
<view @click="scanQRCode">
|
2024-11-08 18:01:35 +08:00
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uBh15vzRx6gV0wRQj7gi" mode="aspectFit"></image>
|
2024-06-04 14:50:30 +08:00
|
|
|
|
<text>扫一扫</text>
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-06-04 14:50:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
2024-05-10 17:37:36 +08:00
|
|
|
|
<view class="list_item" v-if="falgb">
|
|
|
|
|
<view class="list">
|
|
|
|
|
<view class="pic">
|
|
|
|
|
<image :src="listobj.picture" mode="aspectFill"></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="cen">
|
|
|
|
|
<view class="cena" style="font-weight: 600;">
|
2024-07-19 18:07:24 +08:00
|
|
|
|
{{listobj.name == undefined ? '--' : listobj.name}}
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="cenb">
|
2024-11-08 18:01:35 +08:00
|
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uHK2aJHvzEm3nbOPwpdr" mode="aspectFit"></image>
|
2024-07-19 18:07:24 +08:00
|
|
|
|
{{listobj.address == undefined ? '--' : listobj.address}}
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="cenc">
|
2024-07-19 18:07:24 +08:00
|
|
|
|
共享时间:{{listobj.businessTimeStart == undefined ? '--' : listobj.businessTimeStart}}-{{listobj.businessTimeEnd == undefined ? '--' : listobj.businessTimeEnd}} <text
|
2024-12-10 09:26:56 +08:00
|
|
|
|
class="bu">{{listobj.availableDeviceCount == undefined ? '--' : listobj.availableDeviceCount}}台可共享</text>
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-12-10 09:26:56 +08:00
|
|
|
|
<!-- <view class="chakan" @click="btnchak(listobj.storeId)">
|
2024-05-10 17:37:36 +08:00
|
|
|
|
<view class="">
|
2024-07-19 18:07:24 +08:00
|
|
|
|
本店共有{{listobj.deviceCount == undefined ? '--' : listobj.deviceCount}}台共享设备
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="">
|
2024-06-03 16:47:25 +08:00
|
|
|
|
查看 <u-icon name="arrow-right" color="#6863D9" size="24" style="margin-left: 10rpx;"></u-icon>
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
2024-12-10 09:26:56 +08:00
|
|
|
|
</view> -->
|
|
|
|
|
<view class="warp_box" style="width: 100%;height: 1040rpx;overflow: scroll;">
|
|
|
|
|
<view class="swiper" :current='curtitidx' @change="swiperchange" @scrolltolower="onReachBottom">
|
|
|
|
|
<view>
|
|
|
|
|
<view class="swiper-item ">
|
|
|
|
|
<view class="card_box" v-for="(item,index) in wateringList" :key="index">
|
|
|
|
|
<view class="card" @click="btnxq(item.deviceNo)">
|
|
|
|
|
<view class="card_left">
|
|
|
|
|
<view class="card_left_tit">
|
|
|
|
|
{{item.deviceName}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="card_left_sta">
|
|
|
|
|
<image
|
|
|
|
|
src="https://api.ccttiot.com/smartmeter/img/static/uZSiz7XWpxcXEkl6sTwj"
|
|
|
|
|
mode="aspectFit"></image>
|
|
|
|
|
<view class="sta_txt" v-if="item.status==3">
|
|
|
|
|
维修中
|
|
|
|
|
</view>
|
|
|
|
|
<view class="sta_txt" v-if="item.status==2" style="color:greenyellow;">
|
|
|
|
|
使用中
|
|
|
|
|
</view>
|
|
|
|
|
<view class="sta_txt" v-if="item.status==1" style="color:seagreen;">
|
|
|
|
|
空闲
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="card_left_no">
|
|
|
|
|
S/N码:{{item.deviceNo}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="card_right">
|
|
|
|
|
<image v-if="item.customPicture" :src="item.customPicture" mode="aspectFit"></image>
|
|
|
|
|
<image v-else :src="item.picture" mode="aspectFit"></image>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="" v-if="showflag" style="width: 100%;height: 200rpx;margin: auto;margin-top: 170rpx;text-align: center;">
|
|
|
|
|
<image style="width: 200rpx;height: 200rpx;"
|
|
|
|
|
src="https://api.ccttiot.com/smartmeter/img/static/uZFUpcz0YZZ4f4RjvGg2" mode="aspectFit"></image>
|
|
|
|
|
<view class="" style="font-size: 28rpx;color: #808080;margin-top: 30rpx;">暂无更多设备...</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="anniu">
|
|
|
|
|
<view class="" @click="mapFun">
|
2024-06-04 14:50:30 +08:00
|
|
|
|
<image style="height: 41rpx;width: 38rpx;" class="picsm"
|
2024-11-08 18:01:35 +08:00
|
|
|
|
src="https://api.ccttiot.com/smartmeter/img/static/u9Z7DXlWfjJtIrq5OEty" mode="aspectFit"></image> 到这去
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="" style="color: #fff;background-color: #8883F0;" @click="scanQRCode">
|
2024-06-04 14:50:30 +08:00
|
|
|
|
<image class="picsm" src="https://api.ccttiot.com/smartmeter/img/static/uvrsmSxGunHTI9S51ujn"
|
2024-11-08 18:01:35 +08:00
|
|
|
|
mode="aspectFit"></image> 扫一扫
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
2024-05-10 17:37:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
latitude: '', // 初始纬度
|
|
|
|
|
longitude: '', // 初始经度
|
|
|
|
|
covers: [], // 覆盖物数组
|
2024-06-04 14:50:30 +08:00
|
|
|
|
index: 1,
|
|
|
|
|
falga: true,
|
|
|
|
|
falgb: false,
|
|
|
|
|
storeId: '',
|
|
|
|
|
listobj: {},
|
|
|
|
|
mapname: '',
|
|
|
|
|
mapaddress: '',
|
|
|
|
|
isMch: '',
|
2024-05-21 18:02:34 +08:00
|
|
|
|
bgc: {
|
|
|
|
|
backgroundColor: " #8883F0",
|
|
|
|
|
},
|
2024-05-27 16:06:08 +08:00
|
|
|
|
mapScale: 15,
|
|
|
|
|
mapContext: null,
|
|
|
|
|
mapScaleInterval: null,
|
|
|
|
|
listmap: [],
|
2024-11-28 18:04:09 +08:00
|
|
|
|
iconflag: false,
|
2024-12-10 09:26:56 +08:00
|
|
|
|
pagenum: 1,
|
|
|
|
|
wateringList: [],
|
|
|
|
|
pagesize: 10,
|
|
|
|
|
isLoading: false,
|
|
|
|
|
noMoreData: false,
|
|
|
|
|
total: 0,
|
|
|
|
|
showflag:false,
|
2024-05-10 17:37:36 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad(option) {
|
|
|
|
|
this.storeId = option.markerId
|
2024-06-04 14:50:30 +08:00
|
|
|
|
if (option.markerId) {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
this.falga = false
|
|
|
|
|
this.falgb = true
|
|
|
|
|
}
|
|
|
|
|
this.getxq()
|
2024-12-10 09:26:56 +08:00
|
|
|
|
this.getlist()
|
2024-05-10 17:37:36 +08:00
|
|
|
|
},
|
2024-05-27 16:06:08 +08:00
|
|
|
|
onReady() {
|
|
|
|
|
this.mapContext = uni.createMapContext('map', this);
|
|
|
|
|
this.mapScaleInterval = setInterval(this.updateMarkers, 1000);
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy() {
|
|
|
|
|
// 在组件卸载前清除定时器
|
|
|
|
|
if (this.mapScaleInterval) {
|
|
|
|
|
clearInterval(this.mapScaleInterval);
|
|
|
|
|
this.mapScaleInterval = null;
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-17 17:59:51 +08:00
|
|
|
|
// 分享到好友(会话)
|
|
|
|
|
onShareAppMessage: function () {
|
|
|
|
|
return {
|
|
|
|
|
title: '创想物联',
|
|
|
|
|
path: '/pages/shouye/index'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 分享到朋友圈
|
|
|
|
|
onShareTimeline: function () {
|
|
|
|
|
return {
|
|
|
|
|
title: '创想物联',
|
|
|
|
|
query: '',
|
|
|
|
|
path: '/pages/shouye/index'
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-10 17:37:36 +08:00
|
|
|
|
methods: {
|
2024-12-10 09:26:56 +08:00
|
|
|
|
getlist() {
|
|
|
|
|
this.$u.get(`/app/device/listByStore/${this.storeId}?pageNum=${this.pagenum}&pageSize=${this.pagesize}`)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.total = res.total
|
|
|
|
|
if (this.total > 0) {
|
|
|
|
|
this.showflag = false
|
|
|
|
|
} else {
|
|
|
|
|
this.showflag = true
|
|
|
|
|
}
|
|
|
|
|
if (res.rows.length > 0) {
|
|
|
|
|
// 有数据,追加到列表
|
|
|
|
|
this.wateringList = this.wateringList.concat(res.rows)
|
|
|
|
|
this.pagenum++
|
|
|
|
|
} else {
|
|
|
|
|
// 没有更多数据
|
|
|
|
|
this.noMoreData = true;
|
|
|
|
|
}
|
|
|
|
|
this.isLoading = false;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
onReachBottom() {
|
|
|
|
|
let sum = this.total / this.pagesize
|
|
|
|
|
if (this.pagenum - 1 < sum) {
|
|
|
|
|
this.getlist(); // 上拉加载更多
|
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '没有更多设备了',
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 1000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-11-28 18:04:09 +08:00
|
|
|
|
// 查询拖动到指定为止的店铺
|
|
|
|
|
regionchange(e) {
|
|
|
|
|
this.iconflag = true
|
|
|
|
|
if (e.type == 'end') {
|
|
|
|
|
this.jinweidu = e.detail.centerLocation.longitude + ',' + e.detail.centerLocation.latitude
|
|
|
|
|
this.$u.get("/app/store/listNearBy?center=" + this.jinweidu + '&radius=' + 20000).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.covers = []
|
|
|
|
|
this.listmap = res.data
|
|
|
|
|
// this.gxlist = res.data
|
|
|
|
|
// this.gxlist.forEach(item => {
|
|
|
|
|
// // if (item.deviceCount !== null && item.deviceCount > 0) {
|
|
|
|
|
// const shopCover = {
|
|
|
|
|
// id: parseFloat(item.storeId),
|
|
|
|
|
// latitude: item.lat,
|
|
|
|
|
// longitude: item.lng,
|
|
|
|
|
// width: 25,
|
|
|
|
|
// height: 30,
|
|
|
|
|
// iconPath: 'https://api.ccttiot.com/smartmeter/img/static/uZXgsJE6hXbRSwbKILB4',
|
|
|
|
|
// // iconPath:item.picture
|
|
|
|
|
// label: {
|
|
|
|
|
// content: item.name,
|
|
|
|
|
// anchorX: this.calculateAnchorX(item.name),
|
|
|
|
|
// fontWeight: 700,
|
|
|
|
|
// color: '#8883F0',
|
|
|
|
|
// borderColor: '#fff',
|
|
|
|
|
// borderRadius: 5,
|
|
|
|
|
// bgColor: '#fff'
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// this.covers.push(shopCover)
|
|
|
|
|
// // console.log(this.covers);
|
|
|
|
|
// // }
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.iconflag = false
|
|
|
|
|
} else {
|
|
|
|
|
// this.iconflag = false
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-05-27 16:06:08 +08:00
|
|
|
|
updateMarkers() {
|
|
|
|
|
this.mapContext.getScale({
|
|
|
|
|
success: (res) => {
|
|
|
|
|
this.covers = []; // 清空之前的覆盖物
|
|
|
|
|
if (res.scale <= 14) {
|
|
|
|
|
this.addMarkersWithoutLabels();
|
|
|
|
|
} else {
|
|
|
|
|
this.addMarkersWithLabels();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fail: (error) => {
|
|
|
|
|
console.error('获取地图缩放级别失败:', error);
|
|
|
|
|
},
|
2024-06-04 14:50:30 +08:00
|
|
|
|
})
|
2024-05-27 16:06:08 +08:00
|
|
|
|
},
|
|
|
|
|
addMarkersWithoutLabels() {
|
|
|
|
|
this.listmap.forEach((item) => {
|
2024-11-28 18:04:09 +08:00
|
|
|
|
// if (item.deviceCount !== null && item.deviceCount > 0){
|
2024-06-17 13:57:53 +08:00
|
|
|
|
const shopCover = {
|
2024-05-27 16:06:08 +08:00
|
|
|
|
id: parseFloat(item.storeId),
|
|
|
|
|
latitude: item.lat,
|
|
|
|
|
longitude: item.lng,
|
|
|
|
|
width: 25,
|
|
|
|
|
height: 30,
|
2024-06-04 14:50:30 +08:00
|
|
|
|
iconPath: 'https://api.ccttiot.com/smartmeter/img/static/uZXgsJE6hXbRSwbKILB4',
|
2024-06-17 18:03:28 +08:00
|
|
|
|
borderColor:'#fff',
|
|
|
|
|
borderRadius:5,
|
2024-06-18 13:43:37 +08:00
|
|
|
|
bgColor: '#fff'
|
2024-05-27 16:06:08 +08:00
|
|
|
|
};
|
|
|
|
|
this.covers.push(shopCover);
|
2024-11-28 18:04:09 +08:00
|
|
|
|
// }
|
2024-05-27 16:06:08 +08:00
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
addMarkersWithLabels() {
|
|
|
|
|
this.listmap.forEach((item) => {
|
2024-11-28 18:04:09 +08:00
|
|
|
|
// if (item.deviceCount !== null && item.deviceCount > 0){
|
2024-06-17 13:57:53 +08:00
|
|
|
|
const shopCover = {
|
2024-05-27 16:06:08 +08:00
|
|
|
|
id: parseFloat(item.storeId),
|
|
|
|
|
latitude: item.lat,
|
|
|
|
|
longitude: item.lng,
|
|
|
|
|
width: 25,
|
|
|
|
|
height: 30,
|
|
|
|
|
iconPath: 'https://api.ccttiot.com/smartmeter/img/static/uZXgsJE6hXbRSwbKILB4',
|
|
|
|
|
label: {
|
|
|
|
|
content: item.name,
|
2024-06-04 14:50:30 +08:00
|
|
|
|
anchorX: this.calculateAnchorX(item.name),
|
2024-05-27 16:06:08 +08:00
|
|
|
|
fontWeight: 700,
|
|
|
|
|
color: '#8883F0',
|
|
|
|
|
textShadow: '2px 2px 0px white, -2px -2px 0px white, 2px -2px 0px white, -2px 2px 0px white',
|
2024-06-17 18:03:28 +08:00
|
|
|
|
borderColor:'#fff',
|
|
|
|
|
borderRadius:5,
|
2024-06-18 13:43:37 +08:00
|
|
|
|
bgColor: '#fff'
|
2024-05-27 16:06:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.covers.push(shopCover);
|
2024-11-28 18:04:09 +08:00
|
|
|
|
// }
|
2024-06-17 13:57:53 +08:00
|
|
|
|
|
2024-05-27 16:06:08 +08:00
|
|
|
|
});
|
|
|
|
|
},
|
2024-06-04 14:50:30 +08:00
|
|
|
|
calculateAnchorX(name) {
|
|
|
|
|
let chineseLength = 0;
|
|
|
|
|
let englishLength = 0;
|
|
|
|
|
for (let i = 0; i < name.length; i++) {
|
|
|
|
|
const charCode = name.charCodeAt(i);
|
|
|
|
|
// 判断是否为中文字符(这里简化了判断,只考虑了基本的中文字符范围)
|
|
|
|
|
if (charCode >= 0x4e00 && charCode <= 0x9fa5) {
|
|
|
|
|
chineseLength++;
|
|
|
|
|
} else if (/[a-zA-Z]/.test(name[i])) { // 判断是否为英文字符
|
|
|
|
|
englishLength = englishLength + 0.3; // 英文长度加0.3,但视为两个中文字符长度
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const totalLength = chineseLength + englishLength * 2; // 总长度(以中文字符为单位)
|
|
|
|
|
return -totalLength * 6.5; // 假设每个中文字符对应的 anchorX 偏移是 -6.5
|
2024-05-27 16:06:08 +08:00
|
|
|
|
},
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
2024-05-10 17:37:36 +08:00
|
|
|
|
scanQRCode() {
|
2024-05-21 15:07:11 +08:00
|
|
|
|
uni.scanCode({
|
|
|
|
|
onlyFromCamera: true,
|
|
|
|
|
scanType: ['qrCode'],
|
|
|
|
|
success: res => {
|
2024-05-25 11:34:26 +08:00
|
|
|
|
function getQueryParam(url, paramName) {
|
|
|
|
|
let regex = new RegExp(`[?&]${paramName}=([^&]*)`);
|
|
|
|
|
let results = regex.exec(url);
|
|
|
|
|
return results ? decodeURIComponent(results[1].replace(/\+/g, ' ')) : null;
|
|
|
|
|
}
|
|
|
|
|
let sceneValue = res.result
|
|
|
|
|
let decodedValue = decodeURIComponent(sceneValue);
|
2024-05-30 17:24:10 +08:00
|
|
|
|
let id = getQueryParam(decodedValue, 's')
|
2024-06-04 14:50:30 +08:00
|
|
|
|
this.$u.get(`/app/device/${id}/withSuitList`).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
2024-05-21 15:07:11 +08:00
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/page_components/fuwu/index?id=' + id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
fail: err => {
|
|
|
|
|
console.error('扫描失败:', err);
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '扫描失败',
|
|
|
|
|
icon: 'none'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
2024-05-10 17:37:36 +08:00
|
|
|
|
},
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
btnchak(id) {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
uni.navigateTo({
|
2024-06-04 14:50:30 +08:00
|
|
|
|
url: '/page_fenbao/sbshouye?storeId=' + id
|
2024-05-10 17:37:36 +08:00
|
|
|
|
})
|
|
|
|
|
},
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
getxq() {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
this.$u.get("/app/store/" + this.storeId).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
2024-06-04 14:50:30 +08:00
|
|
|
|
this.listobj = res.data
|
2024-05-10 17:37:36 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-06-04 14:50:30 +08:00
|
|
|
|
getshanghu() {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
this.$u.get("/app/user/userInfo").then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.isMch = res.data.isMch
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
2024-05-10 17:37:36 +08:00
|
|
|
|
mapFun() {
|
|
|
|
|
uni.openLocation({
|
2024-06-17 13:57:53 +08:00
|
|
|
|
latitude: this.listobj.lat, //纬度 - 目的地/坐标点
|
|
|
|
|
longitude: this.listobj.lng, //经度 - 目的地/坐标点
|
2024-06-11 18:03:16 +08:00
|
|
|
|
name: this.mapname, //地点名称
|
|
|
|
|
address: this.mapaddress //详细地点名称
|
2024-05-10 17:37:36 +08:00
|
|
|
|
});
|
|
|
|
|
},
|
2024-06-17 13:57:53 +08:00
|
|
|
|
|
2024-06-11 18:03:16 +08:00
|
|
|
|
// 地图回正
|
|
|
|
|
async setMapScale(e, val) {
|
|
|
|
|
let mapContext = uni.createMapContext('map', this);
|
|
|
|
|
let setScale = () => {
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
|
mapContext.getScale({
|
|
|
|
|
success: r => {
|
|
|
|
|
this.mapScale = 15
|
|
|
|
|
resolve()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
await setScale();
|
|
|
|
|
mapContext.moveToLocation({
|
|
|
|
|
success: (res) => {
|
|
|
|
|
const timer = setTimeout(() => {
|
|
|
|
|
this.mapScale = 15
|
|
|
|
|
clearTimeout(timer);
|
|
|
|
|
}, 500);
|
2024-11-21 17:40:48 +08:00
|
|
|
|
},
|
2024-06-11 18:03:16 +08:00
|
|
|
|
})
|
|
|
|
|
},
|
2024-12-10 09:26:56 +08:00
|
|
|
|
btnxq(id) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/page_components/fuwu/index?id=' + id
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-05-10 17:37:36 +08:00
|
|
|
|
getMyLocation() {
|
2024-06-04 14:50:30 +08:00
|
|
|
|
uni.getLocation({
|
|
|
|
|
type: 'wgs84',
|
|
|
|
|
success: (res) => {
|
|
|
|
|
this.jinweidu = res.longitude + ',' + res.latitude
|
|
|
|
|
this.latitude = Number(res.latitude.toFixed(5)) - 0.005
|
|
|
|
|
this.longitude = Number(res.longitude.toFixed(5)) + 0.005
|
2024-06-11 18:03:16 +08:00
|
|
|
|
this.setMapScale()
|
2024-06-04 14:50:30 +08:00
|
|
|
|
// 请求附近的店铺
|
2024-11-21 17:33:15 +08:00
|
|
|
|
this.$u.get("/app/store/listNearBy?center=" + this.jinweidu + '&radius=' + 20000).then(
|
2024-06-04 14:50:30 +08:00
|
|
|
|
res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.listmap = res.data
|
|
|
|
|
// 假设返回的店铺数据在res.rows中,并且每个店铺有latitude和longitude字段
|
|
|
|
|
res.data.forEach(item => {
|
2024-11-28 18:04:09 +08:00
|
|
|
|
// if (item.deviceCount !== null && item.deviceCount > 0) {
|
2024-06-17 13:57:53 +08:00
|
|
|
|
const shopCover = {
|
|
|
|
|
id: parseFloat(item.storeId),
|
|
|
|
|
latitude: item.lat,
|
|
|
|
|
longitude: item.lng,
|
|
|
|
|
width: 25,
|
|
|
|
|
height: 30,
|
|
|
|
|
iconPath: 'https://api.ccttiot.com/smartmeter/img/static/uZXgsJE6hXbRSwbKILB4',
|
|
|
|
|
label: {
|
|
|
|
|
content: item.name,
|
|
|
|
|
anchorX: (() => {
|
|
|
|
|
if (item.name.length <= 2) {
|
|
|
|
|
return -12
|
2024-06-17 18:03:28 +08:00
|
|
|
|
} else if (item.name.length <= 3) {
|
2024-06-17 13:57:53 +08:00
|
|
|
|
return -20
|
2024-06-17 18:03:28 +08:00
|
|
|
|
} else if (item.name.length <= 4) {
|
2024-06-17 13:57:53 +08:00
|
|
|
|
return -25
|
2024-06-17 18:03:28 +08:00
|
|
|
|
} else if (item.name.length <= 5) {
|
2024-06-17 13:57:53 +08:00
|
|
|
|
return -30
|
2024-06-17 18:03:28 +08:00
|
|
|
|
} else if (item.name.length <= 6) {
|
2024-06-17 13:57:53 +08:00
|
|
|
|
return -35
|
2024-06-17 18:03:28 +08:00
|
|
|
|
} else if (item.name.length <= 8) {
|
2024-06-17 13:57:53 +08:00
|
|
|
|
return -40
|
2024-06-17 18:03:28 +08:00
|
|
|
|
} else if (item.name.length <= 10) {
|
2024-06-17 13:57:53 +08:00
|
|
|
|
return -45
|
|
|
|
|
} else {
|
2024-06-17 18:03:28 +08:00
|
|
|
|
return -item.name.length * 5
|
2024-06-17 13:57:53 +08:00
|
|
|
|
}
|
|
|
|
|
})(),
|
|
|
|
|
fontWeight: 700,
|
|
|
|
|
color: '#8883F0',
|
|
|
|
|
textShadow: '2px 2px 0px white, -2px -2px 0px white, 2px -2px 0px white, -2px 2px 0px white',
|
2024-06-17 18:03:28 +08:00
|
|
|
|
borderColor:'#fff',
|
|
|
|
|
borderRadius:5,
|
2024-06-18 13:43:37 +08:00
|
|
|
|
bgColor: '#fff'
|
2024-06-17 13:57:53 +08:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
this.covers.push(shopCover);
|
2024-11-28 18:04:09 +08:00
|
|
|
|
// }
|
2024-06-17 13:57:53 +08:00
|
|
|
|
|
2024-06-04 14:50:30 +08:00
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
fail: (err) => {
|
|
|
|
|
console.error('获取位置失败:', err);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleMarkerClick(e) {
|
2024-07-08 18:15:10 +08:00
|
|
|
|
console.log(e);
|
2024-05-10 17:37:36 +08:00
|
|
|
|
this.$u.get("/app/store/" + e.markerId).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
2024-06-04 14:50:30 +08:00
|
|
|
|
this.listobj = res.data
|
|
|
|
|
this.mapname = res.data.city
|
|
|
|
|
this.mapaddress = res.data.address
|
2024-05-10 17:37:36 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.falga = false
|
|
|
|
|
this.falgb = true
|
|
|
|
|
},
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
btntab(num) {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
this.index = num
|
|
|
|
|
},
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
btndt(num) {
|
|
|
|
|
if (num == 1) {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
uni.navigateBack()
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
btnitem() {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
this.falga = false
|
|
|
|
|
this.falgb = true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
2024-06-04 14:50:30 +08:00
|
|
|
|
this.getMyLocation();
|
2024-05-10 17:37:36 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2024-06-04 14:50:30 +08:00
|
|
|
|
/deep/ .u-title {
|
2024-06-03 16:47:25 +08:00
|
|
|
|
padding-bottom: 22rpx;
|
2024-05-24 16:48:42 +08:00
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
/deep/ .u-icon__icon {
|
2024-06-03 16:47:25 +08:00
|
|
|
|
padding-bottom: 22rpx;
|
2024-05-24 16:48:42 +08:00
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
/deep/ .map {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
2024-05-10 17:37:36 +08:00
|
|
|
|
page {
|
2024-12-10 09:26:56 +08:00
|
|
|
|
background:#D9D8FF;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.page {
|
|
|
|
|
width: 750rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
position: fixed;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
2024-12-10 09:26:56 +08:00
|
|
|
|
.swiper {
|
|
|
|
|
.swiper-item {
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
|
|
.card_box {
|
|
|
|
|
margin-top: 34rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
.card {
|
|
|
|
|
display: flex;
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
width: 672rpx;
|
|
|
|
|
height: 250rpx;
|
|
|
|
|
background: #fff;
|
|
|
|
|
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(255, 255, 255, 0);
|
|
|
|
|
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
|
|
|
|
|
|
|
|
|
.card_left {
|
|
|
|
|
width: 310rpx;
|
|
|
|
|
margin-top: 46rpx;
|
|
|
|
|
margin-left: 50rpx;
|
|
|
|
|
|
|
|
|
|
.card_left_tit {
|
|
|
|
|
font-size: 44rpx;
|
|
|
|
|
font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #8883F0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card_left_sta {
|
|
|
|
|
|
|
|
|
|
margin-top: 15rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
width: 23.32rpx;
|
|
|
|
|
height: 36.47rpx;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sta_txt {
|
|
|
|
|
margin-left: 15rpx;
|
|
|
|
|
color: #262B37;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card_left_no {
|
|
|
|
|
margin-top: 15rpx;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: #95989D;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card_right {
|
|
|
|
|
margin-top: 30rpx;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
margin-right: 40rpx;
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
width: 180rpx;
|
|
|
|
|
height: 180rpx;
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
.list_item {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
position: fixed;
|
2024-12-10 09:26:56 +08:00
|
|
|
|
top: 160rpx;
|
|
|
|
|
left: 50%;
|
|
|
|
|
-webkit-transform: translateX(-50%);
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 91vh;
|
|
|
|
|
background: #f8f8f8;
|
|
|
|
|
box-shadow: 0rpx 10rpx 64rpx 0rpx rgba(0, 0, 0, 0.08);
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
margin: auto;
|
|
|
|
|
padding: 46rpx 40rpx;
|
|
|
|
|
box-sizing: border-box;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.chakan {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
width: 625rpx;
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
line-height: 60rpx;
|
|
|
|
|
padding: 0 22rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
background: #D9D8FF;
|
|
|
|
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
2024-06-03 18:02:38 +08:00
|
|
|
|
margin-top: 10rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
view {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #8883F0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.anniu {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
display: flex;
|
2024-12-10 09:26:56 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 60rpx;
|
|
|
|
|
bottom: 20rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
view {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
width: 300rpx;
|
|
|
|
|
height: 82rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
line-height: 80rpx;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
border-radius: 45rpx 45rpx 45rpx 45rpx;
|
|
|
|
|
border: 2rpx solid #8883F0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 36rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
color: #8883F0;
|
|
|
|
|
;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.list {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
padding-bottom: 16rpx;
|
2024-12-10 09:26:56 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
.pic {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
width: 150rpx;
|
2024-06-03 16:47:25 +08:00
|
|
|
|
height: 150rpx;
|
2024-05-25 11:34:26 +08:00
|
|
|
|
border-radius: 20rpx;
|
2024-06-17 13:57:53 +08:00
|
|
|
|
|
2024-06-04 14:50:30 +08:00
|
|
|
|
image {
|
2024-06-03 16:47:25 +08:00
|
|
|
|
width: 150rpx;
|
|
|
|
|
height: 150rpx;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
mode: "aspectFill";
|
|
|
|
|
margin-top: 10rpx;
|
2024-05-25 11:34:26 +08:00
|
|
|
|
border-radius: 20rpx;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.cen {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
margin-left: 20rpx;
|
2024-12-10 09:26:56 +08:00
|
|
|
|
margin-top: 30rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
.cena {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
font-weight: 500;
|
2024-06-03 16:47:25 +08:00
|
|
|
|
font-size: 30rpx;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
line-height: 38rpx;
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.cenb {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
font-weight: 400;
|
2024-06-05 18:07:50 +08:00
|
|
|
|
font-size: 26rpx;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
line-height: 32rpx;
|
|
|
|
|
margin-top: 14rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
image {
|
2024-06-03 16:47:25 +08:00
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 22rpx;
|
|
|
|
|
height: 22rpx;
|
|
|
|
|
margin-right: 6rpx;
|
|
|
|
|
}
|
2024-05-10 17:37:36 +08:00
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.cenc {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
font-weight: 400;
|
2024-06-05 18:07:50 +08:00
|
|
|
|
font-size: 26rpx;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
line-height: 32rpx;
|
|
|
|
|
margin-top: 14rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
text {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 4rpx 18rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.bu {
|
2024-06-07 17:05:52 +08:00
|
|
|
|
margin-left: 22rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
background: #D9D8FF;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
color: #4D48B5;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.right {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
padding-top: 40rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
image {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
width: 40rpx;
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
text {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
display: block;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
color: #808080;
|
|
|
|
|
line-height: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.picsm {
|
|
|
|
|
width: 48rpx;
|
|
|
|
|
height: 48rpx;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
|
margin-right: 10rpx;
|
2024-05-21 18:02:34 +08:00
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.dtxs {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
z-index: -1;
|
2024-11-28 18:04:09 +08:00
|
|
|
|
.picimg {
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
height: 120rpx;
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
top: 50%;
|
|
|
|
|
}
|
2024-05-10 17:37:36 +08:00
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.listbox {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
background: #FFFFFF;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
border-radius: 64rpx 64rpx 0 0;
|
|
|
|
|
box-shadow: 0rpx 10rpx 64rpx 0rpx rgba(0, 0, 0, 0.08);
|
|
|
|
|
height: 186rpx;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
overflow-y: scroll;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
position: fixed;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.saoyisao {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
margin-top: 44rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
view {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
border-radius: 54rpx 54rpx 54rpx 54rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
width: 676rpx;
|
|
|
|
|
height: 102rpx;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
background: linear-gradient(90deg, #8883F0 0%, #837EEB 100%);
|
2024-05-10 17:37:36 +08:00
|
|
|
|
line-height: 102rpx;
|
|
|
|
|
margin: auto;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
image {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
width: 56rpx;
|
|
|
|
|
height: 56rpx;
|
|
|
|
|
vertical-align: middle;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
display: inline-block;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
margin-right: 10rpx;
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
text {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.moshi {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
position: fixed;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
bottom: 210rpx;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
left: 30rpx;
|
|
|
|
|
z-index: 99;
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
image {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
width: 210rpx;
|
2024-06-03 16:47:25 +08:00
|
|
|
|
height: 74rpx;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
border-radius: 64rpx 64rpx 0 0;
|
2024-05-10 17:37:36 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
line-height: 160rpx;
|
|
|
|
|
padding: 0 76rpx;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
position: fixed;
|
|
|
|
|
height: 160rpx;
|
|
|
|
|
top: 40vh;
|
|
|
|
|
left: 0;
|
|
|
|
|
padding-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-04 14:50:30 +08:00
|
|
|
|
|
|
|
|
|
.active {
|
2024-05-10 17:37:36 +08:00
|
|
|
|
border-bottom: 10rpx solid #D9D8FF;
|
|
|
|
|
border-radius: 7rpx;
|
|
|
|
|
padding-bottom: 10rpx;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
</style>
|