合并代码
This commit is contained in:
parent
cb57627169
commit
552b14ccf7
|
@ -6,8 +6,8 @@ const config = {
|
|||
// host: 'h5api',
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
// host: 'http://91f.xyz:8080',
|
||||
host: 'http://1d857465.r24.cpolar.top',
|
||||
host: 'http://91f.xyz:8080',
|
||||
// host: 'http://1d857465.r24.cpolar.top',
|
||||
// #endif
|
||||
// 是否vivo显示
|
||||
showVivo: true,
|
||||
|
|
|
@ -43,29 +43,29 @@
|
|||
label: '拍摄',
|
||||
value: 'takePhoto',
|
||||
}, {
|
||||
type: 'pages/news/group/create.png',
|
||||
type: 'redPacket.png',
|
||||
label: '红包',
|
||||
value: 'redEnvelope',
|
||||
}]
|
||||
|
||||
const isCustomer = props.msg.isCustomer;
|
||||
|
||||
// 单聊
|
||||
if (props.msg.type == 'C2C' && !isCustomer) result.push({
|
||||
type: 'news-voice.png',
|
||||
label: '音视频',
|
||||
value: 'voice'
|
||||
})
|
||||
// 客服
|
||||
if (isCustomer) result.unshift({
|
||||
type: 'order.png',
|
||||
label: '订单',
|
||||
value: 'chooseOrder',
|
||||
}, {
|
||||
type: 'shop.png',
|
||||
label: '商品',
|
||||
value: 'chooseShop',
|
||||
})
|
||||
// // 单聊
|
||||
// if (props.msg.type == 'C2C' && !isCustomer) result.push({
|
||||
// type: 'news-voice.png',
|
||||
// label: '音视频',
|
||||
// value: 'voice'
|
||||
// })
|
||||
// // 客服
|
||||
// if (isCustomer) result.unshift({
|
||||
// type: 'order.png',
|
||||
// label: '订单',
|
||||
// value: 'chooseOrder',
|
||||
// }, {
|
||||
// type: 'shop.png',
|
||||
// label: '商品',
|
||||
// value: 'chooseShop',
|
||||
// })
|
||||
return result
|
||||
})
|
||||
|
||||
|
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Loading…
Reference in New Issue