修改了样式
This commit is contained in:
@@ -83,10 +83,24 @@ Page({
|
||||
const totalPrice = this.calculateTotal(service.price, 1)
|
||||
this.setData({
|
||||
service: service,
|
||||
serviceIcon: this.getServiceIcon(service.title),
|
||||
totalPrice: totalPrice
|
||||
})
|
||||
},
|
||||
|
||||
// 弹窗服务标记:原占位图是全服务共用的一张白色线稿,落在浅橙面板上看不见,
|
||||
// 改用暖橙 t-icon(名称均已核对 tdesign 图标表,写错不报错只会渲染为空)。
|
||||
// 图标按服务名选:夜间→月亮,陪诊→时钟,其余(取报告/代取药品等代办)→人像
|
||||
getServiceIcon(title) {
|
||||
if (title.indexOf('夜间') > -1) {
|
||||
return 'moon'
|
||||
}
|
||||
if (title.indexOf('陪诊') > -1) {
|
||||
return 'time'
|
||||
}
|
||||
return 'user-business'
|
||||
},
|
||||
|
||||
calculateTotal(price) {
|
||||
return price
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user