Commit c230d25e by 杨明

Merge branch 'SAAS+V4.52.1' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.53.0

2 parents 8b20b540 485926cd
...@@ -5,88 +5,96 @@ ...@@ -5,88 +5,96 @@
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-09-13 11:08:55 * @LastEditTime: 2024-09-13 11:08:55
*/ */
import http from "../request/http"; import http from '../request/http'
module.exports = { module.exports = {
/**获取APP更新 */ /**获取APP更新 */
findSoureList (data) { findSoureList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureList", method: 'dj.api.smartcarlife.recepiton.soure.findSoureList',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/** 查询可发放礼券-分页查询商户券列表 */ /** 查询可发放礼券-分页查询商户券列表 */
findCouponList (data) { findCouponList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.merchantCoupon.pageForZYApp", method: 'dj.api.smartcarlife.merchantCoupon.pageForZYApp',
projectName: "boutique", projectName: 'boutique',
onlyUsable: true, onlyUsable: true,
currentPage: 1, currentPage: 1,
pageSize: 99999, pageSize: 99999,
...data, ...data
}); })
}, },
/**查询用户是否领券 */ /**查询用户是否领券 */
findCustomerReceivedStatus (data) { findCustomerReceivedStatus(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.customerCoupon.pageForZYApp", method: 'dj.api.smartcarlife.customerCoupon.pageForZYApp',
projectName: "boutique", projectName: 'boutique',
...data, ...data,
currentPage: 1, currentPage: 1,
pageSize: 99999, pageSize: 99999,
statusList: [0, 1] statusList: [0, 1]
}); })
}, },
/**历史成交客户 */ /**历史成交客户 */
historyDealOrderPage (data) { historyDealOrderPage(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.order.historyDealOrder.page", method: 'dj.api.smartcarlife.order.historyDealOrder.page',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
// 历史订单列表 // 历史订单列表
getQuotationList (data) { getQuotationList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page", method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
},
// 历史订单列表
getOrderList(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.for.pad.page',
projectName: 'boutique',
...data
})
}, },
/**客户邀约记录 */ /**客户邀约记录 */
customerInviteRecordPage (data) { customerInviteRecordPage(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.customerInviteRecord.page", method: 'dj.api.smartcarlife.customerInviteRecord.page',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/**轻改素材配置 */ /**轻改素材配置 */
getBoutiqueMaterialConfig (data) { getBoutiqueMaterialConfig(data) {
return http.post({ return http.post({
method: "dj.api.boutique.recepiton.material.merchant.detail", method: 'dj.api.boutique.recepiton.material.merchant.detail',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/** 案例视频 */ /** 案例视频 */
getCaseList(data) { getCaseList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.material.case.find", method: 'dj.api.smartcarlife.recepiton.material.case.find',
projectName: "boutique", projectName: 'boutique',
...data ...data
}) })
}, },
/** 获取类目 */ /** 获取类目 */
getCategory(data) { getCategory(data) {
return http.post({ return http.post({
method: "dj.api.boutique.recepiton.material.merchant.category", method: 'dj.api.boutique.recepiton.material.merchant.category',
projectName: "boutique", projectName: 'boutique',
...data ...data
}) })
}, },
/** /**
...@@ -94,10 +102,9 @@ module.exports = { ...@@ -94,10 +102,9 @@ module.exports = {
*/ */
getInviteRecordCount(data) { getInviteRecordCount(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.customerInviteRecord.inviteStatus.count", method: 'dj.api.smartcarlife.customerInviteRecord.inviteStatus.count',
projectName: "boutique", projectName: 'boutique',
...data ...data
}) })
}, }
}
};
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
this.list = res this.list = res
}, },
jump(data) { jump(data) {
let {agentUrl,domainName} = data let {agentUrl,domainName,presuppositionProblem} = data
if(!agentUrl) { if(!agentUrl) {
return uni.showToast({ return uni.showToast({
title: '待开放', title: '待开放',
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
}) })
} }
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/aiWebview?url=${agentUrl}&domain=${domainName}` url: `/pages/common/aiWebview?url=${agentUrl}&domain=${domainName}&presuppositionProblem=${presuppositionProblem}`
}) })
} }
} }
......
/* /*
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48 * @Date: 2024-04-08 11:28:48
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn * @LastEditors: liimin 17653212@qq.com
* @LastEditTime: 2025-04-29 11:23:03 * @LastEditTime: 2025-05-16 16:44:50
* @FilePath: \gl_tape\mixin\timeout.js * @FilePath: \gl_tape\mixin\timeout.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -25,23 +25,26 @@ export default { ...@@ -25,23 +25,26 @@ export default {
this.__timer = setInterval(() => { this.__timer = setInterval(() => {
if (this.__counter >= TIMER_TIMEOUT) { if (this.__counter >= TIMER_TIMEOUT) {
//关闭录音 //关闭录音
uni.$logger.local.info('== 长时间未触碰平板 ==') uni.$logger.local.info('== 长时间未触碰平板 == __timer:' + this.__timer + '__counter:' + this.__counter + '分钟')
this.endWatchClick() this.endWatchClick()
this.stopRecorder() this.stopRecorder()
return
} }
this.__counter++ this.__counter++
uni.$logger.local.info('== 未触碰平板计时 ==' + this.__counter + '分钟') uni.$logger.local.info('== 未触碰平板计时 ==' + this.__counter + '分钟' + '== __timer:' + this.__timer)
}, TIMER_INTERVAL) }, TIMER_INTERVAL)
}, },
endWatchClick() { endWatchClick() {
if (this.__timer) clearInterval(this.__timer) if (this.__timer) {
clearInterval(this.__timer)
this.__timer = null this.__timer = null
this.__counter = 0 this.__counter = 0
uni.$logger.local.info('== 停止监听未触碰平板事件 ==') uni.$logger.local.info('== 停止监听未触碰平板事件 == __timer:' + this.__timer + ' __counter:' + this.__counter)
}
}, },
handleTouchStart() { handleTouchStart() {
if (this.__counter) { if (this.__counter > 0) {
uni.$logger.local.info(`== ${this.__counter}分钟后触碰平板 ==`) uni.$logger.local.info(`== ${this.__counter}分钟后触碰平板,重置计数器 == __timer:${this.__timer}`)
} }
this.__counter = 0 this.__counter = 0
} }
......
...@@ -30,14 +30,15 @@ export default { ...@@ -30,14 +30,15 @@ export default {
} }
}, },
onLoad (options) { onLoad (options) {
const { sceneType, uuid, channelType=1 } = uni.$storage.get('userInfo') const { sceneType, uuid,phone, channelType=1 } = uni.$storage.get('userInfo')
const bussinessType = sceneType == 0 ? 1 : 2 // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改 const bussinessType = sceneType == 0 ? 1 : 2 // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
const brand = { const brand = {
1: '问界', 1: '问界',
2:'比亚迪', 2:'比亚迪',
3:'其他' 3:'其他'
}[channelType] }[channelType]
this.url = `${options.url}?no_header=1&business_type=${ bussinessType}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${options.domain}` this.url = `${options.url}?no_header=1&business_type=${ bussinessType}&phone=${phone}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${options.domain}&presuppositionProblem=${options.presuppositionProblem}`
console.log(this.url,999)
// this.url='http://assistant.test.glsx.com.cn/chat/jHpvpOmuMWPxYxKo?business_type=12&brand=%E9%97%AE%E7%95%8C&one_id=266&platformType=2&no_header=1&domain=http://aiassistant.test.glsx.com.cn' // this.url='http://assistant.test.glsx.com.cn/chat/jHpvpOmuMWPxYxKo?business_type=12&brand=%E9%97%AE%E7%95%8C&one_id=266&platformType=2&no_header=1&domain=http://aiassistant.test.glsx.com.cn'
setTimeout(() => { setTimeout(() => {
const currentWebview = this.$scope.$getAppWebview() const currentWebview = this.$scope.$getAppWebview()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!