Commit db8cba5a authored by 郭志伟's avatar 郭志伟

feat: 微信分享调整

parent 91ef9bb8
...@@ -18,7 +18,7 @@ export const getwxOpenId = param => { ...@@ -18,7 +18,7 @@ export const getwxOpenId = param => {
}; };
// 微信用户获取分享信息 // 微信用户获取分享信息
export const getwxAuth = param => { export const getwxAuth = param => {
return req.post("wechat/code", param); return req.post("third/wxJsapi/getJsapiSign", param);
}; };
// 获取短信验证码 // 获取短信验证码
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
> >
<cr-tabbar-item v-for="(item, index) in tabbarData" :key="item.name"> <cr-tabbar-item v-for="(item, index) in tabbarData" :key="item.name">
<div class="mongo-tabbar-item"> <div class="mongo-tabbar-item">
<img class="mongo-tabbar-item-svg" :src="index === activeIdx ? item.activeImg : item.img"> <img class="mongo-tabbar-item-svg" :src="index === activeIdx ? item.activeImg : item.img" />
<span class="mongo-tabbar-item-name">{{ item.name }}</span> <span class="mongo-tabbar-item-name">{{ item.name }}</span>
</div> </div>
</cr-tabbar-item> </cr-tabbar-item>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
修复讨论: https://developers.weixin.qq.com/community/develop/doc/00044ae90742f8c82fb78fcae56800 修复讨论: https://developers.weixin.qq.com/community/develop/doc/00044ae90742f8c82fb78fcae56800
* @LastEditors: gzw * @LastEditors: gzw
* @Date: 2019-03-14 18:40:11 * @Date: 2019-03-14 18:40:11
* @LastEditTime: 2020-08-30 18:11:30 * @LastEditTime: 2020-08-30 18:17:40
*/ */
import cfg from "@/config/index"; import cfg from "@/config/index";
import { getwxAuth } from "@/api/user"; import { getwxAuth } from "@/api/user";
...@@ -15,12 +15,12 @@ export default { ...@@ -15,12 +15,12 @@ export default {
}; };
}, },
methods: { methods: {
async getWxShareInfo({ async getWxShareInfo(
title = "wwww", title = "wwww",
desc = "aaaa", desc = "aaaa",
link = window.location.href, link = window.location.href,
imgUrl = "https://activitystatic.lkbang.net/mongo/images/activity%402x.272880e4.png" imgUrl = "https://activitystatic.lkbang.net/mongo/images/activity%402x.272880e4.png"
}) { ) {
const res = await getwxAuth({ const res = await getwxAuth({
appId: cfg.wxAppId, appId: cfg.wxAppId,
url: window.location.href url: window.location.href
......
...@@ -52,6 +52,9 @@ export default { ...@@ -52,6 +52,9 @@ export default {
next(); next();
} }
}, },
created() {
this.getWxShareInfo();
},
mounted() { mounted() {
this.getOrderInfo(); this.getOrderInfo();
this.detailType = this.$route.query.type; this.detailType = this.$route.query.type;
......
...@@ -70,7 +70,10 @@ export default { ...@@ -70,7 +70,10 @@ export default {
}, },
methods: { methods: {
showPdf() { showPdf() {
this.$router.push({ path: "/policy/virtual-detail", query: { policySecId: this.data.policySecId } }); this.$router.push({
path: "/policy/virtual-detail",
query: { policySecId: this.data.policySecId }
});
} }
}, },
computed: { computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment