|
@@ -14,7 +14,7 @@
|
|
|
<image class="filter-item-icon" :style="filterType==1&&isShowPop?'transform: rotate(180deg);':''" src="../static/images/down.png"></image>
|
|
<image class="filter-item-icon" :style="filterType==1&&isShowPop?'transform: rotate(180deg);':''" src="../static/images/down.png"></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view :class="'filter-item fflex ddflex '+(areaIndex!=-1?'f-active':'')" @click="changeFilterType(1)">
|
|
<view :class="'filter-item fflex ddflex '+(areaIndex!=-1?'f-active':'')" @click="changeFilterType(1)">
|
|
|
- {{areaIndex!=-1?areaList[areaIndex].label:'全国'}}
|
|
|
|
|
|
|
+ 地区
|
|
|
<image class="filter-item-icon" :style="filterType==1&&isShowPop?'transform: rotate(180deg);':''" src="../static/images/down.png"></image>
|
|
<image class="filter-item-icon" :style="filterType==1&&isShowPop?'transform: rotate(180deg);':''" src="../static/images/down.png"></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view :class="'filter-item fflex ddflex '+(stateIndex!=-1?'f-active':'')" @click="changeFilterType(2)">
|
|
<view :class="'filter-item fflex ddflex '+(stateIndex!=-1?'f-active':'')" @click="changeFilterType(2)">
|
|
@@ -56,38 +56,38 @@
|
|
|
<view style="height: 190rpx;"></view>
|
|
<view style="height: 190rpx;"></view>
|
|
|
<!-- 订单列表 -->
|
|
<!-- 订单列表 -->
|
|
|
<view style="position: relative;overflow: hidden;" v-if="dataList.length>0">
|
|
<view style="position: relative;overflow: hidden;" v-if="dataList.length>0">
|
|
|
- <view class="register-box" v-for="item,index in dataList" :key="index" @click="jumpUrl('/card/cardDetail/cardDetail')">
|
|
|
|
|
- <view class="register-title ddflex fflex" @click.stop="jumpUrl('/card/cardDetail/cardDetail')">
|
|
|
|
|
|
|
+ <view class="register-box" v-for="item,index in dataList" :key="index" @click="jumpUrl('/card/cardDetail/cardDetail?id='+item.id)">
|
|
|
|
|
+ <view class="register-title ddflex fflex">
|
|
|
<image class="register-title-icon" :src="item.avatar?item.avatar:'/static/images/userimg.png'"></image>
|
|
<image class="register-title-icon" :src="item.avatar?item.avatar:'/static/images/userimg.png'"></image>
|
|
|
<view class="flex" style="min-width: 0;">
|
|
<view class="flex" style="min-width: 0;">
|
|
|
<view class="ddflex">
|
|
<view class="ddflex">
|
|
|
- <view class="card-name fflex tover">{{item.nickName?item.nickName:'杜平'}}</view>
|
|
|
|
|
- <image style="width: 64rpx;height: 64rpx;margin-left: 10rpx;" src="../static/images/wxth.png"></image>
|
|
|
|
|
|
|
+ <view class="card-name fflex tover">{{item.realName?item.realName:''}}</view>
|
|
|
|
|
+ <image style="width: 64rpx;height: 64rpx;margin-left: 10rpx;" src="/card/static/images/wxChat.png"></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="ddflex" style="margin-top: 4rpx;">
|
|
<view class="ddflex" style="margin-top: 4rpx;">
|
|
|
- <view class="card-tag">高级组经理</view>
|
|
|
|
|
- <view class="card-tag">入司10年</view>
|
|
|
|
|
|
|
+ <view class="card-tag">{{ item.jobName }}</view>
|
|
|
|
|
+ <view class="card-tag">入司{{item.inDate?getAge(item.inDate):1}}年</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="card-area ddflex">
|
|
<view class="card-area ddflex">
|
|
|
- <image src="/static/pages/images/dzico.png"></image>
|
|
|
|
|
- <view class="flex tover">中电软件园中电软件园中电软件园中电软件园</view>
|
|
|
|
|
- <view style="color: #A1A1A1;margin-left: 10rpx;">距离5.23km</view>
|
|
|
|
|
|
|
+ <image src="/card/static/images/area.png"></image>
|
|
|
|
|
+ <view class="flex tover">{{item.address}}</view>
|
|
|
|
|
+ <view style="color: #A1A1A1;margin-left: 10rpx;">距离{{item.distance>1000?((item.distance/1000).toFixed(2)+'km'):(item.distance+'m')}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="ddflex" style="margin-top: 41rpx;">
|
|
<view class="ddflex" style="margin-top: 41rpx;">
|
|
|
<view class="flex">
|
|
<view class="flex">
|
|
|
- <view class="card-data">1678</view>
|
|
|
|
|
|
|
+ <view class="card-data">{{item.cntCust?item.cntCust:0}}</view>
|
|
|
<view class="card-label">服务客户</view>
|
|
<view class="card-label">服务客户</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="card-line"></view>
|
|
<view class="card-line"></view>
|
|
|
<view class="flex">
|
|
<view class="flex">
|
|
|
- <view class="card-data">1678</view>
|
|
|
|
|
|
|
+ <view class="card-data">{{item.cntCntr?item.cntCntr:0}}</view>
|
|
|
<view class="card-label">保单件数</view>
|
|
<view class="card-label">保单件数</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="card-line"></view>
|
|
<view class="card-line"></view>
|
|
|
<view class="flex">
|
|
<view class="flex">
|
|
|
- <view class="card-data">1678</view>
|
|
|
|
|
|
|
+ <view class="card-data">{{item.thumbs?item.thumbs:0}}</view>
|
|
|
<view class="card-label">用户评价</view>
|
|
<view class="card-label">用户评价</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -103,6 +103,8 @@
|
|
|
<script>
|
|
<script>
|
|
|
const app = getApp();
|
|
const app = getApp();
|
|
|
const req = require("../../utils/request.js");
|
|
const req = require("../../utils/request.js");
|
|
|
|
|
+ const util = require('../../utils/util.js');
|
|
|
|
|
+ const QQMapWX = require("../../utils/qqmap.js");
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {},
|
|
components: {},
|
|
@@ -170,11 +172,22 @@
|
|
|
isLoad: true,
|
|
isLoad: true,
|
|
|
searchVal: '',
|
|
searchVal: '',
|
|
|
dataList: [],
|
|
dataList: [],
|
|
|
- isReference:false
|
|
|
|
|
|
|
+ isReference:false,
|
|
|
|
|
+ latitude: '23.027923',
|
|
|
|
|
+ longitude: '113.753815',
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
- this.getDataList()
|
|
|
|
|
|
|
+ QQMapWX.initMap();
|
|
|
|
|
+ req.getLocation(res => {
|
|
|
|
|
+ const to = {
|
|
|
|
|
+ latitude: res.latitude,
|
|
|
|
|
+ longitude: res.longitude
|
|
|
|
|
+ };
|
|
|
|
|
+ this.latitude = res.latitude;
|
|
|
|
|
+ this.longitude = res.longitude;
|
|
|
|
|
+ this.getDataList()
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
if(this.isReference){
|
|
if(this.isReference){
|
|
@@ -267,6 +280,8 @@
|
|
|
let queryParams = {
|
|
let queryParams = {
|
|
|
page: this.page,
|
|
page: this.page,
|
|
|
limit: this.limit,
|
|
limit: this.limit,
|
|
|
|
|
+ latitude: this.latitude,
|
|
|
|
|
+ longitude: this.longitude,
|
|
|
}
|
|
}
|
|
|
if (this.searchVal) {
|
|
if (this.searchVal) {
|
|
|
queryParams.search = this.searchVal
|
|
queryParams.search = this.searchVal
|
|
@@ -286,7 +301,7 @@
|
|
|
queryParams.state = this.stateList[this.stateIndex].value;
|
|
queryParams.state = this.stateList[this.stateIndex].value;
|
|
|
}
|
|
}
|
|
|
req.getRequest('/api/visiting/card/cardInfoList', queryParams, data => {
|
|
req.getRequest('/api/visiting/card/cardInfoList', queryParams, data => {
|
|
|
- data = [1,2]
|
|
|
|
|
|
|
+ data = data.list
|
|
|
if (data != null && data.length == this.limit) {
|
|
if (data != null && data.length == this.limit) {
|
|
|
this.isLoad = true;
|
|
this.isLoad = true;
|
|
|
}
|
|
}
|
|
@@ -314,24 +329,9 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
- // 取消订单
|
|
|
|
|
- quxiao(item){
|
|
|
|
|
- this.$showModal({
|
|
|
|
|
- title: '提示',
|
|
|
|
|
- content: '确定取消订单?',
|
|
|
|
|
- cancelText: '取消',
|
|
|
|
|
- confirmText: '确认'
|
|
|
|
|
- })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- req.postRequest('/api/order/cancel',{id:item.id},res=>{
|
|
|
|
|
- req.msg('订单已取消')
|
|
|
|
|
- item.state = 8
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
- .catch(err => {
|
|
|
|
|
-
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ getAge(date) {
|
|
|
|
|
+ return util.getAge(date)
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
const systemInfo = uni.getSystemInfoSync();
|
|
const systemInfo = uni.getSystemInfoSync();
|