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

feat: 微信分享调整

parent 91ef9bb8
......@@ -18,7 +18,7 @@ export const getwxOpenId = param => {
};
// 微信用户获取分享信息
export const getwxAuth = param => {
return req.post("wechat/code", param);
return req.post("third/wxJsapi/getJsapiSign", param);
};
// 获取短信验证码
......
......@@ -8,7 +8,7 @@
>
<cr-tabbar-item v-for="(item, index) in tabbarData" :key="item.name">
<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>
</div>
</cr-tabbar-item>
......
......@@ -3,7 +3,7 @@
修复讨论: https://developers.weixin.qq.com/community/develop/doc/00044ae90742f8c82fb78fcae56800
* @LastEditors: gzw
* @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 { getwxAuth } from "@/api/user";
......@@ -15,12 +15,12 @@ export default {
};
},
methods: {
async getWxShareInfo({
async getWxShareInfo(
title = "wwww",
desc = "aaaa",
link = window.location.href,
imgUrl = "https://activitystatic.lkbang.net/mongo/images/activity%402x.272880e4.png"
}) {
) {
const res = await getwxAuth({
appId: cfg.wxAppId,
url: window.location.href
......
......@@ -52,6 +52,9 @@ export default {
next();
}
},
created() {
this.getWxShareInfo();
},
mounted() {
this.getOrderInfo();
this.detailType = this.$route.query.type;
......
......@@ -70,7 +70,10 @@ export default {
},
methods: {
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: {
......
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