Commit 0a5050f0 by 匡雅琴

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-scene into v1.0.0

2 parents ad05c6aa e3d3ce1b
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
justify-content: space-between; justify-content: space-between;
background: url('../assets/images/top_bg.png') no-repeat center bottom; background: url('../assets/images/top_bg.png') no-repeat center bottom;
background-size: 100% auto; background-size: 100% auto;
height: 9.44vh; //height: 9.44vh;
height: 102px;
.logo, .logo,
.right_box { .right_box {
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
text-align: center; text-align: center;
.title { .title {
position: relative;
flex: 2; flex: 2;
font-family: SourceHanSansCN-Bold; font-family: SourceHanSansCN-Bold;
font-weight: 700; font-weight: 700;
...@@ -45,6 +47,26 @@ ...@@ -45,6 +47,26 @@
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
} }
.title:before,
.title:after{
position: absolute;
display: block;
content:"";
width: 64px;
height: 21px;
top:50%;
transform: translateY(-50%);
}
.title:before{
background:url('../assets/images/title_left.png') no-repeat;
background-size:64px auto;
left:-110px;
}
.title:after{
background:url('../assets/images/title_right.png') no-repeat;
background-size:64px auto;
right:-110px;
}
} }
.right_box { .right_box {
......

1.37 MB | W: | H:

5.02 MB | W: | H:

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

230 KB | W: | H:

119 KB | W: | H:

src/assets/images/big-module-marketing-img.png
src/assets/images/big-module-marketing-img.png
src/assets/images/big-module-marketing-img.png
src/assets/images/big-module-marketing-img.png
  • 2-up
  • Swipe
  • Onion skin

4.09 KB | W: | H:

6.28 KB | W: | H:

src/assets/images/car/car_5.1.png
src/assets/images/car/car_5.1.png
src/assets/images/car/car_5.1.png
src/assets/images/car/car_5.1.png
  • 2-up
  • Swipe
  • Onion skin

3.97 KB | W: | H:

5.55 KB | W: | H:

src/assets/images/car/car_5.4.png
src/assets/images/car/car_5.4.png
src/assets/images/car/car_5.4.png
src/assets/images/car/car_5.4.png
  • 2-up
  • Swipe
  • Onion skin

206 KB | W: | H:

708 KB | W: | H:

src/assets/images/car/road.png
src/assets/images/car/road.png
src/assets/images/car/road.png
src/assets/images/car/road.png
  • 2-up
  • Swipe
  • Onion skin

164 KB | W: | H:

145 KB | W: | H:

src/assets/images/top_bg.png
src/assets/images/top_bg.png
src/assets/images/top_bg.png
src/assets/images/top_bg.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-26 20:59:19 * @LastEditTime: 2024-01-29 10:14:25
--> -->
<template> <template>
<div class="introduce-container"> <div class="introduce-container">
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-carousel class="swiper-box" :autoplay="false"> <el-carousel class="swiper-box" ref="slideCarousel" :interval="10000">
<el-carousel-item v-for="(item, index) in Introduce.booksList" :key="'sw' + index"> <el-carousel-item v-for="(item, index) in Introduce.booksList" :key="'sw' + index">
<div class="swiper-body"> <div class="swiper-body">
<div class="books-item" v-for="(i, idx) in 6" :key="'book' + idx"> <div class="books-item" v-for="(i, idx) in 6" :key="'book' + idx">
...@@ -53,7 +53,54 @@ export default { ...@@ -53,7 +53,54 @@ export default {
Introduce: detail.Introduce Introduce: detail.Introduce
} }
}, },
created() {} mounted() {
//调用方法
this.slideBanner()
},
methods: {
// 滑动切换
slideBanner() {
//选中的轮播图
var box = document.querySelector('.swiper-box')
var startPoint = 0
var stopPoint = 0
//重置坐标
var resetPoint = function () {
startPoint = 0
stopPoint = 0
}
//手指按下
box.addEventListener('touchstart', function (e) {
//手指点击位置的X坐标
startPoint = e.changedTouches[0].pageX
})
//手指滑动
box.addEventListener('touchmove', function (e) {
//手指滑动后终点位置X的坐标
stopPoint = e.changedTouches[0].pageX
})
//当手指抬起的时候,判断图片滚动离左右的距离
let that = this
box.addEventListener('touchend', function (e) {
console.log('1:' + startPoint)
console.log('2:' + stopPoint)
if (stopPoint == 0 || startPoint - stopPoint == 0) {
resetPoint()
return
}
if (startPoint - stopPoint > 0) {
resetPoint()
that.$refs.slideCarousel.next()
return
}
if (startPoint - stopPoint < 0) {
resetPoint()
that.$refs.slideCarousel.prev()
return
}
})
}
}
} }
</script> </script>
...@@ -119,7 +166,9 @@ export default { ...@@ -119,7 +166,9 @@ export default {
color: #6578ff; color: #6578ff;
line-height: 36px; line-height: 36px;
margin-top: 10px; margin-top: 10px;
font-weight: 700;
span { span {
font-weight: 500;
font-size: 16px; font-size: 16px;
color: #0ffadf; color: #0ffadf;
margin-left: -10px; margin-left: -10px;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-26 16:22:14 * @LastEditTime: 2024-01-29 10:00:57
--> -->
<template> <template>
<div class="architecture-container"> <div class="architecture-container">
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.architecture-container { .architecture-container {
position: absolute; position: absolute;
left: 0px; left: 80px;
top: 167px; top: 167px;
width: 792px; width: 792px;
height: 747px; height: 747px;
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-26 21:11:21 * @LastEditTime: 2024-01-29 09:38:09
--> -->
<template> <template>
<div class="page_layout"> <div class="page_layout">
...@@ -46,39 +46,6 @@ export default { ...@@ -46,39 +46,6 @@ export default {
ViewEntireLifecycleOfCar, ViewEntireLifecycleOfCar,
EnergyCar EnergyCar
}, },
computed: {
tabName() {
let sname
switch (this.activeName) {
case 'm_1.0':
sname = 'ViewSolar'
break
case 'm_1.1':
sname = 'ViewBoutique'
break
case 'm_1.3':
sname = 'ViewCrowdfunding'
break
case 'm_2.1':
sname = 'ViewEquity'
break
case 'operational':
sname = 'ViewOperational'
break
case 'interior':
sname = 'ViewLifeSceneData'
break
case 'business':
sname = 'ViewSolar'
break
case 'lifecycleOfCar':
sname = 'viewEntireLifecycleOfCar'
// default:
// sname = 'ViewSolar'
}
return sname
}
},
data() { data() {
return { return {
activeName: '', activeName: '',
...@@ -105,6 +72,7 @@ export default { ...@@ -105,6 +72,7 @@ export default {
prevClick() { prevClick() {
let index = this.current let index = this.current
if (index == 0) { if (index == 0) {
this.current = 3;
return false return false
} }
this.current = index - 1 this.current = index - 1
...@@ -114,6 +82,7 @@ export default { ...@@ -114,6 +82,7 @@ export default {
nextClick() { nextClick() {
let index = this.current let index = this.current
if (index == 3) { if (index == 3) {
this.current = 1;
return false return false
} }
this.current = index + 1 this.current = index + 1
...@@ -138,9 +107,11 @@ html { ...@@ -138,9 +107,11 @@ html {
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
flex-direction: column; flex-direction: column;
background: url(../../assets/images/bg.png) 100% 100%; background: url(../../assets/images/bg.png);
background-size: 100% 100%;
.head { .head {
flex-shrink: 0; flex-shrink: 0;
height: 102px;
} }
.content { .content {
flex: 1; flex: 1;
......
<!--
* @Description: 右下
* @Author: huyue
* @Date: 2024-01-26 21:05:56
* @LastEditors: huyue
* @LastEditTime: 2024-01-29 14:15:07
-->
<template> <template>
<div class="big-module-marketing-box"> <div class="big-module-marketing-box">
<BoxTitle :title="'基于大模型生成营销活动话术'" :textAlign="'center'" class="top-title" :fontSize="20"></BoxTitle> <BoxTitle :title="'基于大模型生成营销活动话术'" :textAlign="'center'" class="top-title" :fontSize="20"></BoxTitle>
<div>基于大模型的能力,快速生成个性化的活动标题、</div> <div>基于大模型的能力,快速生成个性化的活动标题、</div>
<div>营销文案和活动海报,提升门店营销效率。</div> <div>营销文案和活动海报,提升门店营销效率。</div>
<img src="../../../assets/images/big-module-marketing-img.png" alt="" /> <div v-show="isLoading" class="loadding">
<div class="wrap">
<div class="round"></div>
<div class="round"></div>
<div class="round"></div>
<div class="round"></div>
<div class="round"></div>
<div class="round"></div>
<div class="round"></div>
</div>
</div>
<img :src="require(`../../../assets/images/${hasAvtivity ? 'activity-matekting' : 'big-module-marketing-img'}.png`)" alt="" />
<img v-show="showQ" class="ask-question" src="../../../assets/images/ask-question.png" alt="" />
<p v-show="showR" class="ai-reply"></p>
</div> </div>
</template> </template>
<script> <script>
let t = null
export default { export default {
name: 'BigModuleMarketing', name: 'BigModuleMarketing',
data() { data() {
return {} return {
showQ: false,
showR: false,
pNode: null,
isLoading: false,
hasAvtivity: false
}
}, },
mounted() {}, mounted() {
this.pNode = document.querySelector('p')
this.send()
t = setInterval(this.send, 7000)
},
methods: {} methods: {
send() {
if (!this.showQ) {
this.showText()
} else {
this.showQ = false
this.showR = false
this.isLoading = false
this.hasAvtivity = false
this.pNode.innerHTML = ''
setTimeout(() => {
this.showText()
}, 1000)
}
},
showText() {
this.showQ = true
setTimeout(() => {
this.showR = true
this.addText()
setTimeout(() => {
this.isLoading = true
setTimeout(() => {
this.isLoading = false
this.hasAvtivity = true
}, 3000)
}, 1000)
}, 1000)
},
addText() {
const str = '我们为您生成以下方案,请查看“营销模型解析”'
let i = 0
const timer = setInterval(() => {
if (i < str.length - 1) {
this.pNode.innerHTML = this.pNode.innerHTML + str[i]
i = i + 1
} else {
clearInterval(timer)
}
}, 17)
}
},
destroyed() {
clearInterval(t)
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.big-module-marketing-box { .big-module-marketing-box {
position: relative;
box-sizing: border-box; box-sizing: border-box;
width: 31.67vw; width: 31.67vw;
height: 40.37vh; height: 40.37vh;
...@@ -41,5 +117,126 @@ export default { ...@@ -41,5 +117,126 @@ export default {
height: 27.5vh; height: 27.5vh;
margin-top: 1.48vh; margin-top: 1.48vh;
} }
.send {
display: inline-block;
position: absolute;
right: 9vw;
top: 22vh;
}
.ask-question {
position: absolute;
right: 9vw;
width: 160px;
height: 22px;
top: 13.5vh;
}
.ai-reply {
position: absolute;
// width: 155px;
// height: 22px;
left: 8vw;
top: 18vh;
}
.activity-form {
position: absolute;
width: 293px;
height: 133px;
bottom: 1.33vh;
left: 7.7vw;
}
}
p {
margin: 0;
background-color: #eee;
box-sizing: border-box;
padding: 3px 5px;
font-size: 8px;
color: #333;
border-radius: 3px;
}
.loadding {
position: absolute;
left: 2dvw;
}
.wrap {
margin: 120px 0 0 240px;
width: 75px;
height: 75px;
position: relative;
/* transform-origin: 设置的效果搭配边框看,效果更加明显 */
/* border: 1px solid #e9e9e9; */
}
.round {
position: absolute;
width: 13px;
height: 13px;
border-radius: 50%;
background-color: rgb(241, 141, 157);
/* 加上动画效果 */
animation: circleRound 2.8s ease infinite;
/* 设置旋转中心,搭配.wrap的border看 */
transform-origin: 50% 75px;
}
/* 注意z-index层级关系,依次递减 */
.round:nth-child(1) {
z-index: 7;
}
/* 注意动画延后animation-delay播放,依次递增 */
/* 至于小圆球则越来越小 */
.round:nth-child(2) {
height: 12px;
width: 12px;
background-color: rgb(199, 136, 185);
animation-delay: 0.2s;
z-index: 6;
}
.round:nth-child(3) {
height: 11px;
width: 11px;
background-color: rgb(153, 69, 223);
animation-delay: 0.4s;
z-index: 5;
}
.round:nth-child(4) {
height: 10px;
width: 10px;
background-color: rgb(69, 141, 223);
animation-delay: 0.6s;
z-index: 4;
}
.round:nth-child(5) {
height: 9px;
width: 9px;
background-color: rgb(69, 223, 203);
animation-delay: 0.8s;
z-index: 3;
}
.round:nth-child(6) {
height: 8px;
width: 8px;
background-color: rgb(100, 223, 69);
animation-delay: 1s;
z-index: 2;
}
.round:nth-child(7) {
height: 7px;
width: 7px;
background-color: rgb(223, 200, 69);
animation-delay: 1.2s;
z-index: 1;
}
@keyframes circleRound {
to {
transform: rotate(1turn);
}
} }
</style> </style>
...@@ -108,6 +108,9 @@ export default { ...@@ -108,6 +108,9 @@ export default {
}, },
methods: { methods: {
toFixNum(val) { toFixNum(val) {
if(!val){
return '0.0%'
}
return (val * 100).toFixed(1) + '%' return (val * 100).toFixed(1) + '%'
}, },
getMerchantData() { getMerchantData() {
......
...@@ -52,6 +52,9 @@ export default { ...@@ -52,6 +52,9 @@ export default {
}, },
methods: { methods: {
toFixRatio(val) { toFixRatio(val) {
if(!val){
return '0.00%'
}
return (val * 100).toFixed(2) + '%' return (val * 100).toFixed(2) + '%'
}, },
toFixNum(val) { toFixNum(val) {
......
...@@ -46,7 +46,10 @@ export default { ...@@ -46,7 +46,10 @@ export default {
}, },
methods: { methods: {
toFixNum(val) { toFixNum(val) {
return (val * 100).toFixed(1) + '%' if(!val){
return '0.0%'
}
return (Number(val) * 100).toFixed(1) + '%'
}, },
getEnterpriseOverview() { getEnterpriseOverview() {
this.api.operational.getEnterpriseOverview().then(res => { this.api.operational.getEnterpriseOverview().then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!