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 @@
<view class="left-side">
<view class="user-box">
<view class="user-info flex" @click="jumpPersonCenter">
<view :class="['user-avatar', 'sprite-icon', 'icon-avatar', tabIndex == 99 ? 'user-active': '']"></view>
<view class="user-name">{{ userInfo.name }}
<view v-if="hasPerson" class="sprite-icon icon-arrow-next"></view>
<view :class="['user-avatar', 'sprite-icon', 'icon-avatar', tabIndex == 99 ? 'user-active' : '']"></view>
<view class="user-name">
{{ userInfo.name }}
<view v-if="hasPerson" class="sprite-icon icon-arrow-next"></view>
</view>
</view>
</view>
</view>
<view :class="['left-tabs', { three: tabs.length == 3 }]">
<template v-for="(i, index) in tabs">
<view :class="['tab-item', { tabActive: tabIndex == index }]" :key="index" @click="changeIndex(index)">
......@@ -16,6 +17,7 @@
</view>
{{ i.label }}
<view class="dot" v-if="i.icon == 'record' && perRecordNumber"></view>
<view class="tip-box" v-if="i.icon == 'study'">待办事项:3</view>
</view>
</template>
</view>
......@@ -30,7 +32,7 @@
</view>
<!-- 客服弹框 -->
<!-- <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')" />
</view>
......@@ -66,6 +68,11 @@ export default {
icon: "record",
name: 'RecordList'
},
{
label: "学习中心",
icon: "study",
name: 'StudyCenter'
},
],
messageData: {
classCountList: [],
......@@ -174,7 +181,9 @@ export default {
position: relative;
width: toRpx(240);
flex-shrink: 0;
background-image: url('@/assets/images/home/left-bg.png');
background-size: 100% 100%;
z-index: 9999;
.left-tabs {
width: 100%;
height: toRpx(1080);
......@@ -192,24 +201,24 @@ export default {
box-sizing: border-box;
padding-left: toRpx(32);
&::after {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-image: url('@/assets/images/home/left.webp');
background-size: 100% 100%;
content: '';
z-index: -1;
}
// &::after {
// position: absolute;
// left: 0;
// top: 0;
// width: 100%;
// height: 100%;
// background-image: url('@/assets/images/home/left.webp');
// background-size: 100% 100%;
// content: '';
// z-index: -1;
// }
.tab-item {
width: toRpx(112);
font-size: toRpx(28);
width: toRpx(104);
font-size: toRpx(26);
color: #8a98b5;
text-align: center;
padding-bottom: toRpx(46);
padding-bottom: toRpx(25);
position: relative;
.dot {
......@@ -223,13 +232,28 @@ export default {
}
.icon-box {
width: toRpx(112);
height: toRpx(112);
width: toRpx(104);
height: toRpx(104);
display: flex;
justify-content: center;
align-items: center;
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 {
......@@ -325,7 +349,7 @@ export default {
justify-content: center;
width: toRpx(16);
height: toRpx(16);
background-color: #F24724;
background-color: #f24724;
right: 50%;
top: 0;
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>
<view class="container" @click="handleTouchStart">
<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">
<template v-if="tabIndex == 0">
<view class="right-content">
......@@ -58,6 +58,7 @@
<update-box />
<slot name="content" />
<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" />
</view>
</template>
......@@ -83,9 +84,10 @@ import Promotion from './components/Income/Promotion.vue'
import History from './components/Income/History.vue'
import merge from '@/mixin/record/merge.js'
import MessageDetail from './components/Message/MessageDetail.vue'
import StudyCenter from './components/StudyCenter.vue'
export default {
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: {
id: [String, Number],
finishDoneText: String,
......@@ -96,6 +98,7 @@ export default {
},
data() {
return {
studyUrl: '',
transfer: '',
footerBox: true,
showHome: true,
......@@ -130,6 +133,22 @@ export default {
}
},
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) {
this.footerBox = val
},
......
......@@ -37,7 +37,7 @@ export default {
2:'比亚迪',
3:'其他'
}[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'
setTimeout(() => {
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!