Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a88a5725
authored
Jan 21, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
f5764291
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
12 deletions
src/config/env.development.js
src/config/env.production.js
src/config/env.staging.js
src/mixins/shareMixin.js
src/config/env.development.js
View file @
a88a572
...
...
@@ -8,7 +8,7 @@
*/
// 本地环境配置
module
.
exports
=
{
title
:
''
,
title
:
'
嘀加企微管家
'
,
request
:
{
// baseURL: 'http://scrm.test.glsx.com.cn/scrm-wechat' // 测试项目地址
baseURL
:
'http://192.168.1.5:8083/scrm-wechat'
// 测试项目地址
...
...
src/config/env.production.js
View file @
a88a572
module
.
exports
=
{
title
:
''
,
title
:
'
嘀加企微管家
'
,
request
:
{
// baseURL: 'http://ghwx.cgacar.com/scrm-wechat' // 生产
baseURL
:
'http://cim.chinagrandauto.com/scrm-wechat'
// 生产
...
...
src/config/env.staging.js
View file @
a88a572
module
.
exports
=
{
title
:
''
,
title
:
'
嘀加企微管家
'
,
request
:
{
baseURL
:
'http://xxxxx'
// 项目地址
},
...
...
src/mixins/shareMixin.js
View file @
a88a572
import
{
shopmallApi
,
activityApi
,
couponApi
,
boutiquecouponApi
,
equityApi
,
wxConfig
}
from
'@/api'
const
{
environment
}
=
window
.
$fetchConfig
const
{
shopmall_appid
}
=
window
.
$fetchConfig
export
default
{
data
()
{
return
{
...
...
@@ -44,7 +44,6 @@ export default {
let
{
tabIndex
,
entry
}
=
this
let
{
name
}
=
this
.
$route
let
{
userId
,
id
,
couponName
,
activityName
,
packageName
,
goodsName
,
goodsImage
,
discountType
}
=
i
let
shopmall_appId
=
environment
==
'beta'
?
'wx9f91c1ec493eb425'
:
'wxe10067a63c1856ac'
this
.
showLoading
()
// channelType 1 嘀加 2:广汇
if
(
name
===
'coupon'
)
{
/**卡券 */
...
...
@@ -52,7 +51,7 @@ export default {
let
imgUrl
=
'http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png'
if
(
tabIndex
==
0
)
{
if
(
entry
!=
'normal'
)
this
.
sendChatMessage
({
appid
:
channelType
==
1
?
shopmall_appId
:
'wxfe82b8d65d07808f'
,
appid
:
shopmall_appid
,
title
:
couponName
,
imgUrl
,
page
:
`/packageMine/pages/boutique/gift/gift.html?id=
${
id
}
&userId=
${
userId
}
&employName=
${
this
.
toUnicode
(
i
.
employeeName
)}
`
...
...
@@ -63,7 +62,7 @@ export default {
}
else
{
this
.
couponShare
(
i
,
url
=>
{
if
(
entry
!=
'normal'
)
this
.
sendChatMessage
({
appid
:
channelType
==
1
?
shopmall_appId
:
'wxfe82b8d65d07808f'
,
appid
:
shopmall_appid
,
title
:
`
${
couponName
}
(
${
window
.
$discountType
[
discountType
]}
券)`
,
imgUrl
,
page
:
`/packageMall/pages/coupon/coupon.html?couponId=
${
id
}
&merchantId=
${
merchantId
}
&issueName=
${
this
.
toUnicode
(
userName
)}
&issueDate=
${
new
Date
().
getTime
()}
`
...
...
@@ -75,7 +74,7 @@ export default {
if
(
tabIndex
==
0
)
{
let
imgUrl
=
'http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png'
if
(
entry
!=
'normal'
)
this
.
sendChatMessage
({
appid
:
channelType
==
1
?
shopmall_appId
:
'wxfe82b8d65d07808f'
,
appid
:
shopmall_appid
,
title
:
activityName
,
imgUrl
,
page
:
`/packageMall/pages/detail/detail.html?isActivity=true&id=
${
id
}
&merchantId=
${
merchantId
}
`
...
...
@@ -92,7 +91,7 @@ export default {
let
query
=
`merchantId=
${
merchantId
}
`
const
imgUrl
=
'https://img01.glsx.com.cn/weapp/resource/scrm-mobile/activity/miniprogram-cover.jpg'
if
(
entry
!=
'normal'
)
this
.
sendChatMessage
({
appid
:
channelType
==
1
?
shopmall_appId
:
'wxfe82b8d65d07808f'
,
appid
:
shopmall_appid
,
title
:
merchantName
,
imgUrl
,
page
:
`/
${
path
}
.html?
${
query
}
`
...
...
@@ -101,7 +100,7 @@ export default {
.
createMiniprogramUrlLink
({
path
,
query
:
encodeURIComponent
(
query
),
appId
:
channelType
==
1
?
shopmall_appId
:
'wxfe82b8d65d07808f'
appId
:
shopmall_appid
})
.
then
(
url
=>
{
this
.
shareAppMessage
(
url
,
''
,
merchantName
,
imgUrl
)
...
...
@@ -109,7 +108,7 @@ export default {
}
else
if
(
tabIndex
==
1
)
{
let
imgUrl
=
'http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png'
if
(
entry
!=
'normal'
)
this
.
sendChatMessage
({
appid
:
channelType
==
1
?
shopmall_appId
:
'wxfe82b8d65d07808f'
,
appid
:
shopmall_appid
,
title
:
packageName
,
imgUrl
,
page
:
`/packageEquity/pages/package/package.html?id=
${
id
}
&merchantId=
${
merchantId
}
`
...
...
@@ -119,7 +118,7 @@ export default {
})
}
else
{
if
(
entry
!=
'normal'
)
this
.
sendChatMessage
({
appid
:
channelType
==
1
?
shopmall_appId
:
'wxfe82b8d65d07808f'
,
appid
:
shopmall_appid
,
title
:
goodsName
,
imgUrl
:
goodsImage
,
page
:
`/packageMall/pages/detail/detail.html?id=
${
id
}
&merchantId=
${
merchantId
}
`
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment