no message
This commit is contained in:
30
unpackage/dist/dev/mp-weixin/pages/agreement/agreement.js
vendored
Normal file
30
unpackage/dist/dev/mp-weixin/pages/agreement/agreement.js
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"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
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
wx.createPage(_sfc_main);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/agreement/agreement.js.map
|
||||
6
unpackage/dist/dev/mp-weixin/pages/agreement/agreement.json
vendored
Normal file
6
unpackage/dist/dev/mp-weixin/pages/agreement/agreement.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/agreement/agreement.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/agreement/agreement.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30"><mp-html wx:if="{{a}}" u-i="984f50ea-0" bind:__l="__l" u-p="{{a}}"/><view style="height:100rpx"></view></view>
|
||||
0
unpackage/dist/dev/mp-weixin/pages/agreement/agreement.wxss
vendored
Normal file
0
unpackage/dist/dev/mp-weixin/pages/agreement/agreement.wxss
vendored
Normal file
280
unpackage/dist/dev/mp-weixin/pages/home/detail.js
vendored
Normal file
280
unpackage/dist/dev/mp-weixin/pages/home/detail.js
vendored
Normal file
@@ -0,0 +1,280 @@
|
||||
"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$3,
|
||||
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), index),
|
||||
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: common_vendor.sr(paging, "431a10b7-7,431a10b7-6", {
|
||||
"k": "paging"
|
||||
}),
|
||||
K: common_vendor.o(queryList),
|
||||
L: common_vendor.o(($event) => dataList.value = $event),
|
||||
M: common_vendor.p({
|
||||
fixed: false,
|
||||
["loading-more-enabled"]: 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;
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/detail.js.map
|
||||
13
unpackage/dist/dev/mp-weixin/pages/home/detail.json
vendored
Normal file
13
unpackage/dist/dev/mp-weixin/pages/home/detail.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"navigationBarTitleText": "电站详情",
|
||||
"navigationStyle": "custom",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/home/detail.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/home/detail.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
171
unpackage/dist/dev/mp-weixin/pages/home/detail.wxss
vendored
Normal file
171
unpackage/dist/dev/mp-weixin/pages/home/detail.wxss
vendored
Normal 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;
|
||||
}
|
||||
165
unpackage/dist/dev/mp-weixin/pages/home/home.js
vendored
Normal file
165
unpackage/dist/dev/mp-weixin/pages/home/home.js
vendored
Normal file
@@ -0,0 +1,165 @@
|
||||
"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_cc_myTabbar2 = common_vendor.resolveComponent("cc-myTabbar");
|
||||
(_easycom_search2 + _easycom_up_swiper2 + _easycom_orderList2 + _easycom_z_paging2 + _easycom_cc_myTabbar2)();
|
||||
}
|
||||
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_cc_myTabbar = () => "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.js";
|
||||
if (!Math) {
|
||||
(_easycom_search + _easycom_up_swiper + _easycom_orderList + _easycom_z_paging + _easycom_cc_myTabbar)();
|
||||
}
|
||||
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();
|
||||
});
|
||||
let toKft = (e) => {
|
||||
common_vendor.index.makePhoneCall({
|
||||
phoneNumber: "4008005326"
|
||||
//仅为示例
|
||||
});
|
||||
};
|
||||
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) {
|
||||
common_vendor.index.__f__("log", "at pages/home/home.vue:116", err);
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/home/home.vue:118", query);
|
||||
api_api.aroundAreaApi(query).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/home/home.vue:121", 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 {
|
||||
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: common_vendor.o((...args) => common_vendor.unref(toKft) && common_vendor.unref(toKft)(...args)),
|
||||
k: common_vendor.n(query.orderByType == 1 ? "order_list_active" : ""),
|
||||
l: common_vendor.o(($event) => common_vendor.unref(tabChange)(1)),
|
||||
m: common_vendor.n(query.orderByType == 2 ? "order_list_active" : ""),
|
||||
n: common_vendor.o(($event) => common_vendor.unref(tabChange)(2)),
|
||||
o: 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
|
||||
};
|
||||
}),
|
||||
p: common_vendor.sr(paging, "07e72d3c-2", {
|
||||
"k": "paging"
|
||||
}),
|
||||
q: common_vendor.o(queryList),
|
||||
r: common_vendor.o(($event) => dataList.value = $event),
|
||||
s: common_vendor.p({
|
||||
["use-page-scroll"]: true,
|
||||
modelValue: dataList.value
|
||||
}),
|
||||
t: common_vendor.p({
|
||||
tabBarShow: 0
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-07e72d3c"]]);
|
||||
_sfc_main.__runtimeHooks = 1;
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/home.js.map
|
||||
12
unpackage/dist/dev/mp-weixin/pages/home/home.json
vendored
Normal file
12
unpackage/dist/dev/mp-weixin/pages/home/home.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom",
|
||||
"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",
|
||||
"cc-my-tabbar": "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/home/home.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/home/home.wxml
vendored
Normal 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" bindsearch="{{a}}" u-i="07e72d3c-0" bind:__l="__l"/></view><view class="data-v-07e72d3c" style="margin:30rpx 0 0"><up-swiper wx:if="{{b}}" class="data-v-07e72d3c" u-i="07e72d3c-1" bind:__l="__l" u-p="{{b}}"></up-swiper></view><view class="search_header_grid data-v-07e72d3c" style="position:sticky;top:0;left:0;background-color:#ffffff;padding:15rpx"><view class="search_header_grid_view data-v-07e72d3c" bindtap="{{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" bindtap="{{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" bindtap="{{h}}"><image class="data-v-07e72d3c" src="{{g}}"></image><view class="data-v-07e72d3c">我要开票</view></view><button class="data-v-07e72d3c" style="all:unset" bindtap="{{j}}"><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 wx:if="{{s}}" class="r data-v-07e72d3c" u-s="{{['d']}}" u-r="paging" bindquery="{{q}}" u-i="07e72d3c-2" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"><view class="data-v-07e72d3c" style="height:35rpx"></view><view class="order_list data-v-07e72d3c"><view class="{{[k, 'order_list_view', 'data-v-07e72d3c']}}" bindtap="{{l}}">距我最近</view><view class="{{[m, 'order_list_view', 'data-v-07e72d3c']}}" bindtap="{{n}}">空闲最多</view></view><view wx:for="{{o}}" wx:for-item="item" wx:key="c" class="data-v-07e72d3c" style="margin-bottom:30rpx;padding:0 30rpx"><order-list wx:if="{{item.b}}" class="data-v-07e72d3c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></order-list></view></z-paging><view class="data-v-07e72d3c" style="height:180rpx"></view><cc-my-tabbar wx:if="{{t}}" class="data-v-07e72d3c" u-i="07e72d3c-4" bind:__l="__l" u-p="{{t}}"></cc-my-tabbar></view>
|
||||
64
unpackage/dist/dev/mp-weixin/pages/home/home.wxss
vendored
Normal file
64
unpackage/dist/dev/mp-weixin/pages/home/home.wxss
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
page {
|
||||
/* background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%); */
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
|
||||
.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: -1;
|
||||
}
|
||||
.search_header_grid.data-v-07e72d3c {
|
||||
margin-top: 25rpx;
|
||||
border-radius: 15rpx;
|
||||
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 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 15rpx;
|
||||
margin-bottom: 30rpx;
|
||||
font-size: 30rpx;
|
||||
background-color: #fff;
|
||||
width: 690rpx;
|
||||
margin: 0 30rpx 30rpx;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.order_list_view.data-v-07e72d3c {
|
||||
padding: 15rpx 30rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 15rpx;
|
||||
margin-right: 30rpx;
|
||||
}
|
||||
.order_list_active.data-v-07e72d3c {
|
||||
background-color: #4879e6;
|
||||
color: #fff;
|
||||
}
|
||||
button.data-v-07e72d3c::after {
|
||||
all: unset;
|
||||
}
|
||||
386
unpackage/dist/dev/mp-weixin/pages/home/star.js
vendored
Normal file
386
unpackage/dist/dev/mp-weixin/pages/home/star.js
vendored
Normal file
@@ -0,0 +1,386 @@
|
||||
"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");
|
||||
const hooks_useNav = require("../../hooks/useNav.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
|
||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
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_button2 + _easycom_up_icon2 + _easycom_uni_popup_dialog2 + _easycom_uni_popup2)();
|
||||
}
|
||||
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_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.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_button + _easycom_up_icon + _easycom_uni_popup_dialog + _easycom_uni_popup)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "star",
|
||||
setup(__props) {
|
||||
const { navTo } = hooks_useNav.useNav();
|
||||
const inputDialog = common_vendor.ref(null);
|
||||
let info = common_vendor.reactive({});
|
||||
let infoUser = common_vendor.reactive({});
|
||||
let inputBorder = common_vendor.ref(false);
|
||||
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(1);
|
||||
let dataForm = common_vendor.reactive({
|
||||
money: 30
|
||||
});
|
||||
let payList = common_vendor.reactive([
|
||||
{
|
||||
id: 1,
|
||||
name: "余额支付"
|
||||
}
|
||||
]);
|
||||
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);
|
||||
}
|
||||
});
|
||||
common_vendor.onShow(async () => {
|
||||
if (common_vendor.index.getStorageSync("token") && id.value) {
|
||||
infoDate(id.value);
|
||||
let _res = await api_api.userInfo();
|
||||
infoUser.value = _res;
|
||||
}
|
||||
});
|
||||
let getUserCard = async (e) => {
|
||||
let _res = await api_api.userCardUsableList({ stationId: e });
|
||||
userCard.value = _res;
|
||||
if (_res.length == 0) {
|
||||
payType.value = 1;
|
||||
} else {
|
||||
payType.value = 2;
|
||||
userCardId.value = _res[0].id;
|
||||
if (!payList.find((val) => val.name == "电卡支付")) {
|
||||
payList.push({
|
||||
id: 2,
|
||||
name: "电卡支付"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
let inputClik = () => {
|
||||
inputBorder.value = true;
|
||||
dataForm.money = dataForm.money == 30 || dataForm.money == 50 || dataForm.money == 100 ? "" : dataForm.money;
|
||||
};
|
||||
let infoDate = async (e) => {
|
||||
let _res = await api_api.gunInfo({ deviceNo: e });
|
||||
info = _res;
|
||||
getUserCard(_res.stationId);
|
||||
currentPrice.value = _res.currentPrice;
|
||||
common_vendor.index.__f__("log", "at pages/home/star.vue:275", _res.deviceNo, "_res.deviceNo");
|
||||
common_vendor.index.__f__("log", "at pages/home/star.vue:276", _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) => {
|
||||
common_vendor.index.__f__("log", "at pages/home/star.vue:286", "发送成功");
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("log", "at pages/home/star.vue:289", err);
|
||||
common_vendor.index.__f__("log", "at pages/home/star.vue:290", "发送失败");
|
||||
}
|
||||
});
|
||||
};
|
||||
let dialogInputConfirm = (e) => {
|
||||
dataForm.money = e;
|
||||
};
|
||||
let toRechargeCard = async () => {
|
||||
common_vendor.index.showLoading({
|
||||
title: "启动充电中...",
|
||||
mask: true
|
||||
});
|
||||
await api_api.startChargingByCard({
|
||||
deviceNo: info.deviceNo,
|
||||
gunNo: info.gunNo,
|
||||
amount: dataForm.money,
|
||||
userCardId: userCardId.value
|
||||
});
|
||||
};
|
||||
let toRechargeYuFu = async () => {
|
||||
common_vendor.index.showLoading({
|
||||
title: "启动充电中...",
|
||||
mask: true
|
||||
});
|
||||
let _res = await api_api.startChargingByAdaPay({
|
||||
deviceNo: info.deviceNo,
|
||||
gunNo: info.gunNo,
|
||||
amount: dataForm.money
|
||||
});
|
||||
let data = _res.payInfo;
|
||||
common_vendor.index.requestPayment({
|
||||
provider: "wxpay",
|
||||
timeStamp: data.timeStamp,
|
||||
nonceStr: data.nonceStr,
|
||||
package: data.package,
|
||||
signType: data.signType,
|
||||
paySign: data.paySign,
|
||||
success: function(r) {
|
||||
store_index.store.commit("setTransactionNo", _res.transactionNo);
|
||||
store_index.store.commit("setSokStatus", 0);
|
||||
timeMap(_res);
|
||||
},
|
||||
fail: function(err) {
|
||||
common_vendor.index.showToast({
|
||||
title: "已取消支付",
|
||||
icon: "none"
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/home/star.vue:345", "fail:" + JSON.stringify(err));
|
||||
}
|
||||
});
|
||||
};
|
||||
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);
|
||||
};
|
||||
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.o(($event) => common_vendor.unref(navTo)("/pages/money/recharge")),
|
||||
l: common_vendor.p({
|
||||
type: "primary",
|
||||
size: "small",
|
||||
plain: true,
|
||||
text: "余额充值"
|
||||
}),
|
||||
m: common_vendor.f(common_vendor.unref(payList), (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: `/static/icon/lie${item.id}.png`,
|
||||
b: common_vendor.t(item.name),
|
||||
c: item.id == 1
|
||||
}, item.id == 1 ? {
|
||||
d: common_vendor.t(common_vendor.unref(infoUser).balance || 0)
|
||||
} : {}, {
|
||||
e: index,
|
||||
f: item.id == common_vendor.unref(payType) ? "1rpx solid #4879e6" : "",
|
||||
g: common_vendor.o(($event) => common_vendor.isRef(payType) ? payType.value = item.id : payType = item.id, index)
|
||||
});
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
size: "mini",
|
||||
text: `余额原路退款`,
|
||||
plain: true,
|
||||
plainFill: true
|
||||
}),
|
||||
o: common_vendor.o(($event) => {
|
||||
common_vendor.unref(dataForm).money = 30;
|
||||
common_vendor.isRef(inputBorder) ? inputBorder.value = false : inputBorder = false;
|
||||
}),
|
||||
p: `1rpx solid ${common_vendor.unref(dataForm).money == 30 && !common_vendor.unref(inputBorder) ? "#4879e6" : "#c5c5c5"}`,
|
||||
q: common_vendor.o(($event) => {
|
||||
common_vendor.unref(dataForm).money = 50;
|
||||
common_vendor.isRef(inputBorder) ? inputBorder.value = false : inputBorder = false;
|
||||
}),
|
||||
r: `1rpx solid ${common_vendor.unref(dataForm).money == 50 && !common_vendor.unref(inputBorder) ? "#4879e6" : "#c5c5c5"}`,
|
||||
s: common_vendor.o(($event) => {
|
||||
common_vendor.unref(dataForm).money = 100;
|
||||
common_vendor.isRef(inputBorder) ? inputBorder.value = false : inputBorder = false;
|
||||
}),
|
||||
t: `1rpx solid ${common_vendor.unref(dataForm).money == 100 && !common_vendor.unref(inputBorder) ? "#4879e6" : "#c5c5c5"}`,
|
||||
v: common_vendor.unref(inputBorder)
|
||||
}, common_vendor.unref(inputBorder) ? {
|
||||
w: common_vendor.unref(dataForm).money,
|
||||
x: common_vendor.o(($event) => common_vendor.unref(dataForm).money = $event.detail.value)
|
||||
} : {}, {
|
||||
y: common_vendor.o((...args) => common_vendor.unref(inputClik) && common_vendor.unref(inputClik)(...args)),
|
||||
z: `1rpx solid ${common_vendor.unref(inputBorder) ? "#4879e6" : "#c5c5c5"}`,
|
||||
A: common_vendor.unref(payType) == 2
|
||||
}, common_vendor.unref(payType) == 2 ? {
|
||||
B: 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-4-" + 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, index),
|
||||
h: index
|
||||
});
|
||||
})
|
||||
} : {}, {
|
||||
C: common_vendor.t(common_vendor.unref(currentPrice).totalAmount),
|
||||
D: !common_vendor.unref(payType)
|
||||
}, !common_vendor.unref(payType) ? {
|
||||
E: common_vendor.p({
|
||||
customStyle: {
|
||||
height: "80rpx",
|
||||
width: "230rpx"
|
||||
},
|
||||
disabled: true,
|
||||
color: "#4879e6",
|
||||
text: "请选择支付方式",
|
||||
shape: "circle"
|
||||
})
|
||||
} : {}, {
|
||||
F: common_vendor.unref(payType) == 1
|
||||
}, common_vendor.unref(payType) == 1 ? {
|
||||
G: common_vendor.o(common_vendor.unref(toRecharge)),
|
||||
H: common_vendor.p({
|
||||
customStyle: {
|
||||
height: "80rpx",
|
||||
width: "280rpx"
|
||||
},
|
||||
color: "#4879e6",
|
||||
shape: "circle",
|
||||
text: "启动充电"
|
||||
})
|
||||
} : {}, {
|
||||
I: common_vendor.unref(payType) == 3
|
||||
}, common_vendor.unref(payType) == 3 ? {
|
||||
J: common_vendor.o(common_vendor.unref(toRechargeYuFu)),
|
||||
K: common_vendor.p({
|
||||
customStyle: {
|
||||
height: "80rpx",
|
||||
width: "280rpx"
|
||||
},
|
||||
color: "#4879e6",
|
||||
shape: "circle",
|
||||
text: `预付${common_vendor.unref(dataForm).money}元,启动充电`
|
||||
})
|
||||
} : {}, {
|
||||
L: common_vendor.unref(payType) == 2
|
||||
}, common_vendor.unref(payType) == 2 ? {
|
||||
M: common_vendor.o(common_vendor.unref(toRechargeCard)),
|
||||
N: common_vendor.p({
|
||||
customStyle: {
|
||||
height: "80rpx",
|
||||
width: "280rpx"
|
||||
},
|
||||
disabled: !common_vendor.unref(userCardId),
|
||||
color: "#4879e6",
|
||||
text: common_vendor.unref(userCardId) ? "启动充电" : "请选择电卡",
|
||||
shape: "circle"
|
||||
})
|
||||
} : {}, {
|
||||
O: common_vendor.sr("inputClose", "2dd6a3c8-10,2dd6a3c8-9"),
|
||||
P: common_vendor.o(common_vendor.unref(dialogInputConfirm)),
|
||||
Q: common_vendor.p({
|
||||
mode: "input",
|
||||
title: "请输入预付金额",
|
||||
value: common_vendor.unref(dataForm).money,
|
||||
placeholder: "请输入内容"
|
||||
}),
|
||||
R: common_vendor.sr(inputDialog, "2dd6a3c8-9", {
|
||||
"k": "inputDialog"
|
||||
}),
|
||||
S: common_vendor.p({
|
||||
type: "dialog"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
wx.createPage(_sfc_main);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/star.js.map
|
||||
10
unpackage/dist/dev/mp-weixin/pages/home/star.json
vendored
Normal file
10
unpackage/dist/dev/mp-weixin/pages/home/star.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "开始充电",
|
||||
"usingComponents": {
|
||||
"up-tag": "../../uni_modules/uview-plus/components/u-tag/u-tag",
|
||||
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button",
|
||||
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/home/star.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/home/star.wxml
vendored
Normal 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}}" bindtap="{{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 wx:if="{{g}}" u-i="2dd6a3c8-0" bind:__l="__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 wx:if="{{i}}" u-i="2dd6a3c8-1" bind:__l="__l" u-p="{{j}}"></up-tag></view></view><view style="display:flex;align-items:center"><up-button wx:if="{{l}}" bindclick="{{k}}" u-i="2dd6a3c8-2" bind:__l="__l" u-p="{{l}}"></up-button></view></view><view style="font-size:30rpx;margin-bottom:30rpx"><view><view wx:for="{{m}}" wx:for-item="item" wx:key="e" class="flex-acsb" style="{{'padding:15rpx 30rpx;border-radius:10rpx' + ';' + ('border:' + item.f)}}" bindtap="{{item.g}}"><view style="display:flex;align-items:center"><image src="{{item.a}}" style="width:50rpx;height:50rpx;margin-right:25rpx"></image> {{item.b}}</view><view wx:if="{{item.c}}" style="font-size:28rpx;opacity:0.7">可用余额:{{item.d}}</view></view></view></view></view><view class="orderdetail_info" style="margin-bottom:30rpx"><view 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 wx:if="{{n}}" u-i="2dd6a3c8-3" bind:__l="__l" u-p="{{n}}"></up-tag></view><view class="orderdetail_info_yf_left_mon"><view bindtap="{{o}}" style="{{'border:' + p}}"> 30 </view><view bindtap="{{q}}" style="{{'border:' + r}}"> 50 </view><view bindtap="{{s}}" style="{{'border:' + t}}"> 100 </view><view bindtap="{{y}}" style="{{'border:' + z}}"><input wx:if="{{v}}" adjust-position focus type="number" placeholder="自定义" value="{{w}}" bindinput="{{x}}"/><text wx:else>自定义</text></view></view></view></view></view><view wx:if="{{A}}" class="orderdetail_info" style="margin-bottom:30rpx"><view><view class="flex-acsb" style="font-size:30rpx;margin-bottom:20rpx"><view>当前可用电卡</view></view><view wx:for="{{B}}" wx:for-item="item" wx:key="h" bindtap="{{item.g}}" style="margin-bottom:30rpx;position:relative" class="mt30 wallet_list"><view wx:if="{{item.a}}" style="position:absolute;top:0;left:0;background-color:#e45656;border-radius:0 0 20rpx 0"><up-icon wx:if="{{item.c}}" u-i="{{item.b}}" bind:__l="__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 style="height:500rpx"></view><view class="orderdetail_btn p30" style="background-color:#fff"><view class="orderdetail_btn_left">{{C}} <text>元/度 免费停车</text></view><view><up-button wx:if="{{D}}" u-i="2dd6a3c8-5" bind:__l="__l" u-p="{{E}}"></up-button><up-button wx:if="{{F}}" bindclick="{{G}}" u-i="2dd6a3c8-6" bind:__l="__l" u-p="{{H}}"></up-button><up-button wx:if="{{I}}" bindclick="{{J}}" u-i="2dd6a3c8-7" bind:__l="__l" u-p="{{K}}"></up-button><up-button wx:if="{{L}}" bindclick="{{M}}" u-i="2dd6a3c8-8" bind:__l="__l" u-p="{{N}}"></up-button></view></view><uni-popup wx:if="{{S}}" class="r" u-s="{{['d']}}" u-r="inputDialog" u-i="2dd6a3c8-9" bind:__l="__l" u-p="{{S}}"><uni-popup-dialog wx:if="{{Q}}" class="r" u-r="inputClose" bindconfirm="{{P}}" u-i="2dd6a3c8-10,2dd6a3c8-9" bind:__l="__l" u-p="{{Q}}"></uni-popup-dialog></uni-popup></view>
|
||||
124
unpackage/dist/dev/mp-weixin/pages/home/star.wxss
vendored
Normal file
124
unpackage/dist/dev/mp-weixin/pages/home/star.wxss
vendored
Normal file
@@ -0,0 +1,124 @@
|
||||
.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 {
|
||||
flex: 1;
|
||||
}
|
||||
.orderdetail_info_yf_left_tit {
|
||||
font-size: 28rpx;
|
||||
color: rgba(51, 51, 51, 0.8);
|
||||
margin-bottom: 20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: start;
|
||||
}
|
||||
.orderdetail_info_yf_left_mon {
|
||||
font-size: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.orderdetail_info_yf_left_mon view {
|
||||
padding: 15rpx 35rpx;
|
||||
border: 1rpx solid #c5c5c5;
|
||||
margin-right: 15rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.orderdetail_info_yf_left_mon input {
|
||||
width: 100rpx;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
182
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
Normal file
182
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
Normal file
@@ -0,0 +1,182 @@
|
||||
"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_cc_myTabbar2 = common_vendor.resolveComponent("cc-myTabbar");
|
||||
(_easycom_uni_transition2 + _easycom_orderList2 + _easycom_cc_myTabbar2)();
|
||||
}
|
||||
const _easycom_uni_transition = () => "../../uni_modules/uni-transition/components/uni-transition/uni-transition.js";
|
||||
const _easycom_orderList = () => "../../components/orderList/orderList.js";
|
||||
const _easycom_cc_myTabbar = () => "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.js";
|
||||
if (!Math) {
|
||||
(_easycom_uni_transition + _easycom_orderList + _easycom_cc_myTabbar)();
|
||||
}
|
||||
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 () => {
|
||||
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,
|
||||
distance: item.distance,
|
||||
customCallout: {
|
||||
display: "ALWAYS",
|
||||
// 显示方式
|
||||
anchorX: 0,
|
||||
// 锚点X轴
|
||||
anchorY: -10
|
||||
// 锚点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") {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:125", e);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:126", e.detail.scale);
|
||||
mapBox.value = false;
|
||||
mapLocationRefStep(false);
|
||||
}
|
||||
};
|
||||
const markerClick = async (e) => {
|
||||
var _a;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:134", e, "eeeeeee");
|
||||
if (e.markerId == -1) {
|
||||
return;
|
||||
}
|
||||
common_vendor.index.showLoading();
|
||||
let _res = await api_api.infoAroundApi({
|
||||
id: e.markerId
|
||||
});
|
||||
let markerInfo = markList.value.find((val) => val.id == e.markerId);
|
||||
let data = (_a = _res == null ? void 0 : _res.priceList) == null ? void 0 : _a.find((val) => val.isCurrent == 1);
|
||||
infoDz.value = {
|
||||
..._res,
|
||||
distance: markerInfo.distance,
|
||||
priceAmount: data.totalAmount
|
||||
};
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:153", infoDz, "infoDzinfoDz");
|
||||
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.f(common_vendor.unref(markList), (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.gunUseCount || 0),
|
||||
b: common_vendor.t(item.gunCount || 0),
|
||||
c: item.id
|
||||
};
|
||||
}),
|
||||
b: common_assets._imports_0$1,
|
||||
c: common_vendor.unref(longitude),
|
||||
d: common_vendor.o(markerClick),
|
||||
e: common_vendor.o(markerClick),
|
||||
f: common_vendor.o(regionchange),
|
||||
g: common_vendor.unref(markList),
|
||||
h: common_vendor.unref(latitude),
|
||||
i: common_assets._imports_1$1,
|
||||
j: common_vendor.o(mapLocation),
|
||||
k: common_vendor.sr(mapLocationRef, "1a922a9b-0", {
|
||||
"k": "mapLocationRef"
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
show: true
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
toNav: true,
|
||||
Image: true,
|
||||
info: common_vendor.unref(infoDz),
|
||||
list: common_vendor.unref(infoDz).pictures
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
modeClass: "fade",
|
||||
show: common_vendor.unref(mapBox)
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
tabBarShow: 1
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
wx.createPage(_sfc_main);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|
||||
9
unpackage/dist/dev/mp-weixin/pages/index/index.json
vendored
Normal file
9
unpackage/dist/dev/mp-weixin/pages/index/index.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"uni-transition": "../../uni_modules/uni-transition/components/uni-transition/uni-transition",
|
||||
"order-list": "../../components/orderList/orderList",
|
||||
"cc-my-tabbar": "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="content"><map id="map" longitude="{{c}}" bindmarkertap="{{d}}" bindcallouttap="{{e}}" bindregionchange="{{f}}" height="90" width="90" markers="{{g}}" latitude="{{h}}" class="map_content"><cover-view slot="callout"><block wx:for="{{a}}" wx:for-item="item"><cover-view class="callout" marker-id="{{item.c}}"><cover-view class="callout_item"><cover-image class="callout_item_img" src="{{b}}"></cover-image><cover-view class="callout_item_view">闲 {{item.a}}/{{item.b}}</cover-view></cover-view></cover-view></block></cover-view></map><uni-transition wx:if="{{l}}" class="r" u-s="{{['d']}}" u-r="mapLocationRef" u-i="1a922a9b-0" bind:__l="__l" u-p="{{l}}"><view class="map-location" bindtap="{{j}}"><image src="{{i}}" mode="widthFix"></image></view></uni-transition><uni-transition wx:if="{{n}}" u-s="{{['d']}}" u-i="1a922a9b-1" bind:__l="__l" u-p="{{n}}"><view class="map_box"><order-list wx:if="{{m}}" u-i="1a922a9b-2,1a922a9b-1" bind:__l="__l" u-p="{{m}}"/></view></uni-transition><cc-my-tabbar wx:if="{{o}}" u-i="1a922a9b-3" bind:__l="__l" u-p="{{o}}"></cc-my-tabbar></view>
|
||||
74
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
Normal file
74
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
.map_content {
|
||||
width: 750rpx;
|
||||
height: 100vh;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
59
unpackage/dist/dev/mp-weixin/pages/login/login.js
vendored
Normal file
59
unpackage/dist/dev/mp-weixin/pages/login/login.js
vendored
Normal 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((...args) => common_vendor.unref(getPhoneNumber) && common_vendor.unref(getPhoneNumber)(...args)),
|
||||
d: common_vendor.o(change),
|
||||
e: common_vendor.p({
|
||||
shape: "circle",
|
||||
name: "agree",
|
||||
usedAlone: true
|
||||
}),
|
||||
f: common_vendor.o(($event) => toNav("/pages/agreement/agreement?id=9")),
|
||||
g: common_vendor.o(($event) => toNav("/pages/agreement/agreement?id=10"))
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
wx.createPage(_sfc_main);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/login.js.map
|
||||
7
unpackage/dist/dev/mp-weixin/pages/login/login.json
vendored
Normal file
7
unpackage/dist/dev/mp-weixin/pages/login/login.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/login/login.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/login/login.wxml
vendored
Normal 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="getPhoneNumber" bindgetphonenumber="{{c}}">一键注册登录</button><view class="tip-link" style="display:flex;align-items:center"><up-checkbox wx:if="{{e}}" bindchange="{{d}}" u-i="25eaf8ee-0" bind:__l="__l" u-p="{{e}}"></up-checkbox> 我已阅读并同意 <text bindtap="{{f}}">用户协议</text> 和 <text bindtap="{{g}}">隐私政策</text></view></view></view>
|
||||
87
unpackage/dist/dev/mp-weixin/pages/login/login.wxss
vendored
Normal file
87
unpackage/dist/dev/mp-weixin/pages/login/login.wxss
vendored
Normal 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;
|
||||
}
|
||||
84
unpackage/dist/dev/mp-weixin/pages/mine/card.js
vendored
Normal file
84
unpackage/dist/dev/mp-weixin/pages/mine/card.js
vendored
Normal 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), index),
|
||||
g: index
|
||||
};
|
||||
}),
|
||||
b: common_vendor.sr(paging, "dbd3f78b-0", {
|
||||
"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;
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/card.js.map
|
||||
6
unpackage/dist/dev/mp-weixin/pages/mine/card.json
vendored
Normal file
6
unpackage/dist/dev/mp-weixin/pages/mine/card.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的电卡",
|
||||
"usingComponents": {
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/mine/card.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/mine/card.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="earnings p30 data-v-dbd3f78b"><z-paging wx:if="{{e}}" class="r data-v-dbd3f78b" u-s="{{['d']}}" u-r="paging" bindquery="{{c}}" u-i="dbd3f78b-0" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="g" style="margin-bottom:30rpx" bindtap="{{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>
|
||||
8
unpackage/dist/dev/mp-weixin/pages/mine/card.wxss
vendored
Normal file
8
unpackage/dist/dev/mp-weixin/pages/mine/card.wxss
vendored
Normal 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;
|
||||
}
|
||||
81
unpackage/dist/dev/mp-weixin/pages/mine/cardList.js
vendored
Normal file
81
unpackage/dist/dev/mp-weixin/pages/mine/cardList.js
vendored
Normal 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: common_vendor.sr(paging, "50ceb965-0", {
|
||||
"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;
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/cardList.js.map
|
||||
6
unpackage/dist/dev/mp-weixin/pages/mine/cardList.json
vendored
Normal file
6
unpackage/dist/dev/mp-weixin/pages/mine/cardList.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "电卡记录",
|
||||
"usingComponents": {
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/mine/cardList.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/mine/cardList.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="earnings p30 data-v-50ceb965"><z-paging wx:if="{{e}}" class="r data-v-50ceb965" u-s="{{['d']}}" u-r="paging" bindquery="{{c}}" u-i="50ceb965-0" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"><view wx:for="{{a}}" wx:for-item="item" wx: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>
|
||||
67
unpackage/dist/dev/mp-weixin/pages/mine/cardList.wxss
vendored
Normal file
67
unpackage/dist/dev/mp-weixin/pages/mine/cardList.wxss
vendored
Normal 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;
|
||||
}
|
||||
30
unpackage/dist/dev/mp-weixin/pages/mine/earnings.js
vendored
Normal file
30
unpackage/dist/dev/mp-weixin/pages/mine/earnings.js
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"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]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/earnings.js.map
|
||||
7
unpackage/dist/dev/mp-weixin/pages/mine/earnings.json
vendored
Normal file
7
unpackage/dist/dev/mp-weixin/pages/mine/earnings.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "收益",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/mine/earnings.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/mine/earnings.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="earnings"><up-cell-group u-s="{{['d']}}" u-i="c749b6aa-0" bind:__l="__l"><up-cell wx:if="{{a}}" u-i="c749b6aa-1,c749b6aa-0" bind:__l="__l" u-p="{{a}}"></up-cell></up-cell-group></view>
|
||||
0
unpackage/dist/dev/mp-weixin/pages/mine/earnings.wxss
vendored
Normal file
0
unpackage/dist/dev/mp-weixin/pages/mine/earnings.wxss
vendored
Normal file
76
unpackage/dist/dev/mp-weixin/pages/mine/incomeList.js
vendored
Normal file
76
unpackage/dist/dev/mp-weixin/pages/mine/incomeList.js
vendored
Normal 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: common_vendor.sr(paging, "8f9930cc-0", {
|
||||
"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;
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/incomeList.js.map
|
||||
6
unpackage/dist/dev/mp-weixin/pages/mine/incomeList.json
vendored
Normal file
6
unpackage/dist/dev/mp-weixin/pages/mine/incomeList.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "余额明细",
|
||||
"usingComponents": {
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/mine/incomeList.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/mine/incomeList.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="earnings p30 data-v-8f9930cc"><z-paging wx:if="{{e}}" class="r data-v-8f9930cc" u-s="{{['d']}}" u-r="paging" bindquery="{{c}}" u-i="8f9930cc-0" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"><view wx:for="{{a}}" wx:for-item="item" wx: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>
|
||||
67
unpackage/dist/dev/mp-weixin/pages/mine/incomeList.wxss
vendored
Normal file
67
unpackage/dist/dev/mp-weixin/pages/mine/incomeList.wxss
vendored
Normal 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;
|
||||
}
|
||||
90
unpackage/dist/dev/mp-weixin/pages/mine/mine.js
vendored
Normal file
90
unpackage/dist/dev/mp-weixin/pages/mine/mine.js
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
"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_cc_myTabbar2 = common_vendor.resolveComponent("cc-myTabbar");
|
||||
(_easycom_statusBar2 + _easycom_up_avatar2 + _easycom_cc_myTabbar2)();
|
||||
}
|
||||
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
|
||||
const _easycom_up_avatar = () => "../../uni_modules/uview-plus/components/u-avatar/u-avatar.js";
|
||||
const _easycom_cc_myTabbar = () => "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.js";
|
||||
if (!Math) {
|
||||
(_easycom_statusBar + _easycom_up_avatar + _easycom_cc_myTabbar)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "mine",
|
||||
setup(__props) {
|
||||
const { nav, navTo } = hooks_useNav.useNav();
|
||||
let info = common_vendor.ref({});
|
||||
let gridList = common_vendor.ref([
|
||||
{
|
||||
name: "我的电卡",
|
||||
img: "/static/icon/dk_mine.png",
|
||||
path: "/pages/mine/card",
|
||||
type: "nav"
|
||||
},
|
||||
{
|
||||
name: "充电订单",
|
||||
img: "/static/icon/cd_mine.png",
|
||||
path: "/pages/order/order",
|
||||
type: "switchTab"
|
||||
},
|
||||
{
|
||||
name: "余额明细",
|
||||
img: "/static/icon/ye_mine.png",
|
||||
path: "/pages/mine/incomeList",
|
||||
type: "nav"
|
||||
},
|
||||
{
|
||||
name: "客服中心",
|
||||
img: "/static/icon/kf_mine.png",
|
||||
call: true
|
||||
}
|
||||
]);
|
||||
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 || 0),
|
||||
g: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/incomeList")),
|
||||
h: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/incomeList")),
|
||||
i: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pageMake/refund/refund?balance=${common_vendor.unref(info).refundableAmount}`)),
|
||||
j: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/money/recharge")),
|
||||
k: common_vendor.f(common_vendor.unref(gridList), (item, index, i0) => {
|
||||
return {
|
||||
a: item.img,
|
||||
b: common_vendor.t(item.name),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => common_vendor.unref(nav)(item), index)
|
||||
};
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
tabBarShow: 4
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c2ebfa5"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/mine.js.map
|
||||
10
unpackage/dist/dev/mp-weixin/pages/mine/mine.json
vendored
Normal file
10
unpackage/dist/dev/mp-weixin/pages/mine/mine.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"up-avatar": "../../uni_modules/uview-plus/components/u-avatar/u-avatar",
|
||||
"cc-my-tabbar": "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/mine/mine.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/mine/mine.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="mine data-v-7c2ebfa5"><status-bar class="data-v-7c2ebfa5" u-i="7c2ebfa5-0" bind:__l="__l"/><view class="p30 data-v-7c2ebfa5"><view class="mine_header data-v-7c2ebfa5"><view class="mine_header_img data-v-7c2ebfa5"><up-avatar wx:if="{{a}}" class="data-v-7c2ebfa5" u-i="7c2ebfa5-1" bind:__l="__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" bindtap="{{d}}" src="{{e}}"></image></view><view class="mine_money data-v-7c2ebfa5"><view class="flex-acsb flex1 mine_money_top data-v-7c2ebfa5" style="width:100%"><view class="mine_money_left data-v-7c2ebfa5" bindtap="{{g}}"><view class="data-v-7c2ebfa5">{{f}}</view><view class="data-v-7c2ebfa5">钱包余额</view></view><view class="mine_money_left data-v-7c2ebfa5" bindtap="{{h}}"><view class="data-v-7c2ebfa5">0</view><view class="data-v-7c2ebfa5">赠送余额</view></view></view><view class="flex1 mine_money_bottom data-v-7c2ebfa5" style="display:flex;align-items:center"><view class="data-v-7c2ebfa5" bindtap="{{i}}">退款</view><view class="data-v-7c2ebfa5" bindtap="{{j}}">充值</view></view></view><view class="mine_grid data-v-7c2ebfa5"><view class="mine_grid_tit data-v-7c2ebfa5">常用功能</view><view class="mine_grid_views data-v-7c2ebfa5"><view wx:for="{{k}}" wx:for-item="item" wx:key="c" class="mine_grid_views_block data-v-7c2ebfa5" bindtap="{{item.d}}"><image class="data-v-7c2ebfa5" src="{{item.a}}" mode="widthFix"></image><view class="data-v-7c2ebfa5">{{item.b}}</view></view></view></view></view><view class="data-v-7c2ebfa5" style="width:100%;height:100vh;background:#f7f7f7;position:absolute;top:0;left:0;z-index:-1"></view><cc-my-tabbar wx:if="{{l}}" class="data-v-7c2ebfa5" u-i="7c2ebfa5-2" bind:__l="__l" u-p="{{l}}"></cc-my-tabbar></view>
|
||||
153
unpackage/dist/dev/mp-weixin/pages/mine/mine.wxss
vendored
Normal file
153
unpackage/dist/dev/mp-weixin/pages/mine/mine.wxss
vendored
Normal file
@@ -0,0 +1,153 @@
|
||||
.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: column;
|
||||
justify-content: start;
|
||||
width: 100%;
|
||||
background: linear-gradient(178deg, #9ab6ff 0%, #4879e6 100%);
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
padding: 20rpx 0rpx 0;
|
||||
}
|
||||
.mine_money_top.data-v-7c2ebfa5 {
|
||||
padding: 0 150rpx;
|
||||
}
|
||||
.mine_money_bottom.data-v-7c2ebfa5 {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
border-top: 1rpx solid rgba(255, 255, 255, 0.3);
|
||||
margin-top: 20rpx;
|
||||
padding: 15rpx 0;
|
||||
}
|
||||
.mine_money_bottom view.data-v-7c2ebfa5 {
|
||||
width: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 30rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.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_grid.data-v-7c2ebfa5 {
|
||||
width: 100%;
|
||||
padding: 20rpx 30rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 15rpx;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
.mine_grid_tit.data-v-7c2ebfa5 {
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
opacity: 0.8;
|
||||
}
|
||||
.mine_grid_views.data-v-7c2ebfa5 {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
.mine_grid_views_block.data-v-7c2ebfa5 {
|
||||
height: 95rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
.mine_grid_views_block image.data-v-7c2ebfa5 {
|
||||
width: 45rpx;
|
||||
height: 45rpx;
|
||||
}
|
||||
.mine_fun.data-v-7c2ebfa5 {
|
||||
margin-top: 35rpx;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
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;
|
||||
}
|
||||
108
unpackage/dist/dev/mp-weixin/pages/mine/sett.js
vendored
Normal file
108
unpackage/dist/dev/mp-weixin/pages/mine/sett.js
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
"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");
|
||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||
(_easycom_up_avatar2 + _easycom_up_cell2 + _easycom_up_cell_group2 + _easycom_up_button2)();
|
||||
}
|
||||
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";
|
||||
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_avatar + _easycom_up_cell + _easycom_up_cell_group + _easycom_up_button)();
|
||||
}
|
||||
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();
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/mine/sett.vue:51", 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();
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/mine/sett.vue:64", res);
|
||||
common_vendor.index.__f__("log", "at pages/mine/sett.vue:65", "用户点击确定");
|
||||
} else if (res.cancel) {
|
||||
common_vendor.index.__f__("log", "at pages/mine/sett.vue:67", "用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
const outLogin = () => {
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "是否确认退出登录?",
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
common_vendor.index.clearStorageSync();
|
||||
common_vendor.index.reLaunch({
|
||||
url: "/pages/home/home"
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
common_vendor.index.__f__("log", "at pages/mine/sett.vue:84", "用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
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"
|
||||
}),
|
||||
g: common_vendor.t(common_vendor.unref(info).phone || "-"),
|
||||
h: common_vendor.p({
|
||||
title: "手机号",
|
||||
size: "min",
|
||||
border: false
|
||||
}),
|
||||
i: common_vendor.p({
|
||||
border: false
|
||||
}),
|
||||
j: common_vendor.o(outLogin),
|
||||
k: common_vendor.p({
|
||||
type: "error",
|
||||
text: "退出登录"
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
wx.createPage(_sfc_main);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/sett.js.map
|
||||
9
unpackage/dist/dev/mp-weixin/pages/mine/sett.json
vendored
Normal file
9
unpackage/dist/dev/mp-weixin/pages/mine/sett.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"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",
|
||||
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/mine/sett.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/mine/sett.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30"><view style="background-color:#fff;border-radius:15rpx"><up-cell-group wx:if="{{i}}" u-s="{{['d']}}" u-i="442b60d4-0" bind:__l="__l" u-p="{{i}}"><button style="all:unset" open-type="chooseAvatar" bindchooseavatar="{{c}}"><up-cell wx:if="{{b}}" u-s="{{['value']}}" u-i="442b60d4-1,442b60d4-0" bind:__l="__l" u-p="{{b}}"><up-avatar u-i="442b60d4-2,442b60d4-1" bind:__l="__l" u-p="{{a}}" slot="value"></up-avatar></up-cell></button><up-cell wx:if="{{f}}" u-s="{{['value']}}" bindclick="{{e}}" u-i="442b60d4-3,442b60d4-0" bind:__l="__l" u-p="{{f}}"><text class="u-slot-value" slot="value">{{d}}</text></up-cell><up-cell wx:if="{{h}}" u-s="{{['value']}}" u-i="442b60d4-4,442b60d4-0" bind:__l="__l" u-p="{{h}}"><text class="u-slot-value" slot="value">{{g}}</text></up-cell></up-cell-group></view><view style="height:100rpx"></view><up-button wx:if="{{k}}" bindclick="{{j}}" u-i="442b60d4-5" bind:__l="__l" u-p="{{k}}"></up-button></view>
|
||||
4
unpackage/dist/dev/mp-weixin/pages/mine/sett.wxss
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/mine/sett.wxss
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
button::after {
|
||||
all: unset;
|
||||
}
|
||||
142
unpackage/dist/dev/mp-weixin/pages/money/recharge.js
vendored
Normal file
142
unpackage/dist/dev/mp-weixin/pages/money/recharge.js
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
"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;
|
||||
common_vendor.index.__f__("log", "at pages/money/recharge.vue:111", e);
|
||||
};
|
||||
const toUp = () => {
|
||||
api_api.adaPay({
|
||||
amount: money.value
|
||||
}).then((res) => {
|
||||
let data = res;
|
||||
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) {
|
||||
common_vendor.index.__f__("log", "at pages/money/recharge.vue:135", "用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
fail: function(err) {
|
||||
common_vendor.index.__f__("log", "at pages/money/recharge.vue:141", "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), 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"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/money/recharge.js.map
|
||||
7
unpackage/dist/dev/mp-weixin/pages/money/recharge.json
vendored
Normal file
7
unpackage/dist/dev/mp-weixin/pages/money/recharge.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "充值",
|
||||
"usingComponents": {
|
||||
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
|
||||
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/money/recharge.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/money/recharge.wxml
vendored
Normal 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 wx:for="{{b}}" wx:for-item="item" wx:key="c" class="{{['data-v-2cb4e33c', item.b]}}" bindtap="{{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]}}" bindtap="{{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" bindchange="{{c}}" placeholder="其他面额" style="font-weight:bold;color:#666666" type="number" value="{{d}}" bindinput="{{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 wx:if="{{i}}" class="data-v-2cb4e33c" bindchange="{{h}}" u-i="2cb4e33c-0" bind:__l="__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 wx:if="{{l}}" class="data-v-2cb4e33c" bindclick="{{k}}" u-i="2cb4e33c-1" bind:__l="__l" u-p="{{l}}"></up-button></view></view></view></view>
|
||||
145
unpackage/dist/dev/mp-weixin/pages/money/recharge.wxss
vendored
Normal file
145
unpackage/dist/dev/mp-weixin/pages/money/recharge.wxss
vendored
Normal 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;
|
||||
}
|
||||
22
unpackage/dist/dev/mp-weixin/pages/order/detail.js
vendored
Normal file
22
unpackage/dist/dev/mp-weixin/pages/order/detail.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"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]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/detail.js.map
|
||||
6
unpackage/dist/dev/mp-weixin/pages/order/detail.json
vendored
Normal file
6
unpackage/dist/dev/mp-weixin/pages/order/detail.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"status-bar": "../../components/statusBar/statusBar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/order/detail.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/order/detail.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view><status-bar u-i="52b5345c-0" bind:__l="__l"/></view>
|
||||
0
unpackage/dist/dev/mp-weixin/pages/order/detail.wxss
vendored
Normal file
0
unpackage/dist/dev/mp-weixin/pages/order/detail.wxss
vendored
Normal file
131
unpackage/dist/dev/mp-weixin/pages/order/order.js
vendored
Normal file
131
unpackage/dist/dev/mp-weixin/pages/order/order.js
vendored
Normal 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_cc_myTabbar2 = common_vendor.resolveComponent("cc-myTabbar");
|
||||
(_easycom_statusBar2 + _easycom_z_paging2 + _easycom_cc_myTabbar2)();
|
||||
}
|
||||
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
|
||||
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
const _easycom_cc_myTabbar = () => "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.js";
|
||||
if (!Math) {
|
||||
(_easycom_statusBar + _easycom_z_paging + _easycom_cc_myTabbar)();
|
||||
}
|
||||
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 () => {
|
||||
});
|
||||
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), index),
|
||||
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.preAmount),
|
||||
h: common_vendor.t(item.actuallyAmount),
|
||||
i: index,
|
||||
j: common_vendor.o(($event) => common_vendor.unref(toLink)(item), index)
|
||||
};
|
||||
}),
|
||||
c: common_vendor.sr(paging, "93207a4f-0", {
|
||||
"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({
|
||||
tabBarShow: 3
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-93207a4f"]]);
|
||||
_sfc_main.__runtimeHooks = 1;
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/order.js.map
|
||||
10
unpackage/dist/dev/mp-weixin/pages/order/order.json
vendored
Normal file
10
unpackage/dist/dev/mp-weixin/pages/order/order.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
|
||||
"cc-my-tabbar": "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/order/order.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/order/order.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="order data-v-93207a4f"><z-paging wx:if="{{f}}" class="r data-v-93207a4f" u-s="{{['d']}}" u-r="paging" bindquery="{{d}}" u-i="93207a4f-0" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"><view class="data-v-93207a4f"><status-bar class="data-v-93207a4f" u-i="93207a4f-1,93207a4f-0" bind:__l="__l"/><view class="p30 data-v-93207a4f"><view class="order_header data-v-93207a4f"><view wx:for="{{a}}" wx:for-item="item" wx:key="d" bindtap="{{item.c}}" class="{{['order_header_view', 'data-v-93207a4f', item.e]}}">{{item.a}} <view wx:if="{{item.b}}" class="order_header_xian data-v-93207a4f"></view></view></view></view></view><view class="p30 data-v-93207a4f"><view wx:for="{{b}}" wx:for-item="item" wx:key="i" class="order_list data-v-93207a4f" bindtap="{{item.j}}"><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_view data-v-93207a4f"><view class="data-v-93207a4f">预付金额</view><view class="data-v-93207a4f">{{item.g}}元</view></view><view class="order_list_total data-v-93207a4f">实付金额:{{item.h}}元</view></view></view></z-paging><view class="data-v-93207a4f" style="height:180rpx"></view><cc-my-tabbar wx:if="{{g}}" class="data-v-93207a4f" u-i="93207a4f-2" bind:__l="__l" u-p="{{g}}"></cc-my-tabbar></view>
|
||||
57
unpackage/dist/dev/mp-weixin/pages/order/order.wxss
vendored
Normal file
57
unpackage/dist/dev/mp-weixin/pages/order/order.wxss
vendored
Normal 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;
|
||||
}
|
||||
84
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.js
vendored
Normal file
84
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.js
vendored
Normal 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_cc_myTabbar2 = common_vendor.resolveComponent("cc-myTabbar");
|
||||
(_easycom_statusBar2 + _easycom_up_input2 + _easycom_up_button2 + _easycom_cc_myTabbar2)();
|
||||
}
|
||||
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_cc_myTabbar = () => "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.js";
|
||||
if (!Math) {
|
||||
(_easycom_statusBar + _easycom_up_input + _easycom_up_button + _easycom_cc_myTabbar)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "sweep",
|
||||
setup(__props) {
|
||||
const { nav, navTo } = hooks_useNav.useNav();
|
||||
let value = common_vendor.ref("");
|
||||
common_vendor.onLoad(() => {
|
||||
});
|
||||
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$2,
|
||||
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({
|
||||
tabBarShow: 2
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2f0b12d1"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/sweep/sweep.js.map
|
||||
10
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.json
vendored
Normal file
10
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "扫码充电",
|
||||
"navigationStyle": "custom",
|
||||
"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",
|
||||
"cc-my-tabbar": "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="sweep data-v-2f0b12d1"><status-bar class="data-v-2f0b12d1" u-i="2f0b12d1-0" bind:__l="__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 wx:if="{{e}}" class="data-v-2f0b12d1" u-i="2f0b12d1-1" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-input><view class="data-v-2f0b12d1" style="width:100rpx"><up-button wx:if="{{g}}" class="data-v-2f0b12d1" bindclick="{{f}}" u-i="2f0b12d1-2" bind:__l="__l" u-p="{{g}}"></up-button></view></view><view class="sweep_scan data-v-2f0b12d1" style="margin-top:150rpx"><up-button wx:if="{{i}}" class="data-v-2f0b12d1" bindclick="{{h}}" u-i="2f0b12d1-3" bind:__l="__l" u-p="{{i}}"></up-button></view><cc-my-tabbar wx:if="{{j}}" class="data-v-2f0b12d1" u-i="2f0b12d1-4" bind:__l="__l" u-p="{{j}}"></cc-my-tabbar></view>
|
||||
41
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.wxss
vendored
Normal file
41
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.wxss
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user