From 58a5424d962e00a134662297d973bdf45b58a24e Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Tue, 22 Dec 2020 15:10:26 +0800 Subject: [PATCH] gx --- hive-app/pages/workbench/selectCustomer.vue | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/hive-app/pages/workbench/selectCustomer.vue b/hive-app/pages/workbench/selectCustomer.vue index 1c26e6d..60b4e15 100644 --- a/hive-app/pages/workbench/selectCustomer.vue +++ b/hive-app/pages/workbench/selectCustomer.vue @@ -1,8 +1,8 @@ <template> <view class="container"> - <search-bar :placeholder=placeholder></search-bar> - <view class="flex justify-between" @click="linkTo('./customerInfo')"> - <view class="flex-1 mr-10"> + <search-bar placeholder="客户姓名、手机、卡号、拼音"></search-bar> + <view class="flex justify-between"> + <navigator :url="'./customerInfo?type='+type" hover-class="none" class="flex-1 mr-10"> <view class="member-list flex align-center" v-for="(item, index) in 15"> <text class="first-name" :style="{background: caculateBgcolor(index)}">李</text> <view class="flex-1 flex align-center justify-between member-list-con"> @@ -16,7 +16,7 @@ </view> </view> </view> - </view> + </navigator> <indexed-list></indexed-list> </view> </view> @@ -32,19 +32,18 @@ }, data() { return { - placeholder:"客户姓名、手机、卡号、拼音", - colors: ['#CCC6B4', '#C0CCB4', '#B4C2CC', '#BEB4CC', '#B4CCBE', '#B4CCCA', '#CCB4C6', '#CCB4B4'], - filterType: 1, + type: 1 ,//1新建订单 2新建服务单 + colors: ['#CCC6B4', '#C0CCB4', '#B4C2CC', '#BEB4CC', '#B4CCBE', '#B4CCCA', '#CCB4C6', '#CCB4B4'] }; + }, + onLoad(options) { + if(options.type){ + this.type = options.type; + } }, methods:{ caculateBgcolor(index){ return this.colors[index%8]; - }, - linkTo(val){ - uni.navigateTo({ - url:val - }) }, } } @@ -58,7 +57,7 @@ display: flex; justify-content: space-between; align-items: center; - font-size: 14px; + font-size: 13px; } .sort-wrap .iconfont{ font-size: 14px; @@ -73,12 +72,13 @@ border-radius: 50%; text-align: center; color: #FFFFFF; + font-size: 16px; } .member-list{ - font-size: 15px; + font-size: 14px; } .member-list-con{ - padding: 20px 0 20px 5px; + padding: 18px 0 18px 5px; border-bottom: 1px solid #EDEAF4; } .quick-entry{ -- Gitblit v1.9.1