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
a95d9fd0
Commit
a95d9fd0
authored
Sep 24, 2021
by
beisir
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
91ad93f9
51abda43
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
19 deletions
+23
-19
env.config.js
src/config/env.config.js
+5
-5
smallPic.vue
src/views/goodsDetail/smallPic.vue
+1
-3
payResult.vue
src/views/pay/payResult.vue
+17
-11
No files found.
src/config/env.config.js
View file @
a95d9fd0
...
@@ -7,16 +7,16 @@
...
@@ -7,16 +7,16 @@
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-
vcc3
.liangkebang.net
'
;
const
talosHost
=
'
https://talos-
test1
.liangkebang.net
'
;
const
faceHost
=
'
https://auth-
vcc3
.liangkebang.net
'
;
const
faceHost
=
'
https://auth-
test1
.liangkebang.net
'
;
const
kdspHost
=
'
https://kdsp-api-
vcc3
.liangkebang.net
'
;
const
kdspHost
=
'
https://kdsp-api-
test1
.liangkebang.net
'
;
const
localHost
=
'
https://group-buy-
vcc3
.liangkebang.net
'
;
// 测试环境页面地址
const
localHost
=
'
https://group-buy-
test1
.liangkebang.net
'
;
// 测试环境页面地址
// const talosHost = 'http://192.168.29.89:8098'; // 唐峰
// const talosHost = 'http://192.168.29.89:8098'; // 唐峰
// 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-
vcc3
.liangkebang.net
'
;
const
opapiHost
=
'
https://opapi-
test1
.liangkebang.net
'
;
const
VCC_CHANNEL
=
''
;
const
VCC_CHANNEL
=
''
;
const
TERMINAL
=
'
H5
'
;
const
TERMINAL
=
'
H5
'
;
const
VERSION
=
'
7.9.00
'
;
const
VERSION
=
'
7.9.00
'
;
...
...
src/views/goodsDetail/smallPic.vue
View file @
a95d9fd0
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<group-desc-info
<group-desc-info
:group-info=
"detailInfo.groupBuyInfo ||
{}"
:group-info=
"detailInfo.groupBuyInfo ||
{}"
:timestemp="groupTimestemp"
:timestemp="groupTimestemp"
:show-button-group="
showShareButton
"
:show-button-group="
true
"
@changeButtonVisible="changeButtonVisible"
@changeButtonVisible="changeButtonVisible"
/>
/>
<successInfo
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
<successInfo
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
...
@@ -119,7 +119,6 @@ export default {
...
@@ -119,7 +119,6 @@ export default {
showInfo
:
false
,
showInfo
:
false
,
inProgress
:
false
,
// 活动是否已经开始
inProgress
:
false
,
// 活动是否已经开始
countDownText
:
''
,
countDownText
:
''
,
showShareButton
:
false
,
// 是否显示分享按钮
stockPercentage
:
0
,
stockPercentage
:
0
,
// 以下是原有的data
// 以下是原有的data
detailParam
:
{
detailParam
:
{
...
@@ -188,7 +187,6 @@ export default {
...
@@ -188,7 +187,6 @@ export default {
}
}
console
.
log
(
this
.
stockPercentage
);
console
.
log
(
this
.
stockPercentage
);
}
}
this
.
showShareButton
=
res
.
groupBuyInfo
.
groupBuyStatus
==
1
?
true
:
false
;
this
.
imgList
=
res
.
imageUrl
||
[];
this
.
imgList
=
res
.
imageUrl
||
[];
this
.
detailInfo
=
res
;
this
.
detailInfo
=
res
;
this
.
setStartStatus
(
res
);
this
.
setStartStatus
(
res
);
...
...
src/views/pay/payResult.vue
View file @
a95d9fd0
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
/>
/>
</div>
</div>
</div>
</div>
<
Goods
/
>
<
!--
<Goods
/>
--
>
<sharePic
ref=
"sharePic"
:share-pic-data=
"sharePicData"
@
outputPicUrl=
"outputPicUrl"
/>
<sharePic
ref=
"sharePic"
:share-pic-data=
"sharePicData"
@
outputPicUrl=
"outputPicUrl"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -72,13 +72,13 @@ import { goUrlExtends } from './extends';
...
@@ -72,13 +72,13 @@ import { goUrlExtends } from './extends';
import
CouponCard
from
'
./components/CouponCard.vue
'
;
import
CouponCard
from
'
./components/CouponCard.vue
'
;
import
{
getCouponList
}
from
'
@/api/pay.api
'
;
import
{
getCouponList
}
from
'
@/api/pay.api
'
;
import
groupBuyApi
from
'
@/api/groupBuy
'
;
import
groupBuyApi
from
'
@/api/groupBuy
'
;
import
Goods
from
'
@/components/RecoGoods/RecoGoods.vue
'
;
//
import Goods from '@/components/RecoGoods/RecoGoods.vue';
import
{
isApp
,
isWxMp
}
from
'
@/service/validation.service
'
;
import
{
isApp
,
isWxMp
}
from
'
@/service/validation.service
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
sharePic
from
'
@/components/sharePic
'
;
import
sharePic
from
'
@/components/sharePic
'
;
export
default
{
export
default
{
components
:
{
components
:
{
Goods
,
//
Goods,
CouponCard
,
CouponCard
,
sharePic
sharePic
},
},
...
@@ -94,14 +94,15 @@ export default {
...
@@ -94,14 +94,15 @@ export default {
payStatusName
:
''
,
payStatusName
:
''
,
payMethodName
:
''
,
payMethodName
:
''
,
payType
:
''
,
payType
:
''
,
sharePicData
:
{}
sharePicData
:
{},
picUrl
:
''
};
};
},
},
created
()
{
created
()
{
const
{
orderNo
,
reason
,
finalAm
t
,
freeAmount
,
payType
}
=
this
.
$route
.
query
;
const
{
orderNo
,
reason
,
amoun
t
,
freeAmount
,
payType
}
=
this
.
$route
.
query
;
const
{
success
}
=
this
.
$route
.
meta
;
const
{
success
}
=
this
.
$route
.
meta
;
this
.
payType
=
payType
||
''
;
this
.
payType
=
payType
||
''
;
this
.
money
=
finalAm
t
||
''
;
this
.
money
=
amoun
t
||
''
;
this
.
orderNo
=
orderNo
;
this
.
orderNo
=
orderNo
;
this
.
reason
=
reason
||
''
;
this
.
reason
=
reason
||
''
;
this
.
isSuccess
=
success
||
false
;
this
.
isSuccess
=
success
||
false
;
...
@@ -111,9 +112,14 @@ export default {
...
@@ -111,9 +112,14 @@ export default {
this
.
getCouponList
();
this
.
getCouponList
();
},
},
mounted
()
{
mounted
()
{
EventBus
.
$on
(
'
shareClickItem
'
,
({
ev
})
=>
{
const
_this
=
this
;
EventBus
.
$on
(
'
shareClickItem
'
,
async
function
({
ev
,
nativeBridge
})
{
if
(
ev
===
'
pic
'
)
{
if
(
ev
===
'
pic
'
)
{
// 处理图片url
// 处理图片url
nativeBridge
.
openNewUrl
({
newUrl
:
`/pages/goodshare/index?url=
${
encodeURIComponent
(
JSON
.
stringify
(
_this
.
picUrl
))}
`
});
_this
.
$store
.
dispatch
(
'
goods_share_close
'
);
}
}
});
});
},
},
...
@@ -123,12 +129,12 @@ export default {
...
@@ -123,12 +129,12 @@ export default {
methods
:
{
methods
:
{
outputPicUrl
(
res
)
{
outputPicUrl
(
res
)
{
console
.
log
(
res
);
console
.
log
(
res
);
this
.
$store
.
dispatch
(
'
goods_share_open
'
,
{
res
});
this
.
picUrl
=
res
;
this
.
$store
.
dispatch
(
'
goods_share_open
'
);
console
.
log
(
this
.
picUrl
);
},
},
async
setShareData
()
{
async
setShareData
()
{
const
[
res
]
=
await
groupBuyApi
.
getGroupShareInfo
({
const
[
res
]
=
await
groupBuyApi
.
getGroupShareInfo
(
this
.
orderNo
);
orderNo
:
this
.
orderNo
});
this
.
sharePicData
=
res
;
this
.
sharePicData
=
res
;
this
.
$refs
.
sharePic
.
createAndUploadPic
();
this
.
$refs
.
sharePic
.
createAndUploadPic
();
},
},
...
...
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