Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
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
郑秀明
shop_mobile_uni
Commits
1779663e
Commit
1779663e
authored
Mar 11, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fi
parent
9fdb6781
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
188 additions
and
173 deletions
+188
-173
App.vue
App.vue
+5
-1
manifest.json
manifest.json
+1
-1
package-lock.json
package-lock.json
+164
-164
category.vue
pages/category/category.vue
+4
-0
detail.vue
pages/detail/detail.vue
+4
-0
goodslist.vue
pages/home/components/goodslist.vue
+3
-1
hotrecommd.vue
pages/home/components/hotrecommd.vue
+2
-2
searchbar.vue
pages/home/components/searchbar.vue
+0
-3
index.vue
pages/index/index.vue
+5
-1
No files found.
App.vue
View file @
1779663e
...
@@ -15,4 +15,8 @@
...
@@ -15,4 +15,8 @@
<
style
>
<
style
>
@import
'./static/iconfont.css'
;
@import
'./static/iconfont.css'
;
.uni-input-input
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
</
style
>
</
style
>
manifest.json
View file @
1779663e
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
"disableHostCheck"
:
true
,
"disableHostCheck"
:
true
,
"proxy"
:
{
"proxy"
:
{
"/uni/api"
:
{
"/uni/api"
:
{
"target"
:
"http://
39.96.85.45:9093
/"
,
"target"
:
"http://
192.168.50.133:6564
/"
,
"changeOrigin"
:
true
,
"changeOrigin"
:
true
,
"secure"
:
false
,
"secure"
:
false
,
"pathRewrite"
:
{
"pathRewrite"
:
{
...
...
package-lock.json
View file @
1779663e
This diff is collapsed.
Click to expand it.
pages/category/category.vue
View file @
1779663e
...
@@ -62,6 +62,9 @@
...
@@ -62,6 +62,9 @@
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
uni
.
showLoading
({
title
:
'加载中'
});
this
.
firsr_cate_id
=
option
.
cate_id_1
;
this
.
firsr_cate_id
=
option
.
cate_id_1
;
option
.
current
=
Number
(
option
.
current
);
option
.
current
=
Number
(
option
.
current
);
option
.
page_size
=
Number
(
option
.
page_size
);
option
.
page_size
=
Number
(
option
.
page_size
);
...
@@ -108,6 +111,7 @@
...
@@ -108,6 +111,7 @@
this
.
page
=
page
;
this
.
page
=
page
;
this
.
isLogin
=
res
.
data
.
login_flg
;
this
.
isLogin
=
res
.
data
.
login_flg
;
this
.
is_city
=
res
.
data
.
city_flg
;
this
.
is_city
=
res
.
data
.
city_flg
;
uni
.
hideLoading
();
}
}
});
});
},
},
...
...
pages/detail/detail.vue
View file @
1779663e
...
@@ -63,6 +63,9 @@
...
@@ -63,6 +63,9 @@
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
uni
.
showLoading
({
title
:
'加载中'
});
this
.
getData
({
this
.
getData
({
current
:
1
,
current
:
1
,
page_size
:
10
page_size
:
10
...
@@ -108,6 +111,7 @@
...
@@ -108,6 +111,7 @@
this
.
page
=
page
;
this
.
page
=
page
;
this
.
isLogin
=
res
.
data
.
login_flg
;
this
.
isLogin
=
res
.
data
.
login_flg
;
this
.
is_city
=
res
.
data
.
city_flg
;
this
.
is_city
=
res
.
data
.
city_flg
;
uni
.
hideLoading
();
}
}
});
});
},
},
...
...
pages/home/components/goodslist.vue
View file @
1779663e
...
@@ -79,7 +79,8 @@
...
@@ -79,7 +79,8 @@
if
(
goods_data_type
===
3
)
{
if
(
goods_data_type
===
3
)
{
list
=
goods_list
;
list
=
goods_list
;
}
else
if
(
goods_data_type
===
1
)
{
}
else
if
(
goods_data_type
===
1
)
{
list
=
additional_goods_show
?
cate_goods_list
.
concat
(
goods_list
).
slice
(
0
,
goods_num
)
:
cate_goods_list
let
cgl
=
buy_goods_list
||
[];
list
=
additional_goods_show
?
cgl
.
concat
(
goods_list
).
slice
(
0
,
goods_num
)
:
cgl
}
else
{
}
else
{
let
bgl
=
buy_goods_list
||
[];
let
bgl
=
buy_goods_list
||
[];
list
=
additional_goods_show
?
bgl
.
concat
(
goods_list
).
slice
(
0
,
goods_num
)
:
bgl
list
=
additional_goods_show
?
bgl
.
concat
(
goods_list
).
slice
(
0
,
goods_num
)
:
bgl
...
@@ -113,6 +114,7 @@
...
@@ -113,6 +114,7 @@
}
}
.goods_content, .swiper_content {
.goods_content, .swiper_content {
border-radius: 0 0 16rpx 16rpx;
border-radius: 0 0 16rpx 16rpx;
margin-bottom: 20rpx;
}
}
.goods_box, .goods_box2 {
.goods_box, .goods_box2 {
display: flex;
display: flex;
...
...
pages/home/components/hotrecommd.vue
View file @
1779663e
...
@@ -11,13 +11,13 @@
...
@@ -11,13 +11,13 @@
</view>
</view>
</view>
</view>
<view
class=
"hot_cate_list"
>
<view
class=
"hot_cate_list"
>
<text
class=
"hot_cate_item"
v-for=
"(item, key) in cate_list"
:key=
"key"
@
click=
"changeCate(key)"
:class=
"key === hotIndex ? 'act' : ''"
>
{{
item
.
cate_name
}}
</text>
<text
class=
"hot_cate_item"
v-for=
"(item, key) in cate_list"
:key=
"key"
@
click=
"changeCate(key)"
:class=
"key === hotIndex ? 'act' : ''"
v-if=
"item.goods_list instanceof Array"
>
{{
item
.
cate_name
}}
</text>
</view>
</view>
</view>
</view>
<view
v-for=
"(val, key) in cate_list"
:key=
"key"
v-if=
"key === hotIndex"
>
<view
v-for=
"(val, key) in cate_list"
:key=
"key"
v-if=
"key === hotIndex"
>
<view
v-if=
"val.goods_list"
class=
"flex_goods"
>
<view
v-if=
"val.goods_list"
class=
"flex_goods"
>
<view
class=
"hot_goods_item"
v-for=
"(item, index) in val.goods_list"
:key=
"index"
>
<view
class=
"hot_goods_item"
v-for=
"(item, index) in val.goods_list"
:key=
"index"
>
<image
class=
"hot_goods_icon"
:src=
"style_setting.angle_sign_url"
></image>
<image
class=
"hot_goods_icon"
v-if=
"style_setting.angle_sign"
:src=
"style_setting.angle_sign_url"
></image>
<image
class=
"hot_goods_img"
:src=
"item.default_image || $noGoodsImg"
@
click=
"$jumpGoodDetail(item.goods_id)"
></image>
<image
class=
"hot_goods_img"
:src=
"item.default_image || $noGoodsImg"
@
click=
"$jumpGoodDetail(item.goods_id)"
></image>
<text
class=
"hot_goods_name"
v-if=
"style_setting.title_show"
>
{{
item
.
goods_name
}}
</text>
<text
class=
"hot_goods_name"
v-if=
"style_setting.title_show"
>
{{
item
.
goods_name
}}
</text>
<text
class=
"hot_goods_subname"
v-if=
"style_setting.sub_title_show"
>
{{
item
.
goods_subname
||
' '
}}
</text>
<text
class=
"hot_goods_subname"
v-if=
"style_setting.sub_title_show"
>
{{
item
.
goods_subname
||
' '
}}
</text>
...
...
pages/home/components/searchbar.vue
View file @
1779663e
...
@@ -86,9 +86,6 @@
...
@@ -86,9 +86,6 @@
.search_input {
.search_input {
height: 60rpx;
height: 60rpx;
font-size: 28rpx;
font-size: 28rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.login_btn {
.login_btn {
width: 92rpx;
width: 92rpx;
...
...
pages/index/index.vue
View file @
1779663e
...
@@ -113,6 +113,9 @@
...
@@ -113,6 +113,9 @@
}
}
}
,
}
,
onLoad
()
{
onLoad
()
{
uni
.
showLoading
({
title
:
'加载中'
}
);
this
.
getData
();
this
.
getData
();
// #ifdef H5
// #ifdef H5
//默认请求微信分享
//默认请求微信分享
...
@@ -163,6 +166,7 @@
...
@@ -163,6 +166,7 @@
if
(
res
.
data
.
data
.
portrait
)
{
if
(
res
.
data
.
data
.
portrait
)
{
this
.
portrait
=
res
.
data
.
data
.
portrait
;
this
.
portrait
=
res
.
data
.
data
.
portrait
;
}
}
uni
.
hideLoading
();
}
}
}
)
}
)
}
,
}
,
...
...
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