|
@@ -30,9 +30,9 @@
|
|
|
{{item.description}}
|
|
|
</view>
|
|
|
<view class="text-right flex-1" v-if="item.type == 'radio' || item.type == 'select'">
|
|
|
- <text class="muted">{{survey[item.name]}}</text>
|
|
|
+ <text class="muted">{{item.value[survey[item.name]]}}</text>
|
|
|
<u-icon name="arrow-right" size="28" color="#B8B8B8"
|
|
|
- :label="survey[item.name]!= undefined ? '' :'请选择'" label-pos="left"></u-icon>
|
|
|
+ :label="survey[item.name]== 0 ? '' :'请选择'" label-pos="left"></u-icon>
|
|
|
<u-picker v-model="show[item.name]" mode="selector" :range="item.value"
|
|
|
@confirm="pickerConfirm(index, $event)" @cancel="pickerCancel(index)"></u-picker>
|
|
|
</view>
|
|
@@ -469,7 +469,7 @@
|
|
|
//人才
|
|
|
if (this.currentTab == 0) {
|
|
|
let item = this.surveyList[index]
|
|
|
- this.survey[item.name] = item.value[obj[0]]
|
|
|
+ this.survey[item.name] = [obj[0]]
|
|
|
this.show[item.name] = false
|
|
|
} else {
|
|
|
//企业
|
|
@@ -507,7 +507,7 @@
|
|
|
data,
|
|
|
cengci,
|
|
|
msg
|
|
|
- } = await submitSurvey(this.info);
|
|
|
+ } = await submitSurvey(this.survey);
|
|
|
if (status == 1) {
|
|
|
uni.setStorageSync('policyList', data);
|
|
|
uni.setStorageSync('policyCengci', cengci);
|
|
@@ -559,7 +559,7 @@
|
|
|
// this.show[item.name] = false;
|
|
|
//初始化radio的info
|
|
|
if (item.type == 'radio' || item.type == 'select') {
|
|
|
- this.survey[item.name] = item.value[0]
|
|
|
+ this.survey[item.name] = 0
|
|
|
}
|
|
|
//初始化模糊搜索框
|
|
|
if (item.type == 'text') {
|