Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-app-project
Project
Project
Details
Activity
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
李星剑
hs-app-project
Commits
907d0607
Commit
907d0607
authored
Feb 17, 2022
by
DongRuifen
Browse files
Options
Browse Files
Download
Plain Diff
合并冲突
parents
8f16aa70
4c367dcc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
442 additions
and
374 deletions
+442
-374
launch.json
.hbuilderx/launch.json
+4
-0
pages.json
src/pages.json
+11
-1
brands.vue
src/pages/brands/brands.vue
+2
-2
collection.vue
src/pages/brands/collection.vue
+2
-2
browseItem.vue
src/pages/brands/components/browseItem.vue
+5
-5
hotStyle.vue
src/pages/brands/components/hotStyle.vue
+8
-5
detail.vue
src/pages/brands/detail.vue
+8
-8
index.vue
src/pages/home/index.vue
+402
-351
No files found.
.hbuilderx/launch.json
View file @
907d0607
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
//
launchtype项可配置值为local或remote
,
local代表前端连本地云函数,remote代表前端连云端云函数
//
launchtype项可配置值为local或remote
,
local代表前端连本地云函数,remote代表前端连云端云函数
"version"
:
"0.0"
,
"version"
:
"0.0"
,
"configurations"
:
[{
"configurations"
:
[{
"app-plus"
:
{
"launchtype"
:
"local"
},
"default"
:
"default"
:
{
{
"launchtype"
:
"local"
"launchtype"
:
"local"
...
...
src/pages.json
View file @
907d0607
...
@@ -518,5 +518,15 @@
...
@@ -518,5 +518,15 @@
"navigationBarTitleText"
:
"uni-app"
,
"navigationBarTitleText"
:
"uni-app"
,
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
"backgroundColor"
:
"#F8F8F8"
"backgroundColor"
:
"#F8F8F8"
}
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[
{
"name"
:
""
,
//模式名称
"path"
:
""
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}
]
}
}
}
src/pages/brands/brands.vue
View file @
907d0607
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<image
<image
v-for=
"(item, index) in dailyNewStyleList"
v-for=
"(item, index) in dailyNewStyleList"
:key=
"index"
:key=
"index"
:src=
"`${imgUrl}${item.
originalImag
eCode}`"
:src=
"`${imgUrl}${item.
effectPictur
eCode}`"
mode=
"aspectFit"
mode=
"aspectFit"
></image>
></image>
</view>
</view>
...
@@ -74,7 +74,7 @@ export default {
...
@@ -74,7 +74,7 @@ export default {
return
{
return
{
fabricObj
:
""
,
fabricObj
:
""
,
dailyNewStyleList
:
[],
//每日上新的数据
dailyNewStyleList
:
[],
//每日上新的数据
hotStylePage
:
[
{
id
:
1
}
],
//款式的数据
hotStylePage
:
[],
//款式的数据
imgUrl
:
this
.
$IMG_URL
,
// 图片前面的url
imgUrl
:
this
.
$IMG_URL
,
// 图片前面的url
background
:
{
background
:
{
backgroundColor
:
"rgba(245,245,245,0)"
,
backgroundColor
:
"rgba(245,245,245,0)"
,
...
...
src/pages/brands/collection.vue
View file @
907d0607
...
@@ -120,11 +120,11 @@ export default {
...
@@ -120,11 +120,11 @@ export default {
// 底部占位符
// 底部占位符
.mask-template1
{
.mask-template1
{
width
:
100%
;
width
:
100%
;
height
:
1
0
0rpx
;
height
:
1
5
0rpx
;
}
}
.mask-template2
{
.mask-template2
{
width
:
100%
;
width
:
100%
;
height
:
2
0
0rpx
;
height
:
2
5
0rpx
;
}
}
.collect
{
.collect
{
height
:
100%
;
height
:
100%
;
...
...
src/pages/brands/components/browseItem.vue
View file @
907d0607
...
@@ -185,7 +185,7 @@ export default {
...
@@ -185,7 +185,7 @@ export default {
let
idItem
=
this
.
selected
.
map
((
el
)
=>
{
let
idItem
=
this
.
selected
.
map
((
el
)
=>
{
return
el
.
id
;
return
el
.
id
;
});
});
this
.
unCollectionFn
(
...
idItem
);
this
.
unCollectionFn
(
idItem
);
},
},
// 外部全选按钮
// 外部全选按钮
outsideChecked
()
{
outsideChecked
()
{
...
@@ -207,8 +207,8 @@ export default {
...
@@ -207,8 +207,8 @@ export default {
});
});
},
},
//取消款式接口
//取消款式接口
unCollectionFn
(
ite
m
)
{
unCollectionFn
(
para
m
)
{
let
param
=
[
item
];
//
let param = [item];
this
.
$http
(
"mobileBrand.cancelCollect"
,
param
).
then
((
res
)
=>
{
this
.
$http
(
"mobileBrand.cancelCollect"
,
param
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$emit
(
"update"
);
this
.
$emit
(
"update"
);
...
@@ -219,7 +219,7 @@ export default {
...
@@ -219,7 +219,7 @@ export default {
browerClick
(
item
)
{
browerClick
(
item
)
{
if
(
item
.
isFavorite
==
true
)
{
if
(
item
.
isFavorite
==
true
)
{
this
.
$u
.
toast
(
`已取消收藏`
);
this
.
$u
.
toast
(
`已取消收藏`
);
this
.
unCollectionFn
(
item
.
id
);
this
.
unCollectionFn
(
[
item
.
id
]
);
}
else
{
}
else
{
this
.
$u
.
toast
(
`已收藏款式`
);
this
.
$u
.
toast
(
`已收藏款式`
);
this
.
collectionFn
(
item
.
id
);
this
.
collectionFn
(
item
.
id
);
...
@@ -228,7 +228,7 @@ export default {
...
@@ -228,7 +228,7 @@ export default {
//滑动删除的东西
//滑动删除的东西
sliderClick
(
indexs
,
item
)
{
sliderClick
(
indexs
,
item
)
{
let
itemId
=
item
[
indexs
].
id
;
let
itemId
=
item
[
indexs
].
id
;
this
.
unCollectionFn
(
itemId
);
this
.
unCollectionFn
(
[
itemId
]
);
},
},
// 如果打开一个的时候,不需要关闭其他,则无需实现本方法
// 如果打开一个的时候,不需要关闭其他,则无需实现本方法
// 没做目前没用
// 没做目前没用
...
...
src/pages/brands/components/hotStyle.vue
View file @
907d0607
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view
class=
"hots"
v-for=
"(item, index) in recordsList"
:key=
"index"
>
<view
class=
"hots"
v-for=
"(item, index) in recordsList"
:key=
"index"
>
<image
<image
class=
"indexhot"
class=
"indexhot"
:src=
"`$
{imgUrl}${item.
originalImag
eCode}`"
:src=
"`$
{imgUrl}${item.
effectPictur
eCode}`"
@click="tabdetail(item)"
@click="tabdetail(item)"
mode="aspectFill"
mode="aspectFill"
>
</image>
>
</image>
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
<view
class=
"hotText2"
>
<view
class=
"hotText2"
>
<image
<image
class=
"iconhot"
class=
"iconhot"
:src=
"`$
{imgUrl}${item.
originalImag
eCode}`"
:src=
"`$
{imgUrl}${item.
effectPictur
eCode}`"
mode="
aspectFill
"
mode=""
>
</image>
>
</image>
<text
class=
"wen"
>
{{
item
.
materialName
}}
</text>
<text
class=
"wen"
>
{{
item
.
materialName
}}
</text>
<image
<image
...
@@ -67,6 +67,7 @@ export default {
...
@@ -67,6 +67,7 @@ export default {
},
},
// 跳转到详情
// 跳转到详情
tabdetail
(
item
)
{
tabdetail
(
item
)
{
console
.
log
(
1
);
this
.
$Router
.
push
(
"/pages/brands/detail?id="
+
item
.
id
);
this
.
$Router
.
push
(
"/pages/brands/detail?id="
+
item
.
id
);
},
},
//收藏款式接口
//收藏款式接口
...
@@ -101,6 +102,7 @@ export default {
...
@@ -101,6 +102,7 @@ export default {
width
:
330rpx
;
width
:
330rpx
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
// margin-right: 16rpx;
// margin-right: 16rpx;
border
:
2rpx
solid
#e3e1e0
;
.indexhot
{
.indexhot
{
display
:
block
;
display
:
block
;
...
@@ -112,7 +114,7 @@ export default {
...
@@ -112,7 +114,7 @@ export default {
.hotborder
{
.hotborder
{
height
:
144rpx
;
height
:
144rpx
;
// width: 193rpx;
// width: 193rpx;
border
:
2rpx
solid
#e3e1e0
;
//
border: 2rpx solid #e3e1e0;
// border-top: 0rpx !important;
// border-top: 0rpx !important;
border-radius
:
0
0
10rpx
10rpx
;
border-radius
:
0
0
10rpx
10rpx
;
}
}
...
@@ -122,7 +124,8 @@ export default {
...
@@ -122,7 +124,8 @@ export default {
font-family
:
PingFangSC
,
PingFangSC-Regular
;
font-family
:
PingFangSC
,
PingFangSC-Regular
;
font-weight
:
400
;
font-weight
:
400
;
color
:
rgba
(
0
,
0
,
0
,
0
.8
);
color
:
rgba
(
0
,
0
,
0
,
0
.8
);
margin
:
24rpx
28rpx
0
20rpx
;
margin
:
24rpx
0rpx
0
0rpx
;
padding
:
0
28rpx
0rpx
28rpx
;
width
:
100%
;
width
:
100%
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/pages/brands/detail.vue
View file @
907d0607
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<view>
<view>
<u-image
<u-image
height=
"750rpx"
height=
"750rpx"
:src=
"`$
{imgUrl}${tabledata.
originalImag
eCode}`"
:src=
"`$
{imgUrl}${tabledata.
effectPictur
eCode}`"
>
</u-image>
>
</u-image>
</view>
</view>
<view
class=
"u-p-r-30 u-p-l-30"
>
<view
class=
"u-p-r-30 u-p-l-30"
>
...
@@ -93,13 +93,13 @@ export default {
...
@@ -93,13 +93,13 @@ export default {
smapTelePhone
:
""
,
//联系人电话
smapTelePhone
:
""
,
//联系人电话
};
};
},
},
watch
:
{
//
watch: {
id
:
{
//
id: {
handler
()
{
//
handler() {
this
.
detail
();
//
this.detail();
},
//
},
},
//
},
},
//
},
created
()
{
created
()
{
this
.
detail
();
this
.
detail
();
...
...
src/pages/home/index.vue
View file @
907d0607
This diff is collapsed.
Click to expand it.
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