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
c21d994f
Commit
c21d994f
authored
Dec 06, 2021
by
阮藤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
相关问题解决
parent
6e57e4fb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
380 additions
and
162 deletions
+380
-162
fabricDetails.vue
src/pages/home/fabricDetails.vue
+10
-12
index.vue
src/pages/home/index.vue
+25
-23
sampleConfirmation.vue
src/pages/home/sampleConfirmation.vue
+63
-30
styleEntrustment.vue
src/pages/home/styleEntrustment.vue
+117
-97
tenantSelection.vue
src/pages/home/tenantSelection.vue
+165
-0
tenSelet@2x.png
src/static/images/home/tenSelet@2x.png
+0
-0
No files found.
src/pages/home/fabricDetails.vue
View file @
c21d994f
...
...
@@ -3,7 +3,7 @@
<u-navbar
:is-back=
"true"
:background=
"
{ backgroundColor: '#F5F5F5' }" title="面料详情">
</u-navbar>
<!-- 背景图 -->
<view
class=
"back_img"
></view>
<view
class=
"content u-p-30"
>
<view
class=
"content u-p-30"
v-if=
"fabricObj"
>
<!-- 面料基本信息 -->
<view
class=
"fabric_tit u-p-30"
>
<view
class=
"color_DDA973 u-font-32"
>
{{
materialInfo
.
materialName
}}
</view>
...
...
@@ -19,13 +19,13 @@
<!-- 建模信息 -->
<view
class=
"modeling_tit u-p-30"
>
<view
class=
"tit_date u-font-32"
>
<span
class=
"u-font-28
ft-w
t-700"
>
建模委托信息
</span>
<span
class=
"u-font-28
hs-weigh
t-700"
>
建模委托信息
</span>
<span
class=
"u-font-24"
>
{{
fabricObj
.
completionDate
}}
<u-icon
size=
"28"
class=
"u-m-l-5"
color=
"#ccc"
name=
"arrow-right"
></u-icon>
</span>
</view>
<view
class=
"ds_flex jt_con_center fx_dir_column h
t_
136"
>
<view
class=
"ds_flex jt_con_center fx_dir_column h
s-height-
136"
>
<view
class=
"ds_flex"
>
<span
class=
"width_30 color_00004"
>
检测服务商
</span>
<!-- TODO 后期修改 -->
...
...
@@ -40,13 +40,13 @@
<!-- 检测委托信息 -->
<view
class=
"modeling_tit bd_rad_8 u-m-t-30 u-p-30"
>
<view
class=
"tit_date"
>
<span
class=
"u-font-28
ft-w
t-700"
>
检测委托信息
</span>
<span
class=
"u-font-28
hs-weigh
t-700"
>
检测委托信息
</span>
<span
class=
"u-font-24"
>
2021年12月12日
<u-icon
size=
"28"
class=
"u-m-l-5"
color=
"#ccc"
name=
"arrow-right"
></u-icon>
</span>
</view>
<view
class=
"ds_flex jt_con_center fx_dir_column h
t_
136"
>
<view
class=
"ds_flex jt_con_center fx_dir_column h
s-height-
136"
>
<view
class=
"ds_flex"
>
<span
class=
"width_30 color_00004"
>
检测服务商
</span>
<span
class=
"flex-sub"
>
上海天飞智慧科技有限公司
</span>
...
...
@@ -59,7 +59,7 @@
</view>
<!-- 已提交款式 -->
<view
class=
"modeling_tit bd_rad_8 u-m-t-30 u-p-30"
>
<view
class=
"u-font-28
ft-w
t-700 u-m-b-24"
>
已提交款式
</view>
<view
class=
"u-font-28
hs-weigh
t-700 u-m-b-24"
>
已提交款式
</view>
<u-search
bg-color=
"#fff"
border-color=
"#ececec"
placeholder=
"请输入面料名称"
:show-action=
"false"
v-model=
"searchFabric"
></u-search>
<view
class=
"ds_flex fx_wrap jt_con_sp_between txt_center"
>
<view
@
click=
"seeStyleDetails(item)"
v-for=
"(item, index) in tableList"
class=
"u-m-t-30"
>
...
...
@@ -77,7 +77,7 @@ export default {
data
()
{
return
{
searchFabric
:
''
,
fabricObj
:
{}
,
fabricObj
:
null
,
id
:
''
,
tableList
:
[
1
,
2
,
3
,
4
,
5
]
};
...
...
@@ -125,9 +125,6 @@ export default {
.color_00004
{
color
:
rgba
(
0
,
0
,
0
,
0.4
);
}
.ft-wt-700
{
font-weight
:
700
;
}
.background_fff
{
background
:
#fff
;
}
...
...
@@ -210,8 +207,9 @@ export default {
.back_img
{
position
:
absolute
;
width
:
100%
;
height
:
600rpx
;
background-image
:
url(../../static/images/home/exhibition.png)
;
height
:
450rpx
;
background
:
url(../../static/images/home/exhibition.png)
no-repeat
;
background-size
:
100%
100%
;
}
.img_120
{
width
:
120rpx
;
...
...
src/pages/home/index.vue
View file @
c21d994f
<
template
>
<view>
<statusBar
/>
<!-- 展示图 -->
<view
class=
"home_top
"
>
<
image
src=
"../../static/images/home/exhibition@2x.png"
style=
"width: 100%;height: 100%;"
mode=
""
></image
>
<view
class=
"home_top_ou
t"
>
<view
class=
"out"
><image
style=
"width: 100%;height: 100%;"
src=
"../../static/images/home/zuojiantou
@2x.png"
mode=
""
></image></view>
<
view
@
click=
"searchCli"
class=
"search"
><image
style=
"width: 100%;height: 100%;"
src=
"../../static/images/home/search@2x.png"
mode=
""
></image></view
>
</
view
>
<view
id=
"header"
class=
"back_img
"
>
<
u-navbar
title=
""
:border-bottom=
"false"
:background=
"background"
>
<template
slot=
"righ
t"
>
<view
@
click=
"searchCli"
class=
"u-m-r-24 search"
><image
class=
"hs-img"
src=
"../../static/images/home/search
@2x.png"
mode=
""
></image></view>
<
/
template
>
</
u-navbar
>
</view>
<!-- 按钮 -->
<view
class=
"home_btn"
>
...
...
@@ -50,7 +49,7 @@
<view
class=
"u-font-24 color_d5aa7a"
>
查看更多
</view>
</view>
<view
class=
"home_con_order"
>
<view
class=
"home_con_content_order u-m-t-24"
v-for=
"item in
2
"
>
<view
class=
"home_con_content_order u-m-t-24"
v-for=
"item in
4
"
>
<image
style=
"width: 160rpx;height: 160rpx;"
src=
"../../static/images/home/2.png"
mode=
""
></image>
<view
class=
"order_tit"
>
<view
class=
"u-font-32"
>
加厚荷兰绒绒布布料备份
</view>
...
...
@@ -68,13 +67,10 @@
</view>
</template>
<
script
>
import
statusBar
from
'@/components/statusBar.vue'
;
export
default
{
components
:
{
statusBar
},
data
()
{
return
{
background
:
{
backgroundColor
:
'rgba(245,245,245,0)'
},
quantityNum
:
0
,
exceptionNum
:
0
,
abolishIds
:
[],
...
...
@@ -90,7 +86,7 @@ export default {
name
:
'款式委托'
,
img
:
'../../static/images/home/styleEntrustment@2x.png'
,
url
:
'/pages/home/styleEntrustment'
// url: '/pages/home/demo'
// url: '/pages/home/demo
1
'
},
{
name
:
'检测委托'
,
...
...
@@ -111,6 +107,14 @@ export default {
this
.
noSampleOrder
();
this
.
materialList
();
},
onPageScroll
(
object
){
let
height
=
486
/
2
if
(
object
.
scrollTop
>=
height
)
{
this
.
background
.
backgroundColor
=
'rgba(245,245,245,1)'
;
}
else
{
this
.
background
.
backgroundColor
=
'rgba(245,245,245,0)'
;
}
},
methods
:
{
// 选款总数
toBeSelectedQuantity
()
{
...
...
@@ -171,13 +175,11 @@ export default {
};
</
script
>
<
style
lang=
"scss"
scoped
>
.
statusBar
{
height
:
var
(
--
status-bar-height
)
;
.
back_img
{
height
:
486rpx
;
width
:
100%
;
position
:
fixed
;
background-color
:
#fff
;
top
:
0
;
z-index
:
999
;
background
:
url(../../static/images/home/exhibition.png)
no-repeat
;
background-size
:
100%
100%
;
}
.home_top
{
position
:
relative
;
...
...
@@ -195,12 +197,12 @@ export default {
width
:
32rpx
;
height
:
32rpx
;
}
.search
{
width
:
60rpx
;
height
:
60rpx
;
}
}
}
.search
{
width
:
60rpx
;
height
:
60rpx
;
}
.tips
{
display
:
flex
;
height
:
80rpx
;
...
...
src/pages/home/sampleConfirmation.vue
View file @
c21d994f
<
template
>
<view
class=
"ps_relative"
>
<
u-navbar
:is-back=
"true"
:background=
"
{ backgroundColor: '#F5F5F5' }" title="寄样确认">
</u-navbar
>
<view
class=
"content"
>
<view
class=
"bg_fff
sample_sum
"
>
<view>
<
view
class=
""
id=
"header"
>
<u-navbar
:is-back=
"true"
:background=
"
{ backgroundColor: '#F5F5F5' }" title="寄样确认">
</u-navbar
>
<view
class=
"bg_fff
hs-height-70 u-flex u-row-around
"
>
<view
@
click=
"previousCli"
:class=
"
{ color_ccc: sum == 1 }">上一个
</view>
<view
class=
""
>
{{
sum
}}
/
{{
total
}}
</view>
<view
@
click=
"nextCli"
:class=
"
{ color_ccc: sum == total }">下一个
</view>
</view>
</view>
<view
class=
"content"
:style=
"
{ bottom: footerHeight + 'px', top: headerHeight + 'px' }">
<!-- 内容 -->
<view
class=
"u-m-20 bg_fff"
style=
"border-radius: 20rpx;"
>
<view
class=
"
sample_title
u-p-l-30 u-p-r-30"
>
<view
class=
"
hs-height-100 u-flex u-row-between
u-p-l-30 u-p-r-30"
>
<span
class=
"u-font-32"
>
委托单信息
</span>
<span
class=
"u-font-28"
>
委托发布日期:
{{
tableData
.
releaseDate
}}
</span>
</view>
...
...
@@ -35,19 +37,27 @@
<span
class=
"u-font-28"
>
所选面料
</span>
<span
class=
"u-font-24 color_DDA973"
>
(新建面料,已同步面料建模)
</span>
</view>
<view
class=
"u-m-t-30"
>
<hs-material-thumbnail
:item=
"mdmMaterial"
></hs-material-thumbnail>
</view>
<view
class=
"u-m-t-30"
><hs-material-thumbnail
:item=
"mdmMaterial"
></hs-material-thumbnail></view>
</view>
</view>
</view>
</view>
<!-- 底部按钮 确定-->
<view
class=
"footer"
id=
"footer"
>
<view
class=
"footer-btn"
>
<!-- /* 以下形式在微信小程序会无效,APP和H5有效 */-->
<u-button
@
click=
"toAddItem"
class=
"custom-style"
shape=
"circle"
>
确定
</u-button>
</view>
</view>
<u-toast
ref=
"uToast"
/>
</view>
</
template
>
<
script
>
import
dom
from
'@/mixins/dom'
;
import
fabricTitle
from
'@/components/hs-material-thumbnail/hs-material-thumbnail.vue'
;
export
default
{
mixins
:
[
dom
],
components
:
{
fabricTitle
},
data
()
{
return
{
...
...
@@ -62,13 +72,11 @@ export default {
computed
:
{
mdmMaterial
()
{
return
{
// name: this.tableData.mdmMaterialName,
...
this
.
tableData
};
}
},
onLoad
(
option
)
{
console
.
log
(
option
);
this
.
abolishIds
=
option
.
abolishIds
.
split
(
','
);
this
.
total
=
this
.
abolishIds
.
length
;
this
.
detail
();
...
...
@@ -76,12 +84,25 @@ export default {
methods
:
{
detail
()
{
let
i
=
this
.
sum
-
1
;
this
.
$http
(
'orderTicket.detail'
,
this
.
abolishIds
[
i
]).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
if
(
code
===
200
)
{
this
.
tableData
=
data
;
}
});
this
.
$http
(
'orderTicket.detail'
,
this
.
abolishIds
[
i
],
'加载中...'
)
.
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
if
(
code
===
200
)
{
this
.
tableData
=
data
;
this
.
$refs
.
uToast
.
show
({
title
:
'操作成功'
});
}
else
{
this
.
$refs
.
uToast
.
show
({
title
:
'操作失败'
});
}
})
.
catch
(
err
=>
{
this
.
$refs
.
uToast
.
show
({
title
:
'操作失败'
});
});
},
previousCli
()
{
if
(
this
.
sum
==
1
)
return
;
...
...
@@ -106,20 +127,15 @@ export default {
</
style
>
<
style
lang=
"scss"
scoped
>
@import
'./index.css'
;
.sample_sum
{
display
:
flex
;
justify-content
:
space-around
;
height
:
70rpx
;
align-items
:
center
;
}
.sample_title
{
height
:
100rpx
;
align-items
:
center
;
display
:
flex
;
justify-content
:
space-between
;
}
.bd_top
{
border-top
:
1px
solid
#f6f6f6
;
.content
{
position
:
absolute
;
width
:
100%
;
height
:
auto
;
left
:
0
;
right
:
0
;
bottom
:
0
;
top
:
0
;
overflow-y
:
auto
;
}
.bd_split_line
{
width
:
90%
;
...
...
@@ -149,4 +165,21 @@ export default {
border-radius
:
100rpx
;
}
}
.custom-style
{
color
:
#fff
;
background
:
#000
;
}
.footer
{
position
:
fixed
;
width
:
100%
;
bottom
:
0
;
z-index
:
998
;
background
:
#fff
;
box-shadow
:
0px
-4rpx
6rpx
0px
rgba
(
178
,
182
,
214
,
0
.1
);
padding-bottom
:
constant
(
safe-area-inset-bottom
);
padding-bottom
:
env
(
safe-area-inset-bottom
);
.footer-btn
{
padding
:
20rpx
30rpx
;
}
}
</
style
>
src/pages/home/styleEntrustment.vue
View file @
c21d994f
This diff is collapsed.
Click to expand it.
src/pages/home/tenantSelection.vue
0 → 100644
View file @
c21d994f
<!--新增委托-->
<
template
>
<view>
<view
id=
"header"
><u-navbar
title=
"租户选择"
:border-bottom=
"false"
:background=
"
{ backgroundColor: 'whitesmoke' }">
</u-navbar></view>
<!-- 列表 确定-->
<view
class=
"u-p-30 body"
:style=
"
{ bottom: footerHeight + 'px', top: headerHeight + 'px' }">
<view
v-for=
"(item, index) in list"
:key=
"item.id"
class=
"u-flex u-m-b-20"
>
<view
class=
"u-m-r-30"
>
<u-icon
:name=
"index === selectedIndex ? 'checkmark-circle-fill' : 'checkmark-circle'"
color=
"#000"
size=
"40"
@
click=
"triggerSelectItem(index)"
/>
</view>
<view
class=
"ab"
>
租户
{{
index
}}
</view>
</view>
</view>
<!-- 底部按钮 确定-->
<view
class=
"footer"
id=
"footer"
>
<view
class=
"footer-btn"
>
<!-- /* 以下形式在微信小程序会无效,APP和H5有效 */-->
<u-button
:disabled=
"selectedIndex === -1"
@
click=
"toAddItem"
class=
"custom-style"
shape=
"circle"
>
确定
</u-button>
</view>
</view>
</view>
</
template
>
<
script
>
import
dom
from
'@/mixins/dom'
;
import
HsSelectItem
from
'../../components/hs-select-item/hs-select-item'
;
import
HsMaterialThumbnail
from
'../../components/hs-material-thumbnail/hs-material-thumbnail'
;
export
default
{
name
:
'listSelectToAdd'
,
components
:
{
HsMaterialThumbnail
,
HsSelectItem
},
mixins
:
[
dom
],
data
()
{
return
{
keyword
:
''
,
selectedIndex
:
-
1
,
list
:
[
{
title
:
'加厚荷兰绒绒布布料'
,
id
:
2
},
{
title
:
'加厚荷兰绒绒布布料加厚荷兰绒绒布布料'
,
id
:
12
},
{
title
:
'加厚荷兰绒绒布布料'
,
id
:
221
},
{
title
:
'加厚荷兰绒绒布布料'
,
id
:
22
},
{
title
:
'加厚荷兰绒绒布布料'
,
id
:
224
},
{
title
:
'加厚荷兰绒绒布布料'
,
id
:
222
}
]
};
},
onLoad
()
{
this
.
getList
();
},
methods
:
{
getList
()
{
this
.
$http
(
'orderTicket.materialList'
,
{
size
:
4
,
materialCode
:
''
,
materialName
:
''
}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
this
.
list
=
data
.
data
;
}
});
},
triggerSelectItem
(
index
)
{
this
.
selectedIndex
=
index
===
this
.
selectedIndex
?
-
1
:
index
;
},
// 跳转到新增详情页面
toAddItem
()
{
uni
.
setStorageSync
(
'_item'
,
this
.
list
[
this
.
selectedIndex
]);
this
.
$Router
.
push
({
path
:
'/pages/designCommissioned/addItem'
// query:{
// id: this.list[this.selectedIndex].id
// }
});
},
// 跳转到面料详情
toMaterialDetail
({
id
})
{
this
.
$Router
.
push
({
path
:
'/pages/home/fabricDetails'
,
query
:
{
id
}
});
}
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
$h-color
:
#af8d66
;
$main-color
:
#fff
;
.body
{
position
:
absolute
;
width
:
100%
;
height
:
auto
;
left
:
0
;
right
:
0
;
bottom
:
0
;
top
:
0
;
overflow-y
:
auto
;
}
.title
{
color
:
$h-color
;
background-color
:
whitesmoke
;
}
.ab
{
flex
:
1
;
height
:
160rpx
;
line-height
:
160rpx
;
text-align
:
center
;
background
:
url(../../static/images/home/tenSelet@2x.png)
no-repeat
;
background-size
:
100%
100%
;
border-radius
:
16rpx
;
}
.bg-fff
{
background
:
$main-color
;
}
.item
{
border-radius
:
8rpx
;
border
:
1px
solid
#bd4848
;
height
:
160rpx
;
width
:
100%
;
overflow
:
hidden
;
background-size
:
contain
;
.active
{
border
:
1px
solid
#000
;
}
}
.custom-style
{
color
:
#fff
;
background
:
#000
;
}
.footer
{
position
:
fixed
;
width
:
100%
;
bottom
:
0
;
z-index
:
998
;
background
:
#fff
;
box-shadow
:
0px
-4rpx
6rpx
0px
rgba
(
178
,
182
,
214
,
0
.1
);
padding-bottom
:
constant
(
safe-area-inset-bottom
);
padding-bottom
:
env
(
safe-area-inset-bottom
);
.footer-btn
{
padding
:
20rpx
30rpx
;
}
}
</
style
>
src/static/images/home/tenSelet@2x.png
0 → 100644
View file @
c21d994f
94.9 KB
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