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
d8995347
Commit
d8995347
authored
Oct 02, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:测试线上webapp
parent
76925acb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
19 deletions
+17
-19
App.vue
src/App.vue
+2
-4
groupShare.vue
src/components/groupShare.vue
+8
-9
weapp.vue
src/components/weapp.vue
+2
-2
index.less
src/views/goodsList/index.less
+3
-2
index.vue
src/views/goodsList/index.vue
+2
-2
No files found.
src/App.vue
View file @
d8995347
...
@@ -13,9 +13,7 @@
...
@@ -13,9 +13,7 @@
</div>
</div>
<net-error
/>
<net-error
/>
<goods-share
ref=
"gdShare"
/>
<goods-share
ref=
"gdShare"
/>
<div
v-if=
"groupLoading"
class=
"group-list-loading"
>
<div
v-if=
"groupLoading"
class=
"group-list-loading"
/>
<!--
<img
src=
"@/assets/images/group-list.png"
/>
-->
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -112,7 +110,7 @@ export default {
...
@@ -112,7 +110,7 @@ export default {
left: 0;
left: 0;
width: 100%;
width: 100%;
height: 100%;
height: 100%;
background: url(
~@/assets/images
/group-list.png) no-repeat center;
background: url(
https://img.lkbang.net/activity
/group-list.png) no-repeat center;
background-size: 100%;
background-size: 100%;
z-index: 10;
z-index: 10;
}
}
...
...
src/components/groupShare.vue
View file @
d8995347
...
@@ -163,15 +163,14 @@ export default {
...
@@ -163,15 +163,14 @@ export default {
if
(
isWxMp
)
{
if
(
isWxMp
)
{
return
`/pages/groupbuy/webview?url=
${
encodeURIComponent
(
JSON
.
stringify
(
linkPath
))}
`
;
return
`/pages/groupbuy/webview?url=
${
encodeURIComponent
(
JSON
.
stringify
(
linkPath
))}
`
;
}
}
if
(
isApp
)
{
// // 本地测试时走的逻辑
const
linkPrve
=
`https://mall.q-gp.com/common/launch?wxapp=gh_e1d790d67513&jumpUrl=
${
encodeURIComponent
(
// if (isApp) {
'
pages/groupbuy/webview
'
// const linkPrve = `https://mall.q-gp.com/common/launch?wxapp=gh_e1d790d67513&jumpUrl=${encodeURIComponent(
)}
&terminal=1`
;
// 'pages/groupbuy/webview'
const
linkParams
=
encodeURIComponent
(
JSON
.
stringify
({
url
:
linkPath
}));
// )}&terminal=1`;
// alert(linkPrve);
// const linkParams = encodeURIComponent(JSON.stringify({ url: linkPath }));
// alert(`${linkPrve}&extraInfo=${linkParams}`);
// return `${linkPrve}&extraInfo=${linkParams}`;
return
`
${
linkPrve
}
&extraInfo=
${
linkParams
}
`
;
// }
}
return
linkPath
;
return
linkPath
;
},
},
shareOpenWechat
()
{
shareOpenWechat
()
{
...
...
src/components/weapp.vue
View file @
d8995347
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
羊小咩原始ID:gh_a976018bfb9e -->
羊小咩原始ID:gh_a976018bfb9e -->
<wx-open-launch-weapp
<wx-open-launch-weapp
class=
"launch-btn"
class=
"launch-btn"
username=
"gh_
a976018bfb9e
"
username=
"gh_
e1d790d67513
"
:path=
"newJumpUrl"
:path=
"newJumpUrl"
@
launch=
"launch"
@
launch=
"launch"
@
error=
"launchError"
@
error=
"launchError"
>
>
<script
type=
"text/wxtag-template"
>
<script
type=
"text/wxtag-template"
>
<style>
.btn
{height:
96px
}
</style>
<style>
.btn
{height:
100%
}
</style>
<div
class=
"btn"
>
打开小程序
</div>
<div
class=
"btn"
>
打开小程序
</div>
</script>
</script>
</wx-open-launch-weapp>
</wx-open-launch-weapp>
...
...
src/views/goodsList/index.less
View file @
d8995347
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
&-puzzle {
&-puzzle {
position: absolute;
position: absolute;
right: 0;
right: 0;
top:
10px
;
top:
0
;
z-index: 1;
z-index: 1;
// border-radius: 16px 0 0 16px;
// border-radius: 16px 0 0 16px;
// color: #e92615;
// color: #e92615;
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
position: fixed;
position: fixed;
right: 12px;
right: 12px;
bottom: 60px;
bottom: 60px;
z-index: 1;
// z-index: 1;
z-index: 100000;
background: #fff url(~@/assets/images/share-icon.png) no-repeat center;
background: #fff url(~@/assets/images/share-icon.png) no-repeat center;
background-size: 100%;
background-size: 100%;
border-radius: 50%;
border-radius: 50%;
...
...
src/views/goodsList/index.vue
View file @
d8995347
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!-- 配置活动背景色 -->
<!-- 配置活动背景色 -->
<div
class=
"group"
:style=
"
{ backgroundColor: goodsTemp.bgcolor }">
<div
class=
"group"
:style=
"
{ backgroundColor: goodsTemp.bgcolor }">
<!--
<cr-skeleton
v-if=
"showLoading"
class=
"loading"
/>
-->
<!--
<cr-skeleton
v-if=
"showLoading"
class=
"loading"
/>
-->
<div
v-if=
"!isShowShare"
class=
"group-puzzle"
@
click=
"goToMyorder"
>
我的拼团
</div>
<div
class=
"group-puzzle"
@
click=
"goToMyorder"
>
我的拼团
</div>
<!-- 配置头部动态信息 start -->
<!-- 配置头部动态信息 start -->
<div
class=
"group-top"
>
<div
class=
"group-top"
>
<!-- 动态活动背景图 -->
<!-- 动态活动背景图 -->
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</div>
</div>
<!-- 下方列表展示信息 end -->
<!-- 下方列表展示信息 end -->
</div>
</div>
<div
v-if=
"!isShowShare"
class=
"group-share"
@
click=
"openShareEvent"
>
</div>
<div
class=
"group-share"
@
click=
"openShareEvent"
>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
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