Commit 85cd77aa authored by 郭志伟's avatar 郭志伟

Merge branch 'fix/goods' into 'master'

fix: 二维码问题修复

See merge request !153
parents 2b6d457a 83c9691c
...@@ -60,7 +60,7 @@ const shareList = { ...@@ -60,7 +60,7 @@ const shareList = {
imgUrl: currentOrigin + "/shareImg/goods-03.png" imgUrl: currentOrigin + "/shareImg/goods-03.png"
}, },
lidetail: { lidetail: {
title: "芒果保险】华贵大麦2020定期寿险", title: "芒果保险】华贵大麦2020定期寿险",
desc: desc:
"「定期寿险」家庭主要收入贡献者的必备保险,最高可赔350万。免体检,责任免除仅3条,1~6类职业均可保,健康告知仅3条。", "「定期寿险」家庭主要收入贡献者的必备保险,最高可赔350万。免体检,责任免除仅3条,1~6类职业均可保,健康告知仅3条。",
imgUrl: currentOrigin + "/shareImg/goods-04.png" imgUrl: currentOrigin + "/shareImg/goods-04.png"
......
src/assets/images/home/qrcode.jpg

7.66 KB | W: | H:

src/assets/images/home/qrcode.jpg

51.9 KB | W: | H:

src/assets/images/home/qrcode.jpg
src/assets/images/home/qrcode.jpg
src/assets/images/home/qrcode.jpg
src/assets/images/home/qrcode.jpg
  • 2-up
  • Swipe
  • Onion skin
/*
* @Description: weixin-js-sdk mixins
* @LastEditors: gzw
* @Date: 20120-08-30 18:40:11
* @LastEditTime: 2020-08-30 19:28:02
*/
import cfg from "@/config/index";
import { getwxAuth } from "@/api/user";
import wx from "weixin-js-sdk";
export default {
data() {
return {
wxAuthInfo: {}
};
},
methods: {
async getWxShareInfo(
title = "wwww",
desc = "aaaa",
link = window.location.href,
imgUrl = "https://mangguo-mg.liangkebang.net/sharetest.png"
) {
const res = await getwxAuth({
appId: cfg.wxAppId,
url: window.location.href
});
const { appId, timestamp, nonceStr, signature } = res;
wx.config({
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId, // 必填,公众号的唯一标识,填自己的!
timestamp, // 必填,生成签名的时间戳,刚才接口拿到的数据
nonceStr, // 必填,生成签名的随机串
signature, // 必填,签名,见附录1
jsApiList: ["onMenuShareTimeline", "onMenuShareAppMessage"]
});
wx.ready(function() {
//分享到朋友圈
wx.onMenuShareTimeline({
title, // 分享时的标题
link, // 分享时的链接
imgUrl, // 分享时的图标
success: function() {
console.log("分享成功");
},
cancel: function() {
console.log("取消分享");
}
});
//分享给朋友
wx.onMenuShareAppMessage({
title,
desc,
link,
imgUrl,
type: "link",
dataUrl: "",
success: function() {
console.log("分享成功");
},
cancel: function() {
console.log("取消分享");
}
});
});
}
}
};
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
border-radius: @border-radius-md; border-radius: @border-radius-md;
box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.09); box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.09);
padding: 4px 6px 9px; padding: 4px 6px 9px;
@{deep} img {
transform: scale(1.8);
}
p { p {
text-align: center; text-align: center;
font-size: @font-size-11; font-size: @font-size-11;
......
...@@ -17,7 +17,6 @@ import AdvisorRecDialog from "./modules/AdvisorRecDialog"; ...@@ -17,7 +17,6 @@ import AdvisorRecDialog from "./modules/AdvisorRecDialog";
import { getCulOrder } from "@/api/consultant"; import { getCulOrder } from "@/api/consultant";
import localStorage from "@/service/localStorage"; import localStorage from "@/service/localStorage";
import { isXyqb } from "@/service/validation"; import { isXyqb } from "@/service/validation";
import weixinJsSdk from "@/mixins/weixinJsSdk.mixin";
import { mapActions, mapState } from "vuex"; import { mapActions, mapState } from "vuex";
export default { export default {
...@@ -29,7 +28,6 @@ export default { ...@@ -29,7 +28,6 @@ export default {
liDetail, liDetail,
AdvisorRecDialog AdvisorRecDialog
}, },
mixins: [weixinJsSdk],
data() { data() {
return { return {
detailType: "", detailType: "",
...@@ -52,9 +50,6 @@ export default { ...@@ -52,9 +50,6 @@ 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;
......
<template> <template>
<modal v-model="show" :closeable="true" cancel-btn="" confirm-btn="同意并继续" @confirm="go"> <modal v-model="show" :closeable="true" cancel-btn="" confirm-btn="同意并继续" @confirm="go">
<h4 slot="title" class="pay-title">立即拥有<br />{{ title }}</h4> <h4 slot="title" class="pay-title">立即拥有<br />{{ title }}</h4>
<compactCellGroup class="pay-det" :cell-data="payData" :text-bold="true" /> <compactCellGroup class="pay-det" :cell-data="payInfo" :text-bold="true" />
<slot> <slot>
<div class="pay-tip">*不满意可随时退保</div> <div class="pay-tip">*不满意可随时退保</div>
<div class="pay-protocol"> <div class="pay-protocol">
...@@ -70,6 +70,14 @@ export default { ...@@ -70,6 +70,14 @@ export default {
this.$emit(DIALOG_CHANGE_EVENT, val); this.$emit(DIALOG_CHANGE_EVENT, val);
} }
}, },
computed: {
payInfo() {
if (this.payData[1] && this.payData[1].value) {
return this.payData;
}
return [this.payData[0]];
}
},
methods: { methods: {
openIframePupop(index) { openIframePupop(index) {
this.$emit(READ_PROTOCOL_EVENT, index); this.$emit(READ_PROTOCOL_EVENT, index);
......
...@@ -117,6 +117,10 @@ ...@@ -117,6 +117,10 @@
padding: 18px 0 16px; padding: 18px 0 16px;
width: 140px; width: 140px;
height: 140px; height: 140px;
overflow: hidden;
@{deep} img {
transform: scale(2.2);
}
} }
.Aa-container-focus { .Aa-container-focus {
......
...@@ -290,6 +290,10 @@ export default { ...@@ -290,6 +290,10 @@ export default {
margin: 8px 0 0 4px; margin: 8px 0 0 4px;
width: 70px; width: 70px;
height: 70px; height: 70px;
overflow: hidden;
@{deep} img {
transform: scale(2.2);
}
} }
.Aw-panel-account { .Aw-panel-account {
......
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