Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
viitto
mallapp
Commits
c74e568c
Commit
c74e568c
authored
Jun 30, 2020
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整分享
parent
d4cb3a43
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
207 additions
and
113 deletions
+207
-113
index.vue
components/rubik/index.vue
+7
-1
h5.html
h5.html
+27
-0
manifest.json
manifest.json
+14
-0
pages.json
pages.json
+40
-41
goods.vue
pages/goods/goods.vue
+115
-68
index.vue
pages/index/index.vue
+4
-3
No files found.
components/rubik/index.vue
View file @
c74e568c
...
...
@@ -5,7 +5,7 @@
>
<view
class=
"ad-chi"
v-for=
"(item, index) in ad
.list
"
v-for=
"(item, index) in ad
temp
"
:key=
"index"
:style=
"[item.formatStyle]"
@
click=
"clickHandler(item.link[0].new_link_url)"
...
...
@@ -18,6 +18,11 @@
<
script
>
export
default
{
props
:
[
"ad"
],
data
()
{
return
{
adtemp
:[]
}
},
created
()
{
this
.
ad
.
list
.
forEach
((
x
)
=>
{
x
.
formatStyle
=
{
...
...
@@ -33,6 +38,7 @@ export default {
if
(
this
.
ad
.
height
==
"auto"
)
{
x
.
formatStyle
.
position
=
"unset"
;
}
this
.
adtemp
.
push
(
x
)
});
},
methods
:
{
...
...
h5.html
0 → 100644
View file @
c74e568c
<!DOCTYPE html>
<html
lang=
"zh-CN"
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
>
<title>
<
%=
htmlWebpackPlugin
.
options
.
title
%
>
</title>
<script>
document
.
addEventListener
(
'DOMContentLoaded'
,
function
()
{
document
.
documentElement
.
style
.
fontSize
=
document
.
documentElement
.
clientWidth
/
20
+
'px'
})
</script>
<link
rel=
"stylesheet"
href=
"<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css"
/>
</head>
<body>
<noscript>
<strong>
Please enable JavaScript to continue.
</strong>
</noscript>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
</html>
\ No newline at end of file
manifest.json
View file @
c74e568c
...
...
@@ -84,5 +84,19 @@
},
"uniStatistics"
:
{
"enable"
:
false
},
"h5"
:
{
"router"
:
{
"mode"
:
"history"
,
"base"
:
"/h5/"
},
"template"
:
"h5.html"
,
"sdkConfigs"
:
{
"maps"
:
{
"qqmap"
:
{
"key"
:
"ZAPBZ-SVBWR-OAMWM-WC45H-AKFU3-FIBP3"
}
}
}
}
}
pages.json
View file @
c74e568c
...
...
@@ -3,7 +3,8 @@
"^u-(.*)"
:
"uview-ui/components/u-$1/u-$1.vue"
},
"pages"
:
[{
"path"
:
"pages/index/index"
"path"
:
"pages/index/index"
,
"enablePullDownRefresh"
:
true
},
{
"path"
:
"pages/cart/cart"
...
...
@@ -29,7 +30,7 @@
{
"path"
:
"pages/webbox/webbox"
}
],
"subPackages"
:
[{
"root"
:
"pages/goods"
,
...
...
@@ -48,22 +49,22 @@
}
]
},
//
{
//
"root"
:
"pages/member"
,
//
"pages"
:
[{
//
"path"
:
"index/index"
//
},
//
{
//
"path"
:
"privilege"
//
}
//
]
//
},
//
{
//
"root"
:
"pages/member"
,
//
"pages"
:
[{
//
"path"
:
"index/index"
//
},
//
{
//
"path"
:
"privilege"
//
}
//
]
//
},
{
"root"
:
"pages/balance"
,
"pages"
:
[
//
{
//
"path"
:
"recharge"
//
},
//
{
//
"path"
:
"recharge"
//
},
{
"path"
:
"balance"
},
...
...
@@ -74,20 +75,18 @@
}
]
},
{
"root"
:
"pages/live"
,
"plugins"
:
{
"live-player-plugin"
:
{
"version"
:
"1.0.18"
,
"provider"
:
"wx2b03c6e691cd7370"
}
},
"pages"
:
[
{
"path"
:
"index"
}
]
},
{
"root"
:
"pages/live"
,
"plugins"
:
{
"live-player-plugin"
:
{
"version"
:
"1.0.18"
,
"provider"
:
"wx2b03c6e691cd7370"
}
},
"pages"
:
[{
"path"
:
"index"
}]
},
{
"root"
:
"pages/user-center"
,
"pages"
:
[{
...
...
@@ -109,12 +108,12 @@
{
"path"
:
"cash/cash"
},
{
"path"
:
"level/level"
},
{
"path"
:
"examine"
}
{
"path"
:
"level/level"
},
{
"path"
:
"examine"
}
]
},
...
...
@@ -210,15 +209,15 @@
]
}
],
//
"rules"
:
[{
//
"action"
:
"allow"
,
//
"page"
:
"*"
//
}],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
""
,
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
"backgroundColor"
:
"#F8F8F8"
"backgroundColor"
:
"#F8F8F8"
,
"app-plus"
:
{
//#ifdef
H
5
"titleNView"
:
false
//#endif
}
}
}
\ No newline at end of file
pages/goods/goods.vue
View file @
c74e568c
This diff is collapsed.
Click to expand it.
pages/index/index.vue
View file @
c74e568c
<
template
>
<view
class=
"content"
:style=
"
{ 'padding-bottom': showtabs==ture? '100rpx':0 }">
<view
class=
"content"
v-if=
"myPageData.home_pages"
:style=
"
{ 'padding-bottom': showtabs==ture? '100rpx':0 }">
<u-tabs
v-if=
"myPageData.home_pages.navs.length > 1"
v-if=
"myPageData.home_pages
&& myPageData.home_pages
.navs.length > 1"
name=
"name"
:list=
"myPageData.home_pages.navs"
:is-scroll=
"true"
...
...
@@ -173,9 +173,10 @@ export default {
uni
.
showNavigationBarLoading
();
},
onShareAppMessage
(
res
)
{
let
uid
=
uni
.
getStorageSync
(
'mall_UserInfo'
)
?
uni
.
getStorageSync
(
'mall_UserInfo'
).
UserId
:
0
return
{
title
:
this
.
setting
.
share_title
?
this
.
setting
.
share_title
:
uni
.
getStorageSync
(
"basedata"
).
mall
.
name
,
path
:
"/pages/index/index?user_id="
+
u
ni
.
getStorageSync
(
'mall_UserInfo'
)
?
uni
.
getStorageSync
(
'mall_UserInfo'
).
UserId
:
0
,
path
:
"/pages/index/index?user_id="
+
u
id
,
imageUrl
:
this
.
setting
.
share_pic
?
this
.
setting
.
share_pic
:
''
,
};
},
...
...
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