inforperson_添加收入来源其他来源

This commit is contained in:
邓晓坤
2019-10-24 15:05:49 +08:00
parent a8724a81d3
commit d3a5a2971d
2 changed files with 37 additions and 12 deletions

View File

@@ -2,18 +2,22 @@
<div class="insured-info-container pb50"> <div class="insured-info-container pb50">
<!-- 基本信息 --> <!-- 基本信息 -->
<van-cell-group class="mt10"> <van-cell-group class="mt10">
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">教育经历高中起</p> <p class="fs15 fwb pl10 pv12">教育经历高中起</p>
<!-- start -->
<div>
<p><van-icon class="v-middle" name="delete" /></p>
<FieldDatePicter v-validate="'required'" label="开始时间" name="开始时间" type="date" :flag="true" ref="birthday"></FieldDatePicter> <FieldDatePicter v-validate="'required'" label="开始时间" name="开始时间" type="date" :flag="true" ref="birthday"></FieldDatePicter>
<FieldDatePicter v-validate="'required'" label="截至时间" name="截至时间" type="date" :flag="true" ref="birthday"></FieldDatePicter> <FieldDatePicter v-validate="'required'" label="截至时间" name="截至时间" type="date" :flag="true" ref="birthday"></FieldDatePicter>
<van-field label="学校名称" type="text" name="学校名称" placeholder="请输入" v-validate="'required|email'" clearable /> <van-field label="学校名称" type="text" name="学校名称" placeholder="请输入" v-validate="'required|email'" clearable />
<van-field label="专业" type="text" name="专业" placeholder="请输入" v-validate="'required|email'" clearable /> <van-field label="专业" type="text" name="专业" placeholder="请输入" v-validate="'required|email'" clearable />
<van-field label="所获奖励" type="text" name="所获奖励" placeholder="请输入" v-validate="'required|email'" clearable /> <van-field label="所获奖励" type="text" name="所获奖励" placeholder="请输入" v-validate="'required|email'" clearable />
</div>
<!-- end -->
</van-cell-group> </van-cell-group>
</div> </div>
</template> </template>
<script> <script>
import { Field, CellGroup, Checkbox, Popup, Picker, Area, RadioGroup, Radio } from 'vant' import { Field, CellGroup, Checkbox, Area, col } from 'vant'
import FieldDatePicter from '@/components/ebiz/FieldDatePicter' import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
import Vue from 'vue' import Vue from 'vue'
export default { export default {
@@ -23,11 +27,9 @@ export default {
[Field.name]: Field, [Field.name]: Field,
[CellGroup.name]: CellGroup, [CellGroup.name]: CellGroup,
[Checkbox.name]: Checkbox, [Checkbox.name]: Checkbox,
[Popup.name]: Popup,
[Picker.name]: Picker,
[Area.name]: Area, [Area.name]: Area,
[RadioGroup.name]: RadioGroup, [col.name]: col
[Radio.name]: Radio
}, },
data() { data() {
return { return {
@@ -37,6 +39,9 @@ export default {
methods: { methods: {
//弹框选择 //弹框选择
// obJ{
// let productList=[],shopList=[],url="https://api.m.jd.com/client.action";function autoPost(id,type){fetch(`${url}?timestamp=${new Date().getTime()}`,{method:"POST",mode:"cors",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`functionId=raisepacket_collectScore&body={"type":${type},"ext":"${id}","appsign":1,"msgsign":2}&client=wh5`}).then(function(response){return response.json()}).then(function(res){console.log(res.data.biz_msg)})}function start(){fetch(`${url}?${new Date().getTime()}`,{method:"POST",mode:"cors",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:'functionId=raisepacket_getShopAndProductList&body=&client=wh5'}).then(function(response){return response.json()}).then(function(res){productList=res.data.result.productList;shopList=res.data.result.shopList;console.log(`获取到任务,商品:${productList.length}商品:${shopList.length}`);autoProductTask()})}function autoProductTask(){for(let i=0,leng=productList.length;i<leng;i++){(function(index){setTimeout(()=>{let item=productList[index];autoPost(item['id'],4);console.log(`商品总任务数:${leng}当前任务数:${index+1}`);if(leng-1==index){autoShopTask()}},index*1500)})(i)}}function autoShopTask(){for(let i=0,leng=shopList.length;i<leng;i++){(function(index){setTimeout(()=>{let item=shopList[index];autoPost(item['id'],2);console.log(`商铺总任务数:${leng}当前任务数:${index+1}`);if(leng-1==index){autoPlay()}},index*1500)})(i)}}function autoPlay(){for(let i=0,leng=4;i<leng;i++){(function(index){setTimeout(()=>{autoPost(0,5);console.log(`好玩互动:${leng}当前任务数:${index+1}`);if(leng-1==index){autoInteract()}},index*1000)})(i)}}function autoInteract(){for(let i=0,leng=4;i<leng;i++){(function(index){setTimeout(()=>{autoPost(0,10);console.log(`视频直播:${leng}当前任务数:${index+1}`);if(leng-1==index){autoShopping()}},index*1000)})(i)}}function autoShopping(){for(let i=0,leng=3;i<leng;i++){(function(index){setTimeout(()=>{autoPost(0,3);console.log(`精彩会场:${leng}当前任务数:${index+1}`)},index*1000)})(i)}}start();
// }
} }
} }
</script> </script>

View File

@@ -205,6 +205,26 @@
@on-choose="chooseOccupation" @on-choose="chooseOccupation"
/> />
<van-field <van-field
:value="userInfo.salarySource | idToText('salarySource')"
readonly
label="收入来源"
name="收入来源"
right-icon="arrow"
placeholder="请选择"
v-validate="'required'"
@click="toSelect('9')"
/>
<van-field
v-show="isShowOthenSalarySource"
v-model="userInfo.otherSalarySource"
label
name="其他来源"
placeholder="请输入其它收入来源"
clearable
maxlength="30"
/>
<van-field
v-model="userInfo.averageAnnualIncome" v-model="userInfo.averageAnnualIncome"
label="平均年收入(万元)" label="平均年收入(万元)"
name="平均年收入" name="平均年收入"