上传代码
This commit is contained in:
264
distribution/unpackage/dist/dev/mp-alipay/pages/index/index.acss
vendored
Normal file
264
distribution/unpackage/dist/dev/mp-alipay/pages/index/index.acss
vendored
Normal file
@ -0,0 +1,264 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.time-id.data-v-1cf27b2a {
|
||||
font-size: 20px;
|
||||
color: #ff6700;
|
||||
font-weight: 700;
|
||||
}
|
||||
.tab-menu.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 10px 0;
|
||||
background-color: #5e7dec;
|
||||
color: #9cb0f4;
|
||||
}
|
||||
.tab-item.data-v-1cf27b2a {
|
||||
padding: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tab-item.active.data-v-1cf27b2a {
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
.fixed-buttons.data-v-1cf27b2a {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background-color: #fff;
|
||||
padding: 10px;
|
||||
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.button-container.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.button-container text.data-v-1cf27b2a {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.fixed-font.data-v-1cf27b2a {
|
||||
font-size: 12px;
|
||||
}
|
||||
.refresh-button.data-v-1cf27b2a {
|
||||
width: 60%;
|
||||
background-color: pink;
|
||||
border-radius: 15px;
|
||||
color: #fff;
|
||||
background-color: #5e7dec;
|
||||
}
|
||||
.button-text.data-v-1cf27b2a {
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
}
|
||||
.text.data-v-1cf27b2a {
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
}
|
||||
.popup-content.data-v-1cf27b2a {
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
background-color: #fff;
|
||||
}
|
||||
.modal-header.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.tab-button.data-v-1cf27b2a {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
.tab-button.active.data-v-1cf27b2a {
|
||||
color: #007AFF;
|
||||
border-bottom: 2px solid #007AFF;
|
||||
}
|
||||
.modal-title.data-v-1cf27b2a {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.modal-close.data-v-1cf27b2a {
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.modal-body.data-v-1cf27b2a {
|
||||
padding: 10px 0;
|
||||
}
|
||||
.modal-item.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.modal-label.data-v-1cf27b2a {
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.modal-value.data-v-1cf27b2a {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
.arrow.data-v-1cf27b2a {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.modal-list.data-v-1cf27b2a {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
/* 创建两列,每列占据相等的空间 */
|
||||
gap: 10px;
|
||||
padding: 10px 10px 10px 0;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.item.data-v-1cf27b2a {
|
||||
background-color: #f1f1f1;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
||||
.item.selected.data-v-1cf27b2a {
|
||||
background-color: #eef6ff;
|
||||
color: #80a6da;
|
||||
}
|
||||
.tips.data-v-1cf27b2a {
|
||||
font-size: 12px;
|
||||
color: #c8c8c8;
|
||||
}
|
||||
.order-card.data-v-1cf27b2a {
|
||||
background-color: #fff;
|
||||
border-radius: 12px;
|
||||
/* 增大圆角 */
|
||||
padding: 10px;
|
||||
/* 增大内边距 */
|
||||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
|
||||
/* 更深的阴影 */
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 20px;
|
||||
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
|
||||
/* 添加过渡效果 */
|
||||
}
|
||||
.order-card.data-v-1cf27b2a:hover {
|
||||
transform: translateY(-4px);
|
||||
/* 当鼠标悬停时稍微提升 */
|
||||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
|
||||
/* 更大的阴影当悬停 */
|
||||
}
|
||||
|
||||
/* 修改前 */
|
||||
.order-card.data-v-1cf27b2a:last-child {
|
||||
margin-bottom: 100px;
|
||||
}
|
||||
|
||||
/* 修改后 */
|
||||
.order-card.data-v-1cf27b2a:last-child {
|
||||
margin-bottom: 100px !important;
|
||||
/* 添加 !important 确保优先级 */
|
||||
}
|
||||
.delivery-info.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.time.data-v-1cf27b2a,
|
||||
.price.data-v-1cf27b2a {
|
||||
font-size: 16px;
|
||||
/* 增大字体大小 */
|
||||
}
|
||||
.price.data-v-1cf27b2a {
|
||||
color: #ff6700;
|
||||
font-weight: bold;
|
||||
}
|
||||
.address-info.data-v-1cf27b2a {
|
||||
margin-bottom: 15px;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
/* 添加底部边框 */
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.address-item.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.circle.data-v-1cf27b2a {
|
||||
width: 24px;
|
||||
/* 稍微增大圆形 */
|
||||
height: 24px;
|
||||
background-color: #ff6700;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 50%;
|
||||
margin-right: 12px;
|
||||
font-size: 12px;
|
||||
/* 调整文本大小 */
|
||||
font-weight: bold;
|
||||
}
|
||||
.distance.data-v-1cf27b2a {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
.address-name.data-v-1cf27b2a {
|
||||
color: #333;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.button-container.data-v-1cf27b2a {
|
||||
text-align: center;
|
||||
/* 增加按钮顶部间距 */
|
||||
}
|
||||
.order-button.data-v-1cf27b2a {
|
||||
background-color: #5e7dec;
|
||||
color: #fff;
|
||||
padding: 12px 24px;
|
||||
/* 增大按钮尺寸 */
|
||||
border-radius: 6px;
|
||||
/* 圆滑按钮边缘 */
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease-in-out;
|
||||
/* 添加过渡效果 */
|
||||
width: 85%;
|
||||
}
|
||||
.order-button.data-v-1cf27b2a:hover {
|
||||
background-color: #4a69bd;
|
||||
/* 改变悬停颜色 */
|
||||
}
|
||||
.content.data-v-1cf27b2a {
|
||||
padding-bottom: 50px;
|
||||
/* 根据底部按钮高度调整 */
|
||||
}
|
1
distribution/unpackage/dist/dev/mp-alipay/pages/index/index.axml
vendored
Normal file
1
distribution/unpackage/dist/dev/mp-alipay/pages/index/index.axml
vendored
Normal file
File diff suppressed because one or more lines are too long
421
distribution/unpackage/dist/dev/mp-alipay/pages/index/index.js
vendored
Normal file
421
distribution/unpackage/dist/dev/mp-alipay/pages/index/index.js
vendored
Normal file
@ -0,0 +1,421 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const API_api = require("../../API/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_uni_notice_bar2 = common_vendor.resolveComponent("uni-notice-bar");
|
||||
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
||||
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
||||
(_easycom_uni_notice_bar2 + _easycom_uni_icons2 + _easycom_uni_popup2)();
|
||||
}
|
||||
const _easycom_uni_notice_bar = () => "../../uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.js";
|
||||
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
||||
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
(_easycom_uni_notice_bar + _easycom_uni_icons + _easycom_uni_popup)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const radius = common_vendor.ref(common_vendor.index.getStorageSync("currentUser.distributionScope"));
|
||||
const currentIndex = common_vendor.ref(0);
|
||||
const tabs = [
|
||||
{
|
||||
name: "待抢单"
|
||||
},
|
||||
{
|
||||
name: "待取货"
|
||||
},
|
||||
{
|
||||
name: "待送达"
|
||||
}
|
||||
];
|
||||
const switchTab = (index) => {
|
||||
currentIndex.value = index;
|
||||
const stateMap = [1, 2, 3];
|
||||
if (index >= 0 && index < stateMap.length) {
|
||||
robOrder(stateMap[index]);
|
||||
}
|
||||
};
|
||||
const switchTabs = (index) => {
|
||||
activeTab.value = index;
|
||||
};
|
||||
const type = common_vendor.ref("center");
|
||||
const activeTab = common_vendor.ref(0);
|
||||
const selectedItem = common_vendor.ref(null);
|
||||
const popupRef = common_vendor.ref(null);
|
||||
const array = common_vendor.ref(["1公寓", "2公寓", "3公寓", "4公寓", "5公寓", "6公寓", "7公寓", "8公寓", "9公寓", "10公寓", "11公寓", "12公寓", "育才大厦"]);
|
||||
common_vendor.ref(0);
|
||||
const items = common_vendor.ref([
|
||||
"考核时间从多到少",
|
||||
"运单金额从高到低",
|
||||
"配送距离从近到远",
|
||||
"取货距离从近到远",
|
||||
"推荐排序"
|
||||
]);
|
||||
const tipsItems = common_vendor.ref([
|
||||
"新单置顶",
|
||||
"已抢商户置顶"
|
||||
]);
|
||||
const change = (e) => {
|
||||
console.log("当前模式:" + e.type + ",状态:" + e.show);
|
||||
};
|
||||
const toggle = (typeValue) => {
|
||||
type.value = typeValue;
|
||||
popupRef.value.open(typeValue);
|
||||
};
|
||||
const map = () => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/map/map"
|
||||
});
|
||||
};
|
||||
const bindPickerChange = (e) => {
|
||||
console.log("picker发送选择改变,携带值为", e.detail.value);
|
||||
const newValue = array.value[e.detail.value];
|
||||
radius.value = newValue;
|
||||
const requestData = {
|
||||
distributionScope: newValue,
|
||||
errandName: currentUser.value.errandName,
|
||||
// 动态获取
|
||||
errandPhone: currentUser.value.errandPhone,
|
||||
// 动态获取
|
||||
gender: currentUser.value.gender,
|
||||
// 动态获取
|
||||
id: currentUser.value.id,
|
||||
// 动态获取
|
||||
state: currentUser.value.state
|
||||
// 动态获取
|
||||
};
|
||||
common_vendor.index.request({
|
||||
url: API_api.apiImageUrl + "/api/errand/update/my",
|
||||
method: "POST",
|
||||
data: requestData,
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
"cookie": common_vendor.index.getStorageSync("cookie") || ""
|
||||
},
|
||||
success(res) {
|
||||
console.log("配送范围更新成功:", res);
|
||||
console.log(res.data.code);
|
||||
if (res.data.code === 50001) {
|
||||
common_vendor.index.showToast({
|
||||
title: "还有未送达订单",
|
||||
icon: "fail"
|
||||
});
|
||||
} else if (res.data.code === 0) {
|
||||
common_vendor.index.showToast({
|
||||
title: "配送范围已更新",
|
||||
icon: "success"
|
||||
});
|
||||
refreshOrders();
|
||||
}
|
||||
},
|
||||
fail(err) {
|
||||
console.error("配送范围更新失败:", err);
|
||||
common_vendor.index.showToast({
|
||||
title: "更新失败,请重试",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
const handleClick = (item) => {
|
||||
selectedItem.value = item;
|
||||
};
|
||||
const refreshOrders = () => {
|
||||
const stateMap = [1, 2, 3];
|
||||
const currentState = stateMap[currentIndex.value] || 1;
|
||||
robOrder(currentState);
|
||||
};
|
||||
common_vendor.onMounted(() => {
|
||||
robOrder(1);
|
||||
});
|
||||
let errandOrder = common_vendor.ref([]);
|
||||
const robOrder = (errandStateValue) => {
|
||||
if (typeof errandStateValue !== "number" || isNaN(errandStateValue)) {
|
||||
console.error("Invalid errandState value:", errandStateValue);
|
||||
return;
|
||||
}
|
||||
const params = `errandState=${encodeURIComponent(errandStateValue.toString())}`;
|
||||
common_vendor.index.request({
|
||||
url: API_api.apiImageUrl + "/api/errand/list/order",
|
||||
method: "POST",
|
||||
header: {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
// 设置正确的内容类型
|
||||
"cookie": common_vendor.index.getStorageSync("cookie") || ""
|
||||
},
|
||||
data: params,
|
||||
// 直接使用构建好的查询字符串
|
||||
success(res) {
|
||||
console.log("请求成功:", res);
|
||||
if (res.data.code !== 0) {
|
||||
common_vendor.index.showToast({
|
||||
title: `请求失败:${res.data.message}`,
|
||||
icon: "none"
|
||||
});
|
||||
} else {
|
||||
console.log(res.data.data);
|
||||
errandOrder.value = res.data.data;
|
||||
console.log("Updated errandOrder:", errandOrder.value);
|
||||
}
|
||||
},
|
||||
fail(err) {
|
||||
console.log("请求失败:", err);
|
||||
}
|
||||
});
|
||||
};
|
||||
const plunder = (id) => {
|
||||
console.log(id);
|
||||
common_vendor.index.request({
|
||||
url: API_api.apiImageUrl + "/api/errand/get/order",
|
||||
method: "POST",
|
||||
data: {
|
||||
id
|
||||
},
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
"cookie": common_vendor.index.getStorageSync("cookie") || ""
|
||||
},
|
||||
success: (res) => {
|
||||
console.log(res);
|
||||
if (res.data.code === 0) {
|
||||
common_vendor.index.showToast({
|
||||
title: "抢单成功",
|
||||
icon: "success",
|
||||
success: () => {
|
||||
const stateMap = [1, 2, 3];
|
||||
const currentState = stateMap[currentIndex.value];
|
||||
robOrder(currentState);
|
||||
if (currentIndex.value === 0) {
|
||||
robOrder(2);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: res.data.message || "抢单失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log(err);
|
||||
common_vendor.index.showToast({
|
||||
title: "网络错误,请重试",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
const obtain = (id) => {
|
||||
common_vendor.index.request({
|
||||
url: API_api.apiImageUrl + "/api/errand/update/state",
|
||||
method: "POST",
|
||||
data: {
|
||||
errandsState: 3,
|
||||
orderId: id
|
||||
},
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
"cookie": common_vendor.index.getStorageSync("cookie") || ""
|
||||
},
|
||||
success: (res) => {
|
||||
console.log(res);
|
||||
if (res.data.code === 0) {
|
||||
common_vendor.index.showToast({
|
||||
title: "取货成功",
|
||||
icon: "success",
|
||||
success: () => {
|
||||
robOrder(2);
|
||||
robOrder(3);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: res.data.description || "取货失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log(err);
|
||||
common_vendor.index.showToast({
|
||||
title: "网络异常,请检查连接",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
let currentUser = common_vendor.ref({});
|
||||
const getCurrentUser = () => {
|
||||
common_vendor.index.request({
|
||||
url: API_api.apiImageUrl + "/api/errand/get/current",
|
||||
method: "POST",
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
"cookie": common_vendor.index.getStorageSync("cookie")
|
||||
},
|
||||
success(res) {
|
||||
console.log(res);
|
||||
if (res.data.code === 0) {
|
||||
const userData = res.data.data;
|
||||
currentUser.value = userData;
|
||||
if (array.value.includes(userData.distributionScope)) {
|
||||
radius.value = userData.distributionScope;
|
||||
} else {
|
||||
console.warn("用户的配送范围不在预设的选项中");
|
||||
}
|
||||
}
|
||||
},
|
||||
fail(err) {
|
||||
console.error("请求失败:", err);
|
||||
}
|
||||
});
|
||||
};
|
||||
common_vendor.onMounted(() => {
|
||||
robOrder(1);
|
||||
getCurrentUser();
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
getCurrentUser();
|
||||
robOrder(1);
|
||||
});
|
||||
const orderDetail = (item) => {
|
||||
common_vendor.index.setStorageSync("orderDetail", item);
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/orderDetail/orderDetail"
|
||||
});
|
||||
};
|
||||
const deliveryDetail = (item) => {
|
||||
console.log("4567845678945678900");
|
||||
console.log(item);
|
||||
common_vendor.index.setStorageSync("orderDetail", item);
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/deliveryDetail/deliveryDetail"
|
||||
});
|
||||
};
|
||||
const formatDate = (isoString) => {
|
||||
if (!isoString)
|
||||
return "";
|
||||
return isoString.slice(5, 10) + " " + isoString.slice(11, 19);
|
||||
};
|
||||
common_vendor.index.$on("refresh-delivery-list", () => {
|
||||
this.robOrder(3);
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.f(tabs, (tab, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(tab.name),
|
||||
b: tab.name,
|
||||
c: currentIndex.value === index ? 1 : "",
|
||||
d: common_vendor.o(($event) => switchTab(index))
|
||||
};
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
["show-icon"]: true,
|
||||
scrollable: true,
|
||||
text: "今日放假"
|
||||
}),
|
||||
c: currentIndex.value === 0
|
||||
}, currentIndex.value === 0 ? {
|
||||
d: common_vendor.f(common_vendor.unref(errandOrder), (item, index, i0) => {
|
||||
var _a;
|
||||
return {
|
||||
a: common_vendor.t(item.id),
|
||||
b: common_vendor.t(formatDate(item.pickupEndTime)),
|
||||
c: common_vendor.t(item.address),
|
||||
d: common_vendor.t((_a = item.businessVO) == null ? void 0 : _a.businessName),
|
||||
e: common_vendor.t(item.location),
|
||||
f: common_vendor.o(($event) => plunder(item.id)),
|
||||
g: index
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
e: currentIndex.value === 1
|
||||
}, currentIndex.value === 1 ? {
|
||||
f: common_vendor.f(common_vendor.unref(errandOrder), (item, index, i0) => {
|
||||
var _a;
|
||||
return {
|
||||
a: common_vendor.t(item.id),
|
||||
b: common_vendor.t(formatDate(item.pickupEndTime)),
|
||||
c: common_vendor.t(item.address),
|
||||
d: common_vendor.t((_a = item.businessVO) == null ? void 0 : _a.businessName),
|
||||
e: common_vendor.t(item.location),
|
||||
f: common_vendor.o(($event) => obtain(item.id)),
|
||||
g: index,
|
||||
h: common_vendor.o(($event) => orderDetail(item))
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
g: currentIndex.value === 2
|
||||
}, currentIndex.value === 2 ? {
|
||||
h: common_vendor.f(common_vendor.unref(errandOrder), (item, index, i0) => {
|
||||
var _a;
|
||||
return {
|
||||
a: common_vendor.t(item.id),
|
||||
b: common_vendor.t(formatDate(item.pickupEndTime)),
|
||||
c: common_vendor.t(item.address),
|
||||
d: common_vendor.t((_a = item.businessVO) == null ? void 0 : _a.businessName),
|
||||
e: common_vendor.t(item.location),
|
||||
f: index,
|
||||
g: common_vendor.o(($event) => deliveryDetail(item))
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
i: common_vendor.p({
|
||||
type: "gear-filled",
|
||||
size: "24"
|
||||
}),
|
||||
j: common_vendor.o(($event) => toggle("bottom")),
|
||||
k: common_vendor.p({
|
||||
type: "location-filled",
|
||||
size: "24"
|
||||
}),
|
||||
l: common_vendor.o(map),
|
||||
m: common_vendor.o(refreshOrders),
|
||||
n: activeTab.value === 0 ? 1 : "",
|
||||
o: common_vendor.o(($event) => switchTabs(0)),
|
||||
p: activeTab.value === 1 ? 1 : "",
|
||||
q: common_vendor.o(($event) => switchTabs(1)),
|
||||
r: activeTab.value === 0
|
||||
}, activeTab.value === 0 ? {
|
||||
s: common_vendor.t(radius.value.value || "修改配送区域"),
|
||||
t: array.value.indexOf(radius.value.value),
|
||||
v: array.value,
|
||||
w: common_vendor.o(bindPickerChange)
|
||||
} : {}, {
|
||||
x: activeTab.value === 1
|
||||
}, activeTab.value === 1 ? {
|
||||
y: common_vendor.f(items.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: common_vendor.o(($event) => handleClick(item)),
|
||||
c: index,
|
||||
d: selectedItem.value === item ? 1 : ""
|
||||
};
|
||||
}),
|
||||
z: common_vendor.f(tipsItems.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: common_vendor.o(($event) => handleClick(item)),
|
||||
c: index,
|
||||
d: selectedItem.value === item ? 1 : ""
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
A: type.value === "left" || type.value === "right" ? 1 : "",
|
||||
B: () => ({
|
||||
r: popupRef,
|
||||
k: "popupRef"
|
||||
}),
|
||||
C: common_vendor.o(change),
|
||||
D: common_vendor.p({
|
||||
["background-color"]: "#fff"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
|
||||
my.createPage(MiniProgramPage);
|
9
distribution/unpackage/dist/dev/mp-alipay/pages/index/index.json
vendored
Normal file
9
distribution/unpackage/dist/dev/mp-alipay/pages/index/index.json
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"defaultTitle": "首页",
|
||||
"titleBarColor": "#5e7dec",
|
||||
"usingComponents": {
|
||||
"uni-notice-bar": "../../uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar",
|
||||
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
|
||||
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user