提交 d0233b98 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 修复分享设置失败的问题;修复海报分享样式错误的问题;

上级 593eeb13
...@@ -438,6 +438,7 @@ function handleRemoveText(data: TypeText) { ...@@ -438,6 +438,7 @@ function handleRemoveText(data: TypeText) {
} }
.share-controls-title-item { .share-controls-title-item {
margin: 0 15px; margin: 0 15px;
flex: 0 0 228px;
width: 228px; width: 228px;
height: 60px; height: 60px;
display: flex; display: flex;
...@@ -452,6 +453,7 @@ function handleRemoveText(data: TypeText) { ...@@ -452,6 +453,7 @@ function handleRemoveText(data: TypeText) {
.share-controls-text-item { .share-controls-text-item {
position: relative; position: relative;
margin: 0 15px; margin: 0 15px;
flex: 0 0 228px;
width: 228px; width: 228px;
height: 60px; height: 60px;
display: flex; display: flex;
...@@ -483,6 +485,7 @@ function handleRemoveText(data: TypeText) { ...@@ -483,6 +485,7 @@ function handleRemoveText(data: TypeText) {
.share-controls-avatar-item { .share-controls-avatar-item {
position: relative; position: relative;
margin: 0 15px; margin: 0 15px;
flex: 0 0 60px;
width: 60px; width: 60px;
height: 60px; height: 60px;
border: 3px solid #ccc; border: 3px solid #ccc;
......
import httpRequest from './axios' import httpRequest from './axios'
export default function useWXShare() { export default function useWXShare() {
httpRequest httpRequest.post('https://node-server.ezijing.com/share/getsignature', { appId: 'wx451c01d40d090d7a', url: location.href.split('#').pop() }).then(result => {
.post('https://node-server.ezijing.com/share/getsignature', {
data: { appId: 'wx451c01d40d090d7a', url: location.href.split('#').pop() }
})
.then(result => {
wx.config({ wx.config({
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: 'wx451c01d40d090d7a', // 必填,公众号的唯一标识 appId: 'wx451c01d40d090d7a', // 必填,公众号的唯一标识
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论