|
@@ -3,13 +3,13 @@
|
|
|
<view class="task-body m-lr20 animate__animated animate__fadeIn" v-if="taskList.length>0">
|
|
<view class="task-body m-lr20 animate__animated animate__fadeIn" v-if="taskList.length>0">
|
|
|
<view class="row-c page-box-bg-fff m-b20 r-30 box-shadow-197" v-for="(item,index) in taskList" :key="index"
|
|
<view class="row-c page-box-bg-fff m-b20 r-30 box-shadow-197" v-for="(item,index) in taskList" :key="index"
|
|
|
@click="onTaskDetails(item)">
|
|
@click="onTaskDetails(item)">
|
|
|
- <view class="main_string" :style="{background:lineColor[0]}"></view>
|
|
|
|
|
|
|
+ <view class="main_string" :style="{background:lineColor[item.product_id%3]}"></view>
|
|
|
<view class="row-c flex p-30">
|
|
<view class="row-c flex p-30">
|
|
|
<image class="wh-80" :src="item.product_icon" mode=""></image>
|
|
<image class="wh-80" :src="item.product_icon" mode=""></image>
|
|
|
<view class="flex m-l20">
|
|
<view class="flex m-l20">
|
|
|
<view class="row-justify-sb center flex">
|
|
<view class="row-justify-sb center flex">
|
|
|
<text class="text-color-333 sys-weight-600">{{item.product_name}}</text>
|
|
<text class="text-color-333 sys-weight-600">{{item.product_name}}</text>
|
|
|
- <view class="row-c line-40">
|
|
|
|
|
|
|
+ <view class="row-c line-40" @click.stop="makingCall(item.phone)">
|
|
|
<text class="size-26 text-color-333">{{item.name}}</text>
|
|
<text class="size-26 text-color-333">{{item.name}}</text>
|
|
|
<image class="wh-30 m-l16" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task/task-phone.png" mode=""></image>
|
|
<image class="wh-30 m-l16" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task/task-phone.png" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
@@ -102,11 +102,14 @@
|
|
|
return {
|
|
return {
|
|
|
leftImg: ['task-house', 'task-business', 'task-repayment'],
|
|
leftImg: ['task-house', 'task-business', 'task-repayment'],
|
|
|
iconList: ['task-audit', 'task-do', 'task-stay'],
|
|
iconList: ['task-audit', 'task-do', 'task-stay'],
|
|
|
- lineColor: ['#DE5847', '#EF8F27', '#0FB160'],
|
|
|
|
|
|
|
+ lineColor: [ '#EF8F27','#DE5847', '#0FB160'],
|
|
|
isAjax: false
|
|
isAjax: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ makingCall(phone) {
|
|
|
|
|
+ tools.makingCall(phone)
|
|
|
|
|
+ },
|
|
|
takeTask(index) {
|
|
takeTask(index) {
|
|
|
if (this.isAjax) {
|
|
if (this.isAjax) {
|
|
|
return;
|
|
return;
|
|
@@ -132,9 +135,16 @@
|
|
|
return `https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task/${this.leftImg[this.leftImgStatus]}.png`
|
|
return `https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task/${this.leftImg[this.leftImgStatus]}.png`
|
|
|
},
|
|
},
|
|
|
onTaskDetails(item) {
|
|
onTaskDetails(item) {
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: '/page_task/task_details/task_details?taskId=' + item.id
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if(this.type===5){
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/page_task/task_details/task_details?taskId=' + item.business_id
|
|
|
|
|
+ })
|
|
|
|
|
+ }else {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/page_task/task_details/task_details?taskId=' + item.id
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|