no message

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:00:29 +08:00
commit 4d06351f6a
2830 changed files with 166480 additions and 0 deletions

View File

@@ -0,0 +1 @@
<view class="p30"><mp-html u-i="984f50ea-0" onVI="__l" u-p="{{a}}"/><view style="height:100rpx"></view></view>

View File

@@ -0,0 +1,29 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
_easycom_mp_html2();
}
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
if (!Math) {
_easycom_mp_html();
}
const _sfc_main = {
__name: "agreement",
setup(__props) {
let info = common_vendor.ref({});
common_vendor.onLoad(async (options) => {
let _res = await api_api.selectProtocolInfo({ id: options.id });
info.value = _res;
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
content: common_vendor.unref(info).protocolContent
})
};
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "",
"usingComponents": {
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
}
}

View File

@@ -0,0 +1,171 @@
.orderdetail.data-v-431a10b7 {
padding-bottom: 150rpx;
}
.orderdetail_header.data-v-431a10b7 {
width: 750rpx;
position: fixed;
left: 0;
top: 0;
z-index: 99;
transition: all 0.5s;
}
.orderdetail_info.data-v-431a10b7 {
background: #ffffff;
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 25rpx;
box-shadow: 0rpx -6rpx 8rpx 2rpx rgba(66, 115, 229, 0.05);
}
.orderdetail_info_title.data-v-431a10b7 {
font-size: 32rpx;
color: #232323;
margin-bottom: 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.orderdetail_info_fy.data-v-431a10b7 {
background: linear-gradient(to right, rgba(72, 121, 230, 0.4), rgba(72, 121, 230, 0));
border-radius: 15rpx;
padding: 40rpx 20rpx 40rpx 40rpx;
color: #fff;
margin-top: 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
}
.orderdetail_info_fy_left.data-v-431a10b7 {
font-size: 32rpx;
font-weight: 800;
font-style: italic;
color: #4879e6;
}
.orderdetail_info_fy_right.data-v-431a10b7 {
font-size: 36rpx;
font-weight: 800;
color: #4879e6;
margin-left: 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
}
.orderdetail_info_zd.data-v-431a10b7 {
border-radius: 15rpx;
padding: 40rpx 20rpx 40rpx 130rpx;
background-color: #4879e6;
color: #fff;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.orderdetail_info_zd_zdbg.data-v-431a10b7 {
position: absolute;
left: 0;
top: 0;
width: 40%;
height: 100%;
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
}
.orderdetail_info_view.data-v-431a10b7 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
margin-bottom: 30rpx;
}
.orderdetail_info_view_left.data-v-431a10b7 {
font-weight: 400;
font-size: 28rpx;
color: #232323;
}
.orderdetail_info_view_right.data-v-431a10b7 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
font-weight: bold;
font-size: 28rpx;
color: #232323;
}
.orderdetail_info_view_right image.data-v-431a10b7 {
width: 28rpx;
height: 28rpx;
margin-left: 10rpx;
}
.orderdetail_info_xian.data-v-431a10b7 {
width: 100%;
border: 2rpx solid #707070;
margin-bottom: 30rpx;
opacity: 0.06;
}
.orderdetail_btn.data-v-431a10b7 {
width: 100%;
position: fixed;
left: 0;
bottom: 40rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.orderdetail_btn view.data-v-431a10b7 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
width: 330rpx;
height: 92rpx;
border-radius: 46rpx 46rpx 46rpx 46rpx;
}
.orderdetail_btn_left.data-v-431a10b7 {
background-color: #e5eaf4;
color: #4879e6;
font-size: 34rpx;
font-weight: bold;
}
.orderdetail_btn_left text.data-v-431a10b7 {
font-size: 26rpx;
}
.orderdetail_btn_right.data-v-431a10b7 {
background: #4879e6;
color: #fff;
font-weight: bold;
font-size: 32rpx;
}
.orderdetail .gun.data-v-431a10b7 {
height: 600rpx;
}
.orderdetail .gun_list.data-v-431a10b7 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
padding: 30rpx;
}
.orderdetail .gun_list_left.data-v-431a10b7 {
flex: 1;
}
.orderdetail .gun_list_left_view.data-v-431a10b7 {
font-size: 24rpx;
color: #b0b2b6;
margin-bottom: 10rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
}
.orderdetail .gun_list_left_view1.data-v-431a10b7 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
font-size: 28rpx;
color: #333;
margin-bottom: 10rpx;
}
.orderdetail.data-v-431a10b7 .u-popup__content__close--top-right {
top: 10rpx;
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,279 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
const utils_fun = require("../../utils/fun.js");
const hooks_useNav = require("../../hooks/useNav.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_orderList2 = common_vendor.resolveComponent("orderList");
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
(_easycom_up_icon2 + _easycom_up_swiper2 + _easycom_orderList2 + _easycom_up_tag2 + _easycom_up_button2 + _easycom_z_paging2 + _easycom_up_popup2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
const _easycom_orderList = () => "../../components/orderList/orderList.js";
const _easycom_up_tag = () => "../../uni_modules/uview-plus/components/u-tag/u-tag.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
const _easycom_up_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_swiper + _easycom_orderList + _easycom_up_tag + _easycom_up_button + _easycom_z_paging + _easycom_up_popup)();
}
const _sfc_main = {
__name: "detail",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
const headerBg = common_vendor.ref(false);
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
let info = common_vendor.reactive({});
let show = common_vendor.ref(false);
const dataList = common_vendor.ref([]);
const paging = common_vendor.ref(null);
let showJf = common_vendor.ref(false);
const fullCost = common_vendor.computed(() => {
var _a;
let data = (_a = info == null ? void 0 : info.priceList) == null ? void 0 : _a.find((val) => val.isCurrent == 1);
return data || {};
});
common_vendor.onLoad((options) => {
getInfo(options.id, options.distance);
});
common_vendor.onPageScroll((e) => {
if (e.scrollTop > common_vendor.index.getSystemInfoSync().statusBarHeight + 44) {
headerBg.value = true;
} else {
headerBg.value = false;
}
});
const getInfo = async (e, distance) => {
let _res = await api_api.infoAroundApi({ id: e });
_res.distance = distance;
Object.assign(info, _res);
};
common_vendor.ref(["https://cdn.uviewui.com/uview/swiper/swiper3.png", "https://cdn.uviewui.com/uview/swiper/swiper2.png", "https://cdn.uviewui.com/uview/swiper/swiper1.png"]);
let toRecharge = () => {
common_vendor.index.scanCode({
success: function(res) {
let query = utils_fun.urlQuery(res.result);
if (!query.num) {
common_vendor.index.showToast({
title: "请扫描正确的设备码",
icon: "none"
});
} else {
navTo(`/pages/home/star?id=${query.num}`);
}
}
});
};
const back = () => {
common_vendor.index.navigateBack();
};
const queryList = async () => {
api_api.listByStationId({ stationId: info.id }).then((res) => {
paging.value.complete(res);
}).catch((res) => {
paging.value.complete(false);
});
};
const showZd = () => {
show.value = true;
paging.value.reload();
};
const startCd = async (e) => {
common_vendor.index.navigateTo({
url: "./star?id=" + e.deviceGunNo
});
};
return (_ctx, _cache) => {
return {
a: statusBarHeight,
b: common_vendor.o(back),
c: common_vendor.p({
name: "arrow-left",
bold: true,
color: "#000"
}),
d: common_vendor.o(back),
e: headerBg.value ? 1 : 0,
f: common_vendor.o(() => {
}),
g: headerBg.value ? "#FFF" : "",
h: common_vendor.p({
list: common_vendor.unref(info).pictures,
height: "530rpx"
}),
i: common_vendor.p({
info: {
...common_vendor.unref(info),
priceAmount: fullCost.value.totalAmount
},
type: "info"
}),
j: common_vendor.p({
color: "#333",
size: "28rpx",
name: "arrow-right"
}),
k: common_vendor.o(($event) => common_vendor.isRef(showJf) ? showJf.value = true : showJf = true),
l: common_vendor.p({
size: "mini",
text: `当前计费时间段:${fullCost.value.startTime}-${fullCost.value.endTime}`,
plain: true,
plainFill: true
}),
m: common_vendor.t(fullCost.value.totalAmount),
n: common_assets._imports_0$4,
o: common_vendor.t(common_vendor.unref(info).gunCount - common_vendor.unref(info).gunUseCount),
p: common_vendor.t(common_vendor.unref(info).gunCount),
q: common_vendor.p({
color: "#fff",
size: "28rpx",
name: "arrow-right"
}),
r: common_vendor.o(showZd),
s: common_vendor.t(common_vendor.unref(info).merchantName),
t: common_assets._imports_1$2,
v: common_vendor.o(($event) => common_vendor.unref(utils_fun.lookImg)([common_vendor.unref(info).licenseImage])),
w: common_vendor.t(common_vendor.unref(info).busineHours),
x: common_vendor.o(($event) => common_vendor.unref(utils_fun.lookImg)([common_vendor.unref(info).licenseImage])),
y: common_vendor.t(common_vendor.unref(info).invoice),
z: common_vendor.t(common_vendor.unref(info).remarks || ""),
A: common_vendor.t(common_vendor.unref(info).stationTel),
B: common_vendor.o(($event) => common_vendor.unref(utils_fun.call)(common_vendor.unref(info).stationTel)),
C: common_vendor.t(fullCost.value.totalAmount),
D: common_vendor.o((...args) => common_vendor.unref(toRecharge) && common_vendor.unref(toRecharge)(...args)),
E: common_assets._imports_0$4,
F: common_vendor.t(common_vendor.unref(info).gunCount - common_vendor.unref(info).gunUseCount),
G: common_vendor.t(common_vendor.unref(info).gunCount),
H: common_vendor.o(($event) => common_vendor.isRef(show) ? show.value = true : show = true),
I: common_vendor.f(dataList.value, (item, index, i0) => {
return common_vendor.e({
a: item.realtimeStatus == 1
}, item.realtimeStatus == 1 ? {
b: "431a10b7-8-" + i0 + ",431a10b7-7",
c: common_vendor.p({
size: "mini",
type: "error",
text: "故障",
plain: true,
plainFill: true
})
} : item.realtimeStatus == 2 ? {
e: "431a10b7-9-" + i0 + ",431a10b7-7",
f: common_vendor.p({
size: "mini",
type: "success",
text: "空闲",
plain: true,
plainFill: true
})
} : item.realtimeStatus == 3 ? {
h: "431a10b7-10-" + i0 + ",431a10b7-7",
i: common_vendor.p({
size: "mini",
type: "warning",
text: "充电中",
plain: true,
plainFill: true
})
} : {
j: "431a10b7-11-" + i0 + ",431a10b7-7",
k: common_vendor.p({
size: "mini",
type: "error",
text: "离线",
plain: true,
plainFill: true
})
}, {
d: item.realtimeStatus == 2,
g: item.realtimeStatus == 3,
l: item.insertStatus == 1
}, item.insertStatus == 1 ? {
m: "431a10b7-12-" + i0 + ",431a10b7-7",
n: common_vendor.p({
size: "mini",
text: "已插枪",
plain: true,
plainFill: true
})
} : {}, {
o: common_vendor.t(item.gunName),
p: common_vendor.t(item.deviceNo),
q: common_vendor.t(item.maxPower),
r: common_vendor.t(item.maxVoltage),
s: item.realtimeStatus == 2
}, item.realtimeStatus == 2 ? {
t: common_vendor.o(($event) => startCd(item)),
v: "431a10b7-13-" + i0 + ",431a10b7-7",
w: common_vendor.p({
shape: "circle",
type: "success",
plain: true,
text: "启动充电"
})
} : {}, {
x: item.realtimeStatus == 1 || item.realtimeStatus == 0
}, item.realtimeStatus == 1 || item.realtimeStatus == 0 ? {
y: "431a10b7-14-" + i0 + ",431a10b7-7",
z: common_vendor.p({
shape: "circle",
type: "error",
plain: true,
text: "报故障",
openType: "contact"
})
} : {}, {
A: index
});
}),
J: () => ({
r: paging,
k: "paging"
}),
K: common_vendor.o(queryList),
L: common_vendor.o(($event) => dataList.value = $event),
M: common_vendor.p({
fixed: false,
height: "600rpx;",
auto: false,
["show-refresher-when-reload"]: true,
modelValue: dataList.value
}),
N: common_vendor.o(($event) => common_vendor.isRef(show) ? show.value = false : show = false),
O: common_vendor.p({
show: common_vendor.unref(show),
closeable: true,
round: "10"
}),
P: common_vendor.f(common_vendor.unref(info).priceList, (item, index, i0) => {
return common_vendor.e({
a: item.isCurrent == 1
}, item.isCurrent == 1 ? {} : {}, {
b: common_vendor.t(item.startTime),
c: common_vendor.t(item.endTime),
d: common_vendor.t(item.electricityRate),
e: common_vendor.t(item.serviceFeeRate),
f: common_vendor.t(item.totalAmount),
g: index
});
}),
Q: common_vendor.o(($event) => common_vendor.isRef(showJf) ? showJf.value = false : showJf = false),
R: common_vendor.p({
show: common_vendor.unref(showJf),
closeable: true,
round: "10"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-431a10b7"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,14 @@
{
"defaultTitle": "电站详情",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"order-list": "../../components/orderList/orderList",
"up-tag": "../../uni_modules/uview-plus/components/u-tag/u-tag",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
}
}

View File

@@ -0,0 +1,80 @@
page {
background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}
.search_header.data-v-07e72d3c {
position: relative;
}
.search_header_blur.data-v-07e72d3c {
width: 100%;
height: 185rpx;
position: absolute;
top: 0;
left: 0;
background: #dbe6ff;
opacity: 0.8;
filter: blur(50px);
z-index: 0;
}
.search_header_grid.data-v-07e72d3c {
margin: 35rpx 0;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.search_header_grid_view.data-v-07e72d3c {
display: flex;
flex-direction: column;
align-items: center;
width: 126rpx;
font-size: 26rpx;
}
.search_header_grid_view image.data-v-07e72d3c {
width: 99rpx;
height: 99rpx;
margin-bottom: 10rpx;
}
.order_list.data-v-07e72d3c {
width: 750rpx;
background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(88, 140, 255, 0.1);
border-radius: 44rpx 44rpx 0rpx 0rpx;
}
.order_list_header.data-v-07e72d3c {
width: 100%;
height: 100rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
font-weight: bold;
font-size: 36rpx;
color: #232323;
position: -webkit-sticky;
position: sticky;
top: 360rpx;
left: 0;
}
.order_list_header_view.data-v-07e72d3c {
position: relative;
margin-right: 50rpx;
}
.order_list_header_view view.data-v-07e72d3c {
position: relative;
z-index: 99;
}
.order_list_header_view_dian.data-v-07e72d3c {
position: absolute !important;
bottom: 0rpx;
right: 20rpx;
width: 66rpx;
height: 20rpx;
background-color: #4879e6;
border-radius: 10rpx;
z-index: 1 !important;
}
button.data-v-07e72d3c::after {
all: unset;
}

View File

@@ -0,0 +1 @@
<view class="data-v-07e72d3c"><view class="search_header p30 data-v-07e72d3c"><view class="data-v-07e72d3c" style="width:100%"><view class="search_header_blur data-v-07e72d3c"></view><search class="data-v-07e72d3c" onSearch="{{a}}" u-i="07e72d3c-0" onVI="__l"/></view><view class="data-v-07e72d3c" style="margin:30rpx 0 0"><up-swiper class="data-v-07e72d3c" u-i="07e72d3c-1" onVI="__l" u-p="{{b}}"></up-swiper></view><view class="search_header_grid data-v-07e72d3c" style="position:sticky;top:0;left:0"><view class="search_header_grid_view data-v-07e72d3c" onTap="{{d}}"><image class="data-v-07e72d3c" src="{{c}}"></image><view class="data-v-07e72d3c">我的订单</view></view><view class="search_header_grid_view data-v-07e72d3c" onTap="{{f}}"><image class="data-v-07e72d3c" src="{{e}}"></image><view class="data-v-07e72d3c">卡卷中心</view></view><view class="search_header_grid_view data-v-07e72d3c" onTap="{{h}}"><image class="data-v-07e72d3c" src="{{g}}"></image><view class="data-v-07e72d3c">我要开票</view></view><button class="data-v-07e72d3c" style="all:unset" open-type="contact"><view class="search_header_grid_view data-v-07e72d3c"><image class="data-v-07e72d3c" src="{{i}}"></image><view class="data-v-07e72d3c">在线客服</view></view></button></view></view><z-paging class="data-v-07e72d3c" u-s="{{['d']}}" ref="__r" u-r="{{o}}" onQuery="{{p}}" u-i="07e72d3c-2" onVI="__l" onUpdateModelValue="{{q}}" u-p="{{r}}"><view class="order_list data-v-07e72d3c" style="position:sticky;top:0;left:0"><view class="order_list_header p30 data-v-07e72d3c"><view class="order_list_header_view data-v-07e72d3c" onTap="{{k}}"><view class="data-v-07e72d3c">距我最近</view><view a:if="{{j}}" class="order_list_header_view_dian data-v-07e72d3c"></view></view><view class="order_list_header_view data-v-07e72d3c" onTap="{{m}}"><view class="data-v-07e72d3c">空闲最多</view><view a:if="{{l}}" class="order_list_header_view_dian data-v-07e72d3c"></view></view></view></view><view a:for="{{n}}" a:for-item="item" a:key="c" class="data-v-07e72d3c" style="padding:0 30rpx;margin:30rpx 0"><order-list class="data-v-07e72d3c" u-i="{{item.a}}" onVI="__l" u-p="{{item.b}}"></order-list></view></z-paging><view class="data-v-07e72d3c" style="height:180rpx"></view><tabbar class="data-v-07e72d3c" u-i="07e72d3c-4" onVI="__l" u-p="{{s}}"></tabbar></view>

View File

@@ -0,0 +1,160 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
const hooks_useNav = require("../../hooks/useNav.js");
if (!Array) {
const _easycom_search2 = common_vendor.resolveComponent("search");
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_orderList2 = common_vendor.resolveComponent("orderList");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
(_easycom_search2 + _easycom_up_swiper2 + _easycom_orderList2 + _easycom_z_paging2 + _easycom_tabbar2)();
}
const _easycom_search = () => "../../components/search/search.js";
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
const _easycom_orderList = () => "../../components/orderList/orderList.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
if (!Math) {
(_easycom_search + _easycom_up_swiper + _easycom_orderList + _easycom_z_paging + _easycom_tabbar)();
}
const _sfc_main = {
__name: "home",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
const dataList = common_vendor.ref([]);
const paging = common_vendor.ref(null);
const query = common_vendor.reactive({
lon: "",
lat: "",
orderByType: 1,
//1-最近;2-空闲较多
keyWord: ""
});
const list1 = common_vendor.ref([]);
common_vendor.onLoad(async () => {
let _res = await api_api.bannerList();
list1.value = _res;
});
common_vendor.onShow(() => {
common_vendor.index.hideTabBar();
});
const queryList = async () => {
common_vendor.index.showLoading({
title: "加载中..."
});
try {
if (!query.lon && !query.lat) {
const { longitude: lon, latitude: lat } = await common_vendor.index.getLocation();
query.lon = lon;
query.lat = lat;
}
} catch (err) {
console.log(err);
}
console.log(query);
api_api.aroundAreaApi(query).then((res) => {
console.log(res, "list");
paging.value.complete(res);
common_vendor.index.hideLoading();
}).catch((res) => {
paging.value.complete(false);
common_vendor.index.hideLoading();
});
};
let tabChange = (e) => {
query.orderByType = e;
paging.value.reload();
};
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const toOrder = () => {
common_vendor.index.switchTab({
url: "/pages/order/order"
});
};
let searchChange = (e) => {
query.keyWord = e;
paging.value.reload();
};
let showMode = () => {
common_vendor.index.showModal({
title: "提示",
content: "暂未开放",
showCancel: false,
confirmText: "确认",
success: () => {
}
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(common_vendor.unref(searchChange)),
b: common_vendor.p({
list: list1.value,
height: "150rpx",
keyName: "imageUrl",
indicator: true
}),
c: common_assets._imports_0,
d: common_vendor.o(toOrder),
e: common_assets._imports_1,
f: common_vendor.o((...args) => common_vendor.unref(showMode) && common_vendor.unref(showMode)(...args)),
g: common_assets._imports_2,
h: common_vendor.o(($event) => common_vendor.unref(navTo)("/pageMake/invoice/invoice")),
i: common_assets._imports_3,
j: query.orderByType == 1
}, query.orderByType == 1 ? {} : {}, {
k: common_vendor.o(($event) => common_vendor.unref(tabChange)(1)),
l: query.orderByType == 2
}, query.orderByType == 2 ? {} : {}, {
m: common_vendor.o(($event) => common_vendor.unref(tabChange)(2)),
n: common_vendor.f(dataList.value, (item, index, i0) => {
return {
a: "07e72d3c-3-" + i0 + ",07e72d3c-2",
b: common_vendor.p({
toNav: true,
info: item
}),
c: index
};
}),
o: () => ({
r: paging,
k: "paging"
}),
p: common_vendor.o(queryList),
q: common_vendor.o(($event) => dataList.value = $event),
r: common_vendor.p({
["use-page-scroll"]: true,
modelValue: dataList.value
}),
s: common_vendor.p({
path: "/pages/home/home"
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-07e72d3c"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,13 @@
{
"defaultTitle": "",
"pullRefresh": false,
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"search": "../../components/search/search",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"order-list": "../../components/orderList/orderList",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"tabbar": "../../components/tabbar/tabbar"
}
}

View File

@@ -0,0 +1,110 @@
.star_pile {
width: 100%;
box-shadow: 0rpx -6rpx 8rpx 2rpx rgba(66, 115, 229, 0.05);
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 20rpx;
background-color: #fff;
}
.orderdetail_info {
background: #ffffff;
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 25rpx;
box-shadow: 0rpx -6rpx 8rpx 2rpx rgba(66, 115, 229, 0.05);
}
.orderdetail_info_title {
font-size: 32rpx;
color: #232323;
margin-bottom: 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.orderdetail_info_fy {
background: linear-gradient(to right, rgba(72, 121, 230, 0.4), rgba(72, 121, 230, 0));
border-radius: 15rpx;
padding: 40rpx 20rpx 40rpx 40rpx;
color: #fff;
margin-top: 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
}
.orderdetail_info_fy_left {
font-size: 32rpx;
font-weight: 800;
font-style: italic;
color: #4879e6;
}
.orderdetail_info_fy_right {
font-size: 36rpx;
font-weight: 800;
color: #4879e6;
margin-left: 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
}
.orderdetail_info_yf {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.orderdetail_info_yf_left view {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
}
.orderdetail_info_yf_left_tit {
font-size: 28rpx;
color: rgba(51, 51, 51, 0.8);
margin-bottom: 20rpx;
}
.orderdetail_info_yf_left_mon {
font-size: 32rpx;
}
.orderdetail_info_yf_right {
padding: 15rpx 30rpx;
color: #1779ff;
border: 1rpx solid #1779ff;
border-radius: 50rpx;
}
.orderdetail_btn {
width: 100%;
position: fixed;
left: 0;
bottom: 0rpx;
padding: 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.orderdetail_btn_left {
color: #333;
font-size: 38rpx;
font-weight: bold;
}
.orderdetail_btn_left text {
font-size: 26rpx;
font-weight: 500;
}
.orderdetail_btn_right {
background: #1779ff;
color: #fff;
font-weight: bold;
font-size: 32rpx;
padding: 0 40rpx;
}
.wallet_list {
border-radius: 15rpx;
background-color: #4879e6;
padding: 20rpx 50rpx 20rpx 30rpx;
display: flex;
align-items: flex-end;
justify-content: space-between;
}

View File

@@ -0,0 +1 @@
<view class="p30"><view class="orderdetail_info" style="margin-bottom:30rpx"><view class="orderdetail_info_title"><view>{{a}}</view></view><view style="font-size:26rpx;margin-bottom:15rpx;display:flex;align-items:center"><view style="opacity:0.7">枪号:{{b}}</view><image style="width:40rpx;height:40rpx;margin-left:15rpx" src="{{c}}" onTap="{{d}}" mode="widthFix"></image></view><view style="font-size:26rpx;margin-bottom:15rpx;opacity:0.7">停车收费说明:{{e}}</view><view style="font-size:26rpx;opacity:0.7">占用收费说明:{{f}}</view></view><view class="orderdetail_info" style="margin-bottom:30rpx"><view class="orderdetail_info_title"><view>费用信息</view></view><view style="max-width:420rpx"><up-tag u-i="2dd6a3c8-0" onVI="__l" u-p="{{g}}"></up-tag></view><view class="orderdetail_info_fy"><view class="orderdetail_info_fy_left">电站价格</view><view class="orderdetail_info_fy_right">{{h}} <text style="font-weight:500;font-size:24rpx;color:#333;margin-left:15rpx">元/度</text></view></view></view><view class="orderdetail_info" style="margin-bottom:30rpx"><view class="orderdetail_info_title"><view style="display:flex;align-items:center"><view>充电信息</view><view style="margin-left:15rpx"><up-tag a:if="{{i}}" u-i="2dd6a3c8-1" onVI="__l" u-p="{{j}}"></up-tag></view></view></view><view class="flex-acsb" style="font-size:30rpx;margin-bottom:30rpx" onTap="{{l}}"><view>支付方式</view><view>{{k}}</view></view><view a:if="{{m}}" class="orderdetail_info_yf"><view class="orderdetail_info_yf_left"><view class="orderdetail_info_yf_left_tit"><view style="margin-right:30rpx">预付费</view><up-tag u-i="2dd6a3c8-2" onVI="__l" u-p="{{n}}"></up-tag></view><view class="orderdetail_info_yf_left_mon">预付金额:{{o}} 元</view></view><view class="orderdetail_info_yf_right" onTap="{{p}}">预付金额</view></view><view a:if="{{q}}"><view class="flex-acsb" style="font-size:30rpx;margin-bottom:20rpx"><view>当前可用电卡</view></view><view a:for="{{r}}" a:for-item="item" a:key="h" onTap="{{item.g}}" style="margin-bottom:30rpx;position:relative" class="mt30 wallet_list"><view a:if="{{item.a}}" style="position:absolute;top:0;left:0;background-color:#e45656;border-radius:0 0 20rpx 0"><up-icon u-i="{{item.b}}" onVI="__l" u-p="{{item.c}}"></up-icon></view><view style="color:#fff"><view style="font-weight:bold;font-size:30rpx;margin-bottom:18rpx">{{item.d}}</view><view style="font-size:28rpx;color:#eee">卡号:{{item.e}}</view></view><view style="display:flex;flex-direction:column;align-items:center;color:#fff;font-weight:bold;font-size:26rpx"><view style="font-size:36rpx;margin-bottom:10rpx">{{item.f}}</view><view style="font-weight:500">余额</view></view></view></view></view><view class="orderdetail_btn p30" style="background-color:#fff"><view class="orderdetail_btn_left">{{s}} <text>元/度 免费停车</text></view><view><up-button a:if="{{t}}" u-i="2dd6a3c8-4" onVI="__l" u-p="{{v}}"></up-button><up-button a:if="{{w}}" onClick="{{x}}" u-i="2dd6a3c8-5" onVI="__l" u-p="{{y}}"></up-button><up-button a:if="{{z}}" onClick="{{A}}" u-i="2dd6a3c8-6" onVI="__l" u-p="{{B}}"></up-button></view></view><uni-popup u-s="{{['d']}}" ref="__r" u-r="{{F}}" u-i="2dd6a3c8-7" onVI="__l" u-p="{{G}}"><uni-popup-dialog ref="__r" u-r="{{C}}" onConfirm="{{D}}" u-i="2dd6a3c8-8,2dd6a3c8-7" onVI="__l" u-p="{{E}}"></uni-popup-dialog></uni-popup></view>

View File

@@ -0,0 +1,300 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
const store_index = require("../../store/index.js");
const utils_fun = require("../../utils/fun.js");
if (!Array) {
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
const _easycom_uni_popup_dialog2 = common_vendor.resolveComponent("uni-popup-dialog");
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_easycom_up_tag2 + _easycom_up_icon2 + _easycom_up_button2 + _easycom_uni_popup_dialog2 + _easycom_uni_popup2)();
}
const _easycom_up_tag = () => "../../uni_modules/uview-plus/components/u-tag/u-tag.js";
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
const _easycom_uni_popup_dialog = () => "../../uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js";
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_up_tag + _easycom_up_icon + _easycom_up_button + _easycom_uni_popup_dialog + _easycom_uni_popup)();
}
const _sfc_main = {
__name: "star",
setup(__props) {
const inputDialog = common_vendor.ref(null);
let info = common_vendor.reactive({});
let currentPrice = common_vendor.ref({});
let id = common_vendor.ref("");
let userCard = common_vendor.ref([]);
let userCardId = common_vendor.ref(null);
let payType = common_vendor.ref(null);
let dataForm = common_vendor.reactive({
money: 30
});
common_vendor.onLoad((options) => {
if (options.q) {
let search = decodeURIComponent(options.q);
search = search.split("?")[1];
const pairs = search ? search.split("&") : [];
const query = {};
for (let i = 0; i < pairs.length; ++i) {
const [key, value] = pairs[i].split("=");
query[key] = query[key] || decodeURIComponent(value);
}
if (query.num) {
id.value = query.num;
infoDate(query.num);
}
}
if (options.id) {
id.value = options.id;
infoDate(options.id);
}
});
let getUserCard = async (e) => {
let _res = await api_api.userCardUsableList({ stationId: e });
userCard.value = _res;
if (_res.length == 0) {
payType.value = 1;
}
};
let infoDate = async (e) => {
let _res = await api_api.gunInfo({ deviceNo: e });
info = _res;
getUserCard(_res.stationId);
currentPrice.value = _res.currentPrice;
console.log(_res.deviceNo, "_res.deviceNo");
console.log(_res.gunNo, "_res.gunNo");
store_index.store.commit("setInsertStatus", _res.insertStatus);
common_vendor.index.sendSocketMessage({
data: JSON.stringify({
command: "sub",
deviceNo: _res.deviceNo,
gunNo: _res.gunNo
}),
success: (res) => {
console.log("发送成功");
},
fail: (err) => {
console.log(err);
console.log("发送失败");
}
});
};
let dialogInputConfirm = (e) => {
dataForm.money = e;
};
let openDialog = () => {
console.log(12345);
inputDialog.value.open();
};
let toRechargeCard = async () => {
common_vendor.index.showLoading({
title: "启动充电中...",
mask: true
});
let _res = await api_api.startChargingByCard({
deviceNo: info.deviceNo,
gunNo: info.gunNo,
amount: dataForm.money,
userCardId: userCardId.value
});
store_index.store.commit("setTransactionNo", _res.transactionNo);
store_index.store.commit("setSokStatus", 0);
timeMap(_res);
};
let toRecharge = async () => {
common_vendor.index.showLoading({
title: "启动充电中...",
mask: true
});
let _res = await api_api.startChargingByWallet({
deviceNo: info.deviceNo,
gunNo: info.gunNo,
amount: dataForm.money
});
store_index.store.commit("setTransactionNo", _res.transactionNo);
store_index.store.commit("setSokStatus", 0);
timeMap(_res);
};
const timeMap = (_res) => {
var time = setInterval(async () => {
if (store_index.store.state.sokStatus != 1) {
let _data = await api_api.ordersInfo({
transactionNo: _res.transactionNo
});
store_index.store.commit("setDataObj", _data);
if (_data.status == 3) {
common_vendor.index.hideLoading();
common_vendor.index.navigateTo({
url: `/pageOrder/recharge/recharge?transactionNo=${_res.transactionNo}&type=order`
});
clearTimeout(time);
store_index.store.commit("setSokStatus", 0);
}
if (_data.status == -1) {
common_vendor.index.hideLoading();
common_vendor.index.showModal({
title: "提示",
content: "启动失败,请重试",
showCancel: false,
confirmText: "确认",
success: () => {
}
});
clearTimeout(time);
store_index.store.commit("setSokStatus", 0);
}
if (_data.status == -2) {
common_vendor.index.hideLoading();
common_vendor.index.showModal({
title: "提示",
content: "启动超时,请重试",
showCancel: false,
confirmText: "确认",
success: () => {
}
});
clearTimeout(time);
store_index.store.commit("setSokStatus", 0);
}
}
}, 5e3);
};
const payTo = () => {
let itemList = ["余额付款"];
if (userCard.value.length != 0) {
itemList.push("电卡支付");
}
common_vendor.index.showActionSheet({
itemList,
success: function(res) {
payType.value = res.tapIndex + 1;
},
fail: function(res) {
console.log(res.errMsg);
}
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.t(common_vendor.unref(info).stationName),
b: common_vendor.t(common_vendor.unref(info).gunName),
c: common_assets._imports_0$6,
d: common_vendor.o(($event) => common_vendor.unref(utils_fun.copy)(common_vendor.unref(info).gunName)),
e: common_vendor.t(common_vendor.unref(info).occupyCostInfo),
f: common_vendor.t(common_vendor.unref(info).parkCostInfo),
g: common_vendor.p({
size: "mini",
text: `当前计费时间段:${common_vendor.unref(currentPrice).startTime}-${common_vendor.unref(currentPrice).endTime}`,
plain: true,
plainFill: true
}),
h: common_vendor.t(common_vendor.unref(currentPrice).totalAmount),
i: common_vendor.unref(store_index.store).state.insertStatus == 1
}, common_vendor.unref(store_index.store).state.insertStatus == 1 ? {
j: common_vendor.p({
size: "mini",
text: "已插枪",
plain: true,
plainFill: true
})
} : {}, {
k: common_vendor.t(common_vendor.unref(payType) == 1 ? "余额付款" : common_vendor.unref(payType) == 2 ? "电卡支付" : "请选择"),
l: common_vendor.o(payTo),
m: common_vendor.unref(payType) == 1
}, common_vendor.unref(payType) == 1 ? {
n: common_vendor.p({
size: "mini",
text: `余额原路退款`,
plain: true,
plainFill: true
}),
o: common_vendor.t(common_vendor.unref(dataForm).money),
p: common_vendor.o((...args) => common_vendor.unref(openDialog) && common_vendor.unref(openDialog)(...args))
} : {}, {
q: common_vendor.unref(payType) == 2
}, common_vendor.unref(payType) == 2 ? {
r: common_vendor.f(common_vendor.unref(userCard), (item, index, i0) => {
return common_vendor.e({
a: common_vendor.unref(userCardId) == item.id
}, common_vendor.unref(userCardId) == item.id ? {
b: "2dd6a3c8-3-" + i0,
c: common_vendor.p({
name: "checkbox-mark",
color: "#fff"
})
} : {}, {
d: common_vendor.t(item.name),
e: common_vendor.t(item.cardNo),
f: common_vendor.t(item.balance),
g: common_vendor.o(($event) => common_vendor.isRef(userCardId) ? userCardId.value = item.id : userCardId = item.id),
h: index
});
})
} : {}, {
s: common_vendor.t(common_vendor.unref(currentPrice).totalAmount),
t: !common_vendor.unref(payType)
}, !common_vendor.unref(payType) ? {
v: common_vendor.p({
customStyle: {
height: "80rpx",
width: "230rpx"
},
disabled: true,
color: "#4879e6",
text: "请选择支付方式",
shape: "circle"
})
} : {}, {
w: common_vendor.unref(payType) == 1
}, common_vendor.unref(payType) == 1 ? {
x: common_vendor.o(common_vendor.unref(toRecharge)),
y: common_vendor.p({
customStyle: {
height: "80rpx",
width: "280rpx"
},
color: "#4879e6",
shape: "circle",
text: "余额支付,启动充电"
})
} : {}, {
z: common_vendor.unref(payType) == 2
}, common_vendor.unref(payType) == 2 ? {
A: common_vendor.o(common_vendor.unref(toRechargeCard)),
B: common_vendor.p({
customStyle: {
height: "80rpx",
width: "280rpx"
},
disabled: !common_vendor.unref(userCardId),
color: "#4879e6",
text: common_vendor.unref(userCardId) ? "电卡支付,启动充电" : "请选择电卡",
shape: "circle"
})
} : {}, {
C: () => ({
r: inputClose
}),
D: common_vendor.o(common_vendor.unref(dialogInputConfirm)),
E: common_vendor.p({
mode: "input",
title: "请输入预付金额",
value: common_vendor.unref(dataForm).money,
placeholder: "请输入内容"
}),
F: () => ({
r: inputDialog,
k: "inputDialog"
}),
G: common_vendor.p({
type: "dialog"
})
});
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,10 @@
{
"defaultTitle": "开始充电",
"usingComponents": {
"up-tag": "../../uni_modules/uview-plus/components/u-tag/u-tag",
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button",
"uni-popup-dialog": "../../uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

View File

@@ -0,0 +1,75 @@
.map_content {
width: 750rpx;
height: 100vh;
height: calc(100vh - 100rpx);
}
.map-location {
width: 90rpx;
height: 90rpx;
background-color: #fff;
position: fixed;
left: 30rpx;
bottom: 570rpx;
border-radius: 20rpx;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 5px 11px rgba(0, 0, 0, 0.2);
}
.map-location image {
width: 45rpx;
height: 45rpx;
}
.callout {
box-sizing: border-box;
background: rgba(15, 75, 203, 0.26);
border-radius: 15rpx 15rpx 15rpx 0;
padding: 10rpx 15rpx;
display: flex;
align-items: center;
flex-direction: column;
justify-content: start;
}
.callout_item {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
font-weight: bold;
font-size: 28rpx;
color: #ffffff;
box-sizing: border-box;
}
.callout_item_img {
width: 40rpx;
height: 40rpx;
margin-right: 15rpx;
}
.callout_item:nth-child(1) {
margin-bottom: 15rpx;
}
.recharge {
width: 690rpx;
background-color: #fff;
min-height: 300rpx;
position: fixed;
left: 30rpx;
bottom: 250rpx;
border-radius: 20rpx;
padding: 20rpx;
box-shadow: 0 5px 11px rgba(0, 0, 0, 0.2);
}
.recharge_title {
font-size: 36rpx;
margin-bottom: 20rpx;
}
.recharge_con {
font-size: 26rpx;
}
.map_box {
width: 690rpx;
position: fixed;
left: 30rpx;
bottom: 230rpx;
z-index: 999;
}

View File

@@ -0,0 +1 @@
<view class="content"><map id="map" longitude="{{a}}" onMarkerTap="{{b}}" onCalloutTap="{{c}}" onRegionChange="{{d}}" height="90" width="90" markers="{{e}}" latitude="{{f}}" class="map_content"></map><uni-transition u-s="{{['d']}}" ref="__r" u-r="{{i}}" u-i="1a922a9b-0" onVI="__l" u-p="{{j}}"><view class="map-location" onTap="{{h}}"><image src="{{g}}" mode="widthFix"></image></view></uni-transition><uni-transition u-s="{{['d']}}" u-i="1a922a9b-1" onVI="__l" u-p="{{l}}"><view class="map_box"><order-list u-i="1a922a9b-2,1a922a9b-1" onVI="__l" u-p="{{k}}"/></view></uni-transition><tabbar u-i="1a922a9b-3" onVI="__l" u-p="{{m}}"></tabbar></view>

View File

@@ -0,0 +1,168 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_uni_transition2 = common_vendor.resolveComponent("uni-transition");
const _easycom_orderList2 = common_vendor.resolveComponent("orderList");
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
(_easycom_uni_transition2 + _easycom_orderList2 + _easycom_tabbar2)();
}
const _easycom_uni_transition = () => "../../uni_modules/uni-transition/components/uni-transition/uni-transition.js";
const _easycom_orderList = () => "../../components/orderList/orderList.js";
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
if (!Math) {
(_easycom_uni_transition + _easycom_orderList + _easycom_tabbar)();
}
const _sfc_main = {
__name: "index",
setup(__props) {
let longitude = common_vendor.ref(113.675688);
let latitude = common_vendor.ref(34.75527700365562);
let mapContext = common_vendor.ref(null);
let mapBox = common_vendor.ref(false);
let mapLocationRef = common_vendor.ref();
let infoDz = common_vendor.ref([]);
let markList = common_vendor.ref([]);
common_vendor.onLoad(async () => {
common_vendor.index.hideTabBar();
mapContext.value = common_vendor.index.createMapContext("map");
const { longitude: lon, latitude: lat } = await common_vendor.index.getLocation({
type: "gcj02"
// 根据实际需要选择坐标系
});
latitude.value = lat;
longitude.value = lon;
getInfo();
setTimeout(() => {
mapLocation();
}, 300);
});
let getInfo = async () => {
let _res = await api_api.aroundAreaMap({
orderByType: 1,
lat: latitude.value,
lon: longitude.value
});
let list = _res.map((item, index) => {
return {
id: item.id,
longitude: item.location.lng,
latitude: item.location.lat,
iconPath: "/static/icon/marker-pointer.png",
width: 20,
height: 23,
content: "2",
gunUseCount: item.gunUseCount,
gunCount: item.gunCount,
customCallout: {
display: "ALWAYS",
// 显示方式
anchorX: 60,
// 锚点X轴
anchorY: 12
// 锚点Y轴
}
};
});
list.unshift({
longitude: longitude.value,
latitude: latitude.value,
iconPath: "/static/icon/my-location-default.png",
width: 45,
height: 45,
id: -1
});
markList.value = list;
};
const mapLocation = () => {
const log = longitude.value;
const lat = latitude.value;
mapContext.value.moveToLocation({
longitude: log,
latitude: lat
});
};
const regionchange = (e) => {
if (e.type == "end") {
console.log(e);
console.log(e.detail.scale);
mapBox.value = false;
mapLocationRefStep(false);
}
};
const markerClick = async (e) => {
var _a;
if (e.markerId == -1) {
return;
}
common_vendor.index.showLoading();
let _res = await api_api.infoAroundApi({
id: e.markerId
});
let data = (_a = _res == null ? void 0 : _res.priceList) == null ? void 0 : _a.find((val) => val.isCurrent == 1);
infoDz.value = _res;
infoDz.value.priceAmount = data.totalAmount;
common_vendor.index.hideLoading();
mapBox.value = true;
mapLocationRefStep(true);
};
const mapLocationRefStep = (type) => {
if (type) {
mapLocationRef.value.step(
{
translateY: "-200rpx"
},
{
timingFunction: "ease-in",
duration: 100
}
);
} else {
mapLocationRef.value.step(
{
translateY: "0rpx"
},
{
timingFunction: "ease",
duration: 500
}
);
}
mapLocationRef.value.run();
};
return (_ctx, _cache) => {
return {
a: common_vendor.unref(longitude),
b: common_vendor.o(markerClick),
c: common_vendor.o(markerClick),
d: common_vendor.o(regionchange),
e: common_vendor.unref(markList),
f: common_vendor.unref(latitude),
g: common_assets._imports_0$1,
h: common_vendor.o(mapLocation),
i: () => ({
r: mapLocationRef,
k: "mapLocationRef"
}),
j: common_vendor.p({
show: true
}),
k: common_vendor.p({
toNav: true,
Image: true,
info: common_vendor.unref(infoDz),
list: common_vendor.unref(infoDz).pictures
}),
l: common_vendor.p({
modeClass: "fade",
show: common_vendor.unref(mapBox)
}),
m: common_vendor.p({
path: "/pages/index/index"
})
};
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,10 @@
{
"defaultTitle": "",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"uni-transition": "../../uni_modules/uni-transition/components/uni-transition/uni-transition",
"order-list": "../../components/orderList/orderList",
"tabbar": "../../components/tabbar/tabbar"
}
}

View File

@@ -0,0 +1,87 @@
page {
background-color: #e9edf6;
}
.head {
position: fixed;
top: 0;
left: 0;
right: 0;
width: 100%;
height: 30vh;
z-index: -1;
}
.head image {
width: 100%;
height: 100%;
}
.title {
padding-left: 80rpx;
padding-top: 100rpx;
display: flex;
justify-content: center;
align-items: flex-start;
flex-direction: column;
height: 30vh;
}
.title .name {
font-size: 70rpx;
line-height: 100rpx;
font-weight: bold;
}
.title .sub-name {
line-height: 80rpx;
font-size: 45rpx;
letter-spacing: 8rpx;
font-weight: bold;
}
.form-box {
padding: 0rpx 80rpx;
}
.form-box .row-input {
display: flex;
justify-content: flex-start;
align-items: center;
height: 100rpx;
background-color: #ffffff;
border-radius: 12rpx;
margin: 50rpx 0rpx;
}
.form-box .row-input image {
margin: 0 25rpx;
flex-shrink: 0;
width: 31rpx;
height: 35rpx;
}
.form-box .row-input input {
font-size: 30rpx;
flex: 1;
}
.form-box .menu-link {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 26rpx;
}
.form-box .login-btn {
margin-top: 250rpx;
display: flex;
justify-content: center;
align-items: center;
height: 90rpx;
border-radius: 12rpx;
background-color: #819682;
color: #f4f4f4;
font-size: 30rpx;
letter-spacing: 5rpx;
box-shadow: 0rpx 5rpx 20rpx #94ac95;
}
.form-box .tip-link {
display: flex;
justify-content: center;
letter-spacing: 3rpx;
line-height: 150rpx;
font-size: 26rpx;
}
.form-box .tip-link text {
color: #57a2ee;
}

View File

@@ -0,0 +1 @@
<view class="content"><view class="head"><image src="{{a}}" mode="widthFix"></image></view><view class="title"><text class="name">Hello!</text><text class="sub-name">欢迎登录云快充</text></view><view class="form-box"><button class="login-btn" disabled="{{b}}" open-type="getAuthorize" scope="phoneNumber" onGetAuthorize="{{c}}" onError="{{d}}">一键注册登录</button><view class="tip-link" style="display:flex;align-items:center"><up-checkbox onChange="{{e}}" u-i="25eaf8ee-0" onVI="__l" u-p="{{f}}"></up-checkbox> 我已阅读并同意 <text onTap="{{g}}">用户协议</text> 和 <text onTap="{{h}}">隐私政策</text></view></view></view>

View File

@@ -0,0 +1,59 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const common_js_user = require("../../common/js/user.js");
if (!Array) {
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
_easycom_up_checkbox2();
}
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
if (!Math) {
_easycom_up_checkbox();
}
const _sfc_main = {
__name: "login",
setup(__props) {
let aloneChecked = common_vendor.ref(false);
let getPhoneNumber = async (e) => {
if (!aloneChecked.value) {
return common_vendor.index.showToast({
title: "请先阅读并同意用户协议和隐私政策",
icon: "none"
});
}
try {
common_js_user.login(e, 2);
} catch (err) {
common_vendor.index.showToast({
title: err,
icon: "none"
});
}
};
const toNav = (e) => {
common_vendor.index.navigateTo({
url: e
});
};
const change = (e) => {
aloneChecked.value = e;
};
return (_ctx, _cache) => {
return {
a: common_assets._imports_0$5,
b: !common_vendor.unref(aloneChecked),
c: common_vendor.o(($event) => _ctx.$onAliGetAuthorize(common_vendor.unref(getPhoneNumber), $event)),
d: common_vendor.o(($event) => _ctx.$onAliAuthError(common_vendor.unref(getPhoneNumber), $event)),
e: common_vendor.o(change),
f: common_vendor.p({
shape: "circle",
name: "agree",
usedAlone: true
}),
g: common_vendor.o(($event) => toNav("/pages/agreement/agreement?id=9")),
h: common_vendor.o(($event) => toNav("/pages/agreement/agreement?id=10"))
};
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,8 @@
{
"defaultTitle": "",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox"
}
}

View File

@@ -0,0 +1,8 @@
.wallet_list.data-v-dbd3f78b {
border-radius: 15rpx;
background-color: #4879e6;
padding: 35rpx 50rpx 35rpx 30rpx;
display: flex;
align-items: flex-end;
justify-content: space-between;
}

View File

@@ -0,0 +1 @@
<view class="earnings p30 data-v-dbd3f78b"><z-paging class="data-v-dbd3f78b" u-s="{{['d']}}" ref="__r" u-r="{{b}}" onQuery="{{c}}" u-i="dbd3f78b-0" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"><view a:for="{{a}}" a:for-item="item" a:key="g" style="margin-bottom:30rpx" onTap="{{item.f}}" class="mt30 wallet_list data-v-dbd3f78b"><view class="data-v-dbd3f78b" style="color:#fff"><view class="data-v-dbd3f78b" style="font-weight:bold;font-size:32rpx;margin-bottom:18rpx">{{item.a}}</view><view class="data-v-dbd3f78b" style="margin-bottom:12rpx;font-size:28rpx;color:#eee"> 卡号:{{item.b}}</view><view class="data-v-dbd3f78b" style="margin-bottom:12rpx;font-size:28rpx;color:#eee"> 电站:{{item.c}}</view><view class="data-v-dbd3f78b" style="font-size:28rpx;color:#eee"> 商户:{{item.d}}</view></view><view class="data-v-dbd3f78b" style="display:flex;flex-direction:column;align-items:center;color:#fff;font-weight:bold;font-size:26rpx"><view class="data-v-dbd3f78b" style="font-size:55rpx;margin-bottom:30rpx">{{item.e}}</view><view class="data-v-dbd3f78b" style="font-weight:500">余额</view></view></view></z-paging></view>

View File

@@ -0,0 +1,84 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
_easycom_z_paging2();
}
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) {
_easycom_z_paging();
}
const _sfc_main = {
__name: "card",
setup(__props) {
common_vendor.ref({});
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e2) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e2.scrollTop);
e2.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const queryList = (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize
};
api_api.userCardList(params).then((res) => {
paging.value.complete(res);
}).catch((res) => {
paging.value.complete(false);
});
};
let toCrud = () => {
common_vendor.index.navigateTo({
url: "./cardList?id=" + e.id
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.cardNo),
c: common_vendor.t(item.stationName),
d: common_vendor.t(item.merchantName),
e: common_vendor.t(item.balance),
f: common_vendor.o(($event) => common_vendor.unref(toCrud)(item)),
g: index
};
}),
b: () => ({
r: paging,
k: "paging"
}),
c: common_vendor.o(queryList),
d: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
e: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-dbd3f78b"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "我的电卡",
"usingComponents": {
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1,67 @@
.wallet_pall.data-v-50ceb965 {
width: 690rpx;
height: 272rpx;
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 40rpx;
background: #ffffff;
}
.wallet_pall_header.data-v-50ceb965 {
font-weight: bold;
font-size: 26rpx;
color: #002ea4;
}
.wallet_pall_ye.data-v-50ceb965 {
display: flex;
align-items: center;
justify-content: space-between;
height: 70%;
}
.wallet_pall_ye view.data-v-50ceb965:nth-child(1) {
font-weight: bold;
font-size: 68rpx;
color: #002ea4;
}
.wallet_pall_ye view.data-v-50ceb965:nth-child(2) {
width: 128rpx;
height: 58rpx;
background: rgba(0, 46, 164, 0.07);
border-radius: 32rpx 32rpx 32rpx 32rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #002ea4;
}
.wallet_list.data-v-50ceb965 {
width: 690rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
padding: 15rpx 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.wallet_list_left view.data-v-50ceb965:nth-child(1) {
font-weight: bold;
font-size: 28rpx;
color: #232323;
margin-bottom: 10rpx;
}
.wallet_list_left view.data-v-50ceb965:nth-child(2) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_left view.data-v-50ceb965:nth-child(3) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_left view.data-v-50ceb965:nth-child(4) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_right.data-v-50ceb965 {
font-weight: bold;
font-size: 28rpx;
color: #ff2727;
}

View File

@@ -0,0 +1 @@
<view class="earnings p30 data-v-50ceb965"><z-paging class="data-v-50ceb965" u-s="{{['d']}}" ref="__r" u-r="{{b}}" onQuery="{{c}}" u-i="50ceb965-0" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"><view a:for="{{a}}" a:for-item="item" a:key="d" style="margin-bottom:30rpx" class="mt30 wallet_list data-v-50ceb965"><view class="wallet_list_left data-v-50ceb965"><view class="data-v-50ceb965">{{item.a}}</view><view class="data-v-50ceb965">{{item.b}}</view></view><view class="wallet_list_right data-v-50ceb965" style="display:flex;flex-direction:column;align-items:flex-end"><view class="data-v-50ceb965">{{item.c}}元</view></view></view></z-paging></view>

View File

@@ -0,0 +1,81 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
_easycom_z_paging2();
}
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) {
_easycom_z_paging();
}
const _sfc_main = {
__name: "cardList",
setup(__props) {
let id = common_vendor.ref("");
common_vendor.ref({});
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onLoad((options) => {
id.value = options.id;
});
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const queryList = (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize,
id: id.value
};
api_api.userCardRecord(params).then((res) => {
paging.value.complete(res);
}).catch((res) => {
paging.value.complete(false);
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
return {
a: common_vendor.t(item.recordName || "-"),
b: common_vendor.t(item.createTime),
c: common_vendor.t(item.amount),
d: index
};
}),
b: () => ({
r: paging,
k: "paging"
}),
c: common_vendor.o(queryList),
d: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
e: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-50ceb965"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "电卡记录",
"usingComponents": {
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

View File

@@ -0,0 +1 @@
<view class="earnings"><up-cell-group u-s="{{['d']}}" u-i="c749b6aa-0" onVI="__l"><up-cell u-i="c749b6aa-1,c749b6aa-0" onVI="__l" u-p="{{a}}"></up-cell></up-cell-group></view>

View File

@@ -0,0 +1,29 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
},
methods: {}
};
if (!Array) {
const _easycom_up_cell2 = common_vendor.resolveComponent("up-cell");
const _easycom_up_cell_group2 = common_vendor.resolveComponent("up-cell-group");
(_easycom_up_cell2 + _easycom_up_cell_group2)();
}
const _easycom_up_cell = () => "../../uni_modules/uview-plus/components/u-cell/u-cell.js";
const _easycom_up_cell_group = () => "../../uni_modules/uview-plus/components/u-cell-group/u-cell-group.js";
if (!Math) {
(_easycom_up_cell + _easycom_up_cell_group)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
icon: "integral-fill",
title: "会员等级",
value: "新版本"
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"defaultTitle": "收益",
"usingComponents": {
"up-cell": "../../uni_modules/uview-plus/components/u-cell/u-cell",
"up-cell-group": "../../uni_modules/uview-plus/components/u-cell-group/u-cell-group"
}
}

View File

@@ -0,0 +1,67 @@
.wallet_pall.data-v-8f9930cc {
width: 690rpx;
height: 272rpx;
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 40rpx;
background: #ffffff;
}
.wallet_pall_header.data-v-8f9930cc {
font-weight: bold;
font-size: 26rpx;
color: #002ea4;
}
.wallet_pall_ye.data-v-8f9930cc {
display: flex;
align-items: center;
justify-content: space-between;
height: 70%;
}
.wallet_pall_ye view.data-v-8f9930cc:nth-child(1) {
font-weight: bold;
font-size: 68rpx;
color: #002ea4;
}
.wallet_pall_ye view.data-v-8f9930cc:nth-child(2) {
width: 128rpx;
height: 58rpx;
background: rgba(0, 46, 164, 0.07);
border-radius: 32rpx 32rpx 32rpx 32rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #002ea4;
}
.wallet_list.data-v-8f9930cc {
width: 690rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
padding: 15rpx 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.wallet_list_left view.data-v-8f9930cc:nth-child(1) {
font-weight: bold;
font-size: 28rpx;
color: #232323;
margin-bottom: 10rpx;
}
.wallet_list_left view.data-v-8f9930cc:nth-child(2) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_left view.data-v-8f9930cc:nth-child(3) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_left view.data-v-8f9930cc:nth-child(4) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_right.data-v-8f9930cc {
font-weight: bold;
font-size: 28rpx;
color: #ff2727;
}

View File

@@ -0,0 +1 @@
<view class="earnings p30 data-v-8f9930cc"><z-paging class="data-v-8f9930cc" u-s="{{['d']}}" ref="__r" u-r="{{b}}" onQuery="{{c}}" u-i="8f9930cc-0" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"><view a:for="{{a}}" a:for-item="item" a:key="d" style="margin-bottom:30rpx" class="mt30 wallet_list data-v-8f9930cc"><view class="wallet_list_left data-v-8f9930cc"><view class="data-v-8f9930cc">{{item.a}}</view><view class="data-v-8f9930cc">{{item.b}}</view></view><view class="wallet_list_right data-v-8f9930cc" style="display:flex;flex-direction:column;align-items:flex-end"><view class="data-v-8f9930cc">{{item.c}}元</view></view></view></z-paging></view>

View File

@@ -0,0 +1,76 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
_easycom_z_paging2();
}
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) {
_easycom_z_paging();
}
const _sfc_main = {
__name: "incomeList",
setup(__props) {
common_vendor.ref({});
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const queryList = (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize
};
api_api.walletRecord(params).then((res) => {
paging.value.complete(res);
}).catch((res) => {
paging.value.complete(false);
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
return {
a: common_vendor.t(item.recordName || "-"),
b: common_vendor.t(item.createTime),
c: common_vendor.t(item.amount),
d: index
};
}),
b: () => ({
r: paging,
k: "paging"
}),
c: common_vendor.o(queryList),
d: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
e: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-8f9930cc"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "余额明细",
"usingComponents": {
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1,100 @@
.mine_header.data-v-7c2ebfa5 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.mine_header_img.data-v-7c2ebfa5 {
width: 150rpx;
height: 150rpx;
margin-right: 15rpx;
}
.mine_header_user.data-v-7c2ebfa5 {
flex: 1;
}
.mine_header_user view.data-v-7c2ebfa5:nth-child(1) {
font-weight: bold;
font-size: 32rpx;
color: #232323;
margin-bottom: 15rpx;
}
.mine_header_user view.data-v-7c2ebfa5:nth-child(2) {
font-weight: bold;
font-size: 44rpx;
color: #232323;
}
.mine_header_sett.data-v-7c2ebfa5 {
width: 42rpx;
height: 42rpx;
}
.mine_money.data-v-7c2ebfa5 {
margin-top: 35rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
width: 100%;
height: 152rpx;
background: linear-gradient(178deg, #9ab6ff 0%, #4879e6 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 0 60rpx;
}
.mine_money_left.data-v-7c2ebfa5 {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
.mine_money_left view.data-v-7c2ebfa5:nth-child(1) {
font-weight: bold;
font-size: 48rpx;
color: #ffffff;
margin-bottom: 5rpx;
}
.mine_money_left view.data-v-7c2ebfa5:nth-child(2) {
font-weight: bold;
font-size: 20rpx;
color: #ffffff;
}
.mine_money_right.data-v-7c2ebfa5 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
width: 124rpx;
height: 54rpx;
background: rgba(255, 255, 255, 0.24);
border-radius: 140rpx 140rpx 140rpx 140rpx;
font-weight: bold;
font-size: 24rpx;
color: #ffffff;
}
.mine_fun.data-v-7c2ebfa5 {
margin-top: 35rpx;
width: 100%;
background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 35rpx;
}
.mine_fun_view.data-v-7c2ebfa5 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
margin-bottom: 35rpx;
}
.mine_fun_view_left.data-v-7c2ebfa5 {
width: 58rpx;
height: 58rpx;
margin-right: 20rpx;
}
.mine_fun_view_name.data-v-7c2ebfa5 {
flex: 1;
font-weight: bold;
font-size: 24rpx;
color: #232323;
}
.mine_fun_view_right.data-v-7c2ebfa5 {
width: 24rpx;
height: 24rpx;
}

View File

@@ -0,0 +1 @@
<view class="mine data-v-7c2ebfa5"><status-bar class="data-v-7c2ebfa5" u-i="7c2ebfa5-0" onVI="__l"/><view class="p30 data-v-7c2ebfa5"><view class="mine_header data-v-7c2ebfa5"><view class="mine_header_img data-v-7c2ebfa5"><up-avatar class="data-v-7c2ebfa5" u-i="7c2ebfa5-1" onVI="__l" u-p="{{a}}"></up-avatar></view><view class="mine_header_user data-v-7c2ebfa5"><view class="data-v-7c2ebfa5">{{b}}</view><view class="data-v-7c2ebfa5">{{c}}</view></view><image class="mine_header_sett data-v-7c2ebfa5" onTap="{{d}}" src="{{e}}"></image></view><view class="mine_money data-v-7c2ebfa5"><view class="mine_money_left data-v-7c2ebfa5" onTap="{{g}}"><view class="data-v-7c2ebfa5">{{f}}</view><view class="data-v-7c2ebfa5">钱包余额</view></view><view class="data-v-7c2ebfa5" style="display:flex;align-items:center"><view class="mine_money_right data-v-7c2ebfa5" style="margin-right:20rpx" onTap="{{h}}">退款</view><view class="mine_money_right data-v-7c2ebfa5" onTap="{{i}}">充值</view></view></view><view class="mine_fun data-v-7c2ebfa5"><view class="mine_fun_view data-v-7c2ebfa5" onTap="{{l}}"><image class="mine_fun_view_left data-v-7c2ebfa5" src="{{j}}"></image><view class="mine_fun_view_name data-v-7c2ebfa5">充电卡</view><image class="mine_fun_view_right data-v-7c2ebfa5" src="{{k}}" mode="widthFix"></image></view></view></view><tabbar class="data-v-7c2ebfa5" u-i="7c2ebfa5-2" onVI="__l" u-p="{{m}}"></tabbar></view>

View File

@@ -0,0 +1,58 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
const hooks_useNav = require("../../hooks/useNav.js");
if (!Array) {
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar");
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
(_easycom_statusBar2 + _easycom_up_avatar2 + _easycom_tabbar2)();
}
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_up_avatar = () => "../../uni_modules/uview-plus/components/u-avatar/u-avatar.js";
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
if (!Math) {
(_easycom_statusBar + _easycom_up_avatar + _easycom_tabbar)();
}
const _sfc_main = {
__name: "mine",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
let info = common_vendor.ref({});
common_vendor.onShow(async () => {
common_vendor.index.hideTabBar();
let _res = await api_api.userInfo();
info.value = _res;
});
const toEarnings = () => {
common_vendor.index.navigateTo({
url: "./sett"
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.p({
size: "150rpx",
src: common_vendor.unref(info).avatar
}),
b: common_vendor.t(common_vendor.unref(info).nickName),
c: common_vendor.t(common_vendor.unref(info).phone || ""),
d: common_vendor.o(toEarnings),
e: common_assets._imports_0$2,
f: common_vendor.t(common_vendor.unref(info).balance),
g: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/incomeList")),
h: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pageMake/refund/refund?balance=${common_vendor.unref(info).balance}`)),
i: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/money/recharge")),
j: common_assets._imports_1$1,
k: common_assets._imports_1$2,
l: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/card")),
m: common_vendor.p({
path: "/pages/mine/mine"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c2ebfa5"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,11 @@
{
"defaultTitle": "",
"pullRefresh": false,
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"status-bar": "../../components/statusBar/statusBar",
"up-avatar": "../../uni_modules/uview-plus/components/u-avatar/u-avatar",
"tabbar": "../../components/tabbar/tabbar"
}
}

View File

@@ -0,0 +1,4 @@
button::after {
all: unset;
}

View File

@@ -0,0 +1 @@
<view class="p30"><view style="background-color:#fff;border-radius:15rpx"><up-cell-group u-s="{{['d']}}" u-i="442b60d4-0" onVI="__l" u-p="{{g}}"><button style="all:unset" open-type="chooseAvatar" onChooseavatar="{{c}}"><up-cell u-s="{{['value']}}" u-i="442b60d4-1,442b60d4-0" onVI="__l" u-p="{{b}}"><up-avatar u-i="442b60d4-2,442b60d4-1" onVI="__l" u-p="{{a}}" slot="value"></up-avatar></up-cell></button><up-cell u-s="{{['value']}}" onClick="{{e}}" u-i="442b60d4-3,442b60d4-0" onVI="__l" u-p="{{f}}"><text class="u-slot-value" slot="value">{{d}}</text></up-cell></up-cell-group></view></view>

View File

@@ -0,0 +1,79 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
const utils_fun = require("../../utils/fun.js");
if (!Array) {
const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar");
const _easycom_up_cell2 = common_vendor.resolveComponent("up-cell");
const _easycom_up_cell_group2 = common_vendor.resolveComponent("up-cell-group");
(_easycom_up_avatar2 + _easycom_up_cell2 + _easycom_up_cell_group2)();
}
const _easycom_up_avatar = () => "../../uni_modules/uview-plus/components/u-avatar/u-avatar.js";
const _easycom_up_cell = () => "../../uni_modules/uview-plus/components/u-cell/u-cell.js";
const _easycom_up_cell_group = () => "../../uni_modules/uview-plus/components/u-cell-group/u-cell-group.js";
if (!Math) {
(_easycom_up_avatar + _easycom_up_cell + _easycom_up_cell_group)();
}
const _sfc_main = {
__name: "sett",
setup(__props) {
let info = common_vendor.ref({});
common_vendor.onShow(async () => {
getInfo();
});
const getInfo = async () => {
let _res = await api_api.userInfo();
info.value = _res;
};
const chooseAvatar = async (e) => {
let img = await utils_fun.uploadFiles(e.detail.avatarUrl);
api_api.updateAvatar({ avatar: img }).then((res) => {
getInfo();
});
console.log(img);
};
const upNickName = () => {
common_vendor.index.showModal({
title: "修改昵称",
content: info.value.nickName,
editable: true,
success: function(res) {
if (res.confirm) {
api_api.updateNickName({ nickName: res.content }).then((res2) => {
getInfo();
});
console.log(res);
console.log("用户点击确定");
} else if (res.cancel) {
console.log("用户点击取消");
}
}
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.p({
src: common_vendor.unref(info).avatar
}),
b: common_vendor.p({
title: "头像",
isLink: true,
size: "min"
}),
c: common_vendor.o(chooseAvatar),
d: common_vendor.t(common_vendor.unref(info).nickName),
e: common_vendor.o(upNickName),
f: common_vendor.p({
title: "昵称",
isLink: true,
size: "min",
border: false
}),
g: common_vendor.p({
border: false
})
};
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,8 @@
{
"defaultTitle": "",
"usingComponents": {
"up-avatar": "../../uni_modules/uview-plus/components/u-avatar/u-avatar",
"up-cell": "../../uni_modules/uview-plus/components/u-cell/u-cell",
"up-cell-group": "../../uni_modules/uview-plus/components/u-cell-group/u-cell-group"
}
}

View File

@@ -0,0 +1,145 @@
.buy.data-v-2cb4e33c {
width: 100%;
height: 100%;
}
.buy .title.data-v-2cb4e33c {
display: flex;
align-items: center;
padding: 20rpx 0 20rpx 50rpx;
background-color: #ffffff;
}
.buy .title > image.data-v-2cb4e33c {
width: 32rpx;
height: 32rpx;
margin-right: 6rpx;
}
.buy .title > text.data-v-2cb4e33c {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 40rpx;
}
.buy .title .num.data-v-2cb4e33c {
color: #ff4141;
}
.buy .number.data-v-2cb4e33c {
width: 100%;
background-color: #ffffff;
margin-top: 18rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.buy .number .list.data-v-2cb4e33c {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 38rpx 40rpx 0rpx 40rpx;
}
.buy .number .list .item.data-v-2cb4e33c {
width: 194rpx;
height: 194rpx;
background: #ffffff;
box-shadow: 0rpx 0rpx 6rpx 0rpx rgba(0, 0, 0, 0.1);
border-radius: 20rpx;
margin-bottom: 44rpx;
display: flex;
}
.buy .number .list .item .card.data-v-2cb4e33c {
width: 194rpx;
height: 194rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.buy .number .list .item .card .top.data-v-2cb4e33c {
display: flex;
align-items: center;
}
.buy .number .list .item .card .top > text.data-v-2cb4e33c {
font-size: 32rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #666666;
line-height: 44rpx;
margin-right: 12rpx;
}
.buy .number .list .item .card .top > image.data-v-2cb4e33c {
width: 30rpx;
height: 30rpx;
}
.buy .number .list .item .card .money.data-v-2cb4e33c {
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
line-height: 34rpx;
margin-top: 12rpx;
}
.buy .number .list .item .recommend.data-v-2cb4e33c {
width: 112rpx;
height: 36rpx;
background: #f3f2ea;
border-radius: 8rpx 0rpx 8rpx 0rpx;
position: absolute;
text-align: center;
margin-top: -18rpx;
}
.buy .number .list .item .recommend > text.data-v-2cb4e33c {
font-size: 20rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #666666;
line-height: 36rpx;
}
.buy .number .list .real.data-v-2cb4e33c {
border: 2rpx solid #f88700;
background-color: rgba(248, 135, 0, 0.1);
}
.buy .number .list.data-v-2cb4e33c:after {
content: "";
width: 194rpx;
}
.buy .number .sure.data-v-2cb4e33c {
width: 582rpx;
height: 80rpx;
background: #ff6a5f;
border-radius: 40rpx;
text-align: center;
}
.buy .number .sure > text.data-v-2cb4e33c {
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600;
color: #ffffff;
line-height: 80rpx;
}
.buy .tip.data-v-2cb4e33c {
background: #ffffff;
padding: 40rpx;
padding-top: 0;
}
.buy .tip .titl.data-v-2cb4e33c {
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600;
color: #666666;
line-height: 40rpx;
margin-bottom: 6rpx;
}
.buy .tip > view > text.data-v-2cb4e33c {
font-size: 22rpx;
font-family: PingFangSC-Regular, PingFang SC;
color: #999999;
line-height: 32rpx;
}
.buy .tip > view:nth-child(2) > text.data-v-2cb4e33c:nth-child(2) {
color: #333333;
}
.buy .tip > view:nth-child(5) > text.data-v-2cb4e33c:nth-child(2) {
color: #ff6a5f;
font-weight: 600;
border-bottom: 2rpx solid #ff6a5f;
}

View File

@@ -0,0 +1 @@
<view class="buy data-v-2cb4e33c"><view class="title data-v-2cb4e33c"><text class="text data-v-2cb4e33c">当前余额:</text><text class="num data-v-2cb4e33c">{{a}}</text></view><view class="number data-v-2cb4e33c"><view class="list data-v-2cb4e33c"><view a:for="{{b}}" a:for-item="item" a:key="c" class="{{('data-v-2cb4e33c') + ' ' + item.b}}" onTap="{{item.d}}"><view class="card data-v-2cb4e33c"><view class="top data-v-2cb4e33c"><text class="data-v-2cb4e33c">{{item.a}}</text></view></view></view><view class="{{('data-v-2cb4e33c') + ' ' + f}}" onTap="{{g}}"><view class="card data-v-2cb4e33c"><view class="top data-v-2cb4e33c" style="padding:0 15rpx;text-align:center"><input class="data-v-2cb4e33c" onChange="{{c}}" placeholder="其他面额" style="font-weight:bold;color:#666666" type="number" value="{{d}}" onInput="{{e}}"/></view></view></view></view><view class="tip data-v-2cb4e33c"><text class="titl data-v-2cb4e33c">温馨提示</text><view class="data-v-2cb4e33c"><text class="data-v-2cb4e33c">1、本次充值金额尽可用于充电消费</text></view><view class="data-v-2cb4e33c"><text class="data-v-2cb4e33c">2、若充值时若使用了第三方优惠抵扣时,该笔金额不支持直接退款</text></view></view></view><view class="data-v-2cb4e33c" style="position:fixed;bottom:0;left:0;width:750rpx"><view class="data-v-2cb4e33c" style="display:flex;align-items:center;justify-content:center;font-size:26rpx;background-color:rgba(72, 121, 230, 0.3);padding:15rpx 0"><up-checkbox class="data-v-2cb4e33c" onChange="{{h}}" u-i="2cb4e33c-0" onVI="__l" u-p="{{i}}"></up-checkbox> 我已阅读并同意《 <text class="data-v-2cb4e33c" style="color:#4879e6">云充电用户充值协议</text> 》 </view><view class="data-v-2cb4e33c" style="display:flex;align-items:center;justify-content:space-between;padding:20rpx 30rpx"><view class="data-v-2cb4e33c" style="font-size:40rpx;font-weight:bold">{{j}} <text class="data-v-2cb4e33c" style="font-size:26rpx;font-weight:500">元</text></view><view class="data-v-2cb4e33c" style="width:220rpx"><up-button class="data-v-2cb4e33c" onClick="{{k}}" u-i="2cb4e33c-1" onVI="__l" u-p="{{l}}"></up-button></view></view></view></view>

View File

@@ -0,0 +1,141 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_checkbox2 + _easycom_up_button2)();
}
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_checkbox + _easycom_up_button)();
}
const _sfc_main = {
__name: "recharge",
setup(__props) {
let info = common_vendor.ref({});
let money = common_vendor.ref(30);
let moneyNum = common_vendor.ref("");
let num = common_vendor.ref(0);
let aloneChecked = common_vendor.ref(false);
let list = common_vendor.ref([
{
number: "¥30",
money: "30"
},
{
number: "¥50",
money: "50"
},
{
number: "¥80",
money: "80"
},
{
number: "¥100",
money: "100"
},
{
number: "¥200",
money: "200"
},
{
number: "¥300",
money: "300"
},
{
number: "¥400",
money: "400"
},
{
number: "¥500",
money: "500"
}
]);
const pick = (item, index) => {
if (item != "input") {
money.value = item.money;
moneyNum.value = "";
}
num.value = index;
};
const change = (e) => {
aloneChecked.value = e;
console.log(e);
};
const toUp = () => {
api_api.jqbPay({
amount: money.value
}).then((res) => {
let data = JSON.parse(res.payData);
common_vendor.index.requestPayment({
provider: "wxpay",
timeStamp: data.timeStamp,
nonceStr: data.nonceStr,
package: data.package,
signType: data.signType,
paySign: data.paySign,
success: function(r) {
common_vendor.index.showModal({
title: "提示",
content: "充值成功",
showCancel: false,
success: function(res2) {
if (res2.confirm) {
common_vendor.index.navigateBack();
} else if (res2.cancel) {
console.log("用户点击取消");
}
}
});
},
fail: function(err) {
console.log("fail:" + JSON.stringify(err));
}
});
});
};
common_vendor.onShow(async () => {
let _res = await api_api.userInfo();
info.value = _res;
});
const inputChange = (e) => {
money.value = e.detail.value;
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(common_vendor.unref(info).balance),
b: common_vendor.f(common_vendor.unref(list), (item, index, i0) => {
return {
a: common_vendor.t(item.number),
b: common_vendor.n(common_vendor.unref(num) == index ? "item real" : "item"),
c: index,
d: common_vendor.o(($event) => pick(item, index))
};
}),
c: common_vendor.o(inputChange),
d: common_vendor.unref(moneyNum),
e: common_vendor.o(($event) => common_vendor.isRef(moneyNum) ? moneyNum.value = $event.detail.value : moneyNum = $event.detail.value),
f: common_vendor.n(common_vendor.unref(num) == "input" ? "item real" : "item"),
g: common_vendor.o(($event) => pick("input", "input")),
h: common_vendor.o(change),
i: common_vendor.p({
shape: "circle",
name: "agree",
usedAlone: true
}),
j: common_vendor.t(common_vendor.unref(money)),
k: common_vendor.o(toUp),
l: common_vendor.p({
color: "#4879e6",
text: "充值",
shape: "circle",
disabled: !common_vendor.unref(aloneChecked)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2cb4e33c"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"defaultTitle": "充值",
"usingComponents": {
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

View File

@@ -0,0 +1 @@
<view><status-bar u-i="52b5345c-0" onVI="__l"/></view>

View File

@@ -0,0 +1,21 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
},
methods: {}
};
if (!Array) {
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
_easycom_statusBar2();
}
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
if (!Math) {
_easycom_statusBar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "",
"usingComponents": {
"status-bar": "../../components/statusBar/statusBar"
}
}

View File

@@ -0,0 +1,57 @@
.order_header.data-v-93207a4f {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
font-weight: bold;
font-size: 36rpx;
color: #232323;
border-bottom: 4rpx solid #e9ecf2;
}
.order_header_view.data-v-93207a4f {
padding: 15rpx 0;
position: relative;
}
.order_header_view view.data-v-93207a4f {
position: absolute;
left: calc(50% - 49rpx);
bottom: -4rpx;
width: 98rpx;
height: 8rpx;
background: #4879e6;
border-radius: 8rpx 8rpx 8rpx 8rpx;
}
.order_header_active.data-v-93207a4f {
color: #4879e6;
}
.order_list.data-v-93207a4f {
padding: 25rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
margin-top: 30rpx;
}
.order_list_header.data-v-93207a4f {
font-weight: bold;
font-size: 26rpx;
color: #4879e6;
padding-bottom: 20rpx;
border-bottom: 2rpx solid #ebebeb;
margin-bottom: 20rpx;
}
.order_list_view.data-v-93207a4f {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
font-weight: 400;
font-size: 26rpx;
color: #232323;
margin-bottom: 20rpx;
}
.order_list_total.data-v-93207a4f {
flex: 1;
text-align: right;
font-weight: bold;
font-size: 40rpx;
color: #4879e6;
}

View File

@@ -0,0 +1 @@
<view class="order data-v-93207a4f"><z-paging class="data-v-93207a4f" u-s="{{['d']}}" ref="__r" u-r="{{c}}" onQuery="{{d}}" u-i="93207a4f-0" onVI="__l" onUpdateModelValue="{{e}}" u-p="{{f}}"><view class="data-v-93207a4f"><status-bar class="data-v-93207a4f" u-i="93207a4f-1,93207a4f-0" onVI="__l"/><view class="p30 data-v-93207a4f"><view class="order_header data-v-93207a4f"><view a:for="{{a}}" a:for-item="item" a:key="d" onTap="{{item.c}}" class="{{('order_header_view') + ' ' + 'data-v-93207a4f' + ' ' + item.e}}">{{item.a}} <view a:if="{{item.b}}" class="order_header_xian data-v-93207a4f"></view></view></view></view></view><view class="p30 data-v-93207a4f"><view a:for="{{b}}" a:for-item="item" a:key="h" class="order_list data-v-93207a4f" onTap="{{item.i}}"><view class="order_list_header data-v-93207a4f">订单编号:{{item.a}}</view><view class="order_list_view data-v-93207a4f"><view class="data-v-93207a4f">充电时间</view><view class="data-v-93207a4f">{{item.b}}</view></view><view class="order_list_view data-v-93207a4f"><view class="data-v-93207a4f">结束时间</view><view class="data-v-93207a4f">{{item.c}}</view></view><view class="order_list_view data-v-93207a4f"><view class="data-v-93207a4f">充电电量</view><view class="data-v-93207a4f">{{item.d}}度</view></view><view class="order_list_view data-v-93207a4f"><view class="data-v-93207a4f">服务费</view><view class="data-v-93207a4f">{{item.e}}元</view></view><view class="order_list_view data-v-93207a4f"><view class="data-v-93207a4f">电费</view><view class="data-v-93207a4f">{{item.f}}元</view></view><view class="order_list_total data-v-93207a4f">实付金额:{{item.g}}元</view></view></view></z-paging><view class="data-v-93207a4f" style="height:180rpx"></view><tabbar class="data-v-93207a4f" u-i="93207a4f-2" onVI="__l" u-p="{{g}}"></tabbar></view>

View File

@@ -0,0 +1,131 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
(_easycom_statusBar2 + _easycom_z_paging2 + _easycom_tabbar2)();
}
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
if (!Math) {
(_easycom_statusBar + _easycom_z_paging + _easycom_tabbar)();
}
const _sfc_main = {
__name: "order",
setup(__props) {
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
common_vendor.ref([]);
let status = common_vendor.ref(1);
let status_list = common_vendor.ref([
{
name: "全部",
type: ""
},
{
name: "进行中",
type: 1
},
{
name: "已完成",
type: 2
},
{
name: "待支付",
type: 3
}
]);
let chanStatus = (e) => {
status.value = e;
paging.value.reload();
};
common_vendor.onLoad(async () => {
common_vendor.index.hideTabBar();
});
let toLink = (e) => {
if (e.status == 2 || e.status == 3 || e.status == 4) {
common_vendor.index.navigateTo({
url: `/pageOrder/recharge/recharge?transactionNo=${e.transactionNo}&type=order`
});
}
};
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const queryList = (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize,
type: status.value
};
api_api.ordersList(params).then((res) => {
paging.value.complete(res);
}).catch((res) => {
paging.value.complete(false);
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(status_list), (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.name),
b: item.type == common_vendor.unref(status)
}, item.type == common_vendor.unref(status) ? {} : {}, {
c: common_vendor.o(($event) => common_vendor.unref(chanStatus)(item.type)),
d: index,
e: common_vendor.n(common_vendor.unref(status) == item.type ? "order_header_active" : "")
});
}),
b: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
return {
a: common_vendor.t(item.orderNo),
b: common_vendor.t(item.startTime),
c: common_vendor.t(item.endTime),
d: common_vendor.t(item.useDegree),
e: common_vendor.t(item.serviceAmount),
f: common_vendor.t(item.electricityAmount),
g: common_vendor.t(item.actuallyAmount),
h: index,
i: common_vendor.o(($event) => common_vendor.unref(toLink)(item))
};
}),
c: () => ({
r: paging,
k: "paging"
}),
d: common_vendor.o(queryList),
e: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
f: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
}),
g: common_vendor.p({
path: "/pages/order/order"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-93207a4f"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,11 @@
{
"defaultTitle": "",
"pullRefresh": false,
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"status-bar": "../../components/statusBar/statusBar",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"tabbar": "../../components/tabbar/tabbar"
}
}

View File

@@ -0,0 +1,41 @@
.sweep_note.data-v-2f0b12d1 {
padding: 0 60rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.sweep_note_view.data-v-2f0b12d1 {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
font-weight: 800;
font-size: 32rpx;
color: #4879e6;
}
.sweep_note_view_img.data-v-2f0b12d1 {
display: flex;
align-items: flex-end;
height: 115rpx;
margin-bottom: 30rpx;
}
.sweep_note_view:nth-child(1) image.data-v-2f0b12d1 {
width: 151rpx;
height: 99rpx;
}
.sweep_note_view:nth-child(2) image.data-v-2f0b12d1 {
width: 120rpx;
height: 99rpx;
}
.sweep_note_view:nth-child(3) image.data-v-2f0b12d1 {
width: 106rpx;
height: 113rpx;
}
.sweep_scan.data-v-2f0b12d1 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
padding: 0 120rpx;
}

View File

@@ -0,0 +1 @@
<view class="sweep data-v-2f0b12d1"><status-bar class="data-v-2f0b12d1" u-i="2f0b12d1-0" onVI="__l"/><view class="sweep_note data-v-2f0b12d1"><view class="sweep_note_view data-v-2f0b12d1"><view class="sweep_note_view_img data-v-2f0b12d1"><image class="data-v-2f0b12d1" src="{{a}}" mode="widthFix"></image></view><view class="data-v-2f0b12d1">插上</view><view class="data-v-2f0b12d1">充电枪</view></view><view class="sweep_note_view data-v-2f0b12d1"><view class="sweep_note_view_img data-v-2f0b12d1"><image class="data-v-2f0b12d1" src="{{b}}" mode="widthFix"></image></view><view class="data-v-2f0b12d1">点击</view><view class="data-v-2f0b12d1">扫码充电</view></view><view class="sweep_note_view data-v-2f0b12d1"><view class="sweep_note_view_img data-v-2f0b12d1"><image class="data-v-2f0b12d1" src="{{c}}" mode="widthFix"></image></view><view class="data-v-2f0b12d1">点击</view><view class="data-v-2f0b12d1">开始充电</view></view></view><view class="sweep_scan data-v-2f0b12d1" style="margin-top:300rpx"><up-input class="data-v-2f0b12d1" u-i="2f0b12d1-1" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"></up-input><view class="data-v-2f0b12d1" style="width:100rpx"><up-button class="data-v-2f0b12d1" onClick="{{f}}" u-i="2f0b12d1-2" onVI="__l" u-p="{{g}}"></up-button></view></view><view class="sweep_scan data-v-2f0b12d1" style="margin-top:150rpx"><up-button class="data-v-2f0b12d1" onClick="{{h}}" u-i="2f0b12d1-3" onVI="__l" u-p="{{i}}"></up-button></view><tabbar class="data-v-2f0b12d1" u-i="2f0b12d1-4" onVI="__l" u-p="{{j}}"/></view>

View File

@@ -0,0 +1,84 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const hooks_useNav = require("../../hooks/useNav.js");
const utils_fun = require("../../utils/fun.js");
if (!Array) {
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
(_easycom_statusBar2 + _easycom_up_input2 + _easycom_up_button2 + _easycom_tabbar2)();
}
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
if (!Math) {
(_easycom_statusBar + _easycom_up_input + _easycom_up_button + _easycom_tabbar)();
}
const _sfc_main = {
__name: "sweep",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
let value = common_vendor.ref("");
common_vendor.onLoad(() => {
common_vendor.index.hideTabBar();
});
const scan = async () => {
common_vendor.index.scanCode({
success: function(res) {
let query = utils_fun.urlQuery(res.result);
if (!query.num) {
common_vendor.index.showToast({
title: "请扫描正确的设备码",
icon: "none"
});
} else {
navTo(`/pages/home/star?id=${query.num}`);
}
}
});
};
const toCd = async () => {
if (!value.value) {
common_vendor.index.showToast({
title: "请输入枪号",
icon: "none"
});
return;
}
navTo(`/pages/home/star?id=${value.value}`);
};
return (_ctx, _cache) => {
return {
a: common_assets._imports_0$3,
b: common_assets._imports_1$3,
c: common_assets._imports_2$1,
d: common_vendor.o(($event) => common_vendor.isRef(value) ? value.value = $event : value = $event),
e: common_vendor.p({
placeholder: "请输入充电枪编号",
type: "number",
border: "surround",
modelValue: common_vendor.unref(value)
}),
f: common_vendor.o(toCd),
g: common_vendor.p({
type: "primary",
text: "确定"
}),
h: common_vendor.o(scan),
i: common_vendor.p({
type: "primary",
shape: "circle",
text: "扫码充电"
}),
j: common_vendor.p({
path: "/pages/sweep/sweep"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2f0b12d1"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,11 @@
{
"defaultTitle": "扫码充电",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"status-bar": "../../components/statusBar/statusBar",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button",
"tabbar": "../../components/tabbar/tabbar"
}
}