Commit d72c1310 by 胡悦

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

2 parents 74277b7f 44ddf271

2.44 MB | W: | H:

2.49 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<uni-icons <uni-icons
class="icon-close" class="icon-close"
type="closeempty" type="closeempty"
:size="16" :size="20"
color="#1A1A1A" color="#1A1A1A"
></uni-icons> ></uni-icons>
</view> </view>
...@@ -106,6 +106,7 @@ export default { ...@@ -106,6 +106,7 @@ export default {
height: 100%; height: 100%;
margin-left: auto; margin-left: auto;
padding: 0 toRpx(48); padding: 0 toRpx(48);
font-weight: 700;
} }
} }
.content { .content {
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
//您可以通过修改 config-ucharts.js 文件中下标为 ['bar'] 的节点来配置全局默认参数,如都是默认参数,此处可以不传 opts 。实际应用过程中 opts 只需传入与全局默认参数中不一致的【某一个属性】即可实现同类型的图表显示不同的样式,达到页面简洁的需求。 //您可以通过修改 config-ucharts.js 文件中下标为 ['bar'] 的节点来配置全局默认参数,如都是默认参数,此处可以不传 opts 。实际应用过程中 opts 只需传入与全局默认参数中不一致的【某一个属性】即可实现同类型的图表显示不同的样式,达到页面简洁的需求。
opts: Object.freeze({ opts: Object.freeze({
fontColor: '#333', fontColor: '#333',
fontSize: 10, fontSize: 12,
color: ["#2C66F7"], color: ["#2C66F7"],
padding: [20, 80, 0, 0], padding: [20, 80, 0, 0],
enableScroll: false, enableScroll: false,
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
> >
<view <view
class="record-tips flex" class="record-tips flex"
v-if="isPrePage && list.length && list[0] && list[0].length" v-if="tabIndex == 1 && isPrePage && list.length && list[0] && list[0].length"
> >
<uni-icons <uni-icons
type="info" type="info"
...@@ -187,7 +187,10 @@ export default { ...@@ -187,7 +187,10 @@ export default {
} }
}, },
mounted () { mounted () {
uni.$on('refreshRecord', () => {
this.resetData()
this.getReceptionList()
})
}, },
methods: { methods: {
resetData () { resetData () {
...@@ -393,7 +396,7 @@ export default { ...@@ -393,7 +396,7 @@ export default {
await this.getPreRecordFail() await this.getPreRecordFail()
}, },
searchReceptionList ({ item }, name) { searchReceptionList ({ item }, name) {
if(this[name] == item.value) return if (this[name] == item.value) return
this[name] = item.value this[name] = item.value
this.resetData() this.resetData()
this.getReceptionList() this.getReceptionList()
...@@ -496,7 +499,7 @@ export default { ...@@ -496,7 +499,7 @@ export default {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 70%; width: 62%;
} }
.goods-name { .goods-name {
font-weight: 500; font-weight: 500;
......
...@@ -315,7 +315,9 @@ export default { ...@@ -315,7 +315,9 @@ export default {
} }
} }
.right { .right {
width: toRpx(1354); width: toRpx(1358);
border: toRpx(2) solid #fff;
box-sizing: border-box;
&-content { &-content {
width: 100%; width: 100%;
position: absolute; position: absolute;
......
...@@ -141,6 +141,7 @@ export default { ...@@ -141,6 +141,7 @@ export default {
top: toRpx(8); top: toRpx(8);
height: toRpx(28); height: toRpx(28);
background: #00000066; background: #00000066;
border-radius: toRpx(4);
font-size: toRpx(20); font-size: toRpx(20);
} }
} }
......
...@@ -89,19 +89,21 @@ export default { ...@@ -89,19 +89,21 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.scene-market-box { .scene-market-box {
height: calc(100vh - #{toRpx(144)}); height: calc(100vh - #{toRpx(144)});
margin: toRpx(64) toRpx(48) 0; margin: toRpx(64) toRpx(48) 0 0 ;
border-radius: toRpx(48); border-radius: toRpx(48);
background: #ffffff59; background: #ffffff59;
backdrop-filter: blur(toRpx(16)); backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
border: toRpx(2) solid #ffffff;
.scene-market-content { .scene-market-content {
width: 100%; width: 100%;
height: calc(100% - #{toRpx(128)}); height: calc(100% - #{toRpx(128)});
background: #ffffff; background: #ffffff;
transform: translateY(toMinusRpx(32)); transform: translateY(toMinusRpx(32));
box-sizing: border-box; box-sizing: border-box;
border-radius: toRpx(48);
.tabs { .tabs {
gap: toRpx(24); gap: toRpx(24);
padding: toRpx(40) toRpx(44); padding: toRpx(40) toRpx(44);
......
<template>
<uni-popup
ref="learnPopup"
type="center"
:is-mask-click="false"
>
<view class="learn-box">
<view class="sprite-icon icon-learn-bg"></view>
<view class="learn-content">
<view class="learn-title">退出提醒</view>
<text class="learn-text">{{content}}</text>
</view>
<view class="learn-footer flex">
<view
class="learn-btn learn-confirm"
@click="confirm"
>确认退出</view>
<view
class="learn-btn learn-cancel"
@click="cancel"
>继续学习</view>
</view>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
content: {
type: String,
default: ''
}
},
name: '',
data () {
return {
}
},
computed: {
learnRef () {
return this.$refs.learnPopup
}
},
mounted () {
},
methods: {
open () {
this.learnRef.open()
},
cancel () {
this.close()
this.$emit('cancel')
},
close () {
this.learnRef.close()
},
confirm () {
this.close()
this.$emit('confirm')
}
}
}
</script>
<style scoped lang='scss'>
.learn-box {
width: 848rpx;
height: 648rpx;
border-radius: 48rpx;
background: #ffffff;
position: relative;
overflow: hidden;
.sprite-icon{
position: absolute;
top: 0;
left: 0;
zoom: 2;
}
.learn-content {
padding: 296rpx 64rpx 32rpx;
text-align: center;
.learn-title {
color: #333333;
font-size: 40rpx;
font-weight: 500;
margin-bottom: 16rpx;
}
.learn-text {
color: #666666;
font-size: 32rpx;
}
}
.learn-footer {
height: 160rpx;
padding: 0 64rpx;
justify-content: space-between;
.learn-btn {
width: 344rpx;
height: 80rpx;
border-radius: 64rpx;
background: #f0f1f5;
display: flex;
align-items: center;
justify-content: center;
color: #1a1a1a;
font-size: 28rpx;
}
.learn-cancel {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #fff;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -24,13 +24,17 @@ ...@@ -24,13 +24,17 @@
:src="item.imgUrl" :src="item.imgUrl"
@load="item.hide = true" @load="item.hide = true"
/> />
<view :class="['error-block',{hide:item.hide}]"> <view
class="bg"
v-if="item.hide"
></view>
<!-- <view :class="['error-block',{hide:item.hide}]">
<uni-icons <uni-icons
:type="icon" :type="icon"
:size="size" :size="size"
color="#909399" color="#909399"
></uni-icons> ></uni-icons>
</view> </view> -->
</movable-view> </movable-view>
</template> </template>
</movable-area> </movable-area>
...@@ -317,6 +321,15 @@ export default { ...@@ -317,6 +321,15 @@ export default {
background-size: 100% 100%; background-size: 100% 100%;
z-index: 5; z-index: 5;
} }
.bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, #e6edff 0%, #f0f4ff 100%);
z-index: 4;
}
.error-block { .error-block {
position: absolute; position: absolute;
left: 0; left: 0;
......
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
left: 0; left: 0;
top: toRpx(128); top: toRpx(128);
border-radius: toRpx(48); border-radius: toRpx(48);
overflow: hidden;
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<uni-icons <uni-icons
type="left" type="left"
:size="20" :size="20"
color="#fff" color="#1a1a1a"
></uni-icons> ></uni-icons>
</view> </view>
<view class="title">{{ title }}</view> <view class="title">{{ title }}</view>
...@@ -105,15 +105,15 @@ export default { ...@@ -105,15 +105,15 @@ export default {
left: 0; left: 0;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background: #000; background: #f5f9ff;
padding: toRpx(60) 0; padding: toRpx(60) 0 0;
z-index: 999; z-index: 999;
.nav-bar { .nav-bar {
width: 100%; width: 100%;
height: toRpx(96); height: toRpx(96);
margin-bottom: toRpx(50);
display: flex; display: flex;
align-items: center; align-items: center;
.back { .back {
height: 100%; height: 100%;
aspect-ratio: 1/1; aspect-ratio: 1/1;
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
justify-content: center; justify-content: center;
} }
.title { .title {
color: #fff; color: #1a1a1a;
flex: 1; flex: 1;
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 700; font-weight: 700;
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
} }
.popup-body { .popup-body {
width: 100%; width: 100%;
height: calc(100% - #{toRpx(200)}); height: calc(100% - #{toRpx(96)});
video { video {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -140,7 +140,7 @@ export default { ...@@ -140,7 +140,7 @@ export default {
height: 100%; height: 100%;
text-align: center; text-align: center;
image { image {
height: calc(100vh - #{toRpx(200)}); height: calc(100vh - #{toRpx(96)});
width: auto; width: auto;
} }
} }
......
...@@ -8,76 +8,143 @@ ...@@ -8,76 +8,143 @@
--> -->
<template> <template>
<view> <view>
<view class="header" @click="back"> <view
class="header"
@click="back"
>
<view class="nav-bar"> <view class="nav-bar">
<view class="back"> <view class="back">
<uni-icons type="left" :size="20" color="#000000"></uni-icons> <uni-icons
type="left"
:size="20"
color="#000000"
></uni-icons>
</view> </view>
<view class="title">{{ title }}</view> <view class="title">{{ title }}</view>
</view> </view>
</view> </view>
<web-view :src="url" v-if="url"></web-view> <view
class="ai-window"
v-if="url"
>
<web-view :src="url"></web-view>
</view>
<learn-popup
ref="learn"
content="您还没有完成本次对练考核,\n是否确定退出?"
@cancel="cancel"
@confirm="confirm"
/>
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import LearnPopup from '@/components/LearnPopup.vue'
export default { export default {
components: {
LearnPopup
},
name: '', name: '',
data () { data () {
return { return {
url: '', url: '',
title:'广联AI集市' title: '广联AI集市',
wv: null,
studyId: '',
} }
}, },
computed: {
learnRef () {
return this.$refs.learn
},
},
onLoad (options) { onLoad (options) {
const { sceneType, uuid,phone, channelType=1 } = uni.$storage.get('userInfo') if (options.studyId) this.studyId = options.studyId
const bussinessType = sceneType == 0 ? 1 : 2 // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改 if (options.pageTitle) this.title = options.pageTitle
const brand = { const { sceneType, uuid, phone, channelType = 1 } = uni.$storage.get('userInfo')
const bussinessType = sceneType == 0 ? 1 : 2 // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
const brand = {
1: '问界', 1: '问界',
2:'比亚迪', 2: '比亚迪',
3:'其他' 3: '其他'
}[channelType] }[channelType]
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}` 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}`
if(options.practice_status) { if (options.practice_status) {
this.url += `&practice_status=${options.practice_status}` this.url += `&practice_status=${options.practice_status}`
} }
if(options.businessType) { if (options.businessType) {
this.url += `&businessType=${options.businessType}` this.url += `&businessType=${options.businessType}`
} }
if(options.brandType) { if (options.brandType) {
this.url += `&brandType=${options.brandType}` this.url += `&brandType=${options.brandType}`
} }
if(options.date) { if (options.date) {
this.url += `&date=${options.date}` this.url += `&date=${options.date}`
} }
console.log(this.url,999) 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()
const wv = currentWebview.children()[0] const wv = currentWebview.children()[0]
if (wv) { if (wv) {
wv.setStyle({ top: '10%',height:'90%'}) this.wv = wv
} wv.setStyle({ top: '10%', height: '90%' })
}, 1000) }
}, 1000)
},
onBackPress (options) {
if (options.from === 'backbutton') {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
this.back()
return true
}
// 其他情况允许正常返回
return false
}, },
mounted () { mounted () {
}, },
methods: { methods: {
back() { async back () {
console.log('back') try {
const { studyId } = this
if (studyId) {
uni.showLoading()
const { aiReviewReport } = await uni.$api.commonApi.getShortCourseDetail({ id: this.studyId })
uni.hideLoading()
let open = false
aiReviewReport.map(e => {
if (e.examStatus != 2 && !open) open = true
})
if (open) {
this.learnRef.open()
this.wv.setVisible(false)
} else this.confirm()
} else throw false
} catch (error) {
uni.hideLoading()
this.confirm()
}
},
cancel () {
this.wv.setVisible(true)
},
confirm () {
uni.navigateBack() uni.navigateBack()
uni.$emit('aiBack') uni.$emit('refreshStudyList')
uni.$emit('pageBack')
} }
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.header { .header {
background: url('https://img02.glsx.com.cn/weapp/resource/saas/ai/ai-app-bg.jpg'); // background: url('https://img02.glsx.com.cn/weapp/resource/saas/ai/ai-app-bg.jpg');
padding-top: 30px; padding-top: 30px;
z-index: 9999; background-color: #f5f9ff;
z-index: 9;
background-size: 100% 100%; background-size: 100% 100%;
position: fixed; position: fixed;
height: 10%; height: 10%;
...@@ -103,4 +170,13 @@ export default { ...@@ -103,4 +170,13 @@ export default {
} }
} }
} }
.ai-window {
background-color: #f5f9ff;
position: absolute;
top: 10%;
left: 0;
width: 100%;
height: 90vh;
z-index: 1;
}
</style> </style>
...@@ -266,6 +266,7 @@ export default { ...@@ -266,6 +266,7 @@ export default {
const res = await uni.$api.receptionApi.findCheckResultByBatchId({ const res = await uni.$api.receptionApi.findCheckResultByBatchId({
batchId batchId
}) })
uni.$emit('refreshRecord')
console.log(JSON.parse(JSON.stringify(res))) console.log(JSON.parse(JSON.stringify(res)))
res.map(item => { res.map(item => {
item.formatScore = `${item.score || item.score === 0 ? item.score : '-'}/${item.sumScore || item.sumScore === 0 ? item.sumScore : '-'}` item.formatScore = `${item.score || item.score === 0 ? item.score : '-'}/${item.sumScore || item.sumScore === 0 ? item.sumScore : '-'}`
...@@ -370,11 +371,10 @@ export default { ...@@ -370,11 +371,10 @@ export default {
let title = '' let title = ''
if (item.sumScore > item.score) title = item.tagGroupName if (item.sumScore > item.score) title = item.tagGroupName
let { agentUrl, domainName, checkDate, taskStatus } = data, let { agentUrl, domainName, checkDate, taskStatus } = data,
url = `${agentUrl}?no_header=1&business_type=${bussinessType}&phone=${phone}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${domainName}&presuppositionProblem=${title}` url = `${agentUrl}?no_header=1&businessType=${bussinessType}&phone=${phone}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${domainName}&presuppositionProblem=${title}&brandType=1001`
if (checkDate) url += `&date=${checkDate}` url += `&date=${dayjs().format('YYYY-MM-DD')}`
if (taskStatus) url += `&practice_status=${taskStatus}` if (taskStatus) url += `&practice_status=${taskStatus}`
this.AIUrl = url this.AIUrl = url
// this.AIUrl = 'http://192.168.1.237:3000/chat/fpC9ZzKASEEtzjjD?business_type=12&brand=2444&one_id=266&platformType=1&date=2025-06-25&position=1&businessType=1&brandType=1001&phone=13823254919&no_header=1&practice_status=3&presuppositionProblem=&domain=https%3A%2F%2Faiassistant.glsx.com.cn'
this.setWebviewStyle() this.setWebviewStyle()
} else uni.showToast({ } else uni.showToast({
title: '获取智能体失败', title: '获取智能体失败',
......
...@@ -36,9 +36,9 @@ export default { ...@@ -36,9 +36,9 @@ export default {
show: { show: {
immediate: true, immediate: true,
handler (newval) { handler (newval) {
// setTimeout(() => { setTimeout(() => {
// if (newval && this.hasCarBrand && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect() if (newval && this.hasCarBrand && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
// }, 1e3) }, 1e3)
} }
}, },
watchCustomerInfo: { watchCustomerInfo: {
......
...@@ -129,11 +129,11 @@ export default { ...@@ -129,11 +129,11 @@ export default {
if (newval) this.customerInfo = newval if (newval) this.customerInfo = newval
} }
}, },
// show (n) { show (n) {
// setTimeout(() => { setTimeout(() => {
// if (n && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect() if (n && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
// }, 1e3) }, 1e3)
// } }
}, },
computed: { computed: {
watchCustomerInfo () { watchCustomerInfo () {
......
...@@ -82,10 +82,10 @@ export default { ...@@ -82,10 +82,10 @@ export default {
}, },
async onLoad () { async onLoad () {
const mockdata = await uni.$api.systemApi.getMockData(true) //获取APP配置信息 const mockdata = await uni.$api.systemApi.getMockData(true) //获取APP配置信息
// if(this.channelType == 1 && mockdata.boutiqueDefaultCarBrandId) { if(this.channelType == 1 && mockdata.boutiqueDefaultCarBrandId) {
// this.$store.state.user.boutiqueDefaultCarBrandId = mockdata.boutiqueDefaultCarBrandId //默认车辆品牌 this.$store.state.user.boutiqueDefaultCarBrandId = mockdata.boutiqueDefaultCarBrandId //默认车辆品牌
// if(mockdata.defaultCarId) this.$store.state.user.defaultCarId = mockdata.defaultCarId //默认车系 if(mockdata.defaultCarId) this.$store.state.user.defaultCarId = mockdata.defaultCarId //默认车系
// } }
this.get_Vehicle_Sales_Data() this.get_Vehicle_Sales_Data()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!