Commit 1f5ea2b6 by 胡悦

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

2 parents 55efa978 38c1d8f6
...@@ -11,7 +11,6 @@ const PATH = ['/pages/common/caseDetail'] ...@@ -11,7 +11,6 @@ const PATH = ['/pages/common/caseDetail']
const keepAlive = uni.requireNativePlugin('Ba-KeepAliveSuit') const keepAlive = uni.requireNativePlugin('Ba-KeepAliveSuit')
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { Ws } from '@/ws/Ws.js' import { Ws } from '@/ws/Ws.js'
import permision from '@/js_sdk/wa-permission/permission.js'
export default { export default {
computed: { computed: {
...mapState('audio', ['isEnd', 'isStart']) ...mapState('audio', ['isEnd', 'isStart'])
...@@ -22,7 +21,6 @@ export default { ...@@ -22,7 +21,6 @@ export default {
setTimeout(() => { setTimeout(() => {
plus.screen.unlockOrientation() //解除锁定屏幕方向 plus.screen.unlockOrientation() //解除锁定屏幕方向
plus.screen.lockOrientation('landscape-primary') plus.screen.lockOrientation('landscape-primary')
permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限
}, 300) }, 300)
uni.setKeepScreenOn({ uni.setKeepScreenOn({
keepScreenOn: true keepScreenOn: true
......
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
params.bussinessType = bussinessType params.bussinessType = bussinessType
if (hmzxFlag) params.hmzxFlag = hmzxFlag if (hmzxFlag) params.hmzxFlag = hmzxFlag
if (this.isAito && !params.hmzxFlag) params.hmzxFlag = 1 if (this.isAito && !params.hmzxFlag) params.hmzxFlag = 1
} } else params.hmzxFlag = this.isAito ? 3 : 4
this.pageData = await uni.$api.receptionApi.getMerchantPerformance(params) || {} this.pageData = await uni.$api.receptionApi.getMerchantPerformance(params) || {}
}, },
changePerformance ({ item }) { changePerformance ({ item }) {
......
...@@ -186,6 +186,7 @@ import MessageDetail from './components/Message/MessageDetail.vue' ...@@ -186,6 +186,7 @@ import MessageDetail from './components/Message/MessageDetail.vue'
import StudyCenter from './components/StudyCenter.vue' import StudyCenter from './components/StudyCenter.vue'
import SwiperComponent from '../SwiperComponent.vue' import SwiperComponent from '../SwiperComponent.vue'
import MessageIndex from './components/Message/index.vue' import MessageIndex from './components/Message/index.vue'
import permision from '@/js_sdk/wa-permission/permission.js'
export default { export default {
mixins: [recorder, uploader, timeout, versionCheck, merge], mixins: [recorder, uploader, timeout, versionCheck, merge],
components: { ReceptionCenter, StudyCenter, SceneMarket, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail, SwiperComponent, MessageIndex }, components: { ReceptionCenter, StudyCenter, SceneMarket, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail, SwiperComponent, MessageIndex },
...@@ -223,6 +224,7 @@ export default { ...@@ -223,6 +224,7 @@ export default {
const userInfo = uni.$storage.get('userInfo') || {} const userInfo = uni.$storage.get('userInfo') || {}
this.userInfo = userInfo this.userInfo = userInfo
this.checkVersion() this.checkVersion()
permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限
}, },
provide () { provide () {
return { return {
......
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
title: this.disabledText || '', title: this.disabledText || '',
icon: 'none', icon: 'none',
mask: true, mask: true,
duration: 500 duration: 2e3
}) })
this.activeIndex = index this.activeIndex = index
this.$emit('tabClick', item) this.$emit('tabClick', item)
......
...@@ -273,31 +273,29 @@ export default { ...@@ -273,31 +273,29 @@ export default {
popupDetail: {}, popupDetail: {},
aiAgentData: {}, aiAgentData: {},
completeStatus: null, completeStatus: null,
studyId: '' studyId: '',
options: {}
} }
}, },
onLoad (options) { onLoad (options) {
console.log(options, 'options') console.log(options, 'options')
this.options = options
const { row } = options const { row } = options
const rowData = JSON.parse(decodeURIComponent(row)) const rowData = JSON.parse(decodeURIComponent(row))
console.log(rowData, 'rowData') console.log(rowData, 'rowData')
this.rowData = rowData this.rowData = rowData
this.completeStatus = options.completeStatus this.completeStatus = options.completeStatus
if (!this.rowData.taskDeadline) this.rowData.taskDeadline = rowData.finishTime if (!this.rowData.taskDeadline) this.rowData.taskDeadline = rowData.finishTime
if (options.from === 'service') { this.refreshStudyList()
this.getShortCourseDetail(rowData.detailId, rowData.id)
} else {
this.getShortCourseDetail(rowData.id)
}
if (this.completeStatus == 0) { if (this.completeStatus == 0) {
this.initCountdown() this.initCountdown()
} }
this.getAiAgentList() this.getAiAgentList()
uni.$on('refreshStudyList', () => { uni.$on('refreshStudyList', () => {
this.getShortCourseDetail(rowData.id) this.refreshStudyList()
}) })
}, },
onUnload () { onUnload () {
// 清除定时器 // 清除定时器
if (this.timer) { if (this.timer) {
...@@ -328,6 +326,16 @@ export default { ...@@ -328,6 +326,16 @@ export default {
return false return false
}, },
methods: { methods: {
refreshStudyList () {
const { options, rowData } = this
if (options.from === 'service') {
this.studyId = rowData.detailId
this.getShortCourseDetail(rowData.detailId, rowData.id)
} else {
this.studyId = rowData.id
this.getShortCourseDetail(rowData.id)
}
},
desensitizePhone (phone) { desensitizePhone (phone) {
if (!phone || typeof phone !== 'string') return phone; if (!phone || typeof phone !== 'string') return phone;
// 只处理11位手机号 // 只处理11位手机号
...@@ -348,7 +356,6 @@ export default { ...@@ -348,7 +356,6 @@ export default {
}, },
async getShortCourseDetail (id, boxId) { async getShortCourseDetail (id, boxId) {
uni.showLoading() uni.showLoading()
this.studyId = id
const params = { id } const params = { id }
if (boxId) { if (boxId) {
params.boxId = boxId params.boxId = boxId
...@@ -887,7 +894,7 @@ export default { ...@@ -887,7 +894,7 @@ export default {
border-radius: toRpx(40); border-radius: toRpx(40);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
&.disabled { &.disabled {
background: #D3DAE6; background: #d3dae6;
width: toRpx(140); width: toRpx(140);
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!