Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-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
group-buy-ui
Commits
75c7a749
Commit
75c7a749
authored
Sep 28, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:上线weapp
parent
b88907fc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
groupShare.vue
src/components/groupShare.vue
+2
-1
weapp.vue
src/components/weapp.vue
+3
-1
prod.config.js
src/config/prod.config.js
+1
-1
No files found.
src/components/groupShare.vue
View file @
75c7a749
...
...
@@ -223,7 +223,8 @@ export default {
const
data
=
{
event
:
'
showShareView
'
,
data
:
{
platform
:
[
'
weChat
'
,
'
timeLine
'
,
'
QQ
'
,
'
CopyLink
'
,
'
GeneratePoster
'
],
//依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接
// , 'CopyLink'
platform
:
[
'
weChat
'
,
'
timeLine
'
,
'
QQ
'
,
'
GeneratePoster
'
],
//依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接
shareDic
:
{
title
,
desc
,
...
...
src/components/weapp.vue
View file @
75c7a749
...
...
@@ -17,6 +17,7 @@
<
script
>
import
wx
from
'
weixin-js-sdk
'
;
import
groupBuy
from
'
@/api/groupBuy
'
;
import
config
from
'
@/config
'
;
export
default
{
name
:
'
Weapp
'
,
props
:
{
...
...
@@ -37,7 +38,8 @@ export default {
},
methods
:
{
async
wxConfig
()
{
const
[
res
]
=
await
groupBuy
.
getWxConfig
();
const
route
=
this
.
$route
;
const
[
res
]
=
await
groupBuy
.
getWxConfig
(
`
${
config
.
localHost
}${
route
.
fullPath
}
`
);
wx
.
config
({
debug
:
false
,
jsApiList
:
[
'
onMenuShareTimeline
'
,
'
onMenuShareAppMessage
'
],
// 必填,需要使用的JS接口列表
...
...
src/config/prod.config.js
View file @
75c7a749
...
...
@@ -8,7 +8,7 @@ const TERMINAL = 'H5';
const
VERSION
=
'
7.9.00
'
;
const
kdspHost
=
'
https://kdsp-api.q-gp.com
'
;
const
opapiHost
=
`
${
protocol
}
//opapi.xyqb.com`
;
// const localHost = 'https://mall.q-gp.com
/group-buying
'; // 正式环境页面地址
// const localHost = 'https://mall.q-gp.com'; // 正式环境页面地址
const
localHost
=
'
https://group-buy-test1.liangkebang.net
'
;
// 正式环境页面地址
const
shenceUrl
=
protocol
+
'
//bn.xyqb.com/sa?project=production
'
;
const
openLink
=
'
https://mall.q-gp.com
'
;
...
...
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