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
d159845c
Commit
d159845c
authored
Aug 30, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/goods' into 'master'
微信分享联调 See merge request
!142
parents
2a112d91
db8cba5a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
86 additions
and
3 deletions
+86
-3
user.js
src/api/user.js
+4
-0
Tabbar.vue
src/components/Tabbar.vue
+1
-1
weixinJsSdk.mixin.js
src/mixins/weixinJsSdk.mixin.js
+68
-0
wxSdk.js
src/service/wxSdk.js
+0
-0
index.vue
src/views/Goods/Detail/index.vue
+5
-0
SecurityContent.vue
src/views/Policy/Detail/modules/SecurityContent.vue
+4
-1
PolicyItem.vue
src/views/Policy/modules/PolicyItem.vue
+4
-1
No files found.
src/api/user.js
View file @
d159845c
...
@@ -16,6 +16,10 @@ export const authByxyqb = param => {
...
@@ -16,6 +16,10 @@ export const authByxyqb = param => {
export
const
getwxOpenId
=
param
=>
{
export
const
getwxOpenId
=
param
=>
{
return
req
.
post
(
"
wechat/code
"
,
param
);
return
req
.
post
(
"
wechat/code
"
,
param
);
};
};
// 微信用户获取分享信息
export
const
getwxAuth
=
param
=>
{
return
req
.
post
(
"
third/wxJsapi/getJsapiSign
"
,
param
);
};
// 获取短信验证码
// 获取短信验证码
export
const
getCaptchaSms
=
param
=>
{
export
const
getCaptchaSms
=
param
=>
{
...
...
src/components/Tabbar.vue
View file @
d159845c
...
@@ -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
0 → 100644
View file @
d159845c
/*
* @Description: IOS12input弹框bug修复 mixins
修复讨论: https://developers.weixin.qq.com/community/develop/doc/00044ae90742f8c82fb78fcae56800
* @LastEditors: gzw
* @Date: 2019-03-14 18:40:11
* @LastEditTime: 2020-08-30 18:17:40
*/
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://activitystatic.lkbang.net/mongo/images/activity%402x.272880e4.png
"
)
{
const
res
=
await
getwxAuth
({
appId
:
cfg
.
wxAppId
,
url
:
window
.
location
.
href
});
const
{
appId
,
timestamp
,
nonceStr
,
signature
}
=
res
;
wx
.
config
({
debug
:
true
,
// 开启调试模式,调用的所有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
:
""
,
dataUrl
:
""
,
success
:
function
()
{
console
.
log
(
"
分享成功
"
);
},
cancel
:
function
()
{
console
.
log
(
"
取消分享
"
);
}
});
});
}
}
};
src/service/wxSdk.js
0 → 100644
View file @
d159845c
src/views/Goods/Detail/index.vue
View file @
d159845c
...
@@ -17,6 +17,7 @@ import AdvisorRecDialog from "./modules/AdvisorRecDialog";
...
@@ -17,6 +17,7 @@ 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
{
...
@@ -28,6 +29,7 @@ export default {
...
@@ -28,6 +29,7 @@ export default {
liDetail
,
liDetail
,
AdvisorRecDialog
AdvisorRecDialog
},
},
mixins
:
[
weixinJsSdk
],
data
()
{
data
()
{
return
{
return
{
detailType
:
""
,
detailType
:
""
,
...
@@ -50,6 +52,9 @@ export default {
...
@@ -50,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 @
d159845c
...
@@ -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
:
{
...
...
src/views/Policy/modules/PolicyItem.vue
View file @
d159845c
...
@@ -136,7 +136,10 @@ export default {
...
@@ -136,7 +136,10 @@ export default {
query
:
{
id
:
item
.
id
,
type
:
item
.
itype
}
query
:
{
id
:
item
.
id
,
type
:
item
.
itype
}
});
});
}
else
if
(
text
===
"
电子保单
"
)
{
}
else
if
(
text
===
"
电子保单
"
)
{
this
.
$router
.
push
({
path
:
"
/policy/virtual-detail
"
,
query
:
{
policySecId
:
item
.
policySecId
}
});
this
.
$router
.
push
({
path
:
"
/policy/virtual-detail
"
,
query
:
{
policySecId
:
item
.
policySecId
}
});
}
else
if
(
text
===
"
去支付
"
)
{
}
else
if
(
text
===
"
去支付
"
)
{
this
.
orderInfo
=
{
this
.
orderInfo
=
{
payOrderNo
:
item
?.
payInfo
?.
payOrderNo
,
payOrderNo
:
item
?.
payInfo
?.
payOrderNo
,
...
...
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