上传代码
This commit is contained in:
157
uniapp04/unpackage/dist/dev/mp-alipay/pages/testFive/testFive.acss
vendored
Normal file
157
uniapp04/unpackage/dist/dev/mp-alipay/pages/testFive/testFive.acss
vendored
Normal file
@ -0,0 +1,157 @@
|
||||
|
||||
.order-details.data-v-2e2c92b9 {
|
||||
padding: 10px;
|
||||
background-color: #ece8ea;
|
||||
}
|
||||
.order-details-center.data-v-2e2c92b9 {
|
||||
padding: 10px;
|
||||
background-color: #fff;
|
||||
border-radius: 2%;
|
||||
}
|
||||
.image-container.data-v-2e2c92b9 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.Lookbackground.data-v-2e2c92b9 {
|
||||
width: 250px;
|
||||
height: 150px;
|
||||
background: #f5f5f5;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.preview-text.data-v-2e2c92b9 {
|
||||
color: #4095e5;
|
||||
font-size: 14px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* 原有样式保持不变 */
|
||||
.order.data-v-2e2c92b9 {
|
||||
padding: 20px;
|
||||
background-color: #e5e51b;
|
||||
width: 85%;
|
||||
border-radius: 15px;
|
||||
margin: 20px auto;
|
||||
}
|
||||
.order-number-container.data-v-2e2c92b9 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.order-number.data-v-2e2c92b9 {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.order-number-value.data-v-2e2c92b9 {
|
||||
font-size: 48px;
|
||||
font-weight: bold;
|
||||
color: #4095e5;
|
||||
}
|
||||
.status-bar.data-v-2e2c92b9 {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 20px 0;
|
||||
}
|
||||
.status-item.data-v-2e2c92b9 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.status-icon.data-v-2e2c92b9 {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.restaurant-info.data-v-2e2c92b9 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #dedede;
|
||||
}
|
||||
.restaurant-name.data-v-2e2c92b9 {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.restaurant-address.data-v-2e2c92b9 {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
.contact.data-v-2e2c92b9 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.contact-icon.data-v-2e2c92b9 {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.order-items.data-v-2e2c92b9 {
|
||||
padding: 20px 0;
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #dedede;
|
||||
}
|
||||
.order-item.data-v-2e2c92b9 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.item-image.data-v-2e2c92b9 {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.item-info.data-v-2e2c92b9 {
|
||||
flex: 1;
|
||||
}
|
||||
.item-name.data-v-2e2c92b9 {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.item-description.data-v-2e2c92b9 {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
.item-price.data-v-2e2c92b9 {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
}
|
||||
.order-summary.data-v-2e2c92b9 {
|
||||
padding: 20px 0;
|
||||
}
|
||||
.summary-item.data-v-2e2c92b9 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.order-info.data-v-2e2c92b9 {
|
||||
padding: 20px 0;
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #dedede;
|
||||
}
|
||||
.order-label.data-v-2e2c92b9 {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.order-detail.data-v-2e2c92b9 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.detail-item.data-v-2e2c92b9 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.image-box.data-v-2e2c92b9 {
|
||||
width: 250rpx;
|
||||
height: 250rpx;
|
||||
display: block;
|
||||
margin: 40px auto 0;
|
||||
}
|
1
uniapp04/unpackage/dist/dev/mp-alipay/pages/testFive/testFive.axml
vendored
Normal file
1
uniapp04/unpackage/dist/dev/mp-alipay/pages/testFive/testFive.axml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view class="header data-v-2e2c92b9"><view a:for="{{a}}" a:for-item="item" a:key="c" class="order data-v-2e2c92b9"><view class="order-number-container data-v-2e2c92b9"><view class="order-number data-v-2e2c92b9">取餐号</view><view class="order-number-value data-v-2e2c92b9">#{{item.a}}</view></view><uni-steps class="step-item data-v-2e2c92b9" u-i="{{item.b}}" onVI="__l" u-p="{{b||''}}"/></view></view>
|
80
uniapp04/unpackage/dist/dev/mp-alipay/pages/testFive/testFive.js
vendored
Normal file
80
uniapp04/unpackage/dist/dev/mp-alipay/pages/testFive/testFive.js
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const API_api = require("../../API/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_uni_steps2 = common_vendor.resolveComponent("uni-steps");
|
||||
_easycom_uni_steps2();
|
||||
}
|
||||
const _easycom_uni_steps = () => "../../uni_modules/uni-steps/components/uni-steps/uni-steps.js";
|
||||
if (!Math) {
|
||||
_easycom_uni_steps();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "testFive",
|
||||
setup(__props) {
|
||||
common_vendor.onUnload(() => {
|
||||
common_vendor.index.reLaunch({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
});
|
||||
const active = common_vendor.ref(1);
|
||||
const list1 = common_vendor.reactive([]);
|
||||
const orderItem = common_vendor.ref("");
|
||||
const getOrderStatus = () => {
|
||||
common_vendor.index.request({
|
||||
url: API_api.apiImageUrl + "/api/orders/list/status",
|
||||
method: "POST",
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
// 确保设置正确的 Content-Type
|
||||
"cookie": common_vendor.index.getStorageSync("cookie") || ""
|
||||
},
|
||||
success(res) {
|
||||
console.log(res.data.data);
|
||||
orderItem.value = res.data.data;
|
||||
if ([0, 1].includes(orderItem.value.pickupMethod)) {
|
||||
list1.splice(
|
||||
0,
|
||||
list1.length,
|
||||
{ title: "备餐中" },
|
||||
{ title: "已出餐" },
|
||||
{ title: "已完成" }
|
||||
);
|
||||
} else if (orderItem.value.pickupMethod === 2) {
|
||||
list1.splice(
|
||||
0,
|
||||
list1.length,
|
||||
{ title: "备餐中" },
|
||||
{ title: "已出餐" },
|
||||
{ title: "送餐中" },
|
||||
{ title: "已完成" }
|
||||
);
|
||||
}
|
||||
},
|
||||
fail(err) {
|
||||
console.log(err);
|
||||
}
|
||||
});
|
||||
};
|
||||
common_vendor.onMounted(() => {
|
||||
getOrderStatus();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.f(orderItem.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item == null ? void 0 : item.id),
|
||||
b: "2e2c92b9-0-" + i0,
|
||||
c: index
|
||||
};
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
options: list1,
|
||||
active: active.value
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2e2c92b9"]]);
|
||||
my.createPage(MiniProgramPage);
|
8
uniapp04/unpackage/dist/dev/mp-alipay/pages/testFive/testFive.json
vendored
Normal file
8
uniapp04/unpackage/dist/dev/mp-alipay/pages/testFive/testFive.json
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"defaultTitle": "测试页面五",
|
||||
"pullRefresh": false,
|
||||
"titleBarColor": "#4095e5",
|
||||
"usingComponents": {
|
||||
"uni-steps": "../../uni_modules/uni-steps/components/uni-steps/uni-steps"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user