|
@@ -1,12 +1,11 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div class="container">
|
|
|
- <van-form @submit="onSubmit">
|
|
|
- <div style="display: flex; justify-content: space-between; background-color: #fff;">
|
|
|
+ <van-form class="formStyle" @submit="onSubmit">
|
|
|
+ <div class="formStyle-top">
|
|
|
<van-field style="width: 100%;" v-model="object.expressNo" name="expressNo" label="快递单号"
|
|
|
placeholder="快递单号" :rules="[{ required: true }]" />
|
|
|
- <img style="width: .4rem;height: .4rem ;margin-top: 10px; margin-right: 0.3rem;"
|
|
|
- @click="wxScanCodeB()" src="@/assets/user/u4.png" alt="">
|
|
|
+ <img class="formStyle-top-img" @click="wxScanCodeB()" src="@/assets/user/u4.png" alt="">
|
|
|
|
|
|
</div>
|
|
|
|
|
@@ -71,14 +70,12 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 输入手机号后弹出 -->
|
|
|
- <van-popup v-model="phoneShow" :style="{ height: '100%', width: '100%', }">
|
|
|
- <div style="overflow: scroll; height: 100%; width: 100%;">
|
|
|
- <div style="display: flex; justify-content: space-between;">
|
|
|
- <van-search style="width: 100%;" v-model="searchKey" placeholder="请输入搜索关键词" />
|
|
|
- <van-icon style="margin-top: 15px; margin-right: 10px" @click="searchCrux" name="search"
|
|
|
- color="#1989fa" size="20" />
|
|
|
- </div>
|
|
|
-
|
|
|
+ <van-popup v-model="phoneShow" class="popupStyle">
|
|
|
+ <div class="popupStyle-top">
|
|
|
+ <van-search style="width: 100%;" @search="searchCrux" v-model="searchKey" placeholder="请输入搜索关键词" />
|
|
|
+ <van-icon class="popupStyle-top-icon" @click="searchCrux" name="search" color="#1989fa" size="20" />
|
|
|
+ </div>
|
|
|
+ <div style="height: calc(100vh - 105px); overflow-y: auto;">
|
|
|
<van-cell-group class="vanPopup" @click="onGroup(item)" v-for="(item, index) in searchKeyList"
|
|
|
:key="index" inset>
|
|
|
<van-cell :value="item.phone" />
|
|
@@ -90,13 +87,12 @@
|
|
|
<van-cell title="收发室Id" :value="item.ROOM_ID" style="display: none;" />
|
|
|
<van-cell title="收件人userID" :value="item.USER_ID" style="display: none;" /> -->
|
|
|
</van-cell-group>
|
|
|
+ </div>
|
|
|
|
|
|
- <div style="height: 60px; width: 100%; background-color: #fff;"></div>
|
|
|
|
|
|
- <van-button class="goback" @click="phoneShow = false" type="info">
|
|
|
- 退出
|
|
|
- </van-button>
|
|
|
- </div>
|
|
|
+ <van-button class="goback" @click="phoneShow = false" type="info">
|
|
|
+ 退出
|
|
|
+ </van-button>
|
|
|
</van-popup>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -167,9 +163,7 @@ export default {
|
|
|
// 搜索关键
|
|
|
async searchCrux() {
|
|
|
const res = await appGetEmployeeInfoByPhone({ inquire: this.searchKey }, { emulateJSON: true })
|
|
|
-
|
|
|
this.searchKeyList = res.employeeInfo
|
|
|
- console.log(res, '123123123123')
|
|
|
},
|
|
|
// 点击group
|
|
|
onGroup(item) {
|
|
@@ -305,32 +299,31 @@ export default {
|
|
|
}
|
|
|
|
|
|
.container {
|
|
|
- height: 100%;
|
|
|
+ height: 100vh;
|
|
|
|
|
|
background-color: #f2f2f2;
|
|
|
|
|
|
+ .formStyle {
|
|
|
|
|
|
+ &-top {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ background-color: #fff;
|
|
|
|
|
|
- .little-box {
|
|
|
- background-color: #fff;
|
|
|
- margin-top: 2px;
|
|
|
-
|
|
|
- /deep/ .van-field {
|
|
|
- padding: 0;
|
|
|
- margin-top: 6px;
|
|
|
- }
|
|
|
-
|
|
|
- .text {
|
|
|
- padding-top: 10px;
|
|
|
- font-size: 12px;
|
|
|
+ &-img {
|
|
|
+ width: .4rem;
|
|
|
+ height: .4rem;
|
|
|
+ margin-top: 10px;
|
|
|
+ margin-right: 0.3rem;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- .text1 {
|
|
|
- padding-top: 0px;
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.vanPopup {
|
|
@@ -347,4 +340,19 @@ export default {
|
|
|
border: none;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.popupStyle {
|
|
|
+ height: 100vh;
|
|
|
+ width: 100vw;
|
|
|
+
|
|
|
+ &-top {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ &-icon {
|
|
|
+ margin-top: 15px;
|
|
|
+ margin-right: 10px
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|