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
2bae2a86
Commit
2bae2a86
authored
Sep 24, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy
parents
72b3b155
e75b1e0f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
10 deletions
+17
-10
groupBuy.js
src/api/groupBuy.js
+10
-4
weapp.vue
src/components/weapp.vue
+1
-1
env.config.js
src/config/env.config.js
+2
-2
module.js
src/store/module.js
+2
-1
List.vue
src/views/orderList/components/List.vue
+2
-2
No files found.
src/api/groupBuy.js
View file @
2bae2a86
...
@@ -41,10 +41,16 @@ export default {
...
@@ -41,10 +41,16 @@ export default {
appId
:
'
wx2f44c7fe7b08458d
'
appId
:
'
wx2f44c7fe7b08458d
'
});
});
},
},
getScheme
(
data
)
{
getScheme
(
params
)
{
return
http
.
post
(
`
${
talosHost
}
/api/kdsp/ka/info/getShareMiniUrl`
,
data
,
{
return
http
.
get
(
`
${
talosHost
}
/api/kdsp/ka/info/getShareMiniUrl`
,
{
params
},
{
hideLoading
:
true
hideLoading
:
true
});
}
);
},
},
// 获取百人团订单
// 获取百人团订单
getGroupOrderList
(
params
)
{
getGroupOrderList
(
params
)
{
...
...
src/components/weapp.vue
View file @
2bae2a86
...
@@ -35,7 +35,7 @@ export default {
...
@@ -35,7 +35,7 @@ export default {
},
},
methods
:
{
methods
:
{
async
wxConfig
()
{
async
wxConfig
()
{
const
res
=
await
groupBuy
.
getWxConfig
();
const
[
res
]
=
await
groupBuy
.
getWxConfig
();
wx
.
config
({
wx
.
config
({
debug
:
false
,
debug
:
false
,
jsApiList
:
[
'
onMenuShareTimeline
'
,
'
onMenuShareAppMessage
'
],
// 必填,需要使用的JS接口列表
jsApiList
:
[
'
onMenuShareTimeline
'
,
'
onMenuShareAppMessage
'
],
// 必填,需要使用的JS接口列表
...
...
src/config/env.config.js
View file @
2bae2a86
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
const
protocol
=
window
.
location
.
protocol
;
const
protocol
=
window
.
location
.
protocol
;
const
qiniuHost
=
protocol
+
'
//kdspstatic.q-gp.com/
'
;
const
qiniuHost
=
protocol
+
'
//kdspstatic.q-gp.com/
'
;
const
shenceHost
=
'
https://bn.xyqb.com/sa?project=default
'
;
// 测试地址
const
shenceHost
=
'
https://bn.xyqb.com/sa?project=default
'
;
// 测试地址
const
talosHost
=
'
https://talos-test1.liangkebang.net
'
;
//
const talosHost = 'https://talos-test1.liangkebang.net';
const
faceHost
=
'
https://auth-test1.liangkebang.net
'
;
const
faceHost
=
'
https://auth-test1.liangkebang.net
'
;
const
kdspHost
=
'
https://kdsp-api-test1.liangkebang.net
'
;
const
kdspHost
=
'
https://kdsp-api-test1.liangkebang.net
'
;
const
localHost
=
'
https://group-buy-test1.liangkebang.net
'
;
// 测试环境页面地址
const
localHost
=
'
https://group-buy-test1.liangkebang.net
'
;
// 测试环境页面地址
...
@@ -15,7 +15,7 @@ const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页
...
@@ -15,7 +15,7 @@ const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页
// const talosHost = 'http://192.168.25.210:8080'; // 张超
// const talosHost = 'http://192.168.25.210:8080'; // 张超
// const talosHost = 'http://192.168.28.83:80'; // 董彪
// const talosHost = 'http://192.168.28.83:80'; // 董彪
// const talosHost = 'http://192.168.25.122:8098'; // 王永杰
// const talosHost = 'http://192.168.25.122:8098'; // 王永杰
//
const talosHost = protocol + '//192.168.28.41'; // 超人
const
talosHost
=
protocol
+
'
//192.168.28.41
'
;
// 超人
const
opapiHost
=
'
https://opapi-test1.liangkebang.net
'
;
const
opapiHost
=
'
https://opapi-test1.liangkebang.net
'
;
const
VCC_CHANNEL
=
''
;
const
VCC_CHANNEL
=
''
;
const
TERMINAL
=
'
H5
'
;
const
TERMINAL
=
'
H5
'
;
...
...
src/store/module.js
View file @
2bae2a86
...
@@ -103,7 +103,8 @@ const mutations = {
...
@@ -103,7 +103,8 @@ const mutations = {
// todo 跳转到小程序
// todo 跳转到小程序
let
getScheme
=
async
function
()
{
let
getScheme
=
async
function
()
{
const
[
res
]
=
await
groupBuy
.
getScheme
({
const
[
res
]
=
await
groupBuy
.
getScheme
({
miniUrl
:
`pages/webview/webview?url=
${
encodeURIComponent
(
window
.
location
.
href
)}
`
miniUrl
:
'
pages/webview/webview
'
,
params
:
window
.
location
.
href
});
});
const
url
=
res
;
const
url
=
res
;
window
.
location
.
href
=
url
;
// todo 需要验证
window
.
location
.
href
=
url
;
// todo 需要验证
...
...
src/views/orderList/components/List.vue
View file @
2bae2a86
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<div
class=
"Ol__foot-text"
>
{{ cardInfoMation[item.openGroupStatus].footTxt }}
</div>
<div
class=
"Ol__foot-text"
>
{{ cardInfoMation[item.openGroupStatus].footTxt }}
</div>
<div
class=
"Ol__foot-btns"
>
<div
class=
"Ol__foot-btns"
>
<cr-button
<cr-button
v-if=
"item.showInvite"
v-if=
"item.showInvite
&& item.payStatus === '1'
"
size=
"small"
size=
"small"
plain
plain
type=
"primary"
type=
"primary"
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</cr-button>
</cr-button>
<!-- 支付中按钮跳转支付页面 -->
<!-- 支付中按钮跳转支付页面 -->
<cr-button
<cr-button
v-if=
"item.openGroupStatus === 0"
v-if=
"item.openGroupStatus === 0
&& item.payStatus === '0'
"
size=
"small"
size=
"small"
plain
plain
type=
"primary"
type=
"primary"
...
...
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