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