This commit is contained in:
cclu 2025-04-08 19:29:25 +08:00
parent dd2babf6ef
commit 886da2dbef
85 changed files with 477 additions and 320 deletions

View File

@ -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) {
allnewStationList.push(item);
}
});
}
});
}
let newStationList = [];
if (allnewStationList && allnewStationList.length > 0) {
allnewStationList.forEach((item) => {
if (item.StationClassification === 1) {
newStationList.push(item); 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);

View File

@ -109,7 +109,7 @@
{ {
"path": "mapIndex", "path": "mapIndex",
"style": { "style": {
"navigationBarTitleText": "点位地图", "navigationBarTitleText": "扫码充电",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"disableScroll": true "disableScroll": true
} }

View File

@ -32,7 +32,6 @@
<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() {
let currentService = uni.getStorageSync("currentService");
if (currentService) {
this.serverPart = currentService;
this.handleGetServiceDetail(); this.handleGetServiceDetail();
}
}, },
methods: { methods: {
handleBack() { handleBack() {

View File

@ -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) {

View File

@ -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() {

View File

@ -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;

View File

@ -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;

View File

@ -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 {

View File

@ -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;

View File

@ -4,6 +4,7 @@
:class="showListPage ? 'mapBox moveLeft' : 'mapBox'" :class="showListPage ? 'mapBox moveLeft' : 'mapBox'"
v-if="!showListPage" v-if="!showListPage"
> >
<movable-area style="width: 100vw; height: 100vh">
<map <map
id="myMap" id="myMap"
:longitude="longitude" :longitude="longitude"
@ -38,6 +39,7 @@
</view> </view>
<view class="statusBox"> <view class="statusBox">
<view>
<!-- 国网 --> <!-- 国网 -->
<view class="statusItem"> <view class="statusItem">
<!-- <image <!-- <image
@ -146,30 +148,43 @@
</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>
<!-- @allLXDataList="handleLXAddMarker"
@allJKDataList="handleJKAddMarker"
@allGWDataList="handleGWAddMarker" -->
<view <movable-view
class="scanBox" class="scanBox"
@click="handleScan" 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" @touchstart="touchStart"
@touchmove="touchMove" @touchmove="touchMove"
@touchend="touchEnd" @touchend="touchEnd"
:style="{ top: positionY + 'px', left: positionX + 'px' }"
> :style="{ left: `${positionX}px`, top: `${positionY}px` }"
<view class="scanIconBox"> -->
<view class="scanIconBox" @click="handleScan">
<image class="scanIcon" src="/static/tabs/scanCode.svg" /> <image class="scanIcon" src="/static/tabs/scanCode.svg" />
</view> </view>
</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,19 +294,39 @@ 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) { // 使16ms60fps
this.ticking = true;
this.$nextTick(() => {
const touch = e.touches[0]; const touch = e.touches[0];
let newPosX = touch.clientX - this.startX; let newPosX = touch.clientX - this.startX;
let newPosY = touch.clientY - this.startY; let newPosY = touch.clientY - this.startY;
@ -298,14 +337,9 @@ export default {
this.positionX = newPosX; this.positionX = newPosX;
this.positionY = newPosY; this.positionY = newPosY;
this.ticking = false;
});
}
}
}, },
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;

View File

@ -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,15 +1162,20 @@ export default {
await this.handleGetMerchant(); await this.handleGetMerchant();
}, },
async onShow() { async onShow() {
if (this.isFirst) {
this.isFirst = false;
} else {
let currentService = uni.getStorageSync("currentService"); let currentService = uni.getStorageSync("currentService");
if ( console.log("onShow", currentService);
currentService.SERVERPART_ID !== this.serverpart && console.log("serverpart", this.serverpart);
this.come !== "chargeBox" console.log("come", this.come);
) { // && this.come !== "chargeBox"
if (currentService.SERVERPART_ID !== this.serverpart) {
this.serverpart = currentService.SERVERPART_ID; this.serverpart = currentService.SERVERPART_ID;
await this.handleGetServerpartDetail(this.serverpart); await this.handleGetServerpartDetail(this.serverpart);
await this.handleGetMerchant(); await this.handleGetMerchant();
} }
}
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({
@ -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

View File

@ -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;

View File

@ -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;
} }

View File

@ -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

View File

@ -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 {

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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%;