Commit 60763b13 by 杨明

学习课程

1 parent 3b8b5a37

2.44 MB | W: | H:

2.43 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

21.3 KB | W: | H:

6.2 KB | W: | H:

assets/spritesmith/ai-active.png
assets/spritesmith/ai-active.png
assets/spritesmith/ai-active.png
assets/spritesmith/ai-active.png
  • 2-up
  • Swipe
  • Onion skin

3.06 KB | W: | H:

1.16 KB | W: | H:

assets/spritesmith/ai.png
assets/spritesmith/ai.png
assets/spritesmith/ai.png
assets/spritesmith/ai.png
  • 2-up
  • Swipe
  • Onion skin

30.6 KB | W: | H:

5.53 KB | W: | H:

assets/spritesmith/customer-file-active.png
assets/spritesmith/customer-file-active.png
assets/spritesmith/customer-file-active.png
assets/spritesmith/customer-file-active.png
  • 2-up
  • Swipe
  • Onion skin

6.06 KB | W: | H:

948 Bytes | W: | H:

assets/spritesmith/customer-file.png
assets/spritesmith/customer-file.png
assets/spritesmith/customer-file.png
assets/spritesmith/customer-file.png
  • 2-up
  • Swipe
  • Onion skin

28.1 KB | W: | H:

5.01 KB | W: | H:

assets/spritesmith/home-active.png
assets/spritesmith/home-active.png
assets/spritesmith/home-active.png
assets/spritesmith/home-active.png
  • 2-up
  • Swipe
  • Onion skin

6.95 KB | W: | H:

1.22 KB | W: | H:

assets/spritesmith/record.png
assets/spritesmith/record.png
assets/spritesmith/record.png
assets/spritesmith/record.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
<view class="left-side"> <view class="left-side">
<view class="user-box"> <view class="user-box">
<view class="user-info flex" @click="jumpPersonCenter"> <view class="user-info flex" @click="jumpPersonCenter">
<view :class="['user-avatar', 'sprite-icon', 'icon-avatar', tabIndex == 99 ? 'user-active': '']"></view> <view :class="['user-avatar', 'sprite-icon', 'icon-avatar', tabIndex == 99 ? 'user-active' : '']"></view>
<view class="user-name">{{ userInfo.name }} <view class="user-name">
<view v-if="hasPerson" class="sprite-icon icon-arrow-next"></view> {{ userInfo.name }}
<view v-if="hasPerson" class="sprite-icon icon-arrow-next"></view>
</view>
</view> </view>
</view> </view>
</view>
<view :class="['left-tabs', { three: tabs.length == 3 }]"> <view :class="['left-tabs', { three: tabs.length == 3 }]">
<template v-for="(i, index) in tabs"> <template v-for="(i, index) in tabs">
<view :class="['tab-item', { tabActive: tabIndex == index }]" :key="index" @click="changeIndex(index)"> <view :class="['tab-item', { tabActive: tabIndex == index }]" :key="index" @click="changeIndex(index)">
...@@ -16,6 +17,7 @@ ...@@ -16,6 +17,7 @@
</view> </view>
{{ i.label }} {{ i.label }}
<view class="dot" v-if="i.icon == 'record' && perRecordNumber"></view> <view class="dot" v-if="i.icon == 'record' && perRecordNumber"></view>
<view class="tip-box" v-if="i.icon == 'study'">待办事项:3</view>
</view> </view>
</template> </template>
</view> </view>
...@@ -30,7 +32,7 @@ ...@@ -30,7 +32,7 @@
</view> </view>
<!-- 客服弹框 --> <!-- 客服弹框 -->
<!-- <kf-box ref="kfRef" /> --> <!-- <kf-box ref="kfRef" /> -->
<message-pop ref="kfRef" :messageData="messageData"></message-pop> <message-pop ref="kfRef" :messageData="messageData"></message-pop>
<!-- 设置弹框 --> <!-- 设置弹框 -->
<setting-box ref="settingRef" @stopAudio="$emit('stopAudio')" /> <setting-box ref="settingRef" @stopAudio="$emit('stopAudio')" />
</view> </view>
...@@ -66,6 +68,11 @@ export default { ...@@ -66,6 +68,11 @@ export default {
icon: "record", icon: "record",
name: 'RecordList' name: 'RecordList'
}, },
{
label: "学习中心",
icon: "study",
name: 'StudyCenter'
},
], ],
messageData: { messageData: {
classCountList: [], classCountList: [],
...@@ -174,7 +181,9 @@ export default { ...@@ -174,7 +181,9 @@ export default {
position: relative; position: relative;
width: toRpx(240); width: toRpx(240);
flex-shrink: 0; flex-shrink: 0;
background-image: url('@/assets/images/home/left-bg.png');
background-size: 100% 100%;
z-index: 9999;
.left-tabs { .left-tabs {
width: 100%; width: 100%;
height: toRpx(1080); height: toRpx(1080);
...@@ -192,24 +201,24 @@ export default { ...@@ -192,24 +201,24 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding-left: toRpx(32); padding-left: toRpx(32);
&::after { // &::after {
position: absolute; // position: absolute;
left: 0; // left: 0;
top: 0; // top: 0;
width: 100%; // width: 100%;
height: 100%; // height: 100%;
background-image: url('@/assets/images/home/left.webp'); // background-image: url('@/assets/images/home/left.webp');
background-size: 100% 100%; // background-size: 100% 100%;
content: ''; // content: '';
z-index: -1; // z-index: -1;
} // }
.tab-item { .tab-item {
width: toRpx(112); width: toRpx(104);
font-size: toRpx(28); font-size: toRpx(26);
color: #8a98b5; color: #8a98b5;
text-align: center; text-align: center;
padding-bottom: toRpx(46); padding-bottom: toRpx(25);
position: relative; position: relative;
.dot { .dot {
...@@ -223,13 +232,28 @@ export default { ...@@ -223,13 +232,28 @@ export default {
} }
.icon-box { .icon-box {
width: toRpx(112); width: toRpx(104);
height: toRpx(112); height: toRpx(104);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 100%; border-radius: 100%;
} }
.tip-box {
position: absolute;
left: toRpx(90);
top: toRpx(20);
color: #ffffff;
font-size: toRpx(28);
width: toRpx(310);
height: toRpx(90);
line-height: toRpx(64);
background-image: url('@/assets/images/home/daliog.png');
background-size: 100% 100%;
z-index: 99999;
padding-left: toRpx(60);
text-align: left;
}
} }
.tabActive { .tabActive {
...@@ -325,7 +349,7 @@ export default { ...@@ -325,7 +349,7 @@ export default {
justify-content: center; justify-content: center;
width: toRpx(16); width: toRpx(16);
height: toRpx(16); height: toRpx(16);
background-color: #F24724; background-color: #f24724;
right: 50%; right: 50%;
top: 0; top: 0;
color: #fff; color: #fff;
......
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-28 18:19:19
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-09 11:07:24
* @FilePath: \gl-tape\pages\common\webview.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<view></view>
</template>
<script type="text/ecmascript-6">
export default {
name: '',
data () {
return {
url: '',
}
},
mounted () {
},
}
</script>
<style scoped lang="scss"></style>
<template> <template>
<view class="container" @click="handleTouchStart"> <view class="container" @click="handleTouchStart">
<view :class="['home', { show: !id && showHome }]"> <view :class="['home', { show: !id && showHome }]">
<left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" ref="leftBox" @changeTab="$emit('changeTab', $event)" @stopAudio="stopAudio" /> <left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" ref="leftBox" @changeTab="changeTab" @stopAudio="stopAudio" />
<view class="right-side"> <view class="right-side">
<template v-if="tabIndex == 0"> <template v-if="tabIndex == 0">
<view class="right-content"> <view class="right-content">
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
<update-box /> <update-box />
<slot name="content" /> <slot name="content" />
<web-view @message="handlerMessage" ref="webview" src="/hybrid/html/index.html"></web-view> <web-view @message="handlerMessage" ref="webview" src="/hybrid/html/index.html"></web-view>
<web-view ref="webview2" :src="studyUrl" v-if="studyUrl"></web-view>
<image v-if="showLeadPage" @click="showLeadPage = false" class="lead-page" src="../../assets/images/noviceGuide/lead-page.png" mode="scaleToFill" /> <image v-if="showLeadPage" @click="showLeadPage = false" class="lead-page" src="../../assets/images/noviceGuide/lead-page.png" mode="scaleToFill" />
</view> </view>
</template> </template>
...@@ -83,9 +84,10 @@ import Promotion from './components/Income/Promotion.vue' ...@@ -83,9 +84,10 @@ import Promotion from './components/Income/Promotion.vue'
import History from './components/Income/History.vue' import History from './components/Income/History.vue'
import merge from '@/mixin/record/merge.js' import merge from '@/mixin/record/merge.js'
import MessageDetail from './components/Message/MessageDetail.vue' import MessageDetail from './components/Message/MessageDetail.vue'
import StudyCenter from './components/StudyCenter.vue'
export default { export default {
mixins: [recorder, uploader, timeout, versionCheck, merge], mixins: [recorder, uploader, timeout, versionCheck, merge],
components: { RecordList, AIBazaar, CustomerFile, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail }, components: { RecordList, StudyCenter, AIBazaar, CustomerFile, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail },
props: { props: {
id: [String, Number], id: [String, Number],
finishDoneText: String, finishDoneText: String,
...@@ -96,6 +98,7 @@ export default { ...@@ -96,6 +98,7 @@ export default {
}, },
data() { data() {
return { return {
studyUrl: '',
transfer: '', transfer: '',
footerBox: true, footerBox: true,
showHome: true, showHome: true,
...@@ -130,6 +133,22 @@ export default { ...@@ -130,6 +133,22 @@ export default {
} }
}, },
methods: { methods: {
changeTab($event) {
this.$emit('changeTab', $event)
if ($event == 3) {
this.studyUrl = 'https://dj.glsx.com.cn/dj-carlife-web/#/login'
setTimeout(() => {
const currentWebview = this.$parent.$scope.$getAppWebview()
const wv = currentWebview.children()[1]
console.log(wv, 1111)
if (wv) {
wv.setStyle({ left: '8%', height: '100%', width: '92%' })
}
}, 100)
} else {
this.studyUrl = ''
}
},
handleFooter(val) { handleFooter(val) {
this.footerBox = val this.footerBox = val
}, },
......
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
2:'比亚迪', 2:'比亚迪',
3:'其他' 3:'其他'
}[channelType] }[channelType]
this.url = `${options.url}?business_type=${ bussinessType}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${options.domain}` this.url = `${options.url}?no_header=1&business_type=${ bussinessType}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${options.domain}`
// 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!