123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- <template>
- <view class="content">
- <view class="fixed-top">
- <view class="search-user flex-y-center " style="position: relative;">
- <view class="search-content flex-y-center">
- <icon type="search" size="18" />
- <input confirm-type="search" v-model="seTval" @confirm="confirm" @input="getSearch"
- class="flex-grow-1" type="text" placeholder-style="font-size:26rpx" placeholder="请输入用户昵称、手机号" />
- <view class="flex-center" style="margin-left: 10rpx;" @click.stop="onDel" v-if="seTval">
- <icon type="clear" size="18" />
- </view>
- </view>
- <view class="search-btn" @click="search">
- 搜索
- </view>
- </view>
- </view>
- <view style="height: 105rpx;"></view>
- <view class="list">
- <view class="item" v-for="(item,index) in list" :key="index">
- <view class="content flex flex-y-center box-pack-between" hover-class="nav-hover">
- <view class="cell flex flex-y-center">
- <view class="title">会员昵称:</view>
- <view class="desc">{{item.nickname?item.nickname:''}}</view>
- </view>
- </view>
- <view class="content flex flex-y-center box-pack-between" hover-class="nav-hover">
- <view class="cell flex flex-y-center">
- <view class="title">类型:</view>
- <view class="desc">{{item.type == 1?'微信':'支付宝'}}</view>
- </view>
- </view>
- <view class="content flex flex-y-center box-pack-between" hover-class="nav-hover">
- <view class="cell flex flex-y-center">
- <view class="title">手机号:</view>
- <view class="desc">{{item.mobile}}</view>
- </view>
- </view>
- <view class="content flex flex-y-center box-pack-between" hover-class="nav-hover">
- <view class="cell flex flex-y-center">
- <view class="title">直接:</view>
- <view class="desc">{{item.zhijie_name}}</view>
- </view>
- </view>
- <view class="content flex flex-y-center box-pack-between" hover-class="nav-hover">
- <view class="cell flex flex-y-center">
- <view class="title">间接:</view>
- <view class="desc">{{item.jianjie_name?item.jianjie_name:''}}</view>
- </view>
- </view>
- </view>
- <block v-if='list.length<=0'>
- <no-none></no-none>
- </block>
- </view>
- <view class="header-hg100"></view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- seTval: '',
- page: 1,
- list: [],
- admin_id: '',
- is_bottom: false,
- keywords: "",
- }
- },
- onLoad(e) {
- this.admin_id = uni.getStorageSync("admin_id");
- },
- onShow() {
- this.list = [];
- this.getData(1)
- },
- onReachBottom() {
- if (!this.is_bottom) {
- this.getData(this.page + 1)
- }
- },
- methods: {
- getSearch(e) {
- if (!e.detail.value) {
- this.list = [];
- this.keywords = "";
- this.getData(1);
- }
- this.keywords = e.detail.value;
- },
- onDel() {
- this.seTval = '';
- this.list = [];
- this.keywords = "";
- this.getData(1);
- },
- confirm(e) {
- this.list = [];
- this.keywords = e.detail.value;
- this.getData(1);
- },
- search(e) {
- this.list = [];
- this.getData(1);
- },
- getData(page) {
- if (page == 1) {
- this.list = []
- this.page = 1
- this.is_bottom = false
- }
- this.request({
- url: 'smdcshop/member_data',
- data: {
- admin_id: this.admin_id,
- page,
- limit: 10,
- serch: this.keywords,
- // store_id: this.store_id,
- }
- }).then(res => {
- if (res.code == 200 && res.data.length) {
- this.list = this.list.concat(res.data)
- this.page = page
- } else {
- this.is_bottom = true
- }
- })
- }
- }
- }
- </script>
- <style>
- @import url("../static/css/common.css");
- page {
- background: #F9F9F9;
- }
- .fixed-top {
- position: fixed;
- top: 0rpx;
- width: 100%;
- }
- .search-user {
- z-index: 999;
- position: fixed;
- left: 0;
- width: 100%;
- height: 100rpx;
- background: #FFFFFF;
- margin-left: 15rpx;
- border-bottom: 1rpx solid #F1F1F1;
- }
- .search-user .search-content {
- width: 83%;
- height: 70rpx;
- background: #F1F1F1;
- border-radius: 100rpx;
- padding: 0 20rpx;
- }
- .search-user .search-content icon {
- margin-right: 10rpx;
- }
- .search-user .search-btn {
- margin-left: 20rpx;
- font-size: 28rpx;
- }
- .headerScreen {
- height: 100rpx;
- z-index: 999;
- background: #fff;
- border-bottom: 1rpx solid #F1F1F1;
- }
- .showpay {
- width: 100%;
- z-index: 10;
- background: #FFFFFF;
- }
- .box-li {
- background-color: #fff;
- text-align: center;
- border-bottom: 1rpx solid #f1f1f1;
- height: 80rpx;
- line-height: 80rpx;
- font-size: 26rpx;
- }
- page .active {
- color: #007AFF;
- }
- .d3 {
- width: 0;
- height: 0;
- border-width: 12rpx;
- border-style: solid;
- border-color: #000 transparent transparent transparent;
- margin-top: 14rpx;
- margin-left: 6rpx;
- }
- .header-hg200 {
- height: 210rpx;
- }
- /* .header-hg100 {
- height: 100rpx;
- } */
- .del {
- height: 44rpx;
- line-height: 44rpx;
- padding: 0 15rpx;
- font-size: 24rpx;
- background-color: #FF5722;
- margin-right: 25rpx;
- color: #fff;
- border-radius: 4rpx;
- }
- .list {
- padding: 30rpx 25rpx;
- }
- .list .item {
- border-radius: 8rpx;
- overflow: hidden;
- padding-left: 30rpx;
- background-color: #fff;
- margin-bottom: 30rpx;
- }
- .list .item .top {
- border-bottom: 1rpx solid #f5f5f5;
- padding: 10rpx 0;
- }
- .list .item .top .name {
- font-size: 30rpx;
- font-weight: bold;
- }
- .list .item .top .type-btn {
- zoom: 0.7;
- margin-right: 25rpx;
- }
- .list .item .content {
- padding: 20rpx 0 24rpx;
- }
- .list .item .content .cell {
- flex: none;
- box-sizing: border-box;
- padding-right: 20rpx;
- font-size: 26rpx;
- line-height: 37rpx;
- color: #666;
- }
- .list .item .content .cell .title {
- color: #99A0AD;
- }
- </style>
|