Commit 3ea2cbf0 authored by 吴冠's avatar 吴冠

流程

parent 5bd082e2
......@@ -12,7 +12,7 @@ export default {
** Nuxt rendering mode
** See https://nuxtjs.org/api/configuration-mode
*/
mode: 'universal',
mode: 'history',
/*
** Nuxt target
** See https://nuxtjs.org/api/configuration-target
......
......@@ -45,7 +45,7 @@
<ul v-if="isshow1">
<li v-if = "!isshow1">暂无数据</li>
<li v-for="item in priceList" :key="item.id">
<keep-alive><div @click="handleChageUrl(item.noticeId)">
<div @click="handleChageUrl(item.noticeId)">
<div class="time">{{getTimer(item.createTime)}}</div>
<div class="price-item">
<div class="t1" style="font-weight: bold;">
......@@ -66,7 +66,6 @@
</div>
</div>
</div>
</keep-alive>
</li>
</ul>
<!-- <div v-show="isshow">
......@@ -105,45 +104,36 @@ export default {
noticeType:'ENQUIRY'
}
console.log(11111111111)
/* if(Cookies.get("details")){
mes.currentPage = Cookies.get("currentPage")
} */
const res = await industryList();
const {data,total} = await getInquiryList(mes)
/* Cookies.remove("details")
Cookies.remove("currentPage") */
return {
priceList : data,
total : total,
industryOptions:res
}
},
activated() {
this.getInquiryList();
},
mounted(){
let mes ={
/* let mes ={
currentPage:1,
size:10,
noticeType:'ENQUIRY'
}
} */
console.log(11111111111)
if(Cookies.get("details")){
let mes = {}
mes.currentPage = Cookies.get("currentPage")
mes.size = Cookies.get("size")
mes.noticeType = "ENQUIRY"
this. getInquiryList(mes)
}
this. industryList();
this. getInquiryList(mes)
/* this. getInquiryList(mes) */
Cookies.remove("details")
Cookies.remove("currentPage")
Cookies.remove("size")
},
data() {
return {
setform:{
size:'',
currentPage:''
},
cacheCurrentPage:'',
noticeT:'[询价公告]',
isshow1:true,
......@@ -270,7 +260,6 @@ export default {
this.getData.size = val
mess.currentPage = this.getData.currentPage
mess.noticeType = "ENQUIRY"
Cookies.set("size",val)
this.setform.size=val
this.getInquiryList(mess)
},
......@@ -281,7 +270,6 @@ export default {
this.getData.currentPage = val
mess.size = this.getData.size
Cookies.set("currentPage",val)
this.setform.currentPage=val
this.getInquiryList(mess);
},
dealDisabledDate(time) {
......
......@@ -5,14 +5,17 @@
</div>
<div v-if="code==502">
<h1>对不起,你没有通过审核!</h1>
<!-- <div class="sty">{{msg}}</div> -->
<div class="sty">{{msg}}</div>
<button class=" nextButton" @click="changeInfo">修改注册信息</button>
</div>
<div v-if="code==503">
<h1>抱歉,你的公司已被禁用,请联系管理员!</h1>
</div>
</div>
</template>
<script>
import {powerLogin} from '~/api/bid/login';
/* import {powerLogin} from '~/api/bid/login'; */
import Cookies from 'js-cookie'
export default {
mounted(){
......@@ -22,7 +25,7 @@ export default {
},
data(){
return{
code:'502',
code:'',
msg:""
}
},
......@@ -30,16 +33,14 @@ export default {
//点击修改返回之前页面
changeInfo(){
Cookies.set("auditStatus",1)
this.$router.push("/examine")
}
this.$router.push("/login/examine")
},
/* async powerLogin(){
const {data,code,msg} = await powerLogin()
const {data,msg,code} = await powerLogin()
console.log(data)
this.code = code
this.msg = msg
},
backStage(){
} */
}, */
}
}
</script>
......@@ -55,6 +56,9 @@ export default {
margin-bottom: 0.8rem;
color: #fff;
cursor: pointer;
margin-right:-150px;
position: absolute;
left:42%
}
.home{
width:100%;
......
......@@ -394,8 +394,6 @@
<div>{{form.companyName}}</div>
</div>
<div class="y3 flex">
<!-- <div>注册角色:</div>
<div>{{form.type}}</div> -->
<div>注册角色:</div>
<div v-if="form.type==='1'">采购商</div>
<div v-else>供应商</div>
......@@ -684,8 +682,13 @@ export default {
// this.getCordimg();
//如果是来自于auditStatus状态的话 说明有错误信息 重新把用户输入的信息自动填充
if(Cookies.get("auditStatus")=="1"){
this.perfectForm = Cookies.get("dataform")
this.active == 2
this.form = Cookies.get("form")
this.adminform = Cookies.get("adminform")
this.perfectForm = Cookies.get("perfectForm")
this.form.companyName = Cookies.get("company")
}
Cookies.remove("auditStatus")
},
data() {
// 测试省份
......@@ -1203,6 +1206,12 @@ export default {
}else{
this.$message.error(error)
}
//储存form和perfectForm注册有问题时回到这个页面
Cookies.set("from",this.form)
Cookies.set("adminform",this.adminform)
Cookies.set("perfectForm",this.perfectForm)
Cookies.set("company",this.form.companyName)
console.log("this.companyName")
}
}
},
......@@ -1341,10 +1350,8 @@ export default {
}
.getcode > .code {
/*margin: 400px auto;*/
width: 0.68rem;
height: 0.32rem;
/*border: 1px solid red;*/
position: absolute;
top: 0;
left: 3.3rem;
......
......@@ -163,16 +163,19 @@
type: 'error'
});
}
//501审核中
if(code ==501){
if(code!==200){
Cookies.set("code",code)
this.$router.push("/login/auditStatus")
}
/* if(code ==501){
this.$router.push("auditStatus")
cookies.set("code",501)
}
//502审核未通过
if(code ==502){
this.$router.push("auditStatus")
cookies.set("code",502)
}
} */
}
} catch (err) {
console.log(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment