first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:09:02 +08:00
commit dac42e3b0c
3512 changed files with 181637 additions and 0 deletions

View File

@@ -0,0 +1,289 @@
/* 订单状态 */
.order-status.data-v-2b5cbeae {
width: 100%;
height: 200rpx;
}
.order-status .status.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100rpx;
}
.order-status .status text.data-v-2b5cbeae {
font-size: 38rpx;
color: #ffffff;
}
.order-status .status .iconfont.data-v-2b5cbeae {
margin-right: 20rpx;
}
.order-status .reason.data-v-2b5cbeae {
display: flex;
justify-content: center;
width: 100%;
height: 80rpx;
}
.order-status .reason text.data-v-2b5cbeae {
font-size: 28rpx;
color: #f6f6f6;
}
/* 收货地址 */
.shipping-address.data-v-2b5cbeae {
width: 100%;
height: 200rpx;
background-color: #ffffff;
border-radius: 20rpx;
margin: -20rpx auto 20rpx;
}
.shipping-address .name-phone.data-v-2b5cbeae {
display: flex;
align-items: center;
padding: 0 4%;
height: 80rpx;
}
.shipping-address .name-phone text.data-v-2b5cbeae {
font-size: 28rpx;
font-weight: bold;
color: #222222;
margin-right: 20rpx;
}
.shipping-address .address.data-v-2b5cbeae {
display: flex;
padding: 0 4%;
height: 100rpx;
margin-left: 50rpx;
}
.shipping-address .address text.data-v-2b5cbeae {
font-size: 26rpx;
color: #959595;
}
/* 订单商品 */
.order-goods.data-v-2b5cbeae {
width: 100%;
background-color: #ffffff;
border-radius: 20rpx;
}
.order-goods .goods-list.data-v-2b5cbeae {
padding: 25rpx;
}
.order-goods .goods-list .list.data-v-2b5cbeae {
display: flex;
align-items: center;
width: 100%;
min-height: 200rpx;
}
.order-goods .goods-list .list .thumb.data-v-2b5cbeae {
display: flex;
width: 30%;
}
.order-goods .goods-list .list .thumb image.data-v-2b5cbeae {
width: 160rpx;
height: 160rpx;
border-radius: 10rpx;
}
.order-goods .goods-list .list .item.data-v-2b5cbeae {
width: 70%;
height: 100%;
}
.order-goods .goods-list .list .item .title.data-v-2b5cbeae {
display: flex;
align-items: center;
width: 100%;
height: 60rpx;
}
.order-goods .goods-list .list .item .title text.data-v-2b5cbeae {
font-size: 26rpx;
color: #222222;
}
.order-goods .goods-list .list .item .num-size.data-v-2b5cbeae {
display: flex;
align-items: center;
width: 100%;
height: 60rpx;
}
.order-goods .goods-list .list .item .num-size text.data-v-2b5cbeae {
font-size: 26rpx;
color: #959595;
margin-right: 20rpx;
}
.order-goods .goods-list .list .item .num-size text.data-v-2b5cbeae:last-child {
margin-right: 0;
}
.order-goods .goods-list .list .item .price.data-v-2b5cbeae {
display: flex;
align-items: center;
width: 100%;
height: 60rpx;
}
.order-goods .goods-list .list .item .price text.data-v-2b5cbeae {
font-size: 28rpx;
font-weight: bold;
color: #222222;
}
.order-goods .goods-list .list .item .order-btn.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: flex-end;
width: 100%;
height: 100rpx;
}
.order-goods .goods-list .list .item .order-btn .btn.data-v-2b5cbeae {
padding: 10rpx 30rpx;
color: #555555;
font-size: 26rpx;
border: 2rpx solid #eeeeee;
border-radius: 100rpx;
}
.order-goods .goods-list .list .item .order-btn.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: flex-end;
width: 100%;
height: 100rpx;
}
.order-goods .goods-list .list .item .order-btn .btn.data-v-2b5cbeae {
padding: 10rpx 30rpx;
color: #555555;
font-size: 26rpx;
border: 2rpx solid #eeeeee;
border-radius: 100rpx;
}
.order-goods .contact.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: center;
display: flex;
align-items: center;
width: 100%;
height: 100rpx;
background-color: #ffffff;
box-shadow: 0 0 20rpx #eeeeee;
border-radius: 0 0 20rpx 20rpx;
}
.order-goods .contact text.data-v-2b5cbeae {
font-size: 28rpx;
color: #555555;
}
.order-goods .contact .iconfont.data-v-2b5cbeae {
font-size: 34rpx;
margin-right: 20rpx;
}
/* 订单信息 */
.order-info.data-v-2b5cbeae {
width: 100%;
background-color: #ffffff;
border-radius: 20rpx;
margin: 20rpx auto;
}
.order-info .info-list.data-v-2b5cbeae {
padding: 0 4%;
}
.order-info .info-list .list.data-v-2b5cbeae {
display: flex;
align-items: center;
width: 100%;
height: 100rpx;
border-bottom: 2rpx solid #f6f6f6;
}
.order-info .info-list .list .title.data-v-2b5cbeae {
font-size: 26rpx;
color: #959595;
}
.order-info .info-list .list .content.data-v-2b5cbeae {
display: flex;
align-items: center;
margin-left: 20rpx;
}
.order-info .info-list .list .content text.data-v-2b5cbeae {
font-size: 26rpx;
font-weight: bold;
color: #222222;
}
.order-info .info-list .list .content .btn.data-v-2b5cbeae {
padding: 6rpx 20rpx;
background-color: #eeeeee;
color: #555555;
font-size: 24rpx;
border-radius: 50rpx;
margin-left: 40rpx;
}
/* 订单明细 */
.order-details.data-v-2b5cbeae {
width: 100%;
background-color: #ffffff;
border-radius: 20rpx;
margin: 20rpx auto;
}
.order-details .details-list.data-v-2b5cbeae {
padding: 0 4%;
}
.order-details .details-list .list.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 100rpx;
border-bottom: 2rpx solid #f6f6f6;
}
.order-details .details-list .list .title.data-v-2b5cbeae {
font-size: 26rpx;
color: #959595;
}
.order-details .details-list .list .price.data-v-2b5cbeae {
font-size: 26rpx;
font-weight: bold;
}
.order-details .details-list .action.data-v-2b5cbeae {
display: flex;
align-items: center;
justify-content: flex-end;
}
.order-details .details-list .action .price.data-v-2b5cbeae {
font-size: 32rpx;
font-weight: bold;
}
.footer-btn.data-v-2b5cbeae {
position: fixed;
left: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 100rpx;
background-color: #ffffff;
border-top: 2rpx solid #eeeeee;
padding: 0 4%;
}
.footer-btn .del.data-v-2b5cbeae {
display: flex;
align-items: center;
}
.footer-btn .del text.data-v-2b5cbeae {
padding: 10rpx 30rpx;
font-size: 24rpx;
font-weight: bold;
}
.footer-btn .btn.data-v-2b5cbeae {
display: flex;
align-items: center;
}
.footer-btn .btn text.data-v-2b5cbeae {
padding: 10rpx 30rpx;
font-size: 24rpx;
border: 2rpx solid #c0c0c0;
border-radius: 100rpx;
color: #c0c0c0;
margin-left: 20rpx;
}
.footer-btn .btn .action.data-v-2b5cbeae {
color: #ffffff;
border: 2rpx solid #ffffff;
}
button.data-v-2b5cbeae::after {
all: unset;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-2b5cbeae"><view class="order-goods data-v-2b5cbeae"><view class="goods-list data-v-2b5cbeae"><view class="list data-v-2b5cbeae"><view class="thumb data-v-2b5cbeae"><image class="data-v-2b5cbeae" src="{{a}}" mode="aspectFill"></image></view><view class="item data-v-2b5cbeae"><view class="title data-v-2b5cbeae"><text class="one-omit data-v-2b5cbeae">{{b}}</text></view><view class="num-size data-v-2b5cbeae"><text class="data-v-2b5cbeae">数量:{{c}}</text></view><view class="price data-v-2b5cbeae"><text class="data-v-2b5cbeae" style="color:#ff2e24">¥{{d}}</text></view></view></view></view><view class="contact data-v-2b5cbeae"><view class="data-v-2b5cbeae" onTap="{{e}}"> 联系客服 </view></view></view><view class="order-info data-v-2b5cbeae"><view class="info-list data-v-2b5cbeae"><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae">订单编号:</view><view class="content data-v-2b5cbeae"><text class="data-v-2b5cbeae">{{f}}</text><text class="btn data-v-2b5cbeae" onTap="{{g}}">复制</text></view></view><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae">下单时间:</view><view class="content data-v-2b5cbeae"><text class="data-v-2b5cbeae">{{h}}</text></view></view><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae">订单状态:</view><view class="content data-v-2b5cbeae"><text class="data-v-2b5cbeae">{{i}}</text></view></view><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae">支付方式:</view><view class="content data-v-2b5cbeae"><text class="data-v-2b5cbeae">{{j}}</text></view></view></view></view><view class="order-details data-v-2b5cbeae"><view class="details-list data-v-2b5cbeae"><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae"><text class="data-v-2b5cbeae">订单总额</text></view><view class="price data-v-2b5cbeae"><text class="data-v-2b5cbeae">¥{{k}}</text></view></view><view class="list data-v-2b5cbeae"><view class="title data-v-2b5cbeae"><text class="data-v-2b5cbeae">实付金额</text></view><view class="price data-v-2b5cbeae"><text class="data-v-2b5cbeae">¥{{l}}</text></view></view></view></view></view>

View File

@@ -0,0 +1,51 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
const _sfc_main = {
__name: "details",
setup(__props) {
let info = common_vendor.ref({});
common_vendor.onLoad(async (options2) => {
let _res = await api_api.orderInfo({ id: options2.id });
info.value = _res;
});
common_vendor.onPullDownRefresh(async () => {
let _res = await api_api.orderInfo({ id: options.id });
info.value = _res;
setTimeout(() => {
common_vendor.index.stopPullDownRefresh();
}, 500);
});
let copy = (e) => {
common_vendor.index.setClipboardData({
data: e,
success: function() {
console.log("success");
}
});
};
let call = () => {
common_vendor.index.makePhoneCall({
phoneNumber: "17707569278"
});
};
return (_ctx, _cache) => {
return {
a: JSON.parse(common_vendor.unref(info).picture)[0],
b: common_vendor.t(common_vendor.unref(info).goodName),
c: common_vendor.t(common_vendor.unref(info).num),
d: common_vendor.t(common_vendor.unref(info).amount),
e: common_vendor.o((...args) => common_vendor.unref(call) && common_vendor.unref(call)(...args)),
f: common_vendor.t(common_vendor.unref(info).orderNo),
g: common_vendor.o(($event) => common_vendor.unref(copy)(common_vendor.unref(info).orderNo)),
h: common_vendor.t(common_vendor.unref(info).createTime),
i: common_vendor.t(common_vendor.unref(info).status == -1 ? "已取消" : common_vendor.unref(info).status == 0 ? "待支付" : common_vendor.unref(info).status == -2 ? "退款" : common_vendor.unref(info).status == 1 ? "支付成功" : ""),
j: common_vendor.t(common_vendor.unref(info).orderPlatform == 3 ? "支付宝" : common_vendor.unref(info).orderPlatform == 2 ? "微信" : common_vendor.unref(info).orderPlatform == 1 ? "钱包" : "-"),
k: common_vendor.t(common_vendor.unref(info).amount),
l: common_vendor.t(common_vendor.unref(info).realAmount)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2b5cbeae"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,5 @@
{
"defaultTitle": "订单详情",
"pullRefresh": true,
"usingComponents": {}
}

View File

@@ -0,0 +1,49 @@
.order_view.data-v-93207a4f {
background: #ffffff;
border-radius: 16rpx;
padding: 25rpx;
margin-bottom: 30rpx;
}
.order_view_info.data-v-93207a4f {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
}
.order_view_info_img.data-v-93207a4f {
width: 208rpx;
height: 208rpx;
margin-right: 15rpx;
border-radius: 10rpx;
}
.order_view_info_right.data-v-93207a4f {
flex: 1;
font-size: 28rpx;
color: #232323;
}
.order_view_info_right_tit.data-v-93207a4f {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
margin-bottom: 15rpx;
}
.order_view_info_right_num.data-v-93207a4f {
margin-bottom: 15rpx;
}
.order_view_info_right_mon.data-v-93207a4f {
margin-bottom: 15rpx;
}
.order_view_info_right_mon text.data-v-93207a4f {
color: #ff2e24;
}
.order_view_dd.data-v-93207a4f {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
font-weight: bold;
font-size: 28rpx;
color: #232323;
margin-bottom: 15rpx;
}

View File

@@ -0,0 +1 @@
<view class="order data-v-93207a4f"><z-paging class="data-v-93207a4f" u-s="{{['d']}}" ref="__r" u-r="{{h}}" onQuery="{{i}}" u-i="93207a4f-0" onVI="__l" onUpdateModelValue="{{j}}" u-p="{{k}}"><up-dropdown class="data-v-93207a4f" u-s="{{['d']}}" u-i="93207a4f-1,93207a4f-0" onVI="__l"><up-dropdown-item class="data-v-93207a4f" onChange="{{a}}" u-i="93207a4f-2,93207a4f-1" onVI="__l" onUpdateModelValue="{{b}}" u-p="{{c}}"></up-dropdown-item><up-dropdown-item class="data-v-93207a4f" onChange="{{d}}" u-i="93207a4f-3,93207a4f-1" onVI="__l" onUpdateModelValue="{{e}}" u-p="{{f}}"></up-dropdown-item></up-dropdown><view class="p30 data-v-93207a4f"><view a:for="{{g}}" a:for-item="i" a:key="E" class="order_view data-v-93207a4f" onTap="{{i.F}}"><view class="order_view_dd data-v-93207a4f"><view class="data-v-93207a4f"><text class="data-v-93207a4f" style="font-weight:500">订单号</text> :{{i.a}}</view><view class="data-v-93207a4f"><up-tag a:if="{{i.b}}" class="data-v-93207a4f" u-i="{{i.c}}" onVI="__l" u-p="{{i.d}}"></up-tag><up-tag a:if="{{i.e}}" class="data-v-93207a4f" u-i="{{i.f}}" onVI="__l" u-p="{{i.g}}"></up-tag><up-tag a:if="{{i.h}}" class="data-v-93207a4f" u-i="{{i.i}}" onVI="__l" u-p="{{i.j}}"></up-tag><up-tag a:if="{{i.k}}" class="data-v-93207a4f" u-i="{{i.l}}" onVI="__l" u-p="{{i.m}}"></up-tag></view></view><view class="order_view_info data-v-93207a4f"><image class="order_view_info_img data-v-93207a4f" src="{{i.n}}" mode="aspectFit"></image><view class="order_view_info_right data-v-93207a4f"><view class="order_view_info_right_tit data-v-93207a4f"><view class="data-v-93207a4f" style="display:flex;align-items:center"><up-tag class="data-v-93207a4f" u-i="{{i.o}}" onVI="__l" u-p="{{i.p}}"></up-tag><view class="data-v-93207a4f" style="margin-left:15rpx">{{i.q}}</view></view></view><view class="order_view_info_right_num data-v-93207a4f" style="display:flex;align-items:center;justify-content:space-between">数量:{{i.r}}</view><view class="order_view_info_right_mon data-v-93207a4f"> 订单金额: <text class="data-v-93207a4f" style="color:crimson">¥{{i.s}}</text></view></view></view><view class="data-v-93207a4f" style="display:flex;align-items:center;justify-content:space-between;border-top:1rpx solid rgba(153, 153, 153, 0.5);margin-top:15rpx;padding-top:15rpx"><view class="data-v-93207a4f" style="font-size:28rpx">{{i.t}}</view><view class="data-v-93207a4f"><up-tag a:if="{{i.v}}" class="data-v-93207a4f" u-i="{{i.w}}" onVI="__l" u-p="{{i.x}}"></up-tag><up-tag a:if="{{i.y}}" class="data-v-93207a4f" u-i="{{i.z}}" onVI="__l" u-p="{{i.A}}"></up-tag><up-tag a:if="{{i.B}}" class="data-v-93207a4f" u-i="{{i.C}}" onVI="__l" u-p="{{i.D}}"></up-tag></view></view></view></view></z-paging></view>

View File

@@ -0,0 +1,230 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const hooks_useNav = require("../../hooks/useNav.js");
const api_api = require("../../api/api.js");
require("../../uni_modules/uview-plus/index.js");
const uni_modules_uviewPlus_libs_function_index = require("../../uni_modules/uview-plus/libs/function/index.js");
if (!Array) {
const _easycom_up_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
(_easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up_tag2 + _easycom_z_paging2)();
}
const _easycom_up_dropdown_item = () => "../../uni_modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js";
const _easycom_up_dropdown = () => "../../uni_modules/uview-plus/components/u-dropdown/u-dropdown.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";
if (!Math) {
(_easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up_tag + _easycom_z_paging)();
}
const _sfc_main = {
__name: "order",
setup(__props) {
const { navTo } = hooks_useNav.useNav();
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let dataFrom = common_vendor.reactive({
status: "",
businessPayType: "",
sourceType: ""
});
common_vendor.ref([
{
label: "商品",
value: 1
},
{
label: "套餐",
value: 2
}
]);
let options2 = common_vendor.ref([
{
label: "微信",
value: 1
},
{
label: "支付宝",
value: 2
},
{
label: "钱包",
value: 3
}
]);
let options3 = common_vendor.ref([
{
label: "待支付",
value: 0
},
{
label: "支付成功",
value: 1
},
{
label: "取消",
value: -1
},
{
label: "退款",
value: -2
}
]);
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 upChange = (e) => {
console.log(dataFrom);
paging.value.reload();
};
const queryList = (pageNo, pageSize) => {
common_vendor.index.getStorageSync("user");
const params = {
current: pageNo,
pageSize,
...dataFrom
};
api_api.orderPage(params).then((res) => {
paging.value.complete(res.records);
}).catch((res) => {
paging.value.complete(false);
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(upChange),
b: common_vendor.o(($event) => common_vendor.unref(dataFrom).businessPayType = $event),
c: common_vendor.p({
title: "支付类型",
options: common_vendor.unref(options2),
modelValue: common_vendor.unref(dataFrom).businessPayType
}),
d: common_vendor.o(upChange),
e: common_vendor.o(($event) => common_vendor.unref(dataFrom).status = $event),
f: common_vendor.p({
title: "状态",
options: common_vendor.unref(options3),
modelValue: common_vendor.unref(dataFrom).status
}),
g: common_vendor.f(common_vendor.unref(dataList), (i, k0, i0) => {
return common_vendor.e({
a: common_vendor.t(i.orderNo),
b: i.status == 0
}, i.status == 0 ? {
c: "93207a4f-4-" + i0 + ",93207a4f-0",
d: common_vendor.p({
size: "mini",
text: "待支付",
plain: true
})
} : {}, {
e: i.status == -1
}, i.status == -1 ? {
f: "93207a4f-5-" + i0 + ",93207a4f-0",
g: common_vendor.p({
size: "mini",
text: "已取消",
type: "warning",
plain: true
})
} : {}, {
h: i.status == 1
}, i.status == 1 ? {
i: "93207a4f-6-" + i0 + ",93207a4f-0",
j: common_vendor.p({
size: "mini",
text: "支付成功",
type: "success",
plain: true
})
} : {}, {
k: i.status == -2
}, i.status == -2 ? {
l: "93207a4f-7-" + i0 + ",93207a4f-0",
m: common_vendor.p({
size: "mini",
text: "退款",
type: "error",
plain: true
})
} : {}, {
n: JSON.parse(i.picture)[0],
o: "93207a4f-8-" + i0 + ",93207a4f-0",
p: common_vendor.p({
size: "mini",
text: i.sourceType == 1 ? "商品" : "套餐",
bgColor: "#4874e5",
borderColor: "#4874e5"
}),
q: common_vendor.t(i.goodName),
r: common_vendor.t(i.num),
s: common_vendor.t(i.amount),
t: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(i.createTime).getTime(), "yyyy-mm-dd hh:MM")),
v: i.orderPlatform == 3
}, i.orderPlatform == 3 ? {
w: "93207a4f-9-" + i0 + ",93207a4f-0",
x: common_vendor.p({
size: "mini",
text: "支付宝",
plain: true
})
} : {}, {
y: i.orderPlatform == 2
}, i.orderPlatform == 2 ? {
z: "93207a4f-10-" + i0 + ",93207a4f-0",
A: common_vendor.p({
size: "mini",
text: "微信",
type: "success",
plain: true
})
} : {}, {
B: i.orderPlatform == 1
}, i.orderPlatform == 1 ? {
C: "93207a4f-11-" + i0 + ",93207a4f-0",
D: common_vendor.p({
size: "mini",
text: "钱包",
type: "warning",
plain: true
})
} : {}, {
E: i,
F: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/order/details?id=${i.id}`))
});
}),
h: () => ({
r: paging,
k: "paging"
}),
i: common_vendor.o(queryList),
j: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
k: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-93207a4f"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,9 @@
{
"defaultTitle": "订单",
"usingComponents": {
"up-dropdown-item": "../../uni_modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
"up-dropdown": "../../uni_modules/uview-plus/components/u-dropdown/u-dropdown",
"up-tag": "../../uni_modules/uview-plus/components/u-tag/u-tag",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1,12 @@
.affirm_btn {
width: 650rpx;
height: 78rpx;
background: #4874e5;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 30rpx;
color: #ffffff;
}

View File

@@ -0,0 +1 @@
<view><view style="height:20rpx"></view><view style="background-color:#ffffff;border-radius:10rpx;padding:30rpx;text-align:center"><view style="color:#fa3534"><text style="font-size:30rpx">¥</text><text style="font-size:36rpx;font-weight:700">{{a}}</text></view><view style="color:#909399;font-size:28rpx">支付金额</view></view><view style="height:20rpx"></view><view style="background-color:#fff;padding:30rpx;border-radius:10rpx"><view style="font-size:28rpx">支付方式</view><view style="height:20rpx"></view><up-radio-group u-s="{{['d']}}" u-i="e3f22c3c-0" onVI="__l" onUpdateModelValue="{{g}}" u-p="{{h}}"><up-radio u-s="{{['d']}}" u-i="e3f22c3c-1,e3f22c3c-0" onVI="__l" u-p="{{d}}"><view style="display:flex;align-items:center"><up-icon u-i="e3f22c3c-2,e3f22c3c-1" onVI="__l" u-p="{{b}}"/><view style="width:20rpx"></view><view><view style="font-size:30rpx">余额支付</view><view style="font-size:28rpx;color:#909399">当前余额:¥{{c}}</view></view></view></up-radio><up-radio u-s="{{['d']}}" u-i="e3f22c3c-3,e3f22c3c-0" onVI="__l" u-p="{{f}}"><view style="display:flex;align-items:center"><up-icon u-i="e3f22c3c-4,e3f22c3c-3" onVI="__l" u-p="{{e}}"/><view style="width:20rpx"></view><view><view style="font-size:30rpx;display:flex;align-items:center"> 支付宝支付 <view style="padding:4rpx 15rpx;margin-left:10rpx;border-radius:25rpx;background-color:#e03737;font-size:24rpx;color:#fff"> 随机立减0.01-20元 </view></view><view style="font-size:28rpx;color:#909399">支付宝快捷支付</view></view></view></up-radio></up-radio-group></view><view style="height:100rpx"></view><view style="display:flex;justify-content:center;margin-top:80rpx"><view class="affirm_btn" onTap="{{i}}">确认支付</view></view></view>

View File

@@ -0,0 +1,109 @@
"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_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
(_easycom_up_icon2 + _easycom_up_radio2 + _easycom_up_radio_group2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_radio = () => "../../uni_modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_up_radio_group = () => "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_radio + _easycom_up_radio_group)();
}
const _sfc_main = {
__name: "pay",
setup(__props) {
let orderId = common_vendor.ref("");
let amount = common_vendor.ref(0);
let money = common_vendor.ref(0);
let type = common_vendor.ref(1);
common_vendor.onLoad(async (options) => {
orderId.value = options.id;
amount.value = options.amount;
type.value = options.type;
let { id } = common_vendor.index.getStorageSync("user");
let { points2 } = await api_api.userInfo({ id });
money.value = points2;
});
common_vendor.onShow(async () => {
});
let dataFrom = common_vendor.reactive({
pay_type: 3
});
let payOrder = async () => {
let _res;
if (dataFrom.pay_type == 1 || dataFrom.pay_type == 2) {
_res = type.value == 1 ? await api_api.lklPaymentGoods({ id: orderId.value }) : await api_api.lklPaymentPackages({ id: orderId.value });
const { prepay_id } = _res.data.acc_resp_fields;
common_vendor.index.requestPayment({
provider: "alipay",
orderInfo: prepay_id,
//微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
success: function(res) {
if (res.resultCode == 9e3) {
common_vendor.index.redirectTo({
url: `/pages/order/success?id=${orderId.value}&amount=${_res.amount}&orderNo=${prepay_id}`
});
} else {
common_vendor.index.showToast({
title: "支付失败",
icon: "none",
duration: 3500
});
}
},
fail: (err) => {
this.payState = false;
common_vendor.index.showToast({
title: "支付失败",
icon: "none",
duration: 3500
});
}
});
}
if (dataFrom.pay_type == 3) {
_res = type.value == 1 ? await api_api.walletPaymentGoods({ id: orderId.value }) : await api_api.walletPaymentPackages({ id: orderId.value });
common_vendor.index.redirectTo({
url: `/pages/order/success?id=${orderId.value}&amount=${_res.amount}&orderNo=${_res.orderNo ? _res.orderNo : ""}&createTime=${_res.createTime ? _res.createTime : ""}`
});
}
console.log(_res);
return;
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(common_vendor.unref(amount)),
b: common_vendor.p({
name: "/static/icon/money.png",
imgMode: "widthFix",
size: "50rpx"
}),
c: common_vendor.t(common_vendor.unref(money)),
d: common_vendor.p({
name: 3
}),
e: common_vendor.p({
name: "/static/icon/zfb.png",
imgMode: "widthFix",
size: "50rpx"
}),
f: common_vendor.p({
name: 2
}),
g: common_vendor.o(($event) => common_vendor.unref(dataFrom).pay_type = $event),
h: common_vendor.p({
iconPlacement: "right",
borderBottom: true,
placement: "column",
modelValue: common_vendor.unref(dataFrom).pay_type
}),
i: common_vendor.o((...args) => common_vendor.unref(payOrder) && common_vendor.unref(payOrder)(...args))
};
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,8 @@
{
"defaultTitle": "确认订单",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
"up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group"
}
}

View File

@@ -0,0 +1,113 @@
.app.data-v-2795c576 {
--bgcolor: #f3f3f3;
background-color: var(--bgcolor);
min-height: calc(100vh - var(--window-bottom) - var(--window-top));
}
.header.data-v-2795c576 {
background-color: var(--main);
text-align: center;
color: #ffffff;
padding: 80rpx 30rpx 50rpx 30rpx;
}
.header .success-image.data-v-2795c576 {
width: 120rpx;
height: 120rpx;
}
.header .success-title.data-v-2795c576 {
font-size: 34rpx;
margin-top: 40rpx;
font-weight: bold;
}
.header .hr.data-v-2795c576 {
margin-top: 40rpx;
width: 100%;
height: 30rpx;
border-radius: 20rpx;
opacity: 0.1;
background-color: #000000;
}
.info-box.data-v-2795c576 {
width: calc(100% - 100rpx);
margin: 0 50rpx;
position: relative;
margin-top: -64rpx;
background-color: #ffffff;
}
.info-box .info-amount.data-v-2795c576 {
height: 150rpx;
line-height: 150rpx;
text-align: center;
color: var(--main);
font-weight: bold;
font-size: 60rpx;
border-bottom: 4rpx dashed #f3f3f3;
}
.info-box .left-circle.data-v-2795c576 {
background-color: var(--bgcolor);
position: absolute;
width: 40rpx;
height: 40rpx;
border-radius: 50%;
top: 130rpx;
left: -20rpx;
}
.info-box .right-circle.data-v-2795c576 {
background-color: var(--bgcolor);
position: absolute;
width: 40rpx;
height: 40rpx;
border-radius: 50%;
top: 130rpx;
right: -20rpx;
}
.info-box .info-main.data-v-2795c576 {
padding: 30rpx;
font-size: 26rpx;
color: #333333;
}
.info-box .info-main .info-cell.data-v-2795c576 {
display: flex;
line-height: 50rpx;
}
.info-box .info-main .info-cell .left.data-v-2795c576 {
width: 200rpx;
text-align: left;
}
.info-box .info-main .info-cell .right.data-v-2795c576 {
flex: 1;
text-align: right;
}
.uni-ad.data-v-2795c576 {
margin-top: 50rpx;
min-height: 100rpx;
}
.uni-ad .ad-interactive.data-v-2795c576 {
text-align: center;
}
.button-query.data-v-2795c576 {
background-color: var(--main);
color: #ffffff;
width: calc(100% - 120rpx);
margin: 50rpx 60rpx 0 60rpx;
padding: 20rpx 30rpx;
border-radius: 50rpx;
text-align: center;
box-sizing: border-box;
}
.button-query.data-v-2795c576:active {
opacity: 0.7;
}
.button-query1.data-v-2795c576 {
border: 1rpx solid var(--main);
color: var(--main);
width: calc(100% - 120rpx);
margin: 50rpx 60rpx 0 60rpx;
padding: 20rpx 30rpx;
border-radius: 50rpx;
text-align: center;
box-sizing: border-box;
}
.footer-hr.data-v-2795c576 {
height: 100rpx;
display: block;
}

View File

@@ -0,0 +1 @@
<view class="app data-v-2795c576" style="{{m}}"><view class="header data-v-2795c576"><image src="{{a}}" class="success-image data-v-2795c576"></image><view class="success-title data-v-2795c576">{{b}}</view><view class="hr data-v-2795c576"></view></view><view class="info-box data-v-2795c576"><view class="info-amount data-v-2795c576">¥ {{c}}</view><view a:if="{{d}}" class="left-circle data-v-2795c576"></view><view a:if="{{e}}" class="right-circle data-v-2795c576"></view><view a:if="{{f}}" class="info-main data-v-2795c576"><view a:if="{{g}}" class="info-cell data-v-2795c576"><view class="left data-v-2795c576">订单编号</view><view class="right data-v-2795c576">{{h}}</view></view><view a:if="{{i}}" class="info-cell data-v-2795c576"><view class="left data-v-2795c576">付款时间</view><view class="right data-v-2795c576">{{j}}</view></view></view></view><view class="button-query data-v-2795c576" onTap="{{k}}">查看订单</view><view class="button-query1 data-v-2795c576" onTap="{{l}}">返回首页</view><view class="footer-hr data-v-2795c576"></view></view>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
{
"defaultTitle": "",
"usingComponents": {}
}