You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
140 lines
3.1 KiB
140 lines
3.1 KiB
<template> |
|
<view> |
|
<ul class="tab"> |
|
<li v-for="(tab, i) in tabs" :class="{active: curTab === tab.id}" @click="tabChange(tab)">{{ tab.name }}</li> |
|
</ul> |
|
|
|
<view class="top"> |
|
<uni-search-bar class="search" radius="5" placeholder="请输入姓名、订单号" clearButton="auto" cancelButton="none" @confirm="search" /> |
|
<uni-icons class="icon" custom-prefix="iconfont" type="icon-filter" size="18" color="#007eff"></uni-icons> |
|
</view> |
|
|
|
<uni-card :is-shadow="false" :border="false" is-full> |
|
<ul class="list"> |
|
<li @click="toPage('../clientDetail/clientDetail')"> |
|
<view class="name">中山大学</view> |
|
<view class="info"> |
|
<view class="left"> |
|
<view class="text">客户名称:海文</view> |
|
<view class="text">订单金额:海文</view> |
|
<view class="text">订单内容:海文</view> |
|
<view class="text">下单日期:海文</view> |
|
</view> |
|
<view class="type"> |
|
待审核发货 |
|
</view> |
|
</view> |
|
</li> |
|
</ul> |
|
</uni-card> |
|
|
|
<uni-icons class="plus" type="plus-filled" size="60" color="#007eff" @click="toPage('../addOrder/addOrder')"></uni-icons> |
|
</view> |
|
</template> |
|
|
|
<script> |
|
export default { |
|
data() { |
|
return { |
|
menuList: [ |
|
{ |
|
'title': '客户类型', |
|
'detailTitle': '请选择客户类型', |
|
'key': 'customerType', |
|
'isMutiple': false, |
|
'detailList': [ |
|
{ |
|
'title': '正式', |
|
'value': 1 |
|
}, |
|
{ |
|
'title': '试用', |
|
'value': 2 |
|
}, |
|
{ |
|
'title': '到期', |
|
'value': 3 |
|
} |
|
] |
|
}, |
|
{ |
|
'title': '菜单3', |
|
'detailTitle': '子标题3', |
|
'key': 'key_3', |
|
'isSort': true, |
|
'isMutiple': false, |
|
'detailList': [ |
|
{ |
|
'title': '条件_3_1', |
|
'value': 'val_3_1' |
|
}, |
|
{ |
|
'title': '条件_3_2', |
|
'value': 'val_3_2' |
|
}, |
|
{ |
|
'title': '条件_3_3', |
|
'value': 'val_3_3' |
|
} |
|
] |
|
} |
|
], |
|
curTab: 0, |
|
tabs: [ |
|
{ |
|
name: '我的订单', |
|
id: 0 |
|
}, |
|
{ |
|
name: '团队全部订单', |
|
id: 1 |
|
} |
|
] |
|
} |
|
}, |
|
methods: { |
|
search(res) { |
|
uni.showToast({ |
|
title: '搜索:' + res.value, |
|
icon: 'none' |
|
}) |
|
}, |
|
toPage(path) { |
|
this.$util.to(path) |
|
} |
|
} |
|
} |
|
</script> |
|
|
|
<style lang="scss"> |
|
.top { |
|
display: flex; |
|
align-items: center; |
|
padding: 5px 15px 5px 5px; |
|
margin-bottom: 10px; |
|
background-color: #fff; |
|
.search { |
|
flex: 1; |
|
} |
|
} |
|
.list { |
|
.name { |
|
font-size: 16px; |
|
color: #333; |
|
} |
|
.info { |
|
display: flex; |
|
justify-content: space-between; |
|
align-items: center; |
|
margin-top: 10px; |
|
} |
|
.text { |
|
font-size: 13px; |
|
color: #ccc; |
|
} |
|
.type { |
|
font-size: 14px; |
|
color: #ff7b2d; |
|
} |
|
} |
|
</style>
|
|
|