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,22 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
},
methods: {}
};
if (!Array) {
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
_easycom_statusBar2();
}
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
if (!Math) {
_easycom_statusBar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/detail.js.map

View File

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

View File

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

View File

View File

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

View File

@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"usingComponents": {
"status-bar": "../../components/statusBar/statusBar",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"cc-my-tabbar": "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar"
}
}

View File

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

View File

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