对接部分接口
This commit is contained in:
+50
-33
@@ -14,31 +14,33 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="list">
|
||||
<view class="contents" v-for="(item, index) in datalist" :key="index" >
|
||||
<view class="" @click="godetile(item)">
|
||||
<view class="top">
|
||||
<view class="">2025.03.11 12:00</view>
|
||||
<view class="tag">{{$t('followup')}}</view>
|
||||
</view>
|
||||
<u-divider text="" :hairline="true"></u-divider>
|
||||
<view class="cont">
|
||||
<view class="title">
|
||||
<view class=""><text class="name">刘德华</text><text class="phone">138****2264</text></view>
|
||||
<view class="ststus">初步接触</view>
|
||||
<z-paging ref="paging" v-model="datalist" @query="queryList" style="margin-top: 100px;" empty-view-text='暂无数据!'>
|
||||
<view class="list">
|
||||
|
||||
<view class="contents" v-for="(item, index) in datalist" :key="index" >
|
||||
<view class="" @click="godetile(item)">
|
||||
<view class="top">
|
||||
<view class="">{{item.created_at}}</view>
|
||||
<view class="tag">{{$t('followup')}}</view>
|
||||
</view>
|
||||
<view class="info"><text class="sex">男</text> | <text class="addr">迪拜</text><text class="type">越野车</text>
|
||||
<u-line margin="20rpx 0px"></u-line>
|
||||
<view class="cont">
|
||||
<view class="title">
|
||||
<view class=""><text class="name">{{item.contacts}}</text><text class="phone">{{item.phone}}</text></view>
|
||||
<view class="ststus">{{item.grade_txt}}</view>
|
||||
</view>
|
||||
<view class="info"><text class="sex">男</text> | <text class="addr">迪拜</text><text class="type">越野车</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="desc1">
|
||||
<view class="" @click="callPhone(item)"><image src="/static/image/customer/phone.png" mode=""></image> {{$t('call')}}</view>
|
||||
<view class="" @click="editClick(item)"><image src="/static/image/customer/edit.png" mode=""></image> {{$t('followup')}}</view>
|
||||
<view class="" @click="delClick(item)"><image src="/static/image/customer/trash.png" mode=""></image> {{$t('delete')}}</view>
|
||||
<view class="desc1">
|
||||
<view class="" @click="callPhone(item)"><image src="/static/image/customer/phone.png" mode=""></image> {{$t('call')}}</view>
|
||||
<view class="" @click="editClick(item)"><image src="/static/image/customer/edit.png" mode=""></image> {{$t('followup')}}</view>
|
||||
<view class="" @click="delClick(item)"><image src="/static/image/customer/trash.png" mode=""></image> {{$t('delete')}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</z-paging>
|
||||
<u-picker :show="show" :columns="columns" @cancel="cancel" @confirm="confirm" title="客户筛选" keyName="label"></u-picker>
|
||||
<u-popup :show="showts" :closeOnClickOverlay="false" :round="20" mode="center">
|
||||
<view class="popupcontent">
|
||||
@@ -63,7 +65,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import { request,showToast } from '@/api/apiT.js'
|
||||
import { request,showToast } from '@/api/apiT.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -84,35 +86,49 @@
|
||||
id: 3
|
||||
}]
|
||||
],
|
||||
datalist:[
|
||||
{id:1,phone:'17839087603'},
|
||||
{id:2,phone:'18437931136'},
|
||||
{id:3,phone:'18339827479'},
|
||||
{id:4,phone:'17839087603'}
|
||||
],
|
||||
datalist:[],
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
const { windowWidth, windowHeight } = uni.getSystemInfoSync();
|
||||
this.x = windowWidth-70
|
||||
this.y = windowHeight-25
|
||||
this.y = windowHeight-55
|
||||
},
|
||||
methods: {
|
||||
searchCli(){
|
||||
|
||||
},
|
||||
close() {
|
||||
// console.log('close');
|
||||
this.show= false
|
||||
},
|
||||
confirm(e) {
|
||||
// console.log('confirm', e);
|
||||
this.show = false
|
||||
},
|
||||
cancel() {
|
||||
// console.log('cancel');
|
||||
this.show = false
|
||||
},
|
||||
//客户列表数据
|
||||
queryList(pageNo, pageSize) {
|
||||
var that = this;
|
||||
request({
|
||||
url:'customer/list',
|
||||
method:'get',
|
||||
data: {
|
||||
page:pageNo,
|
||||
per_page:10
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res.data)
|
||||
if(res.data.code ==0){
|
||||
var datas = res.data.data.list;
|
||||
this.$refs.paging.complete(datas);
|
||||
}else{
|
||||
// this.$refs.paging.complete(null);
|
||||
// that.listlength=0
|
||||
}
|
||||
uni.stopPullDownRefresh();
|
||||
})
|
||||
},
|
||||
godetile(item){
|
||||
console.log(item)
|
||||
uni.navigateTo({
|
||||
@@ -142,7 +158,7 @@
|
||||
},
|
||||
editClick(item){
|
||||
uni.navigateTo({
|
||||
url: '/pages/customer/followup'
|
||||
url: '/pages/customer/followup?id='+item.id
|
||||
});
|
||||
},
|
||||
delClick(item){
|
||||
@@ -165,6 +181,7 @@
|
||||
background-image: url("/static/image/customer/bg.png");
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
height: calc(100vh - 50px);
|
||||
}
|
||||
.navbar{
|
||||
height: 44px;
|
||||
@@ -211,7 +228,7 @@
|
||||
.list{
|
||||
padding: 15px;
|
||||
overflow: auto;
|
||||
height: calc(100vh-140px);
|
||||
// height: calc(100vh - 350rpx);
|
||||
.contents{
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 10px;
|
||||
|
||||
Reference in New Issue
Block a user