| @@ -62,7 +62,7 @@ export function getMember(id){ | |||||
| //提交报名 | //提交报名 | ||||
| export function submmitSignup (params) { | export function submmitSignup (params) { | ||||
| return request({ | return request({ | ||||
| url:'/transaction/signup', | |||||
| url:'/transaction/signup/add', | |||||
| method: 'post', | method: 'post', | ||||
| data: params | data: params | ||||
| }) | }) | ||||
| @@ -129,6 +129,14 @@ export function selectDemand(id){ | |||||
| }) | }) | ||||
| } | } | ||||
| //个人供求 | |||||
| export function supplyDetail(id) { | |||||
| return request({ | |||||
| url: '/transaction/website/supplyDemand/id/'+id, | |||||
| method: 'get', | |||||
| }) | |||||
| } | |||||
| //删除供求 | //删除供求 | ||||
| export function deleteSupply(id){ | export function deleteSupply(id){ | ||||
| return request({ | return request({ | ||||
| @@ -14,7 +14,7 @@ | |||||
| style="margin-top: 10px;" | style="margin-top: 10px;" | ||||
| @load="getList()" | @load="getList()" | ||||
| > | > | ||||
| <van-cell v-for="(item,index) in interactionList" :key="index"> | |||||
| <van-cell v-for="(item,index) in interactionList" v-if="item.reply" :key="index"> | |||||
| <template #title> | <template #title> | ||||
| <van-icon name="../../static/images/icon/questions.png" size="18" style="top: 5px;margin-right: 5px;"/> | <van-icon name="../../static/images/icon/questions.png" size="18" style="top: 5px;margin-right: 5px;"/> | ||||
| {{item.content}} | {{item.content}} | ||||
| @@ -118,7 +118,7 @@ export default { | |||||
| this.getDicts("project_type").then(response => { | this.getDicts("project_type").then(response => { | ||||
| console.log(response) | console.log(response) | ||||
| response.data.map(item => { | response.data.map(item => { | ||||
| this.projectTypeOption.push({ value:item.dictCode, text: item.dictLabel}); | |||||
| this.projectTypeOption.push({ value:item.dictValue, text: item.dictLabel}); | |||||
| }); | }); | ||||
| }); | }); | ||||
| getDeptList().then(response => { | getDeptList().then(response => { | ||||
| @@ -165,6 +165,7 @@ export default { | |||||
| this.loading = false; | this.loading = false; | ||||
| }, | }, | ||||
| getList(){ | getList(){ | ||||
| console.log(this.value1) | |||||
| let queryDatas = { | let queryDatas = { | ||||
| deptId: this.activeId, | deptId: this.activeId, | ||||
| projectNumber:this.value1, | projectNumber:this.value1, | ||||
| @@ -46,7 +46,7 @@ | |||||
| :rules="[{ required: true, message: '请填写会员账号' }]" | :rules="[{ required: true, message: '请填写会员账号' }]" | ||||
| /> | /> | ||||
| <van-field | <van-field | ||||
| v-model="bankCardName" | |||||
| v-model="bankAddress" | |||||
| name="bankCardName" | name="bankCardName" | ||||
| label="开户银行" | label="开户银行" | ||||
| placeholder="开户银行" | placeholder="开户银行" | ||||
| @@ -110,7 +110,7 @@ export default { | |||||
| projectId:this.$route.query.projectId, | projectId:this.$route.query.projectId, | ||||
| deposit:this.$route.query.deposit, | deposit:this.$route.query.deposit, | ||||
| projectName:this.$route.query.projectName, | projectName:this.$route.query.projectName, | ||||
| bankCardName:"", | |||||
| bankAddress:"", | |||||
| bankCardNum:"", | bankCardNum:"", | ||||
| idCardNum:"", | idCardNum:"", | ||||
| phone:"", | phone:"", | ||||
| @@ -130,7 +130,7 @@ export default { | |||||
| getMember(response.user.userId).then(res => { | getMember(response.user.userId).then(res => { | ||||
| this.nickName = res.data.realname | this.nickName = res.data.realname | ||||
| this.idCardNum = res.data.idCardNum | this.idCardNum = res.data.idCardNum | ||||
| this.bankCardName = res.data.bankCardName | |||||
| this.bankAddress = res.data.bankAddress | |||||
| this.bankCardNum = res.data.bankCardNum | this.bankCardNum = res.data.bankCardNum | ||||
| this.phone = res.data.phone | this.phone = res.data.phone | ||||
| this.memberId = res.data.id | this.memberId = res.data.id | ||||
| @@ -41,7 +41,7 @@ export default { | |||||
| methods: { | methods: { | ||||
| loginOut(){ | loginOut(){ | ||||
| logout().then(response => { | logout().then(response => { | ||||
| window.location.href = '/login'; | |||||
| this.$router.push({name:'index'}) | |||||
| }); | }); | ||||
| }, | }, | ||||
| getInfo(){ | getInfo(){ | ||||
| @@ -45,7 +45,7 @@ | |||||
| </template> | </template> | ||||
| <script> | <script> | ||||
| import { getMember , userDemand , updateDemand , selectDemand , base64Attach , showImg , deleteUserImg} from "@/api/user/index"; | |||||
| import { getMember , userDemand , updateDemand , selectDemand , base64Attach , showImg , deleteUserImg ,supplyDetail} from "@/api/user/index"; | |||||
| import { getInfo } from "@/api/login/index"; | import { getInfo } from "@/api/login/index"; | ||||
| import {Dialog} from "vant"; | import {Dialog} from "vant"; | ||||
| export default { | export default { | ||||
| @@ -124,7 +124,7 @@ export default { | |||||
| }); | }); | ||||
| }, | }, | ||||
| getInteraction(){ | getInteraction(){ | ||||
| selectDemand(this.$route.query.id).then(response => { | |||||
| supplyDetail(this.$route.query.id).then(response => { | |||||
| this.form.projectName = response.data.projectName; | this.form.projectName = response.data.projectName; | ||||
| this.form.location = response.data.location; | this.form.location = response.data.location; | ||||
| this.form.projectContent = response.data.projectContent; | this.form.projectContent = response.data.projectContent; | ||||