no message

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

View File

@@ -0,0 +1,5 @@
{
"ignoreCertificateDomainCheck": true,
"ignoreWebViewDomainCheck": true,
"ignoreHttpDomainCheck": true
}

60
unpackage/dist/dev/mp-alipay/api/api.js vendored Normal file
View File

@@ -0,0 +1,60 @@
"use strict";
const request_index = require("../request/index.js");
const loginCodeApi = (params, config = {}) => request_index.http("/api/v0/login/loginByWxCode", params);
const loginByZfbCode = (params, config = {}) => request_index.http("/api/v0/login/loginByZfbCode", params);
const aroundAreaApi = (params, config = {}) => request_index.http("/api/v0/stations/aroundArea", params, "GET");
const infoAroundApi = (params, config = {}) => request_index.http("/api/v0/stations/info", params, "GET");
const listByStationId = (params, config = {}) => request_index.http("/api/v0/device/gun/listByStationId", params, "GET");
const gunInfo = (params, config = {}) => request_index.http("/api/v0/device/gun/info", params, "GET");
const userInfo = (params, config = {}) => request_index.http("/api/v0/user/info", params, "GET");
const ordersList = (params, config = {}) => request_index.http("/api/v0/orders/list", params, "GET");
const startChargingByWallet = (params, config = {}) => request_index.http("/api/v0/orders/startChargingByWallet", params);
const startChargingByCard = (params, config = {}) => request_index.http("/api/v0/orders/startChargingByCard", params);
const stopCharging = (params, config = {}) => request_index.http("/api/v0/orders/stopCharging", params);
const bannerList = (params, config = {}) => request_index.http("/api/v0/banner/list", params, "GET");
const updateNickName = (params, config = {}) => request_index.http("/api/v0/user/updateNickName", params);
const updateAvatar = (params, config = {}) => request_index.http("/api/v0/user/updateAvatar", params);
const getOssUploadParams = (params, config = {}) => request_index.http("/api/v0/user/getOssUploadParams", params, "GET");
const realtimeInfo = (params, config = {}) => request_index.http("/api/v0/orders/realtimeInfo", params, "GET");
const walletRecord = (params, config = {}) => request_index.http("/api/v0/wallet/record", params, "GET");
const userCardList = (params, config = {}) => request_index.http("/api/v0/card/userCardList", params, "GET");
const userCardRecord = (params, config = {}) => request_index.http("/api/v0/card/userCardRecord", params, "GET");
const jqbPay = (params, config = {}) => request_index.http("/api/v0/wallet/charge/jqbPay", params);
const aroundAreaMap = (params, config = {}) => request_index.http("/api/v0/stations/aroundAreaMap", params, "GET");
const selectProtocolInfo = (params, config = {}) => request_index.http("/api/v0/protocol/info", params, "GET");
const invoiceList = (params, config = {}) => request_index.http("/api/v0/invoice/list", params, "GET");
const orderList = (params, config = {}) => request_index.http("/api/v0/invoice/orderList", params, "GET");
const preApply = (params, config = {}) => request_index.http("/api/v0/invoice/preApply", params);
const apply = (params, config = {}) => request_index.http("/api/v0/invoice/apply", params);
const userCardUsableList = (params, config = {}) => request_index.http("/api/v0/card/userCardUsableList", params, "GET");
const refund = (params, config = {}) => request_index.http("/api/v0/wallet/refund", params);
const ordersInfo = (params, config = {}) => request_index.http("/api/v0/orders/info", params, "GET");
exports.apply = apply;
exports.aroundAreaApi = aroundAreaApi;
exports.aroundAreaMap = aroundAreaMap;
exports.bannerList = bannerList;
exports.getOssUploadParams = getOssUploadParams;
exports.gunInfo = gunInfo;
exports.infoAroundApi = infoAroundApi;
exports.invoiceList = invoiceList;
exports.jqbPay = jqbPay;
exports.listByStationId = listByStationId;
exports.loginByZfbCode = loginByZfbCode;
exports.loginCodeApi = loginCodeApi;
exports.orderList = orderList;
exports.ordersInfo = ordersInfo;
exports.ordersList = ordersList;
exports.preApply = preApply;
exports.realtimeInfo = realtimeInfo;
exports.refund = refund;
exports.selectProtocolInfo = selectProtocolInfo;
exports.startChargingByCard = startChargingByCard;
exports.startChargingByWallet = startChargingByWallet;
exports.stopCharging = stopCharging;
exports.updateAvatar = updateAvatar;
exports.updateNickName = updateNickName;
exports.userCardList = userCardList;
exports.userCardRecord = userCardRecord;
exports.userCardUsableList = userCardUsableList;
exports.userInfo = userInfo;
exports.walletRecord = walletRecord;

3063
unpackage/dist/dev/mp-alipay/app.acss vendored Normal file

File diff suppressed because it is too large Load Diff

57
unpackage/dist/dev/mp-alipay/app.js vendored Normal file
View File

@@ -0,0 +1,57 @@
"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common_vendor = require("./common/vendor.js");
const uni_modules_uviewPlus_index = require("./uni_modules/uview-plus/index.js");
const utils_sok = require("./utils/sok.js");
const store_index = require("./store/index.js");
const uni_modules_uviewPlus_libs_mixin_mpShare = require("./uni_modules/uview-plus/libs/mixin/mpShare.js");
if (!Math) {
"./pages/home/home.js";
"./pages/index/index.js";
"./pages/mine/mine.js";
"./pages/order/order.js";
"./pages/sweep/sweep.js";
"./pages/order/detail.js";
"./pages/home/detail.js";
"./pages/login/login.js";
"./pages/home/star.js";
"./pages/mine/earnings.js";
"./pages/mine/sett.js";
"./pages/mine/incomeList.js";
"./pages/mine/card.js";
"./pages/mine/cardList.js";
"./pages/money/recharge.js";
"./pages/agreement/agreement.js";
"./pageOrder/recharge/recharge.js";
"./pageMake/invoice/invoice.js";
"./pageMake/invoice/applyFor.js";
"./pageMake/invoice/makeInvoice.js";
"./pageMake/invoice/applyForDay.js";
"./pageMake/refund/refund.js";
}
const _sfc_main = {
onLaunch: function() {
if (common_vendor.index.getStorageSync("token")) {
utils_sok.init();
}
common_vendor.index.hideTabBar();
console.log("App Launch");
},
onShow: function() {
console.log("App Show");
},
onHide: function() {
console.log("App Hide");
}
};
function createApp() {
const app = common_vendor.createSSRApp(_sfc_main);
app.mixin(uni_modules_uviewPlus_libs_mixin_mpShare.mpShare);
app.use(uni_modules_uviewPlus_index.uviewPlus);
app.use(store_index.store);
return {
app
};
}
createApp().app.mount("#app");
exports.createApp = createApp;

72
unpackage/dist/dev/mp-alipay/app.json vendored Normal file
View File

@@ -0,0 +1,72 @@
{
"pages": [
"pages/home/home",
"pages/index/index",
"pages/mine/mine",
"pages/order/order",
"pages/sweep/sweep",
"pages/order/detail",
"pages/home/detail",
"pages/login/login",
"pages/home/star",
"pages/mine/earnings",
"pages/mine/sett",
"pages/mine/incomeList",
"pages/mine/card",
"pages/mine/cardList",
"pages/money/recharge",
"pages/agreement/agreement"
],
"subPackages": [
{
"root": "pageOrder",
"pages": [
"recharge/recharge"
]
},
{
"root": "pageMake",
"pages": [
"invoice/invoice",
"invoice/applyFor",
"invoice/makeInvoice",
"invoice/applyForDay",
"refund/refund"
]
}
],
"window": {
"defaultTitle": "",
"titleBarColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"tabBar": {
"textColor": "#999999",
"selectedColor": "#999999",
"backgroundColor": "#ffffff",
"items": [
{
"pagePath": "pages/home/home",
"name": "首页"
},
{
"pagePath": "pages/index/index",
"name": "地图"
},
{
"pagePath": "pages/sweep/sweep",
"name": "扫码充电"
},
{
"pagePath": "pages/order/order",
"name": "订单"
},
{
"pagePath": "pages/mine/mine",
"name": "我的"
}
]
},
"subPackageBuildType": "shared",
"usingComponents": {}
}

View File

@@ -0,0 +1,37 @@
"use strict";
const _imports_0$8 = "/static/icon/dd.png";
const _imports_1$4 = "/static/icon/kj.png";
const _imports_2$2 = "/static/icon/kp.png";
const _imports_3 = "/static/icon/kf.png";
const _imports_0$7 = "/static/icon/location-marker-icon.png";
const _imports_0$6 = "/static/icon/sett.png";
const _imports_1$3 = "/static/icon/ka.png";
const _imports_1$2 = "/static/icon/9you.png";
const _imports_0$5 = "/static/image/djk.png";
const _imports_1$1 = "/static/image/djs.png";
const _imports_2$1 = "/static/image/cs.png";
const _imports_0$4 = "/static/icon/eleclist-terminal.png";
const _imports_0$3 = "/static/image/login26_bg.png";
const _imports_0$2 = "/static/icon/copy.png";
const _imports_0$1 = "/static/icon/ic-copy1.png";
const _imports_0 = "/static/icon/cd.png";
const _imports_1 = "/static/icon/dw.png";
const _imports_2 = "/static/icon/tc.png";
exports._imports_0 = _imports_0$8;
exports._imports_0$1 = _imports_0$7;
exports._imports_0$2 = _imports_0$6;
exports._imports_0$3 = _imports_0$5;
exports._imports_0$4 = _imports_0$4;
exports._imports_0$5 = _imports_0$3;
exports._imports_0$6 = _imports_0$2;
exports._imports_0$7 = _imports_0$1;
exports._imports_0$8 = _imports_0;
exports._imports_1 = _imports_1$4;
exports._imports_1$1 = _imports_1$3;
exports._imports_1$2 = _imports_1$2;
exports._imports_1$3 = _imports_1$1;
exports._imports_1$4 = _imports_1;
exports._imports_2 = _imports_2$2;
exports._imports_2$1 = _imports_2$1;
exports._imports_2$2 = _imports_2;
exports._imports_3 = _imports_3;

View File

@@ -0,0 +1,54 @@
"use strict";
const common_vendor = require("../vendor.js");
const api_api = require("../../api/api.js");
const utils_sok = require("../../utils/sok.js");
const login = async (params, type = 1) => {
if (type == 1) {
var {
code: loginCode
} = await common_vendor.index.login({
provider: "weixin"
});
try {
let {
token,
userInfo
} = await api_api.loginCodeApi({
loginCode
});
common_vendor.index.setStorageSync("token", token);
common_vendor.index.setStorageSync("user", userInfo);
} catch (err) {
if (err.code == 10) {
common_vendor.index.setStorageSync("token", false);
}
}
} else if (type == 2) {
var {
code: phoneCode
} = params.detail;
var {
code: loginCode
} = await common_vendor.index.login({
provider: "alipay"
});
try {
let {
token,
user
} = await api_api.loginByZfbCode({
phoneCode,
loginCode
});
common_vendor.index.setStorageSync("token", token);
common_vendor.index.setStorageSync("user", user);
common_vendor.index.reLaunch({
url: "/pages/home/home"
});
utils_sok.init();
} catch (err) {
console.log(err);
}
}
};
exports.login = login;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,132 @@
.orderList.data-v-0fd6f456 {
width: 100%;
padding: 25rpx;
box-shadow: 0rpx -6rpx 8rpx 2rpx rgba(66, 115, 229, 0.05);
border-radius: 16rpx 16rpx 16rpx 16rpx;
position: relative;
background: linear-gradient(270deg, rgba(247, 247, 247, 0) -500%, #fff 100%), url("../../static/icon/b1.png");
background-size: cover;
background-repeat: no-repeat;
}
.orderList_right.data-v-0fd6f456 {
display: flex;
align-items: center;
flex-direction: column;
justify-content: start;
font-family: DIN, DIN;
font-weight: bold;
font-size: 28rpx;
color: #232323;
}
.orderList_right image.data-v-0fd6f456 {
margin-top: 45rpx;
width: 50rpx;
height: 50rpx;
}
.orderList_img.data-v-0fd6f456 {
flex: 1;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
padding-bottom: 20rpx;
border-bottom: 4rpx solid #ebebeb;
margin-bottom: 20rpx;
}
.orderList_img view.data-v-0fd6f456 {
width: 205rpx;
height: 170rpx;
}
.orderList_img image.data-v-0fd6f456 {
width: 205rpx;
height: 170rpx;
}
.orderList_header.data-v-0fd6f456 {
flex: 1;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
font-weight: bold;
font-size: 32rpx;
color: #232323;
margin-bottom: 20rpx;
}
.orderList_header_img.data-v-0fd6f456 {
width: 52rpx;
height: 52rpx;
margin-right: 20rpx;
}
.orderList_money.data-v-0fd6f456 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
color: #eb2424;
font-weight: bold;
margin-bottom: 20rpx;
}
.orderList_money view.data-v-0fd6f456:nth-child(1) {
font-size: 48rpx;
}
.orderList_money view.data-v-0fd6f456:nth-child(2) {
font-size: 36rpx;
}
.orderList_cd.data-v-0fd6f456 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
margin-bottom: 20rpx;
}
.orderList_cd_m.data-v-0fd6f456 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
}
.orderList_cd_m_img.data-v-0fd6f456 {
width: 40rpx;
height: 40rpx;
margin-right: 15rpx;
}
.orderList_cd_m_x.data-v-0fd6f456 {
margin-right: 10rpx;
font-size: 28rpx;
color: #232323;
}
.orderList_cd_m_n.data-v-0fd6f456 {
font-weight: bold;
font-size: 28rpx;
color: #232323;
}
.orderList_cd_m.data-v-0fd6f456:nth-child(1) {
margin-right: 45rpx;
}
.orderList_note.data-v-0fd6f456 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
flex: 1;
min-height: 50rpx;
background: linear-gradient(270deg, rgba(247, 247, 247, 0) 0%, #f7f7f7 100%);
border-radius: 4rpx 4rpx 4rpx 4rpx;
font-weight: bold;
font-size: 24rpx;
color: #232323;
padding: 0 15rpx;
}
.orderList_note_img.data-v-0fd6f456 {
width: 31rpx;
height: 31rpx;
margin-right: 20rpx;
}
.nowrapText.data-v-0fd6f456 {
white-space: nowrap;
/* 超出的空白区域不换行 */
overflow: hidden;
/* 超出隐藏 */
text-overflow: ellipsis;
/* 文本超出显示省略号 */
}

View File

@@ -0,0 +1 @@
<view class="data-v-0fd6f456"><view class="orderList data-v-0fd6f456" onTap="{{p}}"><view a:if="{{a}}" class="orderList_img data-v-0fd6f456"><image a:for="{{b}}" a:for-item="i" a:key="a" class="data-v-0fd6f456" src="{{i.b}}" mode="aspectFill"></image><view a:if="{{c}}" class="data-v-0fd6f456"></view></view><view class="data-v-0fd6f456" style="display:flex;align-items:center;justify-content:space-between"><view class="data-v-0fd6f456"><view class="orderList_header data-v-0fd6f456"><image class="orderList_header_img data-v-0fd6f456" src="{{d}}" mode="widthFix"></image><view class="data-v-0fd6f456">{{e}}</view></view><view class="orderList_money data-v-0fd6f456"><view class="data-v-0fd6f456">{{f}}</view><view class="data-v-0fd6f456">元/度</view></view><view class="orderList_cd data-v-0fd6f456"><view class="orderList_cd_m data-v-0fd6f456"><text class="orderList_cd_m_x data-v-0fd6f456">闲</text><text class="orderList_cd_m_n data-v-0fd6f456">{{g}}/{{h}}</text></view></view></view><view class="orderList_right data-v-0fd6f456"><view class="data-v-0fd6f456">{{i}}KM</view><image class="orderList_note_img data-v-0fd6f456" src="{{j}}" mode="widthFix"></image></view></view><view class="orderList_note data-v-0fd6f456"><image class="orderList_note_img data-v-0fd6f456" src="{{k}}" mode="widthFix"></image><view class="{{('data-v-0fd6f456') + ' ' + o}}">{{l}} <text a:if="{{m}}" class="data-v-0fd6f456">,占用说明:{{n}}</text></view></view></view></view>

View File

@@ -0,0 +1,69 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
__name: "orderList",
props: {
Image: {
type: Boolean,
default: false
},
toNav: {
type: Boolean,
default: false
},
info: {
type: Object,
default: {}
},
list: {
type: Array,
default: []
},
type: {
type: String,
default: "list"
}
},
setup(__props) {
const data = __props;
let toPath = () => {
if (!data.toNav)
return true;
common_vendor.index.navigateTo({
url: `/pages/home/detail?id=${data.info.id}&distance=${data.info.distance}`
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: __props.Image && __props.list.length != 0
}, __props.Image && __props.list.length != 0 ? common_vendor.e({
b: common_vendor.f(__props.list, (i, n, i0) => {
return {
a: n,
b: i
};
}),
c: __props.list.length == 2
}, __props.list.length == 2 ? {} : {}) : {}, {
d: common_assets._imports_0$8,
e: common_vendor.t(__props.info.stationName),
f: common_vendor.t(__props.info.priceAmount),
g: common_vendor.t(__props.info.gunUseCount || 0),
h: common_vendor.t(__props.info.gunCount || 0),
i: common_vendor.t(__props.info.distance),
j: common_assets._imports_1$4,
k: common_assets._imports_2$2,
l: common_vendor.t(__props.info.parkCostInfo),
m: __props.info.occupyCostInfo
}, __props.info.occupyCostInfo ? {
n: common_vendor.t(__props.info.occupyCostInfo)
} : {}, {
o: common_vendor.n(__props.type == "list" ? "nowrapText" : ""),
p: common_vendor.o((...args) => common_vendor.unref(toPath) && common_vendor.unref(toPath)(...args))
});
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0fd6f456"]]);
my.createComponent(Component);

View File

@@ -0,0 +1,5 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {}
}

View File

@@ -0,0 +1,44 @@
.Fixed {
position: fixed;
left: 0;
width: 100%;
padding: 0 30rpx;
z-index: 99;
}
.search {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.search_left {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
font-weight: bold;
font-size: 40rpx;
color: #232323;
height: 86rpx;
}
.search_left_img {
width: 36rpx;
height: 36rpx;
margin-right: 15rpx;
}
.search .opacityLeft {
background: rgba(255, 255, 255, 0.27);
border-radius: 10rpx 10rpx 10rpx 10rpx;
padding: 0 10rpx;
}
.search_right {
flex: 1;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
height: 86rpx;
background: #ffffff;
box-shadow: inset 0rpx 0rpx 22rpx 2rpx #f9fbff;
border-radius: 20rpx 20rpx 20rpx 20rpx;
}

View File

@@ -0,0 +1 @@
<view class="{{f}}"><view style="{{'height:' + a}}"></view><view style="height:44px"></view><view class="search"><view class="search_right p30"><up-input onChange="{{b}}" onConfirm="{{c}}" u-i="030144b5-0" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"></up-input></view></view></view>

View File

@@ -0,0 +1,48 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
_easycom_up_input2();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
if (!Math) {
_easycom_up_input();
}
const _sfc_main = {
__name: "search",
props: {
Fixed: {
type: Boolean,
default: false
}
},
emits: ["change", "search"],
setup(__props, { emit: __emit }) {
let value = common_vendor.ref("");
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
const emits = __emit;
let change = (e) => {
emits("change", e);
};
let confirm = (e) => {
emits("search", e);
};
return (_ctx, _cache) => {
return {
a: statusBarHeight,
b: common_vendor.o(common_vendor.unref(change)),
c: common_vendor.o(common_vendor.unref(confirm)),
d: common_vendor.o(($event) => common_vendor.isRef(value) ? value.value = $event : value = $event),
e: common_vendor.p({
placeholder: "查找地点、电站",
confirmType: "search",
suffixIcon: "/static/icon/search.png",
border: "none",
modelValue: common_vendor.unref(value)
}),
f: common_vendor.n(__props.Fixed ? "Fixed" : "")
};
};
}
};
my.createComponent(_sfc_main);

View File

@@ -0,0 +1,7 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input"
}
}

View File

@@ -0,0 +1,11 @@
.statusBar_blur {
width: 100%;
height: 185rpx;
position: absolute;
top: 0;
left: 0;
background: #dbe6ff;
opacity: 0.8;
filter: blur(50px);
z-index: 0;
}

View File

@@ -0,0 +1 @@
<view style="position:relative"><view style="{{'height:' + a}}"></view><view style="height:44px"></view><view class="statusBar_blur"></view></view>

View File

@@ -0,0 +1,14 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "statusBar",
setup(__props) {
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
return (_ctx, _cache) => {
return {
a: statusBarHeight
};
};
}
};
my.createComponent(_sfc_main);

View File

@@ -0,0 +1,5 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {}
}

View File

@@ -0,0 +1,27 @@
.tabbar_pages {
position: fixed;
bottom: 0;
left: 0;
width: 750rpx;
height: 140rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
background-color: #fff;
box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(88, 140, 255, 0.1);
border-radius: 15rpx 15rpx 0rpx 0rpx;
z-index: 99;
}
.tabbar_pages_view view {
font-size: 24rpx;
color: #999999;
display: flex;
align-items: center;
flex-direction: column;
justify-content: space-between;
}
.tabbar_pages_view view image {
width: 65rpx;
height: 65rpx;
}

View File

@@ -0,0 +1 @@
<view class="tabbar_pages p30"><view a:for="{{a}}" a:for-item="item" a:key="h" class="tabbar_pages_view" onTap="{{item.i}}"><view a:if="{{item.a}}"><view style="height:70rpx"><image mode="widthFix" style="width:132rpx;height:64rpx" src="{{item.b}}"></image></view><view style="{{'color:' + item.d}}">{{item.c}}</view></view><view a:else><view style="height:70rpx"><image mode="widthFix" src="{{item.e}}"></image></view><view style="{{'color:' + item.g}}">{{item.f}}</view></view></view></view>

View File

@@ -0,0 +1,80 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "tabbar",
props: {
path: {
type: String,
default: ""
}
},
setup(__props) {
const data = __props;
let list = common_vendor.ref([
{
pagePath: "/pages/home/home",
text: "首页",
icon_select: "/static/tabbar/select_home.png",
icon: "/static/tabbar/home.png",
type: 0
},
{
pagePath: "/pages/index/index",
text: "地图",
icon_select: "/static/tabbar/select_sq.png",
icon: "/static/tabbar/sq.png",
type: 0
},
{
pagePath: "/pages/sweep/sweep",
text: "扫码充电",
icon_select: "/static/tabbar/find.png",
icon: "/static/tabbar/find.png",
type: 1
},
{
pagePath: "/pages/order/order",
text: "订单",
icon_select: "/static/tabbar/select_order.png",
icon: "/static/tabbar/order.png",
type: 0
},
{
pagePath: "/pages/mine/mine",
text: "我的",
icon_select: "/static/tabbar/select_my.png",
icon: "/static/tabbar/my.png",
type: 0
}
]);
const toLink = (e) => {
common_vendor.index.vibrateShort();
if (data.path == e)
return true;
common_vendor.index.switchTab({
url: e
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(list), (item, index, i0) => {
return common_vendor.e({
a: item.type == 1
}, item.type == 1 ? {
b: item.icon,
c: common_vendor.t(item.text),
d: __props.path == item.pagePath ? "#4879e6" : ""
} : {
e: __props.path == item.pagePath ? item.icon : item.icon_select,
f: common_vendor.t(item.text),
g: __props.path == item.pagePath ? "#4879e6" : ""
}, {
h: index,
i: common_vendor.o(($event) => toLink(item.pagePath))
});
})
};
};
}
};
my.createComponent(_sfc_main);

View File

@@ -0,0 +1,5 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {}
}

View File

@@ -0,0 +1,6 @@
"use strict";
const config = {
// baseUrl: 'http://192.168.1.63:1017',
baseUrl: "https://appapi.prod.zhongshuai2023.com"
};
exports.config = config;

View File

@@ -0,0 +1,25 @@
"use strict";
const common_vendor = require("../common/vendor.js");
function useNav() {
const nav = (e) => {
common_vendor.index[e.type == "nav" || !e.type ? "navigateTo" : e.type == "switchTab" ? "switchTab" : "navigateTo"]({
url: e.path
});
};
const navTo = (path, token, call) => {
if (!common_vendor.index.getStorageSync("token")) {
common_vendor.index.reLaunch({
url: "/pages/login/login"
});
return;
}
common_vendor.index.navigateTo({
url: path
});
};
return {
nav,
navTo
};
}
exports.useNav = useNav;

View File

@@ -0,0 +1,11 @@
{
"format": 2,
"compileOptions": {
"component2": true,
"enableNodeModuleBabelTransform": true
},
"unknownConfig": {
"appid": "2021004150609395",
"projectname": "云充电"
}
}

View File

@@ -0,0 +1,26 @@
.invoice_tip.data-v-d81cafaf {
padding: 20rpx;
font-size: 24rpx;
color: #3c9cff;
background-color: rgba(60, 156, 255, 0.2);
}
.invoice_tip view.data-v-d81cafaf {
line-height: 40rpx;
}
.invoice_list.data-v-d81cafaf {
padding: 15rpx 30rpx;
background-color: #fff;
}
.invoice_list_view.data-v-d81cafaf {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
margin-bottom: 25rpx;
}
.invoice_list_view_left.data-v-d81cafaf {
color: #646368;
}
.invoice_list_view_right.data-v-d81cafaf {
color: #262626;
}

View File

@@ -0,0 +1 @@
<view class="invoice data-v-d81cafaf"><view class="invoice_tip data-v-d81cafaf"><view class="data-v-d81cafaf" style="display:flex;align-items:center"><up-icon class="data-v-d81cafaf" u-i="d81cafaf-0" onVI="__l" u-p="{{a}}"></up-icon> 发票须知: </view><view class="data-v-d81cafaf">1.开票金额为用户实际支付金额(不含返利返佣)</view><view class="data-v-d81cafaf">2.未寄出的纸质发票会在开票确认后的20个工作日内寄出</view><view class="data-v-d81cafaf">3.单笔订单只支持开具一种发票类型</view><view class="data-v-d81cafaf">4.云快充仅为平台方,实际开票主体以申请开票时展示的开票运营商公司为准</view><view class="data-v-d81cafaf">5.发票由各家电站运营商提供,一起申请可能会生成多张发票</view><view class="data-v-d81cafaf">6.若超过20个工作日仍未收到发票您可以通过(区号)+12366向开票公司所在区域的主管税务机关进行反馈处理</view></view><view class="data-v-d81cafaf" style="height:20rpx"></view><view class="data-v-d81cafaf"><z-paging class="data-v-d81cafaf" u-s="{{['d']}}" ref="__r" u-r="{{f}}" onQuery="{{g}}" u-i="d81cafaf-1" onVI="__l" onUpdateModelValue="{{h}}" u-p="{{i}}"><up-checkbox-group class="data-v-d81cafaf" u-s="{{['d']}}" onChange="{{c}}" u-i="d81cafaf-2,d81cafaf-1" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"><view a:for="{{b}}" a:for-item="item" a:key="g" class="invoice_list data-v-d81cafaf" style="margin-bottom:20rpx"><view class="data-v-d81cafaf" style="display:flex;align-items:center;font-weight:bold;font-size:30rpx;margin-bottom:30rpx"><up-checkbox class="data-v-d81cafaf" u-i="{{item.a}}" onVI="__l" u-p="{{item.b}}"></up-checkbox> 充电单号:{{item.c}}</view><view class="data-v-d81cafaf" style="display:flex;align-items:center;justify-content:space-between;background-color:#f6f6f6;border-radius:15rpx;padding:20rpx"><view class="data-v-d81cafaf" style="font-size:28rpx"><view class="data-v-d81cafaf" style="margin-bottom:15rpx">即途展厅</view><view class="data-v-d81cafaf" style="margin-bottom:15rpx">{{item.d}}电费</view><view class="data-v-d81cafaf">{{item.e}}服务费</view></view><view class="data-v-d81cafaf" style="text-align:right"><view class="data-v-d81cafaf" style="margin-bottom:25rpx;font-size:36rpx;font-weight:bold;color:#4879e6">{{item.f}} <text class="data-v-d81cafaf" style="font-size:30rpx">元</text></view><view class="data-v-d81cafaf" style="font-size:28rpx">个人支付</view></view></view></view></up-checkbox-group></z-paging></view><view class="data-v-d81cafaf" style="position:fixed;bottom:0;left:0;width:750rpx;padding:20rpx 50rpx;background-color:#fff;display:flex;align-items:center;justify-content:space-between"><view class="data-v-d81cafaf" style="display:flex;align-items:center"><up-checkbox class="data-v-d81cafaf" onChange="{{j}}" u-i="d81cafaf-4" onVI="__l" onUpdateChecked="{{k}}" u-p="{{l}}"></up-checkbox></view><view class="data-v-d81cafaf" style="width:230rpx"><up-button class="data-v-d81cafaf" onClick="{{m}}" u-i="d81cafaf-5" onVI="__l" u-p="{{n}}"></up-button></view></view></view>

View File

@@ -0,0 +1,148 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const hooks_useNav = require("../../hooks/useNav.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
const _easycom_up_checkbox_group2 = common_vendor.resolveComponent("up-checkbox-group");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_icon2 + _easycom_up_checkbox2 + _easycom_up_checkbox_group2 + _easycom_z_paging2 + _easycom_up_button2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
const _easycom_up_checkbox_group = () => "../../uni_modules/uview-plus/components/u-checkbox-group/u-checkbox-group.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_checkbox + _easycom_up_checkbox_group + _easycom_z_paging + _easycom_up_button)();
}
const _sfc_main = {
__name: "applyFor",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
let checkboxValue1 = common_vendor.ref([]);
const dataList = common_vendor.ref([]);
const paging = common_vendor.ref(null);
let allCel = common_vendor.ref(false);
const allCheck = (e) => {
if (e) {
checkboxValue1.value = dataList.value.map((item, index) => {
return item.id;
});
} else {
checkboxValue1.value = [];
}
allCel.value = e;
console.log(e);
};
const queryList = async (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize
};
api_api.orderList(params).then((res) => {
paging.value.complete(res);
common_vendor.index.hideLoading();
}).catch((res) => {
paging.value.complete(false);
common_vendor.index.hideLoading();
});
};
const checkboxChange = (e) => {
if (e.length == dataList.value.length) {
allCel.value = true;
} else {
allCel.value = false;
}
console.log(e);
};
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();
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
name: "error-circle-fill",
color: "#3c9cff"
}),
b: common_vendor.f(dataList.value, (item, index, i0) => {
return {
a: "d81cafaf-3-" + i0 + ",d81cafaf-2",
b: common_vendor.p({
shape: "circle",
customStyle: {
margin: "0"
},
name: item.id
}),
c: common_vendor.t(item.orderNo),
d: common_vendor.t(item.electricityAmount),
e: common_vendor.t(item.serviceAmount),
f: common_vendor.t(item.actuallyAmount),
g: index
};
}),
c: common_vendor.o(checkboxChange),
d: common_vendor.o(($event) => common_vendor.isRef(checkboxValue1) ? checkboxValue1.value = $event : checkboxValue1 = $event),
e: common_vendor.p({
placement: "column",
modelValue: common_vendor.unref(checkboxValue1)
}),
f: () => ({
r: paging,
k: "paging"
}),
g: common_vendor.o(queryList),
h: common_vendor.o(($event) => dataList.value = $event),
i: common_vendor.p({
["use-page-scroll"]: true,
modelValue: dataList.value
}),
j: common_vendor.o(allCheck),
k: common_vendor.o(($event) => common_vendor.isRef(allCel) ? allCel.value = $event : allCel = $event),
l: common_vendor.p({
label: "本页全选",
shape: "circle",
usedAlone: true,
customStyle: {
margin: "0 10rpx 0 0"
},
checked: common_vendor.unref(allCel)
}),
m: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pageMake/invoice/applyForDay?list=${encodeURIComponent(JSON.stringify(common_vendor.unref(checkboxValue1)))}`)),
n: common_vendor.p({
customStyle: {
height: "80rpx",
width: "230rpx"
},
color: "#4879e6",
text: "下一步",
shape: "circle",
disabled: common_vendor.unref(checkboxValue1).length == 0
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d81cafaf"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,10 @@
{
"defaultTitle": "申请开票",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
"up-checkbox-group": "../../uni_modules/uview-plus/components/u-checkbox-group/u-checkbox-group",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1,26 @@
.invoice_tip.data-v-0b3268c8 {
padding: 20rpx;
font-size: 24rpx;
color: #3c9cff;
background-color: rgba(60, 156, 255, 0.2);
}
.invoice_tip view.data-v-0b3268c8 {
line-height: 40rpx;
}
.invoice_list.data-v-0b3268c8 {
padding: 15rpx 30rpx;
background-color: #fff;
}
.invoice_list_view.data-v-0b3268c8 {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
margin-bottom: 25rpx;
}
.invoice_list_view_left.data-v-0b3268c8 {
color: #646368;
}
.invoice_list_view_right.data-v-0b3268c8 {
color: #262626;
}

View File

@@ -0,0 +1 @@
<view class="invoice data-v-0b3268c8"><view class="invoice_tip data-v-0b3268c8"><view class="data-v-0b3268c8" style="display:flex;align-items:center"><up-icon class="data-v-0b3268c8" u-i="0b3268c8-0" onVI="__l" u-p="{{a}}"></up-icon> 发票须知: </view><view class="data-v-0b3268c8">1.开票金额为用户实际支付金额(不含返利返佣)</view><view class="data-v-0b3268c8">2.未寄出的纸质发票会在开票确认后的20个工作日内寄出</view><view class="data-v-0b3268c8">3.单笔订单只支持开具一种发票类型</view><view class="data-v-0b3268c8">4.云快充仅为平台方,实际开票主体以申请开票时展示的开票运营商公司为准</view><view class="data-v-0b3268c8">5.发票由各家电站运营商提供,一起申请可能会生成多张发票</view><view class="data-v-0b3268c8">6.若超过20个工作日仍未收到发票您可以通过(区号)+12366向开票公司所在区域的主管税务机关进行反馈处理</view></view><view class="data-v-0b3268c8" style="height:20rpx"></view><view class="data-v-0b3268c8"><view a:for="{{b}}" a:for-item="item" a:key="e" class="invoice_list data-v-0b3268c8" style="margin-bottom:20rpx"><view class="data-v-0b3268c8" style="display:flex;align-items:center;font-weight:bold;font-size:30rpx;margin-bottom:30rpx"> 开票运营商:{{item.a}}</view><view class="data-v-0b3268c8" style="display:flex;align-items:center;justify-content:space-between;background-color:#f6f6f6;border-radius:15rpx;padding:20rpx"><view class="data-v-0b3268c8" style="font-size:28rpx"><view class="data-v-0b3268c8" style="margin-bottom:15rpx">{{item.b}}电费</view><view class="data-v-0b3268c8">{{item.c}}服务费</view></view><view class="data-v-0b3268c8" style="text-align:right"><view class="data-v-0b3268c8" style="margin-bottom:25rpx;font-size:36rpx;font-weight:bold;color:#4879e6">{{item.d}} <text class="data-v-0b3268c8" style="font-size:30rpx">元</text></view><view class="data-v-0b3268c8" style="font-size:28rpx">个人支付</view></view></view></view></view><view class="data-v-0b3268c8" style="position:fixed;bottom:0;left:0;width:750rpx;padding:20rpx 50rpx;background-color:#fff;display:flex;align-items:center;justify-content:space-between"><view class="data-v-0b3268c8"></view><view class="data-v-0b3268c8" style="width:230rpx"><up-button class="data-v-0b3268c8" onClick="{{c}}" u-i="0b3268c8-1" onVI="__l" u-p="{{d}}"></up-button></view></view></view>

View File

@@ -0,0 +1,57 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const hooks_useNav = require("../../hooks/useNav.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_icon2 + _easycom_up_button2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_button)();
}
const _sfc_main = {
__name: "applyForDay",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
const dataList = common_vendor.ref([]);
let checkboxValue1 = common_vendor.ref([]);
common_vendor.onLoad(async (options) => {
checkboxValue1.value = JSON.parse(decodeURIComponent(options.list));
console.log(checkboxValue1.value);
let _res = await api_api.preApply({ ordersIds: JSON.parse(decodeURIComponent(options.list)) });
dataList.value = _res;
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
name: "error-circle-fill",
color: "#3c9cff"
}),
b: common_vendor.f(dataList.value, (item, index, i0) => {
return {
a: common_vendor.t(item.merchantName),
b: common_vendor.t(item.electricityAmount),
c: common_vendor.t(item.serviceAmount),
d: common_vendor.t(item.invoiceAmount),
e: index
};
}),
c: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pageMake/invoice/makeInvoice?list=${encodeURIComponent(JSON.stringify(common_vendor.unref(checkboxValue1)))}`)),
d: common_vendor.p({
customStyle: {
height: "80rpx",
width: "230rpx"
},
color: "#4879e6",
text: "下一步",
shape: "circle"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0b3268c8"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"defaultTitle": "申请开票",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1,26 @@
.invoice_tip.data-v-d71576e1 {
padding: 20rpx;
font-size: 24rpx;
color: #3c9cff;
background-color: rgba(60, 156, 255, 0.2);
}
.invoice_tip view.data-v-d71576e1 {
line-height: 40rpx;
}
.invoice_list.data-v-d71576e1 {
padding: 15rpx 30rpx;
background-color: #fff;
}
.invoice_list_view.data-v-d71576e1 {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
margin-bottom: 25rpx;
}
.invoice_list_view_left.data-v-d71576e1 {
color: #646368;
}
.invoice_list_view_right.data-v-d71576e1 {
color: #262626;
}

View File

@@ -0,0 +1 @@
<view class="invoice data-v-d71576e1"><view class="invoice_tip data-v-d71576e1"><view class="data-v-d71576e1" style="display:flex;align-items:center"><up-icon class="data-v-d71576e1" u-i="d71576e1-0" onVI="__l" u-p="{{a}}"></up-icon> 温馨提示: </view><view class="data-v-d71576e1">1.云充电仅为平台方,实际开票主体以下方展示的开票公司为准</view><view class="data-v-d71576e1">2.若超过20个工作日仍未收到发票您可以通过(区号)+12366向开票公司所在区域的主管税务机关进行反馈处理</view></view><view class="data-v-d71576e1" style="height:20rpx"></view><z-paging class="data-v-d71576e1" u-s="{{['d']}}" ref="__r" u-r="{{e}}" onQuery="{{f}}" u-i="d71576e1-1" onVI="__l" onUpdateModelValue="{{g}}" u-p="{{h}}"><view a:for="{{b}}" a:for-item="item" a:key="p" class="invoice_list data-v-d71576e1"><view class="invoice_list_view data-v-d71576e1"><view class="invoice_list_view_left data-v-d71576e1" style="display:flex;align-items:center"><up-icon class="data-v-d71576e1" u-i="{{item.a}}" onVI="__l" u-p="{{c}}"></up-icon> {{item.b}}</view><up-icon class="data-v-d71576e1" u-i="{{item.c}}" onVI="__l" u-p="{{d}}"></up-icon></view><view class="invoice_list_view data-v-d71576e1"><view class="invoice_list_view_left data-v-d71576e1">发票抬头</view><view class="invoice_list_view_right data-v-d71576e1">{{item.d}}</view></view><view class="invoice_list_view data-v-d71576e1"><view class="invoice_list_view_left data-v-d71576e1">开票运营商</view><view class="invoice_list_view_right data-v-d71576e1">{{item.e}}</view></view><view class="data-v-d71576e1" style="border:1px dashed #eee"></view><view class="data-v-d71576e1" style="height:20rpx"></view><view class="data-v-d71576e1" style="display:flex;align-items:center;justify-content:space-between"><view class="data-v-d71576e1"><up-tag a:if="{{item.f}}" class="data-v-d71576e1" u-i="{{item.g}}" onVI="__l" u-p="{{item.h}}"></up-tag><up-tag a:if="{{item.i}}" class="data-v-d71576e1" u-i="{{item.j}}" onVI="__l" u-p="{{item.k}}"></up-tag><up-tag a:if="{{item.l}}" class="data-v-d71576e1" u-i="{{item.m}}" onVI="__l" u-p="{{item.n}}"></up-tag></view><view class="data-v-d71576e1" style="font-size:36rpx;font-weight:bold">{{item.o}} <text class="data-v-d71576e1" style="font-size:30rpx">元</text></view></view></view></z-paging><view class="data-v-d71576e1" style="height:150rpx"></view><view class="data-v-d71576e1" style="position:fixed;bottom:0;left:0;width:750rpx;padding:20rpx 50rpx;background-color:#fff"><up-button class="data-v-d71576e1" onClick="{{i}}" u-i="d71576e1-7" onVI="__l" u-p="{{j}}"></up-button></view></view>

View File

@@ -0,0 +1,136 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const hooks_useNav = require("../../hooks/useNav.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_icon2 + _easycom_up_tag2 + _easycom_z_paging2 + _easycom_up_button2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_tag = () => "../../uni_modules/uview-plus/components/u-tag/u-tag.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_tag + _easycom_z_paging + _easycom_up_button)();
}
const _sfc_main = {
__name: "invoice",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
const dataList = common_vendor.ref([]);
const paging = common_vendor.ref(null);
const queryList = async (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize
};
api_api.invoiceList(params).then((res) => {
paging.value.complete(res);
common_vendor.index.hideLoading();
}).catch((res) => {
paging.value.complete(false);
common_vendor.index.hideLoading();
});
};
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();
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
name: "error-circle-fill",
color: "#3c9cff"
}),
b: common_vendor.f(dataList.value, (item, index, i0) => {
return common_vendor.e({
a: "d71576e1-2-" + i0 + ",d71576e1-1",
b: common_vendor.t(item.createTime),
c: "d71576e1-3-" + i0 + ",d71576e1-1",
d: common_vendor.t(item.invoiceTitle),
e: common_vendor.t(item.merchantInvoice || "-"),
f: item.status == 0
}, item.status == 0 ? {
g: "d71576e1-4-" + i0 + ",d71576e1-1",
h: common_vendor.p({
text: "待开票",
type: "warning",
plain: true,
plainFill: true
})
} : {}, {
i: item.status == 1
}, item.status == 1 ? {
j: "d71576e1-5-" + i0 + ",d71576e1-1",
k: common_vendor.p({
text: "已开票",
type: "success",
plain: true,
plainFill: true
})
} : {}, {
l: item.status == -1
}, item.status == -1 ? {
m: "d71576e1-6-" + i0 + ",d71576e1-1",
n: common_vendor.p({
text: "取消",
type: "error",
plain: true,
plainFill: true
})
} : {}, {
o: common_vendor.t(item.invoiceAmount),
p: index
});
}),
c: common_vendor.p({
name: "clock-fill"
}),
d: common_vendor.p({
name: "arrow-right"
}),
e: () => ({
r: paging,
k: "paging"
}),
f: common_vendor.o(queryList),
g: common_vendor.o(($event) => dataList.value = $event),
h: common_vendor.p({
["use-page-scroll"]: true,
modelValue: dataList.value
}),
i: common_vendor.o(($event) => common_vendor.unref(navTo)("/pageMake/invoice/applyFor")),
j: common_vendor.p({
customStyle: {
height: "80rpx"
},
color: "#4879e6",
text: "申请开票",
shape: "circle"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d71576e1"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,9 @@
{
"defaultTitle": "开票记录",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-tag": "../../uni_modules/uview-plus/components/u-tag/u-tag",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1,31 @@
page {
background-color: #f5f5f5;
}
.invoice_tip.data-v-4c7e3b70 {
padding: 20rpx;
font-size: 24rpx;
color: #3c9cff;
background-color: rgba(60, 156, 255, 0.2);
}
.invoice_tip view.data-v-4c7e3b70 {
line-height: 40rpx;
}
.invoice_list.data-v-4c7e3b70 {
padding: 15rpx 30rpx;
background-color: #fff;
}
.invoice_list_view.data-v-4c7e3b70 {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
margin-bottom: 25rpx;
}
.invoice_list_view_left.data-v-4c7e3b70 {
color: #646368;
}
.invoice_list_view_right.data-v-4c7e3b70 {
color: #262626;
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,195 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
(_easycom_up_icon2 + _easycom_up_textarea2 + _easycom_up_button2 + _easycom_up_picker2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_textarea + _easycom_up_button + _easycom_up_picker)();
}
const _sfc_main = {
__name: "makeInvoice",
setup(__props) {
common_vendor.ref([]);
let dataFrom = common_vendor.ref({
invoiceType: null,
subjectType: null,
ordersIds: []
});
let show1 = common_vendor.ref(false);
let show2 = common_vendor.ref(false);
common_vendor.onLoad(async (options) => {
console.log(options);
console.log(JSON.parse(decodeURIComponent(options.list)));
dataFrom.value.ordersIds = JSON.parse(decodeURIComponent(options.list));
});
const applyCon = async () => {
if (!dataFrom.value.subjectType)
return common_vendor.index.showToast({ title: "请选择发票主体", icon: "none" });
if (!dataFrom.value.invoiceType)
return common_vendor.index.showToast({ title: "请选择发票类型", icon: "none" });
if (!dataFrom.value.invoiceType == 1 && !dataFrom.value.taxNumber)
return common_vendor.index.showToast({ title: "请输入发票税号", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.registrationPhone)
return common_vendor.index.showToast({ title: "请输入发票税号", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.invoiceType == 2 && !dataFrom.value.taxNumber)
return common_vendor.index.showToast({ title: "请输入发票税号", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.invoiceType == 2 && !dataFrom.value.registrationAddress)
return common_vendor.index.showToast({ title: "请输入公司地址", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.invoiceType == 2 && !dataFrom.value.registrationPhone)
return common_vendor.index.showToast({ title: "请输入公司电话", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.invoiceType == 2 && !dataFrom.value.bankName)
return common_vendor.index.showToast({ title: "请输入开户行名称", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.invoiceType == 2 && !dataFrom.value.bankAccount)
return common_vendor.index.showToast({ title: "请输入开户行账户", icon: "none" });
if (!dataFrom.value.name)
return common_vendor.index.showToast({ title: "请输入收票人姓名", icon: "none" });
if (!dataFrom.value.address)
return common_vendor.index.showToast({ title: "请输入收票人地址", icon: "none" });
if (!dataFrom.value.phone)
return common_vendor.index.showToast({ title: "请输入收票人电话", icon: "none" });
if (!dataFrom.value.email)
return common_vendor.index.showToast({ title: "请输入收票人邮箱", icon: "none" });
await api_api.apply(dataFrom.value);
common_vendor.index.navigateBack({
delta: 3
});
};
const aaa1 = (ee) => {
dataFrom.value.invoiceType = ee.value[0].id;
show1.value = false;
console.log(dataFrom.value.invoiceType);
};
const aaa2 = (ee) => {
dataFrom.value.subjectType = ee.value[0].id;
show2.value = false;
if (ee.value[0].id == 2) {
dataFrom.value.invoiceType = 1;
}
};
const show1True = () => {
if (dataFrom.value.subjectType == 2) {
return;
}
show1.value = true;
};
const columns1 = common_vendor.reactive([
[
{
label: "增值税普通发票",
id: 1
},
{
label: "增值税专用发票",
id: 2
}
]
]);
const columns2 = common_vendor.reactive([
[
{
label: "企业",
id: 1
},
{
label: "个人",
id: 2
}
]
]);
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
name: "error-circle-fill",
color: "#3c9cff"
}),
b: common_vendor.t(!common_vendor.unref(dataFrom).subjectType ? "请选择" : columns2[0].find((val) => val.id == common_vendor.unref(dataFrom).subjectType).label),
c: !common_vendor.unref(dataFrom).subjectType ? "#808080" : "",
d: common_vendor.p({
name: "arrow-down"
}),
e: common_vendor.o(($event) => common_vendor.isRef(show2) ? show2.value = true : show2 = true),
f: common_vendor.t(!common_vendor.unref(dataFrom).invoiceType ? "请选择" : columns1[0].find((val) => val.id == common_vendor.unref(dataFrom).invoiceType).label),
g: !common_vendor.unref(dataFrom).invoiceType ? "#808080" : "",
h: common_vendor.p({
name: "arrow-down"
}),
i: common_vendor.o(show1True),
j: common_vendor.unref(dataFrom).invoiceTitle,
k: common_vendor.o(($event) => common_vendor.unref(dataFrom).invoiceTitle = $event.detail.value),
l: common_vendor.unref(dataFrom).subjectType == 1
}, common_vendor.unref(dataFrom).subjectType == 1 ? {
m: common_vendor.unref(dataFrom).taxNumber,
n: common_vendor.o(($event) => common_vendor.unref(dataFrom).taxNumber = $event.detail.value)
} : {}, {
o: common_vendor.unref(dataFrom).invoiceType == 2
}, common_vendor.unref(dataFrom).invoiceType == 2 ? {
p: common_vendor.unref(dataFrom).registrationAddress,
q: common_vendor.o(($event) => common_vendor.unref(dataFrom).registrationAddress = $event.detail.value)
} : {}, {
r: common_vendor.unref(dataFrom).invoiceType == 2
}, common_vendor.unref(dataFrom).invoiceType == 2 ? {
s: common_vendor.unref(dataFrom).registrationPhone,
t: common_vendor.o(($event) => common_vendor.unref(dataFrom).registrationPhone = $event.detail.value)
} : {}, {
v: common_vendor.unref(dataFrom).invoiceType == 2
}, common_vendor.unref(dataFrom).invoiceType == 2 ? {
w: common_vendor.unref(dataFrom).bankName,
x: common_vendor.o(($event) => common_vendor.unref(dataFrom).bankName = $event.detail.value)
} : {}, {
y: common_vendor.unref(dataFrom).invoiceType == 2
}, common_vendor.unref(dataFrom).invoiceType == 2 ? {
z: common_vendor.unref(dataFrom).bankAccount,
A: common_vendor.o(($event) => common_vendor.unref(dataFrom).bankAccount = $event.detail.value)
} : {}, {
B: common_vendor.unref(dataFrom).name,
C: common_vendor.o(($event) => common_vendor.unref(dataFrom).name = $event.detail.value),
D: common_vendor.unref(dataFrom).phone,
E: common_vendor.o(($event) => common_vendor.unref(dataFrom).phone = $event.detail.value),
F: common_vendor.unref(dataFrom).address,
G: common_vendor.o(($event) => common_vendor.unref(dataFrom).address = $event.detail.value),
H: common_vendor.unref(dataFrom).email,
I: common_vendor.o(($event) => common_vendor.unref(dataFrom).email = $event.detail.value),
J: common_vendor.o(($event) => common_vendor.unref(dataFrom).invoiceRemark = $event),
K: common_vendor.p({
placeholder: "请输入内容",
modelValue: common_vendor.unref(dataFrom).invoiceRemark
}),
L: common_vendor.o(applyCon),
M: common_vendor.p({
customStyle: {
height: "80rpx",
width: "230rpx"
},
color: "#4879e6",
text: "确认开票",
shape: "circle"
}),
N: common_vendor.o(aaa1),
O: common_vendor.o(($event) => common_vendor.isRef(show1) ? show1.value = false : show1 = false),
P: common_vendor.p({
keyName: "label",
show: common_vendor.unref(show1),
columns: columns1
}),
Q: common_vendor.o(aaa2),
R: common_vendor.o(($event) => common_vendor.isRef(show2) ? show2.value = false : show2 = false),
S: common_vendor.p({
keyName: "label",
show: common_vendor.unref(show2),
columns: columns2
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4c7e3b70"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,9 @@
{
"defaultTitle": "申请开票",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button",
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker"
}
}

View File

@@ -0,0 +1,4 @@
page {
background-color: #fff;
}

View File

@@ -0,0 +1 @@
<view class="p30"><view style="font-size:36rpx;font-weight:bold;margin-top:40rpx"> 退款信息 <text style="font-size:26rpx;color:chocolate;font-weight:500">活动金额不在退款范围内</text></view><view style="display:flex;align-items:center;height:100rpx;justify-content:space-between"><view>¥</view><input placeholder="{{a}}" style="width:500rpx;font-size:32rpx" type="number" value="{{b}}" onInput="{{c}}"/><view onTap="{{d}}" style="font-size:28rpx;color:#4879e6">全部</view></view><view style="font-size:28rpx;margin-bottom:20rpx">申请退款理由</view><view style="margin-bottom:30rpx"><up-textarea u-i="53c42ebc-0" onVI="__l" onUpdateModelValue="{{e}}" u-p="{{f}}"></up-textarea></view><view style="font-weight:bold;font-size:30rpx;margin-bottom:20rpx">退款须知:</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">1.退款金额不包含充值时使用的第三方优惠抵扣金额,退款时充值享受到的优惠金额也将全部扣除</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">2.您的退款金额到账时间由各充值渠道(微信/支付宝决定请耐心等待约1~3工作日到账</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">3.退款按照充值记录进行逐笔退款,一次申请可能产生多笔退款到账记录,请注意查收</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">4.正在充电或存在异常订单时无法进行退款操作</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">5.根据各充值渠道规则,只可退一年内的充值金额</view><view style="position:fixed;bottom:0;left:0;width:750rpx;padding:20rpx 30rpx;border-top:1rpx solid #eee" class="flex-acsb"><view style="width:230rpx"><up-button u-i="53c42ebc-1" onVI="__l" u-p="{{g}}"></up-button></view><view style="width:400rpx"><up-button onClick="{{h}}" u-i="53c42ebc-2" onVI="__l" u-p="{{i}}"></up-button></view></view></view>

View File

@@ -0,0 +1,81 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
const _sfc_main = {
data() {
return {
balance: 0,
dataFrom: {
amount: "",
refundReason: ""
}
};
},
onLoad(options) {
if (options.balance) {
this.balance = options.balance;
}
},
methods: {
refundTo() {
if (!this.dataFrom.amount) {
return common_vendor.index.showToast({
title: "请输入退款金额",
icon: "none"
});
}
api_api.refund(this.dataFrom).then((res) => {
common_vendor.index.showModal({
title: "提示",
content: "提交成功",
showCancel: false,
success: function(res2) {
common_vendor.index.navigateBack();
}
});
});
}
}
};
if (!Array) {
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_textarea2 + _easycom_up_button2)();
}
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_textarea + _easycom_up_button)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: `可申请退款${$data.balance}`,
b: $data.dataFrom.amount,
c: common_vendor.o(($event) => $data.dataFrom.amount = $event.detail.value),
d: common_vendor.o(($event) => $data.dataFrom.amount = $data.balance),
e: common_vendor.o(($event) => $data.dataFrom.refundReason = $event),
f: common_vendor.p({
placeholder: "请输入退款理由",
modelValue: $data.dataFrom.refundReason
}),
g: common_vendor.p({
openType: "contact",
customStyle: {
height: "80rpx"
},
text: "联系客服",
shape: "circle"
}),
h: common_vendor.o($options.refundTo),
i: common_vendor.p({
customStyle: {
height: "80rpx"
},
color: "#4879e6",
text: "提交",
shape: "circle"
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"defaultTitle": "退款申请",
"usingComponents": {
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1,178 @@
page {
background-color: #000;
}
.recharge_orderId.data-v-32c0de50 {
width: 1000rpx;
margin-left: -125rpx;
margin-top: -20rpx;
height: 230rpx;
background: url(https://zhongshuai-prod.oss-cn-beijing.aliyuncs.com/appImage/order/order-realtime-pile-number-bg.png) no-repeat 100% 100%/contain;
color: #828282;
text-align: center;
padding-top: 30rpx;
font-size: 26rpx;
}
.recharge_orderId view.data-v-32c0de50 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
}
.recharge_orderId view image.data-v-32c0de50 {
width: 30rpx;
height: 30rpx;
margin-left: 15rpx;
}
.recharge_trn.data-v-32c0de50 {
margin-top: -130rpx;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
.recharge_trn_yuan.data-v-32c0de50 {
width: 500rpx;
height: 500rpx;
position: relative;
}
.recharge_trn_yuan_img.data-v-32c0de50 {
width: 100%;
height: 100%;
animation: rotate-32c0de50 5s linear infinite;
}
.recharge_trn_text.data-v-32c0de50 {
z-index: 9;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
margin-top: -470rpx;
}
.recharge_trn_text view.data-v-32c0de50:nth-child(1) {
color: #fff;
font-weight: bold;
font-size: 60rpx;
}
.recharge_trn_text view.data-v-32c0de50:nth-child(2) {
color: #11927c;
font-size: 28rpx;
margin: 25rpx 0 15rpx;
}
.recharge_trn_text view.data-v-32c0de50:nth-child(3) {
color: #24efe8;
font-weight: bold;
font-size: 36rpx;
margin-bottom: 30rpx;
}
.recharge_trn_hei.data-v-32c0de50 {
margin-top: -360rpx;
width: 500rpx;
height: 500rpx;
z-index: 9;
}
.recharge_trn_car.data-v-32c0de50 {
z-index: 10;
width: 450rpx;
position: relative;
}
.recharge_trn_car_img.data-v-32c0de50 {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.recharge_trn_car_img1.data-v-32c0de50 {
width: 100%;
height: 100%;
}
.recharge_list.data-v-32c0de50 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
padding: 0 50rpx;
}
.recharge_list_view.data-v-32c0de50 {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
.recharge_list_view image.data-v-32c0de50 {
width: 75rpx;
height: 75rpx;
}
.recharge_list_view_num.data-v-32c0de50 {
color: #fff;
font-weight: bold;
font-size: 36rpx;
margin: 10rpx 0;
}
.recharge_list_view_name.data-v-32c0de50 {
color: #8b8b8b;
font-weight: bold;
font-size: 28rpx;
}
.recharge_block.data-v-32c0de50 {
margin-top: 50rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.recharge_block_view.data-v-32c0de50 {
width: 200rpx;
padding: 10rpx;
border-radius: 25rpx;
background: linear-gradient(0deg, #0b1521, #193c65);
font-size: 28rpx;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
.recharge_block_view view.data-v-32c0de50:nth-child(1) {
color: #fff;
}
.recharge_block_view view.data-v-32c0de50:nth-child(2) {
color: #8b98a0;
}
.recharge_note.data-v-32c0de50 {
margin-top: 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
color: #828282;
font-size: 24rpx;
}
.recharge_btn1.data-v-32c0de50 {
width: 650rpx;
height: 100rpx;
margin: 0 auto;
font-size: 32rpx;
font-weight: bold;
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
background-color: #1879fe;
border-radius: 50rpx;
color: #fff;
margin-top: 150rpx;
}
@keyframes rotate-32c0de50 {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

View File

@@ -0,0 +1 @@
<view class="recharge data-v-32c0de50"><view class="recharge_orderId data-v-32c0de50"><view class="data-v-32c0de50"> 订单号:{{a}} <image class="data-v-32c0de50" src="{{b}}" onTap="{{c}}" mode="widthFix"></image></view></view><view class="recharge_trn data-v-32c0de50"><view class="recharge_trn_yuan data-v-32c0de50"><image class="recharge_trn_yuan_img data-v-32c0de50" src="https://zhongshuai-prod.oss-cn-beijing.aliyuncs.com/appImage/order/bg_charging_turn.png" mode="widthFix"></image></view><image class="recharge_trn_hei data-v-32c0de50" src="https://zhongshuai-prod.oss-cn-beijing.aliyuncs.com/appImage/order/order-charging-black-circle.png" mode="widthFix"></image><view class="recharge_trn_text data-v-32c0de50"><view class="data-v-32c0de50">¥{{d}}</view><view class="data-v-32c0de50">已用时长</view><view class="data-v-32c0de50">{{e}}</view></view><view class="recharge_trn_car data-v-32c0de50"><image class="recharge_trn_car_img data-v-32c0de50" src="https://zhongshuai-prod.oss-cn-beijing.aliyuncs.com/appImage/order/order-real-time-car-bg.png" mode="widthFix"></image><image class="recharge_trn_car_img1 data-v-32c0de50" src="https://zhongshuai-prod.oss-cn-beijing.aliyuncs.com/appImage/order/order-real-time-car-bg1.png" mode="widthFix"></image></view></view><view class="recharge_list p30 data-v-32c0de50"><view class="recharge_list_view data-v-32c0de50"><image class="data-v-32c0de50" src="https://zhongshuai-prod.oss-cn-beijing.aliyuncs.com/appImage/order/order-real-time-charged-power.png" mode="widthFix"></image><view class="recharge_list_view_num data-v-32c0de50">{{f}}</view><view class="recharge_list_view_name data-v-32c0de50">已充电量(度)</view></view><view class="recharge_list_view data-v-32c0de50"><image class="data-v-32c0de50" src="https://zhongshuai-prod.oss-cn-beijing.aliyuncs.com/appImage/order/order-real-time-charged-time.png" mode="widthFix"></image><view class="recharge_list_view_num data-v-32c0de50">{{g}}</view><view class="recharge_list_view_name data-v-32c0de50">已充时长</view></view><view class="recharge_list_view data-v-32c0de50"><image class="data-v-32c0de50" src="https://zhongshuai-prod.oss-cn-beijing.aliyuncs.com/appImage/order/order-real-time-charged-amount.png" mode="widthFix"></image><view class="recharge_list_view_num data-v-32c0de50">{{h}}</view><view class="recharge_list_view_name data-v-32c0de50">已充金额(元)</view></view></view><view class="recharge_block p30 data-v-32c0de50"><view class="recharge_block_view data-v-32c0de50"><view class="data-v-32c0de50">{{i}}</view><view class="data-v-32c0de50">实时电压(V)</view></view><view class="recharge_block_view data-v-32c0de50"><view class="data-v-32c0de50">{{j}}</view><view class="data-v-32c0de50">实时电流(A)</view></view><view class="recharge_block_view data-v-32c0de50"><view class="data-v-32c0de50">{{k}}</view><view class="data-v-32c0de50">实时功率(KW)</view></view></view><view class="recharge_note p30 data-v-32c0de50"><view class="data-v-32c0de50">终端名称:{{l}}</view><view class="data-v-32c0de50">终端编码:{{m}}</view></view><view class="recharge_btn1 data-v-32c0de50" onTap="{{n}}">结束充电</view></view>

View File

@@ -0,0 +1,80 @@
"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 store_index = require("../../store/index.js");
const _sfc_main = {
__name: "recharge",
setup(__props) {
let transactionNo = common_vendor.ref("");
common_vendor.ref("");
common_vendor.onLoad(async (options) => {
transactionNo.value = options.transactionNo;
if (options.type) {
let _res = await api_api.realtimeInfo({
transactionNo: options.transactionNo
});
store_index.store.commit("setDataObj", _res);
}
});
const end = (e) => {
common_vendor.index.showModal({
title: "提示",
content: e == 1 ? "是否确认结束充电?" : "结束充电失败,请重试!",
success: function(res) {
if (res.confirm) {
api_api.stopCharging({ transactionNo: transactionNo.value }).then((res2) => {
common_vendor.index.showLoading({
title: "停止充电中..."
});
store_index.store.commit("setSokStatus", 0);
timeMap(transactionNo.value);
});
} else if (res.cancel) {
console.log("用户点击取消");
}
}
});
};
const timeMap = (_res) => {
setTimeout(async () => {
if (store_index.store.state.sokStatus != 1) {
let _data = await api_api.ordersInfo({
transactionNo: _res
});
store_index.store.commit("setDataObj", _data);
if (_data.status == 3 || _data.status == 4) {
common_vendor.index.hideLoading();
end(2);
}
if (_data.status == 5 || _data.status == 6) {
common_vendor.index.hideLoading();
common_vendor.index.navigateBack();
store_index.store.commit("setSokStatus", 0);
}
}
}, 3e4);
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.orderNo),
b: common_assets._imports_0$7,
c: common_vendor.o(($event) => common_vendor.unref(utils_fun.copy)(common_vendor.unref(store_index.store).state.dataObj.orderNo)),
d: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.currentAmount || 0),
e: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.cumulativeTime || 0),
f: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.chargingDegree || 0),
g: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.cumulativeTime || 0),
h: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.currentAmount || 0),
i: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.outputVoltage || 0),
j: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.outputCurrent || 0),
k: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.power || 0),
l: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.gunNo),
m: common_vendor.t(common_vendor.unref(store_index.store).state.dataObj.deviceNo || ""),
n: common_vendor.o(($event) => end(1))
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-32c0de50"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"defaultTitle": "充电中",
"titleBarColor": "#000",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {}
}

View File

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

View File

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

View File

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

View File

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

File diff suppressed because one or more lines are too long

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More