committed by
trae-solo-agent
co-authored by
Claude Sonnet 4.6 noreply@anthropic.com
parent
031227710d
commit
d3f399d1ad
@@ -1,6 +1,7 @@
|
||||
// pages/mine/contact.js
|
||||
Page({
|
||||
data: {
|
||||
orderContext: '',
|
||||
// 联系方式配置:action 决定点击行为,call=拨号 / copy=复制 / 空=不可点
|
||||
contactItems: [{
|
||||
label: '客服热线',
|
||||
@@ -29,6 +30,17 @@ Page({
|
||||
]
|
||||
},
|
||||
|
||||
onLoad(options = {}) {
|
||||
const orderNo = String(options.orderNo || '').trim()
|
||||
const orderId = String(options.orderId || '').trim()
|
||||
const displayNo = (orderNo || orderId.slice(-8)).toUpperCase()
|
||||
if (!displayNo) return
|
||||
|
||||
this.setData({
|
||||
orderContext: `咨询订单尾号 ${displayNo},联系客服时请提供该编号`
|
||||
})
|
||||
},
|
||||
|
||||
onItemTap(e) {
|
||||
const {
|
||||
action,
|
||||
|
||||
Reference in New Issue
Block a user