提交 c2308bce authored 作者: lhh's avatar lhh

update

上级 ec6c33ad
...@@ -8,5 +8,8 @@ module.exports = { ...@@ -8,5 +8,8 @@ module.exports = {
'vue/comment-directive': 'off', 'vue/comment-directive': 'off',
'vue/multi-word-component-names': 'off', 'vue/multi-word-component-names': 'off',
'vue/no-mutating-props': 'off' // 暂时关闭 'vue/no-mutating-props': 'off' // 暂时关闭
},
globals: {
wx: true
} }
} }
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<title>金融数据合规管理证书在线学习及考试系统</title> <title>金融数据合规管理证书在线学习及考试系统</title>
<link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.9.3/skins/default/aliplayer-min.css" /> <link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.9.3/skins/default/aliplayer-min.css" />
<link rel="stylesheet" href="//at.alicdn.com/t/font_2173492_ctgt96uojqw.css" /> <link rel="stylesheet" href="//at.alicdn.com/t/font_2173492_ctgt96uojqw.css" />
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
</head> </head>
<body> <body>
<script> <script>
......
...@@ -69,25 +69,31 @@ export default { ...@@ -69,25 +69,31 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
z-index: 9999; z-index: 9999;
align-items: center;
height: 1.1rem;
.aside-item { .aside-item {
font-size: 0.28rem; font-size: 0.28rem;
font-weight: bold; // font-weight: bold;
color: #666666; color: #666666;
line-height: 1.1rem; line-height: 0.7rem;
position: relative; position: relative;
border-radius: .12rem;
padding: 0 .09rem;
&.active { &.active {
color: #eda023; // color: #eda023;
&::before { color: #fff;
content: ''; background-color: #A91F3B;
position: absolute; // &::before {
left: 50%; // content: '';
bottom: 0.3rem; // position: absolute;
transform: translateX(-50%); // left: 50%;
width: 80%; // bottom: 0.3rem;
height: 0.02rem; // transform: translateX(-50%);
background: #eda023; // width: 80%;
border-radius: 0.02rem; // height: 0.02rem;
} // background: #eda023;
// border-radius: 0.02rem;
// }
} }
} }
} }
......
...@@ -4,6 +4,7 @@ import router from './router' ...@@ -4,6 +4,7 @@ import router from './router'
import store from './store' import store from './store'
import modules from './modules' import modules from './modules'
import directives from '@/utils/directives' import directives from '@/utils/directives'
import useWXShare from '@/utils/wx'
// 公共css // 公共css
import './assets/css/base.css' import './assets/css/base.css'
...@@ -35,6 +36,8 @@ modules({ router, store }) ...@@ -35,6 +36,8 @@ modules({ router, store })
router.beforeEach(beforeEnter) router.beforeEach(beforeEnter)
useWXShare()
new Vue({ new Vue({
store, store,
router, router,
......
import httpRequest from './axios'
export default function useWXShare() {
httpRequest
.post('https://node-server.ezijing.com/share/getsignature', {
appId: 'wx451c01d40d090d7a',
url: location.href.split('#').pop()
})
.then(result => {
wx.config({
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: 'wx451c01d40d090d7a', // 必填,公众号的唯一标识
timestamp: result.timestamp, // 必填,生成签名的时间戳
nonceStr: result.noncestr, // 必填,生成签名的随机串
signature: result.token, // 必填,签名
jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData'] // 必填,需要使用的JS接口列表
})
wx.ready(() => {
wx.updateAppMessageShareData({
title: '金融数据合规管理', // 分享标题
desc: '为您数字化转型保驾护航', // 分享描述
link: location.href,
imgUrl: 'https://webapp-pub.ezijing.com/x-training-new/fd-logo.png'
})
wx.updateTimelineShareData({
title: '金融数据合规管理', // 分享标题
link: location.href,
imgUrl: 'https://webapp-pub.ezijing.com/x-training-new/fd-logo.png'
})
})
})
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论