update
This commit is contained in:
parent
dd2babf6ef
commit
886da2dbef
@ -336,7 +336,10 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 商家 -->
|
<!-- 商家 -->
|
||||||
<div class="merchantsBox" v-if="showStore">
|
<div
|
||||||
|
class="merchantsBox"
|
||||||
|
v-if="showStore && item.storeList && item.storeList.length > 0"
|
||||||
|
>
|
||||||
<div class="merchantsTop">
|
<div class="merchantsTop">
|
||||||
<div class="leftMerchants">
|
<div class="leftMerchants">
|
||||||
<span class="pageTitle">精选商家</span>
|
<span class="pageTitle">精选商家</span>
|
||||||
@ -1914,7 +1917,7 @@ export default {
|
|||||||
if (data.Data.List && data.Data.List.length > 0) {
|
if (data.Data.List && data.Data.List.length > 0) {
|
||||||
heightList.push(642);
|
heightList.push(642);
|
||||||
} else {
|
} else {
|
||||||
heightList.push(342);
|
heightList.push(260);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.swiperHeight = heightList;
|
this.swiperHeight = heightList;
|
||||||
@ -2432,7 +2435,7 @@ export default {
|
|||||||
if (this.pageType === "mapIndex") {
|
if (this.pageType === "mapIndex") {
|
||||||
this.$emit("allGWDataList", { res: allStationList });
|
this.$emit("allGWDataList", { res: allStationList });
|
||||||
}
|
}
|
||||||
let newStationList = [];
|
let allnewStationList = [];
|
||||||
|
|
||||||
if (allStationDataList && allStationDataList.length > 0) {
|
if (allStationDataList && allStationDataList.length > 0) {
|
||||||
allStationDataList.forEach((item) => {
|
allStationDataList.forEach((item) => {
|
||||||
@ -2440,12 +2443,25 @@ export default {
|
|||||||
nameList.forEach((subItem) => {
|
nameList.forEach((subItem) => {
|
||||||
let sortName = subItem.split("服务区")[0];
|
let sortName = subItem.split("服务区")[0];
|
||||||
if (item.StationName.indexOf(sortName) !== -1) {
|
if (item.StationName.indexOf(sortName) !== -1) {
|
||||||
newStationList.push(item);
|
allnewStationList.push(item);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
let newStationList = [];
|
||||||
|
if (allnewStationList && allnewStationList.length > 0) {
|
||||||
|
allnewStationList.forEach((item) => {
|
||||||
|
if (item.StationClassification === 1) {
|
||||||
|
newStationList.push(item);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
"newStationListnewStationListnewStationListnewStationList",
|
||||||
|
newStationList
|
||||||
|
);
|
||||||
|
|
||||||
// 当前这几个服务区的全部充电数据 按照服务区分类
|
// 当前这几个服务区的全部充电数据 按照服务区分类
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
@ -2575,7 +2591,9 @@ export default {
|
|||||||
// 跳转地图服务区详情
|
// 跳转地图服务区详情
|
||||||
handleGoServiceDetail(id, obj) {
|
handleGoServiceDetail(id, obj) {
|
||||||
console.log("id", id);
|
console.log("id", id);
|
||||||
|
console.log("obj", obj);
|
||||||
console.log("this.comeForm", this.comeForm);
|
console.log("this.comeForm", this.comeForm);
|
||||||
|
console.log("this.pageType", this.pageType);
|
||||||
|
|
||||||
if (this.pageType === "newMap") {
|
if (this.pageType === "newMap") {
|
||||||
let res = this.handleChangeServiceInfo(obj);
|
let res = this.handleChangeServiceInfo(obj);
|
||||||
|
|||||||
@ -109,7 +109,7 @@
|
|||||||
{
|
{
|
||||||
"path": "mapIndex",
|
"path": "mapIndex",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "点位地图",
|
"navigationBarTitleText": "扫码充电",
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#ffffff",
|
||||||
"disableScroll": true
|
"disableScroll": true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
:style="{
|
:style="{
|
||||||
paddingTop:
|
paddingTop:
|
||||||
loginType === 'min' ? menu.top + 'px' : menu.top + 10 + 'px',
|
loginType === 'min' ? menu.top + 'px' : menu.top + 10 + 'px',
|
||||||
height: loginType === 'min' ? menu.height + 'px' : menu.top + 'px',
|
height: loginType === 'min' ? menu.height + 'px' : menu.top + 'px',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
@ -30,9 +30,8 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="phoneBox">
|
<view class="phoneBox">
|
||||||
<text class="text">汽车维修服务热线 </text>
|
<text class="text">汽车维修服务热线 </text>
|
||||||
<text class="phoneText">{{ servicePhone || "-" }}</text>
|
<text class="phoneText">{{ servicePhone || "-" }}</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="projectPublicity">
|
<view class="projectPublicity">
|
||||||
@ -144,7 +143,11 @@ export default {
|
|||||||
this.serverPart = currentService;
|
this.serverPart = currentService;
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.handleGetServiceDetail();
|
let currentService = uni.getStorageSync("currentService");
|
||||||
|
if (currentService) {
|
||||||
|
this.serverPart = currentService;
|
||||||
|
this.handleGetServiceDetail();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleBack() {
|
handleBack() {
|
||||||
|
|||||||
@ -69,8 +69,8 @@
|
|||||||
style="font-size: 28rpx"
|
style="font-size: 28rpx"
|
||||||
placeholderStyle="font-size:28rpx;color: #B8B7B4;"
|
placeholderStyle="font-size:28rpx;color: #B8B7B4;"
|
||||||
v-model="shopName"
|
v-model="shopName"
|
||||||
:disabled="isDetail"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- :disabled="isDetail" -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -82,14 +82,18 @@
|
|||||||
? "拾得时间"
|
? "拾得时间"
|
||||||
: ""
|
: ""
|
||||||
}}</view>
|
}}</view>
|
||||||
<view
|
<!-- <view
|
||||||
class="itemValue"
|
class="itemValue"
|
||||||
style="font-size: 28rpx"
|
style="font-size: 28rpx"
|
||||||
v-if="detailObj && detailObj.SUGGESTION_CREATEDATE"
|
v-if="detailObj && detailObj.SUGGESTION_CREATEDATE"
|
||||||
>{{ detailObj.SUGGESTION_CREATEDATE || "" }}</view
|
>{{ detailObj.SUGGESTION_CREATEDATE || "" }}</view
|
||||||
>
|
> -->
|
||||||
<view class="itemValue" v-else>
|
<view class="itemValue">
|
||||||
<time-picker @update="onTimeUpdate" />
|
<time-picker
|
||||||
|
@update="onTimeUpdate"
|
||||||
|
:defaultDate="detailObj.SUGGESTION_DATE || ''"
|
||||||
|
:defaultTime="detailObj.SUGGESTION_Time || ''"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -102,8 +106,8 @@
|
|||||||
type="number"
|
type="number"
|
||||||
maxlength="11"
|
maxlength="11"
|
||||||
v-model="phone"
|
v-model="phone"
|
||||||
:disabled="isDetail"
|
|
||||||
/>
|
/>
|
||||||
|
<!-- :disabled="isDetail" -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -149,17 +153,32 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- v-if="!isDetail" -->
|
<!-- v-if="!isDetail" -->
|
||||||
<view class="btnBox">
|
<view class="btnBox">
|
||||||
<button class="submitBox" type="primary" @click="formSubmit">
|
<button
|
||||||
|
v-if="!detailObj.SUGGESTION_ID"
|
||||||
|
class="submitBox"
|
||||||
|
type="primary"
|
||||||
|
@click="formSubmit"
|
||||||
|
>
|
||||||
|
新增{{ addType === 1000 ? "失物" : addType === 2000 ? "招领" : "" }}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
v-if="detailObj && user.MEMBERSHIP_ID === detailObj.MEMBERSHIP_ID"
|
||||||
|
class="submitBox"
|
||||||
|
type="primary"
|
||||||
|
@click="formSubmit"
|
||||||
|
>
|
||||||
{{ detailObj ? "保存" : "新增"
|
{{ detailObj ? "保存" : "新增"
|
||||||
}}{{ addType === 1000 ? "失物" : addType === 2000 ? "招领" : "" }}
|
}}{{ addType === 1000 ? "失物" : addType === 2000 ? "招领" : "" }}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
v-if="showDeleteBtn"
|
v-if="showDeleteBtn"
|
||||||
class="deleteBox"
|
class="deleteBox"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
>
|
>
|
||||||
删除失物
|
删除{{ addType === 1000 ? "失物" : addType === 2000 ? "招领" : "" }}
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -287,13 +306,19 @@ export default {
|
|||||||
req
|
req
|
||||||
);
|
);
|
||||||
console.log("handleGetDetail", data);
|
console.log("handleGetDetail", data);
|
||||||
this.detailObj = data.Result_Data;
|
this.detailObj = {
|
||||||
|
...data.Result_Data,
|
||||||
|
SUGGESTION_DATE: data.Result_Data.SUGGESTION_CREATEDATE.split(" ")[0],
|
||||||
|
SUGGESTION_Time: data.Result_Data.SUGGESTION_CREATEDATE.split(" ")[1],
|
||||||
|
};
|
||||||
|
console.log("this.detailObj", this.detailObj);
|
||||||
this.shopName = data.Result_Data.SUGGESTION_TITLE;
|
this.shopName = data.Result_Data.SUGGESTION_TITLE;
|
||||||
this.imgList = data.Result_Data.ImageList;
|
this.imgList = data.Result_Data.ImageList;
|
||||||
this.phone = data.Result_Data.PHONE_NUMBER;
|
this.phone = data.Result_Data.PHONE_NUMBER;
|
||||||
this.showDeleteBtn =
|
this.showDeleteBtn =
|
||||||
this.user.MEMBERSHIP_ID === data.Result_Data.MEMBERSHIP_ID &&
|
this.user.MEMBERSHIP_ID === data.Result_Data.MEMBERSHIP_ID;
|
||||||
data.Result_Data.WECHAT_OPENID === "1000";
|
|
||||||
|
// && data.Result_Data.WECHAT_OPENID === "1000";
|
||||||
},
|
},
|
||||||
// 删除图片
|
// 删除图片
|
||||||
async handleDeleteImg(obj) {
|
async handleDeleteImg(obj) {
|
||||||
|
|||||||
@ -1,13 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="time-picker">
|
<view class="time-picker">
|
||||||
<picker mode="date" :value="selectedDate" @change="onDateChange">
|
<picker mode="date" :value="selectedDate" @change="onDateChange">
|
||||||
<view class="picker-item" style="font-size:28rpx;">
|
<view class="picker-item" style="font-size: 28rpx">
|
||||||
<text>{{ formatDate(selectedDate) }}</text>
|
<text>{{ formatDate(selectedDate) }}</text>
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
</picker>
|
||||||
|
|
||||||
<picker style="margin-left: 12px" mode="time" :value="selectedTime" @change="onTimeChange">
|
<picker
|
||||||
<view class="picker-item" style="font-size:28rpx;">
|
style="margin-left: 12px"
|
||||||
|
mode="time"
|
||||||
|
:value="selectedTime"
|
||||||
|
@change="onTimeChange"
|
||||||
|
>
|
||||||
|
<view class="picker-item" style="font-size: 28rpx">
|
||||||
<text>{{ formatTime(selectedTime) }}</text>
|
<text>{{ formatTime(selectedTime) }}</text>
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
</picker>
|
||||||
@ -22,6 +27,24 @@ export default {
|
|||||||
selectedTime: this.getCurrentTime(),
|
selectedTime: this.getCurrentTime(),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
props: {
|
||||||
|
defaultDate: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
defaultTime: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
onReady() {
|
||||||
|
if (this.defaultDate) {
|
||||||
|
this.selectedDate = this.defaultDate;
|
||||||
|
}
|
||||||
|
if (this.defaultTime) {
|
||||||
|
this.selectedTime = this.defaultTime;
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取当前日期,格式为 yyyy-MM-dd
|
// 获取当前日期,格式为 yyyy-MM-dd
|
||||||
getCurrentDate() {
|
getCurrentDate() {
|
||||||
|
|||||||
@ -196,7 +196,7 @@
|
|||||||
{{ item.PHONE_NUMBER || "-" }}
|
{{ item.PHONE_NUMBER || "-" }}
|
||||||
</div>
|
</div>
|
||||||
<div class="phone" v-if="item.SUGGESTION_REASON">
|
<div class="phone" v-if="item.SUGGESTION_REASON">
|
||||||
<span class="label">服务热线</span>
|
<span class="label">服务区热线</span>
|
||||||
{{ item.SUGGESTION_REASON || "-" }}
|
{{ item.SUGGESTION_REASON || "-" }}
|
||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
@ -931,7 +931,7 @@ export default {
|
|||||||
padding: 24rpx;
|
padding: 24rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
.leftImgNew {
|
.leftImgNew {
|
||||||
width: 200rpx;
|
width: 200rpx;
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
@ -946,7 +946,7 @@ export default {
|
|||||||
|
|
||||||
.rightItem {
|
.rightItem {
|
||||||
width: calc(100% - 200rpx);
|
width: calc(100% - 200rpx);
|
||||||
height: 200rpx;
|
// height: 200rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|||||||
@ -1598,7 +1598,7 @@ export default {
|
|||||||
.currentServiceBox {
|
.currentServiceBox {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12rpx 20rpx;
|
padding: 8rpx 20rpx;
|
||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
border: 1rpx solid #e7e7e6;
|
border: 1rpx solid #e7e7e6;
|
||||||
|
|
||||||
@ -1641,9 +1641,9 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-family: "PingFangSC";
|
font-family: "PingFangSC";
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 30rpx;
|
font-size: 28rpx;
|
||||||
color: #716f69;
|
color: #716f69;
|
||||||
line-height: 42rpx;
|
line-height: 36rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
padding-bottom: 16rpx;
|
padding-bottom: 16rpx;
|
||||||
@ -1684,7 +1684,7 @@ export default {
|
|||||||
|
|
||||||
.todayRecommendation {
|
.todayRecommendation {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 48rpx;
|
margin-top: 24rpx;
|
||||||
.todayTitle {
|
.todayTitle {
|
||||||
font-family: "PingFangSC";
|
font-family: "PingFangSC";
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -1713,7 +1713,7 @@ export default {
|
|||||||
.currentServiceBox {
|
.currentServiceBox {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12rpx 20rpx;
|
padding: 8rpx 20rpx;
|
||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
border: 1rpx solid #e7e7e6;
|
border: 1rpx solid #e7e7e6;
|
||||||
|
|
||||||
@ -1839,7 +1839,7 @@ export default {
|
|||||||
.currentServiceBox {
|
.currentServiceBox {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12rpx 20rpx;
|
padding: 8rpx 20rpx;
|
||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
border: 1rpx solid #e7e7e6;
|
border: 1rpx solid #e7e7e6;
|
||||||
|
|
||||||
|
|||||||
@ -72,7 +72,6 @@
|
|||||||
circular="true"
|
circular="true"
|
||||||
class="banner"
|
class="banner"
|
||||||
@change="swiperChange($event, 'currentBan')"
|
@change="swiperChange($event, 'currentBan')"
|
||||||
|
|
||||||
:current="currentBan"
|
:current="currentBan"
|
||||||
>
|
>
|
||||||
<swiper-item v-for="(image, i) in bannerList" :key="i">
|
<swiper-item v-for="(image, i) in bannerList" :key="i">
|
||||||
@ -85,7 +84,9 @@
|
|||||||
class="carousel newCarousel"
|
class="carousel newCarousel"
|
||||||
:style="{
|
:style="{
|
||||||
marginTop:
|
marginTop:
|
||||||
loginType === 'min' ? `${menu.bottom + 8}px` : `${menu.top + 50}px`,
|
loginType === 'min'
|
||||||
|
? `${menu.bottom + 8 + 12}px`
|
||||||
|
: `${menu.top + 50 + 12}px`,
|
||||||
}"
|
}"
|
||||||
v-if="showBanner && pageStyle === 2"
|
v-if="showBanner && pageStyle === 2"
|
||||||
>
|
>
|
||||||
@ -97,7 +98,11 @@
|
|||||||
@change="swiperChange($event, 'currentBan')"
|
@change="swiperChange($event, 'currentBan')"
|
||||||
:current="currentBan"
|
:current="currentBan"
|
||||||
>
|
>
|
||||||
<swiper-item v-for="(image, i) in bannerList" :key="i" @click="handleGoDiscovery">
|
<swiper-item
|
||||||
|
v-for="(image, i) in bannerList"
|
||||||
|
:key="i"
|
||||||
|
@click="handleGoDiscovery"
|
||||||
|
>
|
||||||
<image class="swiperImg" :src="image"></image>
|
<image class="swiperImg" :src="image"></image>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
@ -1388,6 +1393,8 @@ export default {
|
|||||||
Province_Code: "340000",
|
Province_Code: "340000",
|
||||||
longitude: longitude,
|
longitude: longitude,
|
||||||
latitude: latitude,
|
latitude: latitude,
|
||||||
|
// longitude: 117.202392,
|
||||||
|
// latitude: 31.833196,
|
||||||
};
|
};
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "查找最近的服务区...",
|
title: "查找最近的服务区...",
|
||||||
@ -1629,12 +1636,12 @@ export default {
|
|||||||
|
|
||||||
.topRight {
|
.topRight {
|
||||||
width: 302rpx;
|
width: 302rpx;
|
||||||
height: 72rpx;
|
height: 62rpx;
|
||||||
background: #f6f8fa;
|
background: #f6f8fa;
|
||||||
border-radius: 36rpx;
|
border-radius: 36rpx;
|
||||||
margin-left: 24rpx;
|
margin-left: 24rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 16rpx 20rpx;
|
padding: 12rpx 20rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
@ -1954,11 +1961,11 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
// height: 280rpx;
|
// height: 280rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 32rpx 0 0 0;
|
padding: 24rpx 0 0 0;
|
||||||
background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
|
background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
border: 2rpx solid #f3f3f3;
|
border: 2rpx solid #f3f3f3;
|
||||||
margin-top: 32rpx;
|
margin-top: 24rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@ -1969,7 +1976,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 32rpx;
|
margin-bottom: 24rpx;
|
||||||
|
|
||||||
.funItemIcon {
|
.funItemIcon {
|
||||||
width: 48rpx;
|
width: 48rpx;
|
||||||
@ -1995,7 +2002,7 @@ export default {
|
|||||||
background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
|
background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
border: 2rpx solid #f3f3f3;
|
border: 2rpx solid #f3f3f3;
|
||||||
margin-top: 32rpx;
|
margin-top: 24rpx;
|
||||||
padding: 24rpx;
|
padding: 24rpx;
|
||||||
|
|
||||||
.headTop {
|
.headTop {
|
||||||
|
|||||||
@ -82,6 +82,10 @@
|
|||||||
v-for="(item, index) in shopList"
|
v-for="(item, index) in shopList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click.stop="goBuy(item)"
|
@click.stop="goBuy(item)"
|
||||||
|
:style="{
|
||||||
|
marginBottom: index + 1 === shopList.length ? '0' : '',
|
||||||
|
borderWidth: index + 1 === shopList.length ? '0' : '',
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<div class="shopItemTop">
|
<div class="shopItemTop">
|
||||||
<div class="shopImg">
|
<div class="shopImg">
|
||||||
@ -447,7 +451,7 @@ export default {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border: 1rpx solid #e7e7e6;
|
border: 1rpx solid #e7e7e6;
|
||||||
border-radius: 48rpx;
|
border-radius: 48rpx;
|
||||||
padding: 12rpx 24rpx;
|
padding: 8rpx 24rpx;
|
||||||
.addressIcon {
|
.addressIcon {
|
||||||
width: 24rpx;
|
width: 24rpx;
|
||||||
height: 24rpx;
|
height: 24rpx;
|
||||||
|
|||||||
@ -4,172 +4,187 @@
|
|||||||
:class="showListPage ? 'mapBox moveLeft' : 'mapBox'"
|
:class="showListPage ? 'mapBox moveLeft' : 'mapBox'"
|
||||||
v-if="!showListPage"
|
v-if="!showListPage"
|
||||||
>
|
>
|
||||||
<map
|
<movable-area style="width: 100vw; height: 100vh">
|
||||||
id="myMap"
|
<map
|
||||||
:longitude="longitude"
|
id="myMap"
|
||||||
:latitude="latitude"
|
:longitude="longitude"
|
||||||
class="map"
|
:latitude="latitude"
|
||||||
:scale="17"
|
class="map"
|
||||||
:show-location="true"
|
:scale="17"
|
||||||
:markers="markers"
|
:show-location="true"
|
||||||
:enable-scroll="!isDragging"
|
:markers="markers"
|
||||||
@markertap="handleClickMarker"
|
:enable-scroll="!isDragging"
|
||||||
></map>
|
@markertap="handleClickMarker"
|
||||||
|
></map>
|
||||||
|
|
||||||
<view class="topBox">
|
<view class="topBox">
|
||||||
<view class="topRight">
|
<view class="topRight">
|
||||||
<image
|
<image
|
||||||
class="searchIcon"
|
class="searchIcon"
|
||||||
src="https://eshangtech.com/wanmeiyizhanImg/home/searchIcon.png"
|
src="https://eshangtech.com/wanmeiyizhanImg/home/searchIcon.png"
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
style="margin-left: 16rpx; font-size: 28rpx"
|
style="margin-left: 16rpx; font-size: 28rpx"
|
||||||
placeholder="请输入服务区"
|
placeholder="请输入服务区"
|
||||||
v-model="searchText"
|
v-model="searchText"
|
||||||
@confirm="handleConfirm"
|
@confirm="handleConfirm"
|
||||||
/>
|
/>
|
||||||
<!-- <span class="searchText">请输入服务区</span> -->
|
<!-- <span class="searchText">请输入服务区</span> -->
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="listBox" @click="handleChangePageType">
|
||||||
|
<image class="listIcon" src="/static/home/listIcon.svg" />
|
||||||
|
<text class="text">列表</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="listBox" @click="handleChangePageType">
|
<view class="statusBox">
|
||||||
<image class="listIcon" src="/static/home/listIcon.svg" />
|
<view>
|
||||||
<text class="text">列表</text>
|
<!-- 国网 -->
|
||||||
</view>
|
<view class="statusItem">
|
||||||
</view>
|
<!-- <image
|
||||||
|
|
||||||
<view class="statusBox">
|
|
||||||
<!-- 国网 -->
|
|
||||||
<view class="statusItem">
|
|
||||||
<!-- <image
|
|
||||||
class="statusIcon"
|
class="statusIcon"
|
||||||
src="https://eshangtech.com/minTestImg/stateGridIcon.png"
|
src="https://eshangtech.com/minTestImg/stateGridIcon.png"
|
||||||
/> -->
|
/> -->
|
||||||
<view class="colorBox" style="background-color: #ff9929"></view>
|
<view class="colorBox" style="background-color: #ff9929"></view>
|
||||||
<text class="brandCharge">国网</text>
|
<text class="brandCharge">国网</text>
|
||||||
<span class="empty">空</span>
|
<span class="empty">空</span>
|
||||||
<view class="valueBox">
|
<view class="valueBox">
|
||||||
<span class="emptyValue"
|
<span class="emptyValue"
|
||||||
>{{
|
>{{
|
||||||
chargeData && chargeData.GWDetail
|
chargeData && chargeData.GWDetail
|
||||||
? chargeData.GWDetail.GWEmpty
|
? chargeData.GWDetail.GWEmpty
|
||||||
: 0
|
: 0
|
||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
<span class="sum"
|
<span class="sum"
|
||||||
>/{{
|
>/{{
|
||||||
chargeData && chargeData.GWDetail
|
chargeData && chargeData.GWDetail
|
||||||
? chargeData.GWDetail.GWSum
|
? chargeData.GWDetail.GWSum
|
||||||
: 0
|
: 0
|
||||||
}}</span
|
}}</span
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 理想 -->
|
<!-- 理想 -->
|
||||||
<view class="statusItem">
|
<view class="statusItem">
|
||||||
<view class="colorBox" style="background-color: #d81e06"></view>
|
<view class="colorBox" style="background-color: #d81e06"></view>
|
||||||
<!-- <image
|
<!-- <image
|
||||||
class="statusIcon"
|
class="statusIcon"
|
||||||
src="https://eshangtech.com/minTestImg/LXIcon.png"
|
src="https://eshangtech.com/minTestImg/LXIcon.png"
|
||||||
/> -->
|
/> -->
|
||||||
<text class="brandCharge">理想</text>
|
<text class="brandCharge">理想</text>
|
||||||
<span class="empty">空</span>
|
<span class="empty">空</span>
|
||||||
<view class="valueBox">
|
<view class="valueBox">
|
||||||
<span class="emptyValue">{{
|
<span class="emptyValue">{{
|
||||||
chargeData && chargeData.LXDetail
|
chargeData && chargeData.LXDetail
|
||||||
? chargeData.LXDetail.LXEmpty
|
? chargeData.LXDetail.LXEmpty
|
||||||
: 0
|
: 0
|
||||||
}}</span>
|
}}</span>
|
||||||
<span class="sum"
|
<span class="sum"
|
||||||
>/{{
|
>/{{
|
||||||
chargeData && chargeData.LXDetail
|
chargeData && chargeData.LXDetail
|
||||||
? chargeData.LXDetail.LXSum
|
? chargeData.LXDetail.LXSum
|
||||||
: 0
|
: 0
|
||||||
}}</span
|
}}</span
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 蔚来 -->
|
<!-- 蔚来 -->
|
||||||
<view class="statusItem" v-if="false">
|
<view class="statusItem" v-if="false">
|
||||||
<!-- <image
|
<!-- <image
|
||||||
class="statusIcon"
|
class="statusIcon"
|
||||||
src="https://eshangtech.com/minTestImg/WLIcon.png"
|
src="https://eshangtech.com/minTestImg/WLIcon.png"
|
||||||
/> -->
|
/> -->
|
||||||
<view class="colorBox" style="background-color: #f4ea2a"></view>
|
<view class="colorBox" style="background-color: #f4ea2a"></view>
|
||||||
<text class="brandCharge">蔚来</text>
|
<text class="brandCharge">蔚来</text>
|
||||||
<span class="empty">空</span>
|
<span class="empty">空</span>
|
||||||
<view class="valueBox">
|
<view class="valueBox">
|
||||||
<span class="emptyValue">{{
|
<span class="emptyValue">{{
|
||||||
chargeData && chargeData.WLDetail
|
chargeData && chargeData.WLDetail
|
||||||
? chargeData.WLDetail.WLEmpty
|
? chargeData.WLDetail.WLEmpty
|
||||||
? chargeData.WLDetail.WLEmpty
|
? chargeData.WLDetail.WLEmpty
|
||||||
: 0
|
: 0
|
||||||
: 0
|
|
||||||
}}</span>
|
|
||||||
<span class="sum"
|
|
||||||
>/{{
|
|
||||||
chargeData && chargeData.WLDetail
|
|
||||||
? chargeData.WLDetail.WLSum
|
|
||||||
? chargeData.WLDetail.WLSum
|
|
||||||
: 0
|
: 0
|
||||||
: 0
|
}}</span>
|
||||||
}}</span
|
<span class="sum"
|
||||||
>
|
>/{{
|
||||||
</view>
|
chargeData && chargeData.WLDetail
|
||||||
</view>
|
? chargeData.WLDetail.WLSum
|
||||||
|
? chargeData.WLDetail.WLSum
|
||||||
|
: 0
|
||||||
|
: 0
|
||||||
|
}}</span
|
||||||
|
>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 交控 -->
|
<!-- 交控 -->
|
||||||
<view class="statusItem">
|
<view class="statusItem">
|
||||||
<!-- <image
|
<!-- <image
|
||||||
class="statusIcon"
|
class="statusIcon"
|
||||||
src="https://eshangtech.com/wanmeiyizhanImg/home/sunIcon.svg"
|
src="https://eshangtech.com/wanmeiyizhanImg/home/sunIcon.svg"
|
||||||
/> -->
|
/> -->
|
||||||
<view class="colorBox" style="background-color: #57d16e"></view>
|
<view class="colorBox" style="background-color: #57d16e"></view>
|
||||||
<text class="brandCharge">交控新能源</text>
|
<text class="brandCharge">交控新能源</text>
|
||||||
<span class="empty">空</span>
|
<span class="empty">空</span>
|
||||||
<view class="valueBox">
|
<view class="valueBox">
|
||||||
<span class="emptyValue"
|
<span class="emptyValue"
|
||||||
>{{
|
>{{
|
||||||
chargeData && chargeData.JKDetail
|
chargeData && chargeData.JKDetail
|
||||||
? chargeData.JKDetail.JKEmpty
|
? chargeData.JKDetail.JKEmpty
|
||||||
: 0
|
: 0
|
||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
<span class="sum"
|
<span class="sum"
|
||||||
>/{{
|
>/{{
|
||||||
chargeData && chargeData.JKDetail
|
chargeData && chargeData.JKDetail
|
||||||
? chargeData.JKDetail.JKSum
|
? chargeData.JKDetail.JKSum
|
||||||
: 0
|
: 0
|
||||||
}}</span
|
}}</span
|
||||||
>
|
>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="serviceDetailBox" v-if="showChargeBox">
|
<view class="serviceDetailBox" v-if="showChargeBox">
|
||||||
<charge-box
|
<charge-box
|
||||||
:serviceAreaList="currentServiceList"
|
:serviceAreaList="currentServiceList"
|
||||||
:pageType="'mapIndex'"
|
:pageType="'mapIndex'"
|
||||||
@allChargeData="handleGetChargeData"
|
@allChargeData="handleGetChargeData"
|
||||||
@allLXDataList="handleLXAddMarker"
|
/>
|
||||||
@allJKDataList="handleJKAddMarker"
|
|
||||||
@allGWDataList="handleGWAddMarker"
|
|
||||||
/>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view
|
|
||||||
class="scanBox"
|
|
||||||
@click="handleScan"
|
|
||||||
@touchstart="touchStart"
|
|
||||||
@touchmove="touchMove"
|
|
||||||
@touchend="touchEnd"
|
|
||||||
:style="{ top: positionY + 'px', left: positionX + 'px' }"
|
|
||||||
>
|
|
||||||
<view class="scanIconBox">
|
|
||||||
<image class="scanIcon" src="/static/tabs/scanCode.svg" />
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<!-- @allLXDataList="handleLXAddMarker"
|
||||||
|
@allJKDataList="handleJKAddMarker"
|
||||||
|
@allGWDataList="handleGWAddMarker" -->
|
||||||
|
|
||||||
|
<movable-view
|
||||||
|
class="scanBox"
|
||||||
|
direction="all"
|
||||||
|
@change="handleChangeScanBox"
|
||||||
|
:x="positionX || 16"
|
||||||
|
:y="positionY || 60"
|
||||||
|
:damping="100"
|
||||||
|
:friction="100"
|
||||||
|
:inertia="false"
|
||||||
|
>
|
||||||
|
<!--
|
||||||
|
:style="{ left: positionX + 'px', top: positionY + 'px' }"
|
||||||
|
|
||||||
|
@touchstart="touchStart"
|
||||||
|
@touchmove="touchMove"
|
||||||
|
@touchend="touchEnd"
|
||||||
|
|
||||||
|
:style="{ left: `${positionX}px`, top: `${positionY}px` }"
|
||||||
|
-->
|
||||||
|
<view class="scanIconBox" @click="handleScan">
|
||||||
|
<image class="scanIcon" src="/static/tabs/scanCode.svg" />
|
||||||
|
</view>
|
||||||
|
</movable-view>
|
||||||
|
</movable-area>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view
|
<view
|
||||||
@ -237,25 +252,29 @@ export default {
|
|||||||
|
|
||||||
startX: 0, // 拖动开始时的 X 坐标
|
startX: 0, // 拖动开始时的 X 坐标
|
||||||
startY: 0, // 拖动开始时的 Y 坐标
|
startY: 0, // 拖动开始时的 Y 坐标
|
||||||
positionX: 0, // 元素当前的 X 坐标
|
positionX: 16, // 元素当前的 X 坐标
|
||||||
positionY: 60, // 元素当前的 Y 坐标
|
positionY: 60, // 元素当前的 Y 坐标
|
||||||
isDragging: false, // 是否正在拖动
|
isDragging: false, // 是否正在拖动
|
||||||
screenWidth: 0, // 屏幕宽度
|
screenWidth: 0, // 屏幕宽度
|
||||||
screenHeight: 0, // 屏幕高度
|
screenHeight: 0, // 屏幕高度
|
||||||
ticking: false, // 用于requestAnimationFrame节流
|
lastMoveTime: 0, // 上次移动的时间戳,用于节流
|
||||||
|
lastMoveTime: 0, // 上次移动的时间戳,用于节流
|
||||||
|
|
||||||
|
isShowAllData: true, // 判断是否点击了服务区 没有点击 就显示全部的数据 点击了 就显示单个服务区的具体每个品牌的数据
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
let systemInfo = uni.getSystemInfoSync();
|
let systemInfo = uni.getSystemInfoSync();
|
||||||
|
|
||||||
console.log("systemInfo", systemInfo);
|
console.log("systemInfo", systemInfo);
|
||||||
this.positionX = systemInfo.safeArea.width - 66;
|
// this.positionX = systemInfo.safeArea.width - 66;
|
||||||
|
|
||||||
this.screenWidth = systemInfo.safeArea.width;
|
this.screenWidth = systemInfo.safeArea.width;
|
||||||
this.screenHeight = systemInfo.safeArea.height;
|
this.screenHeight = systemInfo.safeArea.height;
|
||||||
let storgeList = uni.getStorageSync("serviceList");
|
let storgeList = uni.getStorageSync("serviceList");
|
||||||
if (storgeList) {
|
if (storgeList) {
|
||||||
this.serviceList = JSON.parse(storgeList);
|
this.serviceList = JSON.parse(storgeList);
|
||||||
|
this.handleAddServiceMarkers();
|
||||||
}
|
}
|
||||||
let nearService = uni.getStorageSync("nearService");
|
let nearService = uni.getStorageSync("nearService");
|
||||||
if (nearService) {
|
if (nearService) {
|
||||||
@ -275,37 +294,52 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 给服务区添加点位
|
||||||
|
handleAddServiceMarkers() {
|
||||||
|
let list = [];
|
||||||
|
if (this.serviceList && this.serviceList.length > 0) {
|
||||||
|
this.serviceList.forEach((item) => {
|
||||||
|
list.push({
|
||||||
|
id: Number(`${item.SERVERPART_ID}`), // 使用时间戳作为唯一ID
|
||||||
|
serviceId: item.SERVERPART_ID,
|
||||||
|
serviceName: `${item.SERVERPART_NAME}`,
|
||||||
|
latitude: item.SERVERPART_Y,
|
||||||
|
longitude: item.SERVERPART_X,
|
||||||
|
iconPath: "/static/home/redFixed.svg",
|
||||||
|
width: 30,
|
||||||
|
height: 30,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.markers = list;
|
||||||
|
},
|
||||||
|
handleChangeScanBox(e) {
|
||||||
|
this.positionX = e.target.offsetLeft;
|
||||||
|
this.positionY = e.target.offsetTop;
|
||||||
|
},
|
||||||
touchStart(e) {
|
touchStart(e) {
|
||||||
this.isDragging = true;
|
this.isDragging = true;
|
||||||
this.ticking = false; // 重置ticking状态
|
|
||||||
const touch = e.touches[0];
|
const touch = e.touches[0];
|
||||||
this.startX = touch.clientX - this.positionX;
|
this.startX = touch.clientX - this.positionX;
|
||||||
this.startY = touch.clientY - this.positionY;
|
this.startY = touch.clientY - this.positionY;
|
||||||
},
|
},
|
||||||
touchMove(e) {
|
touchMove(e) {
|
||||||
if (this.isDragging) {
|
if (!this.isDragging) return;
|
||||||
// 使用requestAnimationFrame优化渲染性能
|
|
||||||
if (!this.ticking) {
|
|
||||||
this.ticking = true;
|
|
||||||
this.$nextTick(() => {
|
|
||||||
const touch = e.touches[0];
|
|
||||||
let newPosX = touch.clientX - this.startX;
|
|
||||||
let newPosY = touch.clientY - this.startY;
|
|
||||||
|
|
||||||
// 限制拖动范围,不让元素移出屏幕
|
// 使用时间戳进行节流,每16ms(约60fps)更新一次位置
|
||||||
newPosX = Math.max(0, Math.min(newPosX, this.screenWidth - 50)); // 限制 X 轴范围
|
const touch = e.touches[0];
|
||||||
newPosY = Math.max(0, Math.min(newPosY, this.screenHeight - 50)); // 限制 Y 轴范围
|
let newPosX = touch.clientX - this.startX;
|
||||||
|
let newPosY = touch.clientY - this.startY;
|
||||||
|
|
||||||
this.positionX = newPosX;
|
// 限制拖动范围,不让元素移出屏幕
|
||||||
this.positionY = newPosY;
|
newPosX = Math.max(0, Math.min(newPosX, this.screenWidth - 50)); // 限制 X 轴范围
|
||||||
this.ticking = false;
|
newPosY = Math.max(0, Math.min(newPosY, this.screenHeight - 50)); // 限制 Y 轴范围
|
||||||
});
|
|
||||||
}
|
this.positionX = newPosX;
|
||||||
}
|
this.positionY = newPosY;
|
||||||
},
|
},
|
||||||
touchEnd(e) {
|
touchEnd(e) {
|
||||||
this.isDragging = false;
|
this.isDragging = false;
|
||||||
this.ticking = false; // 重置ticking状态
|
|
||||||
},
|
},
|
||||||
// 取问号后面的参数
|
// 取问号后面的参数
|
||||||
getQueryParams(url) {
|
getQueryParams(url) {
|
||||||
@ -700,7 +734,7 @@ export default {
|
|||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 120rpx;
|
top: 120rpx;
|
||||||
left: 16rpx;
|
right: 16rpx;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
.statusItem {
|
.statusItem {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -791,10 +825,10 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
// bottom: 40rpx;
|
// bottom: 40rpx;
|
||||||
top: 120rpx;
|
// top: 0;
|
||||||
// left: 0;
|
// left: 0;
|
||||||
right: 16rpx;
|
// left: 0;
|
||||||
z-index: 1;
|
z-index: 2;
|
||||||
|
|
||||||
.scanIconBox {
|
.scanIconBox {
|
||||||
width: 100rpx;
|
width: 100rpx;
|
||||||
|
|||||||
@ -452,6 +452,10 @@
|
|||||||
v-for="(item, i) in merchantList"
|
v-for="(item, i) in merchantList"
|
||||||
:key="i"
|
:key="i"
|
||||||
@click="goShop(item)"
|
@click="goShop(item)"
|
||||||
|
:style="{
|
||||||
|
marginBottom: i + 1 === merchantList.length ? '0' : '',
|
||||||
|
borderWidth: i + 1 === merchantList.length ? '0' : '',
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<div class="shopItemTop">
|
<div class="shopItemTop">
|
||||||
@ -553,7 +557,11 @@
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
class="shopList"
|
class="shopList"
|
||||||
v-if="item.GoodsList && item.GoodsList.length > 0"
|
v-if="
|
||||||
|
item.GoodsList &&
|
||||||
|
item.GoodsList.length > 0 &&
|
||||||
|
item.SCANCODE_ORDER === 1
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="shopItem"
|
class="shopItem"
|
||||||
@ -1130,6 +1138,7 @@ export default {
|
|||||||
}, // 充电桩数据
|
}, // 充电桩数据
|
||||||
loginType: "",
|
loginType: "",
|
||||||
come: "", // 来自哪个页面
|
come: "", // 来自哪个页面
|
||||||
|
isFirst: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async onLoad(query) {
|
async onLoad(query) {
|
||||||
@ -1153,14 +1162,19 @@ export default {
|
|||||||
await this.handleGetMerchant();
|
await this.handleGetMerchant();
|
||||||
},
|
},
|
||||||
async onShow() {
|
async onShow() {
|
||||||
let currentService = uni.getStorageSync("currentService");
|
if (this.isFirst) {
|
||||||
if (
|
this.isFirst = false;
|
||||||
currentService.SERVERPART_ID !== this.serverpart &&
|
} else {
|
||||||
this.come !== "chargeBox"
|
let currentService = uni.getStorageSync("currentService");
|
||||||
) {
|
console.log("onShow", currentService);
|
||||||
this.serverpart = currentService.SERVERPART_ID;
|
console.log("serverpart", this.serverpart);
|
||||||
await this.handleGetServerpartDetail(this.serverpart);
|
console.log("come", this.come);
|
||||||
await this.handleGetMerchant();
|
// && this.come !== "chargeBox"
|
||||||
|
if (currentService.SERVERPART_ID !== this.serverpart) {
|
||||||
|
this.serverpart = currentService.SERVERPART_ID;
|
||||||
|
await this.handleGetServerpartDetail(this.serverpart);
|
||||||
|
await this.handleGetMerchant();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -1530,7 +1544,7 @@ export default {
|
|||||||
pageSize: 9999,
|
pageSize: 9999,
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
});
|
});
|
||||||
let list = data.Data.List;
|
let list = data.Data.List || [];
|
||||||
console.log("handleGetMerchant", list);
|
console.log("handleGetMerchant", list);
|
||||||
this.merchantList = list;
|
this.merchantList = list;
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
@ -1607,7 +1621,7 @@ export default {
|
|||||||
.currentServiceBox {
|
.currentServiceBox {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12rpx 16rpx;
|
padding: 8rpx 16rpx;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
border: 1rpx solid #e7e7e6;
|
border: 1rpx solid #e7e7e6;
|
||||||
@ -2441,6 +2455,7 @@ export default {
|
|||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newTabList {
|
.newTabList {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -282,7 +282,7 @@
|
|||||||
padding: 24rpx;
|
padding: 24rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
.main .pageList .listBox .shopItem .leftImgNew.data-v-57bb4cfa {
|
.main .pageList .listBox .shopItem .leftImgNew.data-v-57bb4cfa {
|
||||||
width: 200rpx;
|
width: 200rpx;
|
||||||
@ -297,7 +297,6 @@
|
|||||||
}
|
}
|
||||||
.main .pageList .listBox .shopItem .rightItem.data-v-57bb4cfa {
|
.main .pageList .listBox .shopItem .rightItem.data-v-57bb4cfa {
|
||||||
width: calc(100% - 200rpx);
|
width: calc(100% - 200rpx);
|
||||||
height: 200rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
.main .top .topContent .currentServiceBox.data-v-5ed2f26c {
|
.main .top .topContent .currentServiceBox.data-v-5ed2f26c {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12rpx 20rpx;
|
padding: 8rpx 20rpx;
|
||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
border: 1rpx solid #e7e7e6;
|
border: 1rpx solid #e7e7e6;
|
||||||
}
|
}
|
||||||
@ -69,9 +69,9 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-family: "PingFangSC";
|
font-family: "PingFangSC";
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 30rpx;
|
font-size: 28rpx;
|
||||||
color: #716f69;
|
color: #716f69;
|
||||||
line-height: 42rpx;
|
line-height: 36rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
padding-bottom: 16rpx;
|
padding-bottom: 16rpx;
|
||||||
@ -108,7 +108,7 @@
|
|||||||
}
|
}
|
||||||
.main .todayRecommendation.data-v-5ed2f26c {
|
.main .todayRecommendation.data-v-5ed2f26c {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 48rpx;
|
margin-top: 24rpx;
|
||||||
}
|
}
|
||||||
.main .todayRecommendation .todayTitle.data-v-5ed2f26c {
|
.main .todayRecommendation .todayTitle.data-v-5ed2f26c {
|
||||||
font-family: "PingFangSC";
|
font-family: "PingFangSC";
|
||||||
@ -134,7 +134,7 @@
|
|||||||
.main .selectService .currentServiceBox.data-v-5ed2f26c {
|
.main .selectService .currentServiceBox.data-v-5ed2f26c {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12rpx 20rpx;
|
padding: 8rpx 20rpx;
|
||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
border: 1rpx solid #e7e7e6;
|
border: 1rpx solid #e7e7e6;
|
||||||
}
|
}
|
||||||
@ -241,7 +241,7 @@
|
|||||||
.main .header .currentServiceBox.data-v-5ed2f26c {
|
.main .header .currentServiceBox.data-v-5ed2f26c {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12rpx 20rpx;
|
padding: 8rpx 20rpx;
|
||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
border: 1rpx solid #e7e7e6;
|
border: 1rpx solid #e7e7e6;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1296,7 +1296,10 @@ var _default = {
|
|||||||
Province_Code: "340000",
|
Province_Code: "340000",
|
||||||
longitude: longitude,
|
longitude: longitude,
|
||||||
latitude: latitude
|
latitude: latitude
|
||||||
|
// longitude: 117.202392,
|
||||||
|
// latitude: 31.833196,
|
||||||
};
|
};
|
||||||
|
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "查找最近的服务区..."
|
title: "查找最近的服务区..."
|
||||||
});
|
});
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -46,12 +46,12 @@
|
|||||||
}
|
}
|
||||||
.main .topBox .topContent .topRight.data-v-71e217db {
|
.main .topBox .topContent .topRight.data-v-71e217db {
|
||||||
width: 302rpx;
|
width: 302rpx;
|
||||||
height: 72rpx;
|
height: 62rpx;
|
||||||
background: #f6f8fa;
|
background: #f6f8fa;
|
||||||
border-radius: 36rpx;
|
border-radius: 36rpx;
|
||||||
margin-left: 24rpx;
|
margin-left: 24rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 16rpx 20rpx;
|
padding: 12rpx 20rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
@ -323,11 +323,11 @@
|
|||||||
.main .content .otherFunBox.data-v-71e217db {
|
.main .content .otherFunBox.data-v-71e217db {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 32rpx 0 0 0;
|
padding: 24rpx 0 0 0;
|
||||||
background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
|
background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
border: 2rpx solid #f3f3f3;
|
border: 2rpx solid #f3f3f3;
|
||||||
margin-top: 32rpx;
|
margin-top: 24rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@ -338,7 +338,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 32rpx;
|
margin-bottom: 24rpx;
|
||||||
}
|
}
|
||||||
.main .content .otherFunBox .funItem .funItemIcon.data-v-71e217db {
|
.main .content .otherFunBox .funItem .funItemIcon.data-v-71e217db {
|
||||||
width: 48rpx;
|
width: 48rpx;
|
||||||
@ -360,7 +360,7 @@
|
|||||||
background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
|
background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
border: 2rpx solid #f3f3f3;
|
border: 2rpx solid #f3f3f3;
|
||||||
margin-top: 32rpx;
|
margin-top: 24rpx;
|
||||||
padding: 24rpx;
|
padding: 24rpx;
|
||||||
}
|
}
|
||||||
.main .content .highwayHeadlines .headTop.data-v-71e217db {
|
.main .content .highwayHeadlines .headTop.data-v-71e217db {
|
||||||
|
|||||||
@ -106,13 +106,15 @@ var render = function () {
|
|||||||
var l0 = g0
|
var l0 = g0
|
||||||
? _vm.__map(_vm.shopList, function (item, index) {
|
? _vm.__map(_vm.shopList, function (item, index) {
|
||||||
var $orig = _vm.__get_orig(item)
|
var $orig = _vm.__get_orig(item)
|
||||||
var g1 = item.CouponList && item.CouponList.length > 0
|
var g1 = _vm.shopList.length
|
||||||
var g2 = g1
|
var g2 = _vm.shopList.length
|
||||||
|
var g3 = item.CouponList && item.CouponList.length > 0
|
||||||
|
var g4 = g3
|
||||||
? item.SCANCODE_ORDER === 1 &&
|
? item.SCANCODE_ORDER === 1 &&
|
||||||
item.CouponList &&
|
item.CouponList &&
|
||||||
item.CouponList.length > 0
|
item.CouponList.length > 0
|
||||||
: null
|
: null
|
||||||
var g3 =
|
var g5 =
|
||||||
item.GoodsList &&
|
item.GoodsList &&
|
||||||
item.GoodsList.length > 0 &&
|
item.GoodsList.length > 0 &&
|
||||||
item.SCANCODE_ORDER === 1
|
item.SCANCODE_ORDER === 1
|
||||||
@ -121,17 +123,19 @@ var render = function () {
|
|||||||
g1: g1,
|
g1: g1,
|
||||||
g2: g2,
|
g2: g2,
|
||||||
g3: g3,
|
g3: g3,
|
||||||
|
g4: g4,
|
||||||
|
g5: g5,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
: null
|
: null
|
||||||
var g4 = !g0 ? _vm.shopList && _vm.shopList.length > 0 : null
|
var g6 = !g0 ? _vm.shopList && _vm.shopList.length > 0 : null
|
||||||
_vm.$mp.data = Object.assign(
|
_vm.$mp.data = Object.assign(
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
$root: {
|
$root: {
|
||||||
g0: g0,
|
g0: g0,
|
||||||
l0: l0,
|
l0: l0,
|
||||||
g4: g4,
|
g6: g6,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -25,7 +25,7 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border: 1rpx solid #e7e7e6;
|
border: 1rpx solid #e7e7e6;
|
||||||
border-radius: 48rpx;
|
border-radius: 48rpx;
|
||||||
padding: 12rpx 24rpx;
|
padding: 8rpx 24rpx;
|
||||||
}
|
}
|
||||||
.main .top .topContent .first .addressIcon.data-v-c850b6c4 {
|
.main .top .topContent .first .addressIcon.data-v-c850b6c4 {
|
||||||
width: 24rpx;
|
width: 24rpx;
|
||||||
|
|||||||
@ -107,18 +107,25 @@ var render = function () {
|
|||||||
var l0 = g1
|
var l0 = g1
|
||||||
? _vm.__map(_vm.merchantList, function (item, i) {
|
? _vm.__map(_vm.merchantList, function (item, i) {
|
||||||
var $orig = _vm.__get_orig(item)
|
var $orig = _vm.__get_orig(item)
|
||||||
var g2 = item.CouponList && item.CouponList.length > 0
|
var g2 = _vm.merchantList.length
|
||||||
var g3 = g2
|
var g3 = _vm.merchantList.length
|
||||||
|
var g4 = item.CouponList && item.CouponList.length > 0
|
||||||
|
var g5 = g4
|
||||||
? item.SCANCODE_ORDER === 1 &&
|
? item.SCANCODE_ORDER === 1 &&
|
||||||
item.CouponList &&
|
item.CouponList &&
|
||||||
item.CouponList.length > 0
|
item.CouponList.length > 0
|
||||||
: null
|
: null
|
||||||
var g4 = item.GoodsList && item.GoodsList.length > 0
|
var g6 =
|
||||||
|
item.GoodsList &&
|
||||||
|
item.GoodsList.length > 0 &&
|
||||||
|
item.SCANCODE_ORDER === 1
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
g2: g2,
|
g2: g2,
|
||||||
g3: g3,
|
g3: g3,
|
||||||
g4: g4,
|
g4: g4,
|
||||||
|
g5: g5,
|
||||||
|
g6: g6,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
: null
|
: null
|
||||||
@ -226,7 +233,9 @@ var _default = {
|
|||||||
},
|
},
|
||||||
// 充电桩数据
|
// 充电桩数据
|
||||||
loginType: "",
|
loginType: "",
|
||||||
come: "" // 来自哪个页面
|
come: "",
|
||||||
|
// 来自哪个页面
|
||||||
|
isFirst: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad: function onLoad(query) {
|
onLoad: function onLoad(query) {
|
||||||
@ -273,18 +282,30 @@ var _default = {
|
|||||||
while (1) {
|
while (1) {
|
||||||
switch (_context2.prev = _context2.next) {
|
switch (_context2.prev = _context2.next) {
|
||||||
case 0:
|
case 0:
|
||||||
|
if (!_this2.isFirst) {
|
||||||
|
_context2.next = 4;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
_this2.isFirst = false;
|
||||||
|
_context2.next = 14;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
currentService = uni.getStorageSync("currentService");
|
currentService = uni.getStorageSync("currentService");
|
||||||
if (!(currentService.SERVERPART_ID !== _this2.serverpart && _this2.come !== "chargeBox")) {
|
console.log("onShow", currentService);
|
||||||
_context2.next = 7;
|
console.log("serverpart", _this2.serverpart);
|
||||||
|
console.log("come", _this2.come);
|
||||||
|
// && this.come !== "chargeBox"
|
||||||
|
if (!(currentService.SERVERPART_ID !== _this2.serverpart)) {
|
||||||
|
_context2.next = 14;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_this2.serverpart = currentService.SERVERPART_ID;
|
_this2.serverpart = currentService.SERVERPART_ID;
|
||||||
_context2.next = 5;
|
_context2.next = 12;
|
||||||
return _this2.handleGetServerpartDetail(_this2.serverpart);
|
return _this2.handleGetServerpartDetail(_this2.serverpart);
|
||||||
case 5:
|
case 12:
|
||||||
_context2.next = 7;
|
_context2.next = 14;
|
||||||
return _this2.handleGetMerchant();
|
return _this2.handleGetMerchant();
|
||||||
case 7:
|
case 14:
|
||||||
case "end":
|
case "end":
|
||||||
return _context2.stop();
|
return _context2.stop();
|
||||||
}
|
}
|
||||||
@ -715,7 +736,7 @@ var _default = {
|
|||||||
});
|
});
|
||||||
case 3:
|
case 3:
|
||||||
data = _context5.sent;
|
data = _context5.sent;
|
||||||
list = data.Data.List;
|
list = data.Data.List || [];
|
||||||
console.log("handleGetMerchant", list);
|
console.log("handleGetMerchant", list);
|
||||||
_this5.merchantList = list;
|
_this5.merchantList = list;
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -28,7 +28,7 @@
|
|||||||
.main .topBox .topContent .currentServiceBox.data-v-49dced80 {
|
.main .topBox .topContent .currentServiceBox.data-v-49dced80 {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12rpx 16rpx;
|
padding: 8rpx 16rpx;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
border: 1rpx solid #e7e7e6;
|
border: 1rpx solid #e7e7e6;
|
||||||
@ -732,6 +732,7 @@
|
|||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
}
|
}
|
||||||
.main .content .popularMerchants .newTabList.data-v-49dced80 {
|
.main .content .popularMerchants .newTabList.data-v-49dced80 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user