Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
5419b705
Commit
5419b705
authored
Apr 29, 2021
by
Morson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
ff380027
9f73d208
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
556 additions
and
593 deletions
+556
-593
detail.vue
src/pages/order/detail.vue
+0
-1
index.vue
src/pages/order/index.vue
+556
-592
No files found.
src/pages/order/detail.vue
View file @
5419b705
...
@@ -218,7 +218,6 @@
...
@@ -218,7 +218,6 @@
}
else
{
}
else
{
// 异常处理
// 异常处理
}
}
this
.
orderId
=
'8371315'
this
.
loadOrderDetail
()
this
.
loadOrderDetail
()
this
.
loadOrderRecord
()
this
.
loadOrderRecord
()
this
.
getLocation
()
this
.
getLocation
()
...
...
src/pages/order/index.vue
View file @
5419b705
<
template
>
<
template
>
<TabBarPage
title=
"订单"
:fixed=
"true"
>
<TabBarPage
title=
"订单"
:fixed=
"true"
>
<!--
<view
class=
"wrap"
>
-->
<!--
<view
class=
"wrap"
>
-->
<view
class=
"tools-box"
>
<view
class=
"tools-box"
>
<view
class=
"search-sub"
>
<view
class=
"search-sub"
>
<u-subsection
:current=
"curNow"
:list=
"subList"
active-color=
"white"
bg-color=
"white"
<u-subsection
:current=
"curNow"
:list=
"subList"
active-color=
"white"
bg-color=
"white"
inactive-color=
"#666"
button-color=
"#2272FF"
border-radius=
"36"
@
change=
"sectionChange"
height=
"72"
inactive-color=
"#666"
button-color=
"#2272FF"
border-radius=
"36"
@
change=
"sectionChange"
height=
"72"
bold
>
bold
>
</u-subsection>
</u-subsection>
</view>
</view>
<view
class=
"search-btn"
@
click=
"handleClickSearch"
>
<view
class=
"search-btn"
@
click=
"handleClickSearch"
>
<image
class=
"search-image"
mode=
"widthFix"
:src=
"sousuoImage"
></image>
<image
class=
"search-image"
mode=
"widthFix"
:src=
"sousuoImage"
></image>
<text
class=
"search-btn-text"
>
搜订单
</text>
<text
class=
"search-btn-text"
>
搜订单
</text>
</view>
</view>
</view>
</view>
<view
class=
"u-tabs-box"
v-show=
"curNow == 0"
>
<view
class=
"u-tabs-box"
v-show=
"curNow == 0"
>
<u-tabs
height=
"66"
activeColor=
"#2272FF"
bg-color=
"none"
inactive-color=
"#999"
bar-height=
"4"
<u-tabs
height=
"66"
activeColor=
"#2272FF"
bg-color=
"none"
inactive-color=
"#999"
bar-height=
"4"
bar-width=
"44"
:offset=
"[0,0]"
:list=
"list"
count=
"total"
:current=
"current"
@
change=
"change"
bar-width=
"44"
:offset=
"[0,0]"
:list=
"list"
count=
"total"
:current=
"current"
@
change=
"change"
:is-scroll=
"false"
font-size=
"28"
bold
></u-tabs>
:is-scroll=
"false"
font-size=
"28"
bold
></u-tabs>
</view>
</view>
<view
class=
"tab-view"
>
<view
class=
"tab-view"
>
<!--
<swiper-item
class=
"swiper-item"
v-for=
"(res, ind) in orderList"
:key=
"ind"
>
-->
<!--
<swiper-item
class=
"swiper-item"
v-for=
"(res, ind) in orderList"
:key=
"ind"
>
-->
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
scroll-anchoring
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
scroll-anchoring
scroll-y=
"true"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
scroll-y=
"true"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
refresher-background=
"#F4F5F7"
@
refresherpulling=
"triggered = true"
@
refresherrefresh=
"onRefresh"
refresher-background=
"#F4F5F7"
@
refresherpulling=
"triggered = true"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
>
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
>
<NoOrder
v-if=
"noMore"
customStyle=
"margin-top: 100rpx;background-color: #F4F5F7"
/>
<NoOrder
v-if=
"noMore"
customStyle=
"margin-top: 100rpx;background-color: #F4F5F7"
/>
<template
v-else
>
<template
v-else
>
<view
v-for=
"(item, index) in orderList"
:key=
"item.orderId"
>
<view
v-for=
"(item, index) in orderList"
:key=
"item.orderId"
>
<OrderCell
:orderData=
"item"
:type=
"orderType"
:location=
"dataValue"
@
click=
"handleClick(item)"
<OrderCell
:orderData=
"item"
:type=
"orderType"
:location=
"dataValue"
@
click=
"handleClick(item)"
@
action=
"handleAction(item)"
>
</OrderCell>
@
action=
"handleAction(item)"
>
</OrderCell>
</view>
</view>
<u-loadmore
:status=
"loadStatus"
bgColor=
"#F4F5F7"
></u-loadmore>
<u-loadmore
:status=
"loadStatus"
bgColor=
"#F4F5F7"
></u-loadmore>
</
template
>
</
template
>
</scroll-view>
</scroll-view>
<!-- </swiper-item> -->
<!-- </swiper-item> -->
</view>
</view>
<!-- </view> -->
<!-- </view> -->
<PopView
title=
"aaaa"
message=
"bbbb"
:visible=
"visibale"
/>
<PopView
title=
"aaaa"
message=
"bbbb"
:visible=
"visibale"
/>
</TabBarPage>
</TabBarPage>
</template>
</template>
<
script
>
<
script
>
import
TabBarPage
from
"@/components/tabBarList/index.vue"
import
TabBarPage
from
"@/components/tabBarList/index.vue"
import
OrderCell
from
"@/components/order/index.vue"
import
OrderCell
from
"@/components/order/index.vue"
import
NoOrder
from
"@/components/order/noOrder.vue"
import
NoOrder
from
"@/components/order/noOrder.vue"
export
default
{
export
default
{
components
:
{
components
:
{
TabBarPage
,
TabBarPage
,
OrderCell
,
OrderCell
,
NoOrder
NoOrder
},
},
data
()
{
data
()
{
return
{
return
{
visibale
:
false
,
visibale
:
false
,
showSview
:
true
,
showSview
:
true
,
curNow
:
0
,
curNow
:
0
,
pageNumber
:
0
,
pageNumber
:
0
,
pageSize
:
100
,
pageSize
:
100
,
orderList
:
[],
orderList
:
[],
list
:
[{
list
:
[{
name
:
'待预约'
,
name
:
'待预约'
,
total
:
0
,
total
:
0
,
},
},
{
{
name
:
'待签到'
,
name
:
'待签到'
,
total
:
0
,
total
:
0
,
},
},
{
{
name
:
'待完工'
,
name
:
'待完工'
,
total
:
0
,
total
:
0
,
},
},
{
{
name
:
'审核中'
,
name
:
'审核中'
,
total
:
0
,
total
:
0
,
},
},
{
{
name
:
'异常单'
,
name
:
'异常单'
,
total
:
0
,
total
:
0
,
}
}
],
],
current
:
0
,
current
:
0
,
loadStatus
:
'loading'
,
loadStatus
:
'loading'
,
dataValue
:
[],
dataValue
:
[],
loaded
:
false
,
loaded
:
false
,
triggered
:
false
,
triggered
:
false
,
_freshing
:
false
,
_freshing
:
false
,
};
};
},
},
onLoad
()
{
onLoad
()
{
this
.
_freshing
=
false
;
this
.
_freshing
=
false
;
this
.
getLocation
();
this
.
getLocation
();
// this.getOrderCount();
// this.getOrderCount();
this
.
getOrderList
(
0
);
this
.
getOrderList
(
0
);
},
},
onShow
()
{
onShow
()
{
this
.
getOrderCount
()
this
.
getOrderCount
()
},
},
computed
:
{
computed
:
{
subList
()
{
subList
()
{
return
[
'待受理'
,
'已完工'
]
return
[
'待受理'
,
'已完工'
]
},
},
// 0:'去预约', 1:'去签到', 2:'去完工', 3:'审核中', 4:'去处理', 5'已完工'
// 0:'去预约', 1:'去签到', 2:'去完工', 3:'审核中', 4:'去处理', 5'已完工'
orderType
()
{
orderType
()
{
return
this
.
indexStatus
[
this
.
currentIndex
]
return
this
.
indexStatus
[
this
.
currentIndex
]
},
},
currentIndex
()
{
currentIndex
()
{
return
this
.
curNow
==
0
?
this
.
current
:
5
return
this
.
curNow
==
0
?
this
.
current
:
5
},
},
sousuoImage
()
{
sousuoImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'sousuo.png'
return
process
.
uniEnv
.
qn_base_url
+
'sousuo.png'
},
},
types
()
{
types
()
{
return
{
return
{
'waitAppointment'
:
0
,
// 待预约、
'waitAppointment'
:
0
,
// 待预约、
'waitCheckIn'
:
1
,
// 待签到、
'waitCheckIn'
:
1
,
// 待签到、
'waitFinish'
:
2
,
// 待完工、
'waitFinish'
:
2
,
// 待完工、
'audit'
:
3
,
// 审核中、
'audit'
:
3
,
// 审核中、
'exception'
:
4
,
// 异常单、
'exception'
:
4
,
// 异常单、
'finish'
:
5
,
//已完工
'finish'
:
5
,
//已完工
}
}
},
},
//waitAccept、waitAppointment、waitCheckIn、waitFinish、exception、finish
//waitAccept、waitAppointment、waitCheckIn、waitFinish、exception、finish
indexStatus
()
{
indexStatus
()
{
return
{
return
{
0
:
'waitAppointment'
,
0
:
'waitAppointment'
,
1
:
'waitCheckIn'
,
1
:
'waitCheckIn'
,
2
:
'waitFinish'
,
2
:
'waitFinish'
,
3
:
'audit'
,
3
:
'audit'
,
4
:
'exception'
,
4
:
'exception'
,
5
:
'finish'
5
:
'finish'
}
}
},
},
noMore
()
{
noMore
()
{
console
.
log
(
'nomore:'
,
this
.
orderList
.
length
==
0
&&
this
.
pageNumber
!=
0
)
console
.
log
(
'nomore:'
,
this
.
orderList
.
length
==
0
&&
this
.
pageNumber
!=
0
)
return
this
.
orderList
.
length
==
0
&&
this
.
loaded
return
this
.
orderList
.
length
==
0
&&
this
.
loaded
}
}
},
},
methods
:
{
methods
:
{
sectionChange
(
index
)
{
sectionChange
(
index
)
{
this
.
curNow
=
index
;
this
.
curNow
=
index
;
this
.
pageNumber
=
0
this
.
pageNumber
=
0
this
.
orderList
=
[]
this
.
orderList
=
[]
this
.
loadStatus
=
'loading'
this
.
loadStatus
=
'loading'
this
.
getOrderList
(
this
.
currentIndex
)
this
.
getOrderList
(
this
.
currentIndex
)
},
},
// tab栏切换
// tab栏切换
change
(
index
)
{
change
(
index
)
{
this
.
current
=
index
;
this
.
current
=
index
;
this
.
pageNumber
=
0
this
.
pageNumber
=
0
this
.
orderList
=
[]
this
.
orderList
=
[]
this
.
loadStatus
=
'loading'
this
.
loadStatus
=
'loading'
this
.
getOrderList
(
index
);
this
.
getOrderList
(
index
);
},
},
/**
/**
* 获取当前位置的经纬度
* 获取当前位置的经纬度
*/
*/
getLocation
()
{
getLocation
()
{
let
self
=
this
let
self
=
this
const
dataValue
=
this
.
dataValue
||
[]
const
dataValue
=
this
.
dataValue
||
[]
const
waterInfo
=
this
.
waterInfo
const
waterInfo
=
this
.
waterInfo
uni
.
getLocation
({
uni
.
getLocation
({
type
:
'gcj02'
,
type
:
'gcj02'
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
dataValue
.
push
(
res
.
longitude
)
dataValue
.
push
(
res
.
longitude
)
dataValue
.
push
(
res
.
latitude
)
dataValue
.
push
(
res
.
latitude
)
self
.
dataValue
=
dataValue
self
.
dataValue
=
dataValue
},
},
fail
(
err
)
{
fail
(
err
)
{
}
}
});
});
},
},
reachBottom
(
e
)
{
reachBottom
(
e
)
{
if
(
this
.
loadStatus
!=
'loadmore'
)
return
if
(
this
.
loadStatus
!=
'loadmore'
)
return
this
.
loadStatus
==
'loading'
this
.
loadStatus
==
'loading'
this
.
getOrderList
(
this
.
currentIndex
)
this
.
getOrderList
(
this
.
currentIndex
)
},
},
// 页面数据
// 页面数据
getOrderList
(
index
)
{
getOrderList
(
index
)
{
// 状态处理
// 状态处理
this
.
pageNumber
+=
1
this
.
pageNumber
+=
1
this
.
loaded
=
false
this
.
loaded
=
false
var
param
=
{
var
param
=
{
pageNumber
:
this
.
pageNumber
,
pageNumber
:
this
.
pageNumber
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
keyword
:
''
,
keyword
:
''
,
type
:
this
.
indexStatus
[
index
]
type
:
this
.
indexStatus
[
index
]
}
}
var
self
=
this
;
var
self
=
this
;
self
.
$u
.
api
.
listOrder
(
param
).
then
((
res
)
=>
{
self
.
$u
.
api
.
listOrder
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
console
.
log
(
"getOrderList"
,
res
.
data
)
// 后台需要返回type,防止数据返回延迟期间点击了其他的tab
/*↓↓↓↓↓↓↓↓↓↓测试数据↓↓↓↓↓↓↓↓↓↓*/
if
(
res
.
data
.
type
!=
self
.
orderType
)
return
res
.
data
.
type
=
self
.
orderType
self
.
triggered
=
false
;
if
(
res
.
data
.
list
)
{
self
.
_freshing
=
false
;
if
(
res
.
data
.
list
.
length
==
0
&&
res
.
data
.
total
>
0
)
{
if
(
res
.
data
.
list
)
{
res
.
data
.
total
=
15
self
.
orderList
.
push
(...
res
.
data
.
list
)
res
.
data
.
list
=
[{
if
(
self
.
list
[
self
.
types
[
res
.
data
.
type
]])
{
orderServiceType
:
'安装'
,
// 服务类型:安装、维修
self
.
list
[
self
.
types
[
res
.
data
.
type
]].
total
=
res
.
data
.
total
categoryName
:
'充电桩'
,
// 品类:充电桩
}
orderBusinessTypeText
:
'分配单'
,
// 业务类型:分配单、订单池
self
.
loadStatus
=
res
.
data
.
total
>
self
.
orderList
.
length
?
'loadmore'
:
'nomore'
orderNumber
:
'OR2021041809827'
,
// 工单编号
}
contactName
:
'郭小清'
,
// 客户信息
}
else
{
contactPhone
:
'13631612077'
,
// 联系方式
console
.
log
(
res
.
message
,
"获取订单数量失败!"
);
contactAddress
:
'湾街道荔枝花园D座125号'
,
// 详细地址
}
contactAddressLatitud
:
'116.3896'
,
// 联系人地址经度
this
.
loaded
=
true
contactAddressLongitud
:
'39.91917'
,
// 联系人地址纬度
});
orderStatus
:
0
,
// 工单状态
appointmentDatetime
:
''
,
// 预约时间
},
currentWillOverTime
:
10000
,
// 剩余时间
currentOverTime
:
0
,
// 超过时间
// 获取订单数量
auditDatetime
:
'2021.04.19 12:45:09'
,
// 审核时间
getOrderCount
()
{
submissionTime
:
'2021.04.19 16:24:48'
,
// 提交时间
var
self
=
this
;
// 加载订单列表
auditResults
:
{},
// 审核结果
self
.
$u
.
api
.
listOrderCount
().
then
((
res
)
=>
{
orderBusinessType
:
'R'
,
// 业务类型 R 为抢单
if
(
res
.
code
==
200
)
{
orderId
:
'1100000216'
console
.
log
(
"==="
,
res
.
data
)
}]
if
(
res
.
data
)
{
res
.
data
.
list
=
[...
res
.
data
.
list
,
...
res
.
data
.
list
,
...
res
.
data
.
list
,
...
res
.
data
var
count
=
0
.
list
,
self
.
list
.
forEach
(
item
=>
{
...
res
.
data
.
list
,
...
res
.
data
.
list
,
...
res
.
data
.
list
,
...
res
.
data
.
list
,
...
if
(
item
.
name
===
'待预约'
)
{
res
item
.
count
=
res
.
data
.
toAppointmentCount
.
data
.
list
,
...
res
.
data
.
list
}
else
if
(
item
.
name
===
'待签到'
)
{
]
item
.
count
=
res
.
data
.
toCheckinCount
}
}
else
if
(
item
.
name
===
'待完工'
)
{
}
item
.
count
=
res
.
data
.
toFinishCount
/*↑↑↑↑↑↑↑↑↑↑测试数据↑↑↑↑↑↑↑↑↑↑↑↑↑*/
}
else
if
(
item
.
name
===
'待审核'
)
{
item
.
count
=
res
.
data
.
reviewingCount
// 后台需要返回type,防止数据返回延迟期间点击了其他的tab
}
else
if
(
item
.
name
===
'异常单'
)
{
if
(
res
.
data
.
type
!=
self
.
orderType
)
return
item
.
count
=
res
.
data
.
exceptionCount
self
.
triggered
=
false
;
}
self
.
_freshing
=
false
;
})
if
(
res
.
data
.
list
)
{
var
count
=
0
self
.
orderList
.
push
(...
res
.
data
.
list
)
for
(
var
i
in
res
.
data
)
{
if
(
self
.
list
[
self
.
types
[
res
.
data
.
type
]])
{
count
+=
res
.
data
[
i
]
self
.
list
[
self
.
types
[
res
.
data
.
type
]].
total
=
res
.
data
.
total
}
}
// 修改tab总数
self
.
loadStatus
=
res
.
data
.
total
>
self
.
orderList
.
length
?
'loadmore'
:
'nomore'
uni
.
setTabBarBadge
({
}
index
:
1
,
}
else
{
text
:
String
(
count
)
console
.
log
(
res
.
message
,
"获取订单数量失败!"
);
})
}
}
this
.
loaded
=
true
}
else
{
});
console
.
log
(
res
.
message
,
"获取订单数量失败!"
);
}
},
});
},
// 获取订单数量
viewOderItem
(
orderId
)
{
// 跳转工单详情页面
getOrderCount
()
{
uni
.
navigateTo
({
var
self
=
this
;
// 加载订单列表
url
:
'pages/order/detail?id='
+
orderId
self
.
$u
.
api
.
listOrderCount
().
then
((
res
)
=>
{
})
if
(
res
.
code
==
200
)
{
},
console
.
log
(
"==="
,
res
.
data
)
handleClick
(
item
)
{
if
(
res
.
data
)
{
console
.
log
(
'click cell'
)
var
count
=
0
this
.
viewOderItem
(
item
.
orderId
)
self
.
list
.
forEach
(
item
=>
{
},
if
(
item
.
name
===
'待预约'
)
{
handleAction
(
item
)
{
item
.
count
=
res
.
data
.
toAppointmentCount
console
.
log
(
'click button'
)
}
else
if
(
item
.
name
===
'待签到'
)
{
this
.
viewOderItem
(
item
.
orderId
)
item
.
count
=
res
.
data
.
toCheckinCount
},
}
else
if
(
item
.
name
===
'待完工'
)
{
handleClickSearch
()
{
item
.
count
=
res
.
data
.
toFinishCount
uni
.
navigateTo
({
}
else
if
(
item
.
name
===
'待审核'
)
{
url
:
'pages/order/search'
item
.
count
=
res
.
data
.
reviewingCount
})
}
else
if
(
item
.
name
===
'异常单'
)
{
},
item
.
count
=
res
.
data
.
exceptionCount
onPulling
(
e
)
{
}
console
.
log
(
"onpulling"
,
e
);
})
},
var
count
=
0
onRefresh
()
{
for
(
var
i
in
res
.
data
)
{
if
(
this
.
_freshing
)
return
;
count
+=
res
.
data
[
i
]
this
.
_freshing
=
true
;
}
this
.
pageNumber
=
0
// 修改tab总数
this
.
orderList
=
[]
uni
.
setTabBarBadge
({
this
.
loadStatus
=
'loading'
index
:
1
,
this
.
getOrderCount
();
text
:
String
(
count
)
this
.
getOrderList
(
this
.
currentIndex
);
})
},
}
onRestore
()
{
}
else
{
this
.
triggered
=
'restore'
;
// 需要重置
console
.
log
(
res
.
message
,
"获取订单数量失败!"
);
console
.
log
(
"onRestore"
);
}
},
});
onAbort
()
{
},
console
.
log
(
"onAbort"
);
viewOderItem
(
orderId
)
{
// 跳转工单详情页面
}
uni
.
navigateTo
({
}
url
:
'pages/order/detail?id='
+
orderId
};
})
</
script
>
},
handleClick
(
item
)
{
<
style
>
console
.
log
(
'click cell'
)
/* #ifndef H5 */
this
.
viewOderItem
(
item
.
orderId
)
page
{
},
height
:
100%
;
handleAction
(
item
)
{
background-color
:
#f2f2f2
;
console
.
log
(
'click button'
)
}
this
.
viewOderItem
(
item
.
orderId
)
},
/* #endif */
handleClickSearch
()
{
</
style
>
uni
.
navigateTo
({
url
:
'pages/order/search'
<
style
lang=
"scss"
scoped
>
})
.u-tabs-box
{
},
margin-bottom
:
30rpx
;
onPulling
(
e
)
{
}
console
.
log
(
"onpulling"
,
e
);
},
.order
{
onRefresh
()
{
// width: 710rpx;
if
(
this
.
_freshing
)
return
;
// background-color: #ffffff;
this
.
_freshing
=
true
;
// margin: 20rpx auto;
this
.
pageNumber
=
0
// border-radius: 20rpx;
this
.
orderList
=
[]
// box-sizing: border-box;
this
.
loadStatus
=
'loading'
// padding: 20rpx;
this
.
getOrderCount
();
// font-size: 28rpx;
this
.
getOrderList
(
this
.
currentIndex
);
},
.top
{
onRestore
()
{
display
:
flex
;
this
.
triggered
=
'restore'
;
// 需要重置
justify-content
:
space-between
;
console
.
log
(
"onRestore"
);
align-items
:
center
;
},
onAbort
()
{
.left
{
console
.
log
(
"onAbort"
);
display
:
flex
;
}
align-items
:
center
;
}
};
.tag
{
</
script
>
text-align
:
center
;
width
:
84rpx
;
<
style
>
height
:
40rpx
;
/* #ifndef H5 */
background
:
linear-gradient
(
270deg
,
#47ABFF
0%
,
#2272FF
100%
);
page
{
border-radius
:
8rpx
;
height
:
100%
;
font-size
:
22rpx
;
background-color
:
#f2f2f2
;
font-weight
:
500
;
}
color
:
#FFFFFF
;
line-height
:
40rpx
;
/* #endif */
}
</
style
>
.store
{
<
style
lang=
"scss"
scoped
>
margin
:
0
10rpx
;
.u-tabs-box
{
font-size
:
36rpx
;
margin-bottom
:
30rpx
;
font-weight
:
bold
;
}
color
:
#333333
;
line-height
:
36px
;
.order
{
}
// width: 710rpx;
}
// background-color: #ffffff;
// margin: 20rpx auto;
.right
{
// border-radius: 20rpx;
height
:
40rpx
;
// box-sizing: border-box;
background
:
#F4F5F7
;
// padding: 20rpx;
border-radius
:
22rpx
;
// font-size: 28rpx;
padding
:
8rpx
16rpx
8rpx
16rpx
;
font-size
:
22rpx
;
.top
{
line-height
:
24rpx
;
display
:
flex
;
font-weight
:
400
;
justify-content
:
space-between
;
color
:
#333333
;
align-items
:
center
;
}
}
.left
{
display
:
flex
;
.item
{
align-items
:
center
;
display
:
flex
;
flex-direction
:
column
;
.tag
{
margin
:
20rpx
0
0
;
text-align
:
center
;
width
:
84rpx
;
.content
{
height
:
40rpx
;
.title
{
background
:
linear-gradient
(
270deg
,
#47ABFF
0%
,
#2272FF
100%
);
font-size
:
26rpx
;
border-radius
:
8rpx
;
font-weight
:
400
;
font-size
:
22rpx
;
color
:
#333333
;
font-weight
:
500
;
line-height
:
52rpx
;
color
:
#FFFFFF
;
}
line-height
:
40rpx
;
}
}
.address
{
.store
{
display
:
flex
;
margin
:
0
10rpx
;
justify-content
:
space-between
;
font-size
:
36rpx
;
align-items
:
center
;
font-weight
:
bold
;
font-size
:
24rpx
;
color
:
#333333
;
font-weight
:
400
;
line-height
:
36px
;
color
:
#333333
;
}
line-height
:
52rpx
;
}
.left
{}
.right
{
height
:
40rpx
;
.right
{}
background
:
#F4F5F7
;
}
border-radius
:
22rpx
;
}
padding
:
8rpx
16rpx
8rpx
16rpx
;
font-size
:
22rpx
;
.total
{
line-height
:
24rpx
;
margin-top
:
20rpx
;
font-weight
:
400
;
text-align
:
right
;
color
:
#333333
;
font-size
:
24rpx
;
}
}
.total-price
{
font-size
:
32rpx
;
.item
{
}
display
:
flex
;
}
flex-direction
:
column
;
margin
:
20rpx
0
0
;
.bottom
{
display
:
flex
;
.content
{
margin-top
:
30rpx
;
.title
{
padding
:
0
10rpx
;
font-size
:
26rpx
;
justify-content
:
space-between
;
font-weight
:
400
;
align-items
:
center
;
color
:
#333333
;
line-height
:
52rpx
;
.left
{
}
display
:
flex
;
}
align-items
:
center
;
justify-content
:
space-between
;
.address
{
display
:
flex
;
.tag
{
justify-content
:
space-between
;
text-align
:
center
;
align-items
:
center
;
width
:
54rpx
;
font-size
:
24rpx
;
height
:
54rpx
;
font-weight
:
400
;
background
:
#FF930D
;
color
:
#333333
;
font-size
:
26rpx
;
line-height
:
52rpx
;
font-weight
:
500
;
color
:
#FFFFFF
;
.left
{}
line-height
:
54rpx
;
border-radius
:
50%
;
.right
{}
margin-right
:
20rpx
;
}
}
}
}
.total
{
.right-btn
{
margin-top
:
20rpx
;
text-align
:
center
;
text-align
:
right
;
width
:
200rpx
;
font-size
:
24rpx
;
height
:
80rpx
;
background
:
#2272FF
;
.total-price
{
border-radius
:
40rpx
;
font-size
:
32rpx
;
font-size
:
32rpx
;
}
font-weight
:
600
;
}
color
:
#FFFFFF
;
line-height
:
80rpx
;
.bottom
{
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
display
:
flex
;
}
margin-top
:
30rpx
;
}
padding
:
0
10rpx
;
}
justify-content
:
space-between
;
align-items
:
center
;
.centre
{
text-align
:
center
;
.left
{
margin
:
200rpx
auto
;
display
:
flex
;
font-size
:
32rpx
;
align-items
:
center
;
justify-content
:
space-between
;
image
{
width
:
164rpx
;
.tag
{
height
:
164rpx
;
text-align
:
center
;
border-radius
:
50%
;
width
:
54rpx
;
margin-bottom
:
20rpx
;
height
:
54rpx
;
}
background
:
#FF930D
;
font-size
:
26rpx
;
.tips
{
font-weight
:
500
;
font-size
:
24rpx
;
color
:
#FFFFFF
;
color
:
#999999
;
line-height
:
54rpx
;
margin-top
:
20rpx
;
border-radius
:
50%
;
}
margin-right
:
20rpx
;
}
.btn
{
}
margin
:
80rpx
auto
;
width
:
200rpx
;
.right-btn
{
border-radius
:
32rpx
;
text-align
:
center
;
line-height
:
64rpx
;
width
:
200rpx
;
color
:
#ffffff
;
height
:
80rpx
;
font-size
:
26rpx
;
background
:
#2272FF
;
background
:
linear-gradient
(
270deg
,
rgba
(
249
,
116
,
90
,
1
)
0%
,
rgba
(
255
,
158
,
1
,
1
)
100%
);
border-radius
:
40rpx
;
}
font-size
:
32rpx
;
}
font-weight
:
600
;
color
:
#FFFFFF
;
.wrap
{
line-height
:
80rpx
;
display
:
flex
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
flex-direction
:
column
;
}
height
:
calc
(
100vh
-
var
(
--
window-top
));
}
width
:
100%
;
}
}
.centre
{
.tab-view
{
text-align
:
center
;
height
:
100%
;
margin
:
200rpx
auto
;
overflow
:
auto
;
font-size
:
32rpx
;
padding-bottom
:
20rpx
;
}
image
{
width
:
164rpx
;
// .swiper-box {
height
:
164rpx
;
// flex: 1;
border-radius
:
50%
;
// }
margin-bottom
:
20rpx
;
}
// .swiper-item {
// height: 100%;
.tips
{
// .page-box {
font-size
:
24rpx
;
// padding-bottom: 20rpx;
color
:
#999999
;
// }
margin-top
:
20rpx
;
// }
}
.tools-box
{
.btn
{
display
:
flex
;
margin
:
80rpx
auto
;
flex-direction
:
row
;
width
:
200rpx
;
justify-content
:
space-between
;
border-radius
:
32rpx
;
padding-bottom
:
20rpx
;
line-height
:
64rpx
;
color
:
#ffffff
;
.search-sub
{
font-size
:
26rpx
;
height
:
72rpx
;
background
:
linear-gradient
(
270deg
,
rgba
(
249
,
116
,
90
,
1
)
0%
,
rgba
(
255
,
158
,
1
,
1
)
100%
);
width
:
320rpx
;
}
}
}
.search-btn
{
.wrap
{
height
:
72rpx
;
display
:
flex
;
width
:
220rpx
;
flex-direction
:
column
;
background-color
:
#ffffff
;
height
:
calc
(
100vh
-
var
(
--
window-top
));
border-radius
:
36rpx
;
width
:
100%
;
color
:
#999999
;
}
display
:
flex
;
justify-content
:
center
;
.tab-view
{
align-items
:
center
;
height
:
100%
;
overflow
:
auto
;
.search-image
{
padding-bottom
:
20rpx
;
width
:
36rpx
;
}
height
:
32rpx
;
flex-shrink
:
0
;
// .swiper-box {
margin-right
:
24rpx
;
// flex: 1;
}
// }
.search-btn-text
{
// .swiper-item {
line-height
:
36rpx
;
// height: 100%;
font-weight
:
400
;
// .page-box {
font-size
:
26rpx
;
// padding-bottom: 20rpx;
}
// }
}
// }
}
.tools-box
{
.order-taps
{
display
:
flex
;
height
:
80rpx
;
flex-direction
:
row
;
padding
:
8rpx
30rpx
20rpx
30rpx
;
justify-content
:
space-between
;
display
:
flex
;
padding-bottom
:
20rpx
;
flex-direction
:
row
;
justify-content
:
space-between
;
.search-sub
{
align-items
:
center
;
height
:
72rpx
;
width
:
320rpx
;
.order-taps-item
{
}
font-size
:
28rpx
;
font-weight
:
400
;
.search-btn
{
color
:
#999999
;
height
:
72rpx
;
line-height
:
20px
;
width
:
220rpx
;
background-color
:
#ffffff
;
.taps-count
{
border-radius
:
36rpx
;
position
:
absolute
;
color
:
#999999
;
font-size
:
16rpx
;
display
:
flex
;
font-weight
:
400
;
justify-content
:
center
;
line-height
:
16rpx
;
align-items
:
center
;
width
:
36rpx
;
height
:
24rpx
;
.search-image
{
background
:
#FFFFFF
;
width
:
36rpx
;
border-radius
:
16rpx
;
height
:
32rpx
;
border
:
2rpx
solid
#FA5A49
;
flex-shrink
:
0
;
text-align
:
center
;
margin-right
:
24rpx
;
color
:
#FA5A49
;
}
}
}
.search-btn-text
{
}
line-height
:
36rpx
;
font-weight
:
400
;
font-size
:
26rpx
;
}
}
}
.order-taps
{
height
:
80rpx
;
padding
:
8rpx
30rpx
20rpx
30rpx
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
align-items
:
center
;
.order-taps-item
{
font-size
:
28rpx
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
20px
;
.taps-count
{
position
:
absolute
;
font-size
:
16rpx
;
font-weight
:
400
;
line-height
:
16rpx
;
width
:
36rpx
;
height
:
24rpx
;
background
:
#FFFFFF
;
border-radius
:
16rpx
;
border
:
2rpx
solid
#FA5A49
;
text-align
:
center
;
color
:
#FA5A49
;
}
}
}
</
style
>
</
style
>
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