Browse Source

feat(market): 更新线索添加和编辑页面

- 将距离输入框改为选择器
- 添加距离字典获取和展示
-优化导航栏文本颜色
master
liutong 10 months ago
parent
commit
be6a904904
  1. 2
      pages.json
  2. 29
      pages/market/clue/add_clues.vue
  3. 28
      pages/market/clue/edit_clues.vue

2
pages.json

@ -490,7 +490,7 @@
"navigationBarTitleText": "线索", "navigationBarTitleText": "线索",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#292929", "navigationBarBackgroundColor": "#292929",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "white"
} }
}, },
{ {

29
pages/market/clue/add_clues.vue

@ -375,16 +375,14 @@
labelColor='#fff' labelColor='#fff'
:bottomBorder='false'> :bottomBorder='false'>
<view class="input-title" style="margin-right:14rpx;"> <view class="input-title" style="margin-right:14rpx;">
<fui-input <view
:borderBottom="false" class="input-title"
:padding="[0]" style="margin-right:14rpx;"
placeholder="点击填写" @click="openCicker(`distance`)">
v-model="formData.distance" {{ (formData.distance) ? picker_config.distance.text : '点击选择' }}
backgroundColor="#434544" </view>
size="26"
color="#fff"
></fui-input>
</view> </view>
</fui-form-item> </fui-form-item>
<!--沟通备注--> <!--沟通备注-->
<fui-form-item <fui-form-item
@ -679,7 +677,12 @@ export default {
status:{ status:{
text:'', text:'',
options:[], options:[],
} },
//
distance:{
text:'',
options:[],
},
},// },//
// //
@ -729,6 +732,7 @@ export default {
await this.getDict('cognitive_idea')//- await this.getDict('cognitive_idea')//-
await this.getDict('status')//- await this.getDict('status')//-
await this.getDict('decision_maker')//- await this.getDict('decision_maker')//-
await this.getDict('distance')//-
// this.getStaffList()// // this.getStaffList()//
// this.getAreaTree()// // this.getAreaTree()//
}, },
@ -871,6 +875,11 @@ export default {
case 'status': case 'status':
key = 'kh_status' key = 'kh_status'
break; break;
//
case 'distance':
key = 'distance'
break;
} }
if(!key){ if(!key){
return return

28
pages/market/clue/edit_clues.vue

@ -375,15 +375,12 @@
labelColor='#fff' labelColor='#fff'
:bottomBorder='false'> :bottomBorder='false'>
<view class="input-title" style="margin-right:14rpx;"> <view class="input-title" style="margin-right:14rpx;">
<fui-input <view
:borderBottom="false" class="input-title"
:padding="[0]" style="margin-right:14rpx;"
placeholder="点击填写" @click="openCicker(`distance`)">
v-model="formData.distance" {{ (formData.distance) ? picker_config.distance.text : '点击选择' }}
backgroundColor="#434544" </view>
size="26"
color="#fff"
></fui-input>
</view> </view>
</fui-form-item> </fui-form-item>
<!--沟通备注--> <!--沟通备注-->
@ -721,7 +718,12 @@ export default {
decision_maker:{ decision_maker:{
text:'', text:'',
options:[], options:[],
} },
//
distance:{
text:'',
options:[],
},
},// },//
// //
@ -772,6 +774,7 @@ export default {
await this.getDict('cognitive_idea')//- await this.getDict('cognitive_idea')//-
await this.getDict('status')//- await this.getDict('status')//-
await this.getDict('decision_maker')//- await this.getDict('decision_maker')//-
await this.getDict('distance')//-
// this.getStaffList()// // this.getStaffList()//
// this.getAreaTree()// // this.getAreaTree()//
@ -841,6 +844,7 @@ export default {
// //
this.picker_config.purchasing_power.text = sixSpeed.purchase_power_name || '点击选择'// this.picker_config.purchasing_power.text = sixSpeed.purchase_power_name || '点击选择'//
this.picker_config.cognitive_idea.text = sixSpeed.concept_awareness_name || '点击选择'// this.picker_config.cognitive_idea.text = sixSpeed.concept_awareness_name || '点击选择'//
this.picker_config.distance.text = sixSpeed.distance || '点击选择'//
}, },
@ -964,6 +968,10 @@ export default {
case 'status': case 'status':
key = 'kh_status' key = 'kh_status'
break; break;
//
case 'distance':
key = 'distance'
break;
} }
if(!key){ if(!key){
return return

Loading…
Cancel
Save