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

流程

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