chore: 客服自动回复与历史消息等改造前本地备份

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-01 11:49:17 +08:00
parent 8093497c51
commit 8f93d2c404
6 changed files with 222 additions and 375 deletions

View File

@@ -1,10 +1,10 @@
{
"navigationBarTitleText": "抢单大厅",
"navigationBarBackgroundColor": "#c4b5fd",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#0b0f1a",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"backgroundTextStyle": "dark",
"backgroundColor": "#f5f3ff",
"backgroundColor": "#0b0f1a",
"usingComponents": {
"chenghao-tag": "/components/chenghao-tag/chenghao-tag",
"global-notification": "/components/global-notification/global-notification",

View File

@@ -18,7 +18,7 @@
refresher-default-style="black"
refresher-background="#f5f3ff"
refresher-background="#0b0f1a"
refresher-triggered="{{scrollViewRefreshing}}"
@@ -82,7 +82,7 @@
indicator-color="rgba(255,255,255,0.6)"
indicator-active-color="#9333ea"
indicator-active-color="#00c8ff"
autoplay="{{lunboList.length > 1}}"

View File

@@ -1,9 +1,9 @@
/* pages/qiangdan/qiangdan.wxss - 逍遥梦抢单页 */
/* pages/qiangdan/qiangdan.wxss - 机甲风格抢单页 */
@import '../../styles/dashou-xym-theme.wxss';
@import '../../styles/dashou-xym-order-card.wxss';
page {
background-color: #c4b5fd;
background-color: #0b0f1a;
}
.qiangdan-page {

View File

@@ -381,6 +381,9 @@ onHide() {
return;
}
const confirmed = await this.confirmWechatPurchase('yajin');
if (!confirmed) return;
this.showLoading('发起支付中...');
try {
@@ -458,6 +461,9 @@ onHide() {
return;
}
const confirmed = await this.confirmWechatPurchase('huiyuan');
if (!confirmed) return;
this.showLoading('发起会员支付中...');
try {
@@ -513,6 +519,9 @@ onHide() {
return;
}
const confirmed = await this.confirmWechatPurchase('jifen');
if (!confirmed) return;
this.showLoading('发起积分支付中...');
try {
@@ -823,6 +832,26 @@ onHide() {
return new Promise(resolve => setTimeout(resolve, ms));
},
/** 微信支付下单前确认(仅微信购买会员/押金/积分) */
confirmWechatPurchase(kind) {
const labelMap = {
huiyuan: '会员',
yajin: '押金',
jifen: '积分',
};
const label = labelMap[kind] || '服务';
return new Promise((resolve) => {
wx.showModal({
title: '确认微信支付',
content: `您即将通过微信支付购买${label}。请点击「确认购买」后才会发起支付;购买成功后不可随意退款,请确认无误后再继续。`,
confirmText: '确认购买',
cancelText: '再想想',
success: (res) => resolve(!!res.confirm),
fail: () => resolve(false),
});
});
},
// ========== 新增功能(余额抵扣等) ==========
onBuyHuiyuanClick(e) {
const huiyuanId = e.currentTarget.dataset.id;