|
|
@@ -1,54 +1,57 @@
|
|
|
<template>
|
|
|
- <uni-popup ref="popupRef" type="bottom" background-color="#fff" :is-mask-click="false" :mask-click="false">
|
|
|
- <view class="kehu-select-list">
|
|
|
- <view class="phone-navBar-box">
|
|
|
- <view @click="goback2" class="nav-bar-icon"></view>
|
|
|
- <text>选择客户</text>
|
|
|
- <uni-icons class="nav-bar-right-icon bar-ml10" type="search" size="20"
|
|
|
- @click="toggle('top')"></uni-icons>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <search-dialog ref="searchDialogRef" shenfen="kh" @search-btn="dialogSearchBtn"
|
|
|
- @reset-search="dialogSearchReset"></search-dialog>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="kh-new-btn-box">
|
|
|
- <button type="default" class="phone-green-btn" @click="handleAddKehu">新增客户</button>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 无限滚动容器 -->
|
|
|
- <view>
|
|
|
- <scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
|
|
|
- :refresher-threshold="50" @scrolltolower="onScrolltolower" refresher-background="transparent"
|
|
|
- @refresherrefresh="onRefresh" class="jz-scroll-view">
|
|
|
- <uni-list class="admin-list-box">
|
|
|
- <radio-group @change="radioChange">
|
|
|
- <uni-list-item v-for="item in data.list" class="kh-list-item-box">
|
|
|
- <template v-slot:body>
|
|
|
- <view class="kh-select-card">
|
|
|
- <radio :value="item.id && item.id.toString()" activeBackgroundColor="#3fd2a1"
|
|
|
- :checked="item.id == data.activeData&&data.activeData.id" />
|
|
|
- <view class="select-card-body-row">
|
|
|
- <view class="body-row"><icon class="user-icon"></icon>{{item.realName}}</view>
|
|
|
- <view class="body-row"><icon class="tel-icon"></icon>{{item.userName}}</view>
|
|
|
- <view class="body-row" v-if="item.idcard"><icon class="idcard-icon"></icon>{{item.idcard}}</view>
|
|
|
+ <view>
|
|
|
+ <uni-popup ref="popupRef" type="bottom" background-color="#fff" :is-mask-click="false" :mask-click="false">
|
|
|
+ <view class="kehu-select-list">
|
|
|
+ <view class="phone-navBar-box">
|
|
|
+ <view @click="goback2" class="nav-bar-icon"></view>
|
|
|
+ <text>选择客户</text>
|
|
|
+ <uni-icons class="nav-bar-right-icon bar-ml10" type="search" size="20"
|
|
|
+ @click="toggle('top')"></uni-icons>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <search-dialog ref="searchDialogRef" shenfen="kh" @search-btn="dialogSearchBtn"
|
|
|
+ @reset-search="dialogSearchReset"></search-dialog>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="kh-new-btn-box">
|
|
|
+ <button type="default" class="phone-green-btn" @click="handleAddKehu">新增客户</button>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 无限滚动容器 -->
|
|
|
+ <view>
|
|
|
+ <scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
|
|
|
+ :refresher-threshold="50" @scrolltolower="onScrolltolower" refresher-background="transparent"
|
|
|
+ @refresherrefresh="onRefresh" class="jz-scroll-view">
|
|
|
+ <uni-list class="admin-list-box">
|
|
|
+ <radio-group @change="radioChange">
|
|
|
+ <uni-list-item v-for="item in data.list" class="kh-list-item-box">
|
|
|
+ <template v-slot:body>
|
|
|
+ <view class="kh-select-card">
|
|
|
+ <radio :value="item.id && item.id.toString()" activeBackgroundColor="#3fd2a1"
|
|
|
+ :checked="item.id == data.activeData&&data.activeData.id" />
|
|
|
+ <view class="select-card-body-row">
|
|
|
+ <view class="body-row"><icon class="user-icon"></icon>{{item.realName}}</view>
|
|
|
+ <view class="body-row"><icon class="tel-icon"></icon>{{item.userName}}</view>
|
|
|
+ <view class="body-row" v-if="item.idcard"><icon class="idcard-icon"></icon>{{item.idcard}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </uni-list-item>
|
|
|
- </radio-group>
|
|
|
- <uni-load-more :status="data.state" @click="getMore(0)"
|
|
|
- :contentText="data.contentText"></uni-load-more>
|
|
|
- </uni-list>
|
|
|
- </scroll-view>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <button @click="handleSelect">选择此客户</button>
|
|
|
+ </template>
|
|
|
+ </uni-list-item>
|
|
|
+ </radio-group>
|
|
|
+ <uni-load-more :status="data.state" @click="getMore(0)"
|
|
|
+ :contentText="data.contentText"></uni-load-more>
|
|
|
+ </uni-list>
|
|
|
+ </scroll-view>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <button @click="handleSelect">选择此客户</button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </uni-popup>
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
+ <addKh ref="addKhRef"></addKh>
|
|
|
+ </view>
|
|
|
|
|
|
- <addKh ref="addKhRef"></addKh>
|
|
|
|
|
|
</template>
|
|
|
|