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 @@
<uni-icons
class="icon-close"
type="closeempty"
:size="16"
:size="20"
color="#1A1A1A"
></uni-icons>
</view>
......@@ -106,6 +106,7 @@ export default {
height: 100%;
margin-left: auto;
padding: 0 toRpx(48);
font-weight: 700;
}
}
.content {
......
......@@ -60,7 +60,7 @@ export default {
//您可以通过修改 config-ucharts.js 文件中下标为 ['bar'] 的节点来配置全局默认参数,如都是默认参数,此处可以不传 opts 。实际应用过程中 opts 只需传入与全局默认参数中不一致的【某一个属性】即可实现同类型的图表显示不同的样式,达到页面简洁的需求。
opts: Object.freeze({
fontColor: '#333',
fontSize: 10,
fontSize: 12,
color: ["#2C66F7"],
padding: [20, 80, 0, 0],
enableScroll: false,
......
......@@ -35,7 +35,7 @@
>
<view
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
type="info"
......@@ -187,7 +187,10 @@ export default {
}
},
mounted () {
uni.$on('refreshRecord', () => {
this.resetData()
this.getReceptionList()
})
},
methods: {
resetData () {
......@@ -393,7 +396,7 @@ export default {
await this.getPreRecordFail()
},
searchReceptionList ({ item }, name) {
if(this[name] == item.value) return
if (this[name] == item.value) return
this[name] = item.value
this.resetData()
this.getReceptionList()
......@@ -496,7 +499,7 @@ export default {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 70%;
width: 62%;
}
.goods-name {
font-weight: 500;
......
......@@ -315,7 +315,9 @@ export default {
}
}
.right {
width: toRpx(1354);
width: toRpx(1358);
border: toRpx(2) solid #fff;
box-sizing: border-box;
&-content {
width: 100%;
position: absolute;
......
......@@ -141,6 +141,7 @@ export default {
top: toRpx(8);
height: toRpx(28);
background: #00000066;
border-radius: toRpx(4);
font-size: toRpx(20);
}
}
......
......@@ -89,19 +89,21 @@ export default {
<style scoped lang='scss'>
.scene-market-box {
height: calc(100vh - #{toRpx(144)});
margin: toRpx(64) toRpx(48) 0;
margin: toRpx(64) toRpx(48) 0 0 ;
border-radius: toRpx(48);
background: #ffffff59;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
box-sizing: border-box;
overflow: hidden;
border: toRpx(2) solid #ffffff;
.scene-market-content {
width: 100%;
height: calc(100% - #{toRpx(128)});
background: #ffffff;
transform: translateY(toMinusRpx(32));
box-sizing: border-box;
border-radius: toRpx(48);
.tabs {
gap: toRpx(24);
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
......@@ -24,13 +24,17 @@
:src="item.imgUrl"
@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
:type="icon"
:size="size"
color="#909399"
></uni-icons>
</view>
</view> -->
</movable-view>
</template>
</movable-area>
......@@ -317,6 +321,15 @@ export default {
background-size: 100% 100%;
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 {
position: absolute;
left: 0;
......
......@@ -126,6 +126,7 @@ export default {
left: 0;
top: toRpx(128);
border-radius: toRpx(48);
overflow: hidden;
}
}
</style>
\ No newline at end of file
......@@ -11,7 +11,7 @@
<uni-icons
type="left"
:size="20"
color="#fff"
color="#1a1a1a"
></uni-icons>
</view>
<view class="title">{{ title }}</view>
......@@ -105,15 +105,15 @@ export default {
left: 0;
width: 100vw;
height: 100vh;
background: #000;
padding: toRpx(60) 0;
background: #f5f9ff;
padding: toRpx(60) 0 0;
z-index: 999;
.nav-bar {
width: 100%;
height: toRpx(96);
margin-bottom: toRpx(50);
display: flex;
align-items: center;
.back {
height: 100%;
aspect-ratio: 1/1;
......@@ -122,7 +122,7 @@ export default {
justify-content: center;
}
.title {
color: #fff;
color: #1a1a1a;
flex: 1;
font-size: toRpx(32);
font-weight: 700;
......@@ -131,7 +131,7 @@ export default {
}
.popup-body {
width: 100%;
height: calc(100% - #{toRpx(200)});
height: calc(100% - #{toRpx(96)});
video {
width: 100%;
height: 100%;
......@@ -140,7 +140,7 @@ export default {
height: 100%;
text-align: center;
image {
height: calc(100vh - #{toRpx(200)});
height: calc(100vh - #{toRpx(96)});
width: auto;
}
}
......
......@@ -8,76 +8,143 @@
-->
<template>
<view>
<view class="header" @click="back">
<view
class="header"
@click="back"
>
<view class="nav-bar">
<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 class="title">{{ title }}</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>
</template>
<script type="text/ecmascript-6">
import LearnPopup from '@/components/LearnPopup.vue'
export default {
components: {
LearnPopup
},
name: '',
data () {
return {
url: '',
title:'广联AI集市'
title: '广联AI集市',
wv: null,
studyId: '',
}
},
computed: {
learnRef () {
return this.$refs.learn
},
},
onLoad (options) {
const { sceneType, uuid,phone, channelType=1 } = uni.$storage.get('userInfo')
const bussinessType = sceneType == 0 ? 1 : 2 // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
const brand = {
if (options.studyId) this.studyId = options.studyId
if (options.pageTitle) this.title = options.pageTitle
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: '问界',
2:'比亚迪',
3:'其他'
2: '比亚迪',
3: '其他'
}[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}`
if(options.practice_status) {
this.url += `&practice_status=${options.practice_status}`
}
if(options.businessType) {
this.url += `&businessType=${options.businessType}`
}
if(options.brandType) {
this.url += `&brandType=${options.brandType}`
}
if(options.date) {
this.url += `&date=${options.date}`
}
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'
setTimeout(() => {
const currentWebview = this.$scope.$getAppWebview()
const wv = currentWebview.children()[0]
if (wv) {
wv.setStyle({ top: '10%',height:'90%'})
}
}, 1000)
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) {
this.url += `&practice_status=${options.practice_status}`
}
if (options.businessType) {
this.url += `&businessType=${options.businessType}`
}
if (options.brandType) {
this.url += `&brandType=${options.brandType}`
}
if (options.date) {
this.url += `&date=${options.date}`
}
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'
setTimeout(() => {
const currentWebview = this.$scope.$getAppWebview()
const wv = currentWebview.children()[0]
if (wv) {
this.wv = wv
wv.setStyle({ top: '10%', height: '90%' })
}
}, 1000)
},
onBackPress (options) {
if (options.from === 'backbutton') {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
this.back()
return true
}
// 其他情况允许正常返回
return false
},
mounted () {
},
methods: {
back() {
console.log('back')
async 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.$emit('aiBack')
uni.$emit('pageBack')
uni.$emit('refreshStudyList')
}
}
}
</script>
<style scoped lang="scss">
.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;
z-index: 9999;
background-color: #f5f9ff;
z-index: 9;
background-size: 100% 100%;
position: fixed;
height: 10%;
......@@ -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>
......@@ -266,6 +266,7 @@ export default {
const res = await uni.$api.receptionApi.findCheckResultByBatchId({
batchId
})
uni.$emit('refreshRecord')
console.log(JSON.parse(JSON.stringify(res)))
res.map(item => {
item.formatScore = `${item.score || item.score === 0 ? item.score : '-'}/${item.sumScore || item.sumScore === 0 ? item.sumScore : '-'}`
......@@ -370,11 +371,10 @@ export default {
let title = ''
if (item.sumScore > item.score) title = item.tagGroupName
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}`
if (checkDate) url += `&date=${checkDate}`
url = `${agentUrl}?no_header=1&businessType=${bussinessType}&phone=${phone}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${domainName}&presuppositionProblem=${title}&brandType=1001`
url += `&date=${dayjs().format('YYYY-MM-DD')}`
if (taskStatus) url += `&practice_status=${taskStatus}`
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()
} else uni.showToast({
title: '获取智能体失败',
......
......@@ -36,9 +36,9 @@ export default {
show: {
immediate: true,
handler (newval) {
// setTimeout(() => {
// if (newval && this.hasCarBrand && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
// }, 1e3)
setTimeout(() => {
if (newval && this.hasCarBrand && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
}, 1e3)
}
},
watchCustomerInfo: {
......
......@@ -129,11 +129,11 @@ export default {
if (newval) this.customerInfo = newval
}
},
// show (n) {
// setTimeout(() => {
// if (n && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
// }, 1e3)
// }
show (n) {
setTimeout(() => {
if (n && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
}, 1e3)
}
},
computed: {
watchCustomerInfo () {
......
......@@ -82,10 +82,10 @@ export default {
},
async onLoad () {
const mockdata = await uni.$api.systemApi.getMockData(true) //获取APP配置信息
// if(this.channelType == 1 && mockdata.boutiqueDefaultCarBrandId) {
// this.$store.state.user.boutiqueDefaultCarBrandId = mockdata.boutiqueDefaultCarBrandId //默认车辆品牌
// if(mockdata.defaultCarId) this.$store.state.user.defaultCarId = mockdata.defaultCarId //默认车系
// }
if(this.channelType == 1 && mockdata.boutiqueDefaultCarBrandId) {
this.$store.state.user.boutiqueDefaultCarBrandId = mockdata.boutiqueDefaultCarBrandId //默认车辆品牌
if(mockdata.defaultCarId) this.$store.state.user.defaultCarId = mockdata.defaultCarId //默认车系
}
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!