Commit c5243f6b by xinla

服务包修改优化

1 parent 8de16a2c
<script setup>
import { reactive } from 'vue'
let $datas = reactive({
dialogVisible: true,
let $data = reactive({
dialogVisible: localStorage.serveDialogVisible !== 'false',
activeIndex: 0,
list: [
{
......@@ -10,85 +10,95 @@ let $datas = reactive({
priceNow: '299',
priceOrigin: '499',
desc: '专属团队 极速响应',
img: new URL('../asstes/vip.png', import.meta.url).href,
img: new URL('./vip.png', import.meta.url).href,
},
{
title: '开源尊享服务包',
priceNow: '899',
priceOrigin: '1299',
desc: '快速部署 服务升级',
img: new URL('../asstes/svip.png', import.meta.url).href,
img: new URL('./svip.png', import.meta.url).href,
},
],
})
function close() {
localStorage.serveDialogVisible = $data.dialogVisible = false
}
defineExpose({
$data,
})
</script>
<template>
<div class="mask" v-if="$datas.dialogVisible" @click.self="$datas.dialogVisible = false">
<div class="serveDialog cc">
<div class="top">
<div class="top-desc">更轻便、更灵活、更专业</div>
<div class="top-title">LinkWeChat开源服务包正式上架</div>
<div class="top-promise">
“为了更好地建设开源社区,我们郑重承诺,所有服务包收入均用于LinkWeChat开源社区建设,包括但不限于升级服务器、内容宣发、社区活动等。”
</div>
<div class="top-author">——LinkWeCHat项目组</div>
</div>
<div class="main">
<div
v-for="(item, index) in $datas.list"
:key="index"
:class="['card cp', index == 1 && 'svip', index == $datas.activeIndex && 'active']"
@click="$datas.activeIndex = index">
<div class="cardTitle">{{ item.title }}</div>
<div class="cardPrice mt5">
<span class="priceUnit">¥</span>
<span class="priceNow">{{ item.priceNow }}</span>
<span class="priceTime">/永久</span>
<span class="priceOrigin ml5">¥{{ item.priceOrigin }}</span>
<transition name="el-fade-in-linear">
<div class="mask" v-show="$data.dialogVisible" @click.self="close">
<div class="serveDialog cc">
<div class="top">
<div class="top-desc">更轻便、更灵活、更专业</div>
<div class="top-title">LinkWeChat开源服务包正式上架</div>
<div class="top-promise">
“为了更好地建设开源社区,我们郑重承诺,所有服务包收入均用于LinkWeChat开源社区建设,包括但不限于升级服务器、内容宣发、社区活动等。”
</div>
<div class="cardDesc mt5">{{ item.desc }}</div>
<div class="top-author">——LinkWeCHat项目组</div>
</div>
<div class="main">
<div
v-for="(item, index) in $data.list"
:key="index"
:class="['card cp', index == 1 && 'svip', index == $data.activeIndex && 'active']"
@click="$data.activeIndex = index">
<div class="cardTitle">{{ item.title }}</div>
<div class="cardPrice mt5">
<span class="priceUnit">¥</span>
<span class="priceNow">{{ item.priceNow }}</span>
<span class="priceTime">/永久</span>
<span class="priceOrigin ml5">¥{{ item.priceOrigin }}</span>
</div>
<div class="cardDesc mt5">{{ item.desc }}</div>
</div>
<template v-for="(item, index) in $datas.list" :key="index">
<img v-show="index == $datas.activeIndex" class="mainImg" :src="item.img" alt="" />
</template>
<template v-for="(item, index) in $data.list" :key="index">
<img v-show="index == $data.activeIndex" class="mainImg" :src="item.img" alt="" />
</template>
<div class="bottom" ref="bottom" :style="{ '--color': $datas.activeIndex == 0 ? '#07c160' : '#7e5d25' }">
<img class="qrcode" :src="lwConfig.QRCODE_CUSTOMER_SERVICE" alt="" />
<div>
<div class="bottom" ref="bottom" :style="{ '--color': $data.activeIndex == 0 ? '#07c160' : '#7e5d25' }">
<img class="qrcode" :src="lwConfig.QRCODE_CUSTOMER_SERVICE" alt="" />
<div>
<span class="desc">限时优惠 永久服务</span>
<span class="know">
购买须知
<el-popover placement="top-start" title="温馨提示:" trigger="hover">
<div>
<p>1、LinkWeChat开源服务包权益仅限本人/本企业使用;</p>
<p>2、因项目开源的特殊性,服务包一经购买,不支持退款;</p>
<p>3、若已经购买开源超级服务包,仅需补充差价即可升级为开源尊享服务包;</p>
<p>
4、若购买服务包用户/企业以任何不正当形式(包括但不限于剽窃、恶意诋毁等)扰乱LinkWeChat社区的正常运营,LinkWeChat有权收回其所有权益;
</p>
<p>
5、LinkWeChat根据项目实际情况,在法律允许的范围内,有权对本服务权益进行调整,相关调整会公布在LinkWeChat开源社区;
</p>
<p>
6、如因不可抗力因素(包括但不限于重大自然灾害事件、重大的社会非正常事件等)LinkWeChat有权决定暂定或终止相关服务权益。
</p>
</div>
<template #reference>
<el-icon-InfoFilled class="el-icon-InfoFilled"></el-icon-InfoFilled>
</template>
</el-popover>
</span>
<div>
<span class="desc">限时优惠 永久服务</span>
<span class="know">
购买须知
<el-popover placement="top-start" title="温馨提示:" trigger="hover">
<div>
<p>1、LinkWeChat开源服务包权益仅限本人/本企业使用;</p>
<p>2、因项目开源的特殊性,服务包一经购买,不支持退款;</p>
<p>3、若已经购买开源超级服务包,仅需补充差价即可升级为开源尊享服务包;</p>
<p>
4、若购买服务包用户/企业以任何不正当形式(包括但不限于剽窃、恶意诋毁等)扰乱LinkWeChat社区的正常运营,LinkWeChat有权收回其所有权益;
</p>
<p>
5、LinkWeChat根据项目实际情况,在法律允许的范围内,有权对本服务权益进行调整,相关调整会公布在LinkWeChat开源社区;
</p>
<p>
6、如因不可抗力因素(包括但不限于重大自然灾害事件、重大的社会非正常事件等)LinkWeChat有权决定暂定或终止相关服务权益。
</p>
</div>
<template #reference>
<el-icon-InfoFilled class="el-icon-InfoFilled"></el-icon-InfoFilled>
</template>
</el-popover>
</span>
</div>
<div class="update">扫码立即升级</div>
<div class="more">还有更多权益即将上线...</div>
</div>
<div class="update">扫码立即升级</div>
<div class="more">还有更多权益即将上线...</div>
</div>
</div>
</div>
</div>
</div>
</transition>
</template>
<style lang="scss" scoped>
......@@ -98,7 +108,7 @@ let $datas = reactive({
.serveDialog {
width: 800px;
height: 668px;
background: url(../asstes/serveDialogBg.png) 100%;
background: url(./serveDialogBg.png) 100%;
.top {
width: 455px;
......
<!-- 服务包弹窗 -->
<template>
<div class="sidebar-container">
<el-scrollbar wrap-class="scrollbar-wrapper">
......@@ -16,6 +17,15 @@
</el-menu>
</el-scrollbar>
<div class="serve-card" @click="$refs.serveDialog.$data.dialogVisible = true">
LinkWeChat
<br />
官方服务包
<br />
正式上线啦!
</div>
<ServeDialog ref="serveDialog" />
<div class="card">
<el-tooltip content="文档手册" effect="dark" placement="top">
<div class="card-item">
......@@ -73,9 +83,10 @@ import { mapState } from 'pinia'
import stores from '@/stores'
import SidebarItem from './SidebarItem'
import ServeDialog from './ServeDialog'
export default {
components: { SidebarItem },
components: { SidebarItem, ServeDialog },
computed: {
// ...mapState(['settings']),
...mapState(stores, ['permission_routes', 'sidebarRouters', 'sidebar']),
......@@ -95,6 +106,11 @@ export default {
return false
},
},
// mounted() {
// this.$nextTick(() => {
// console.log(this.$refs.serveDialog)
// })
// },
methods: {
goto(url) {
window.open(url)
......@@ -250,6 +266,17 @@ export default {
}
}
.serve-card {
margin: 0 24px 24px;
padding: 15px;
cursor: pointer;
font-weight: 500;
line-height: 20px;
text-align: center;
color: var(--color);
background: var(--color-light-9);
border-radius: var(--border-radius);
}
.card {
// color: var(--font-white, #fff);
// padding: 20px;
......
......@@ -164,8 +164,6 @@
</div>
<Dynamics v-else />
</el-dialog>
<ServeDialog />
</div>
</template>
<script>
......@@ -174,14 +172,12 @@ import * as api from '@/api/index'
// import { getCustomerServiceQrUrl } from '@/api/login'
import { CountTo } from 'vue3-count-to'
import bgSvg from './asstes/bg.svg?raw'
import ServeDialog from './components/ServeDialog'
export default {
name: 'Index',
components: {
CountTo,
Dynamics: defineAsyncComponent(() => import('./components/dynamics')),
TabContent: defineAsyncComponent(() => import('./components/TabContent')),
ServeDialog,
},
data() {
return {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!