Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mongo-ui
Commits
db8cba5a
Commit
db8cba5a
authored
Aug 30, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 微信分享调整
parent
91ef9bb8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
6 deletions
+12
-6
user.js
src/api/user.js
+1
-1
Tabbar.vue
src/components/Tabbar.vue
+1
-1
weixinJsSdk.mixin.js
src/mixins/weixinJsSdk.mixin.js
+3
-3
index.vue
src/views/Goods/Detail/index.vue
+3
-0
SecurityContent.vue
src/views/Policy/Detail/modules/SecurityContent.vue
+4
-1
No files found.
src/api/user.js
View file @
db8cba5a
...
@@ -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
);
};
};
// 获取短信验证码
// 获取短信验证码
...
...
src/components/Tabbar.vue
View file @
db8cba5a
...
@@ -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>
...
...
src/mixins/weixinJsSdk.mixin.js
View file @
db8cba5a
...
@@ -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:1
1:3
0
* @LastEditTime: 2020-08-30 18:1
7:4
0
*/
*/
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
...
...
src/views/Goods/Detail/index.vue
View file @
db8cba5a
...
@@ -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
;
...
...
src/views/Policy/Detail/modules/SecurityContent.vue
View file @
db8cba5a
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment