Commit a0cce051 authored by 吴冠's avatar 吴冠

流程

parent 58e5a72a
...@@ -229,3 +229,10 @@ export function getnewsdetails(id){ ...@@ -229,3 +229,10 @@ export function getnewsdetails(id){
method:'get', method:'get',
}) })
} }
//审核失败后
export function getErrorInfo(id){
return request({
url:`/company/detail/${id}`,
method:'get',
})
}
\ No newline at end of file
...@@ -100,27 +100,9 @@ import Cookies from "js-cookie" ...@@ -100,27 +100,9 @@ import Cookies from "js-cookie"
let mes = { let mes = {
status:1 status:1
} }
/* let mes1 = {
cateId:124
}
let mes2 = {
cateId:125
}
let mes3 = {
cateId:123
} */
/* const {data} = await getSecond() */
const {data} = await getLoopPic(mes) const {data} = await getLoopPic(mes)
/* const res1 = await getListSite(mes1)
const res2 = await getListSite1(mes2)
const res3 = await getListSite2(mes3) */
return{ return{
/* dataList:data, */
picArr:data, picArr:data,
/* dynamic1:res1,
dynamic2:res2,
dynamic3:res3, */
} }
}, },
methods:{ methods:{
...@@ -167,10 +149,6 @@ import Cookies from "js-cookie" ...@@ -167,10 +149,6 @@ import Cookies from "js-cookie"
Merchant(){ Merchant(){
this.$router.push('/login/examine') this.$router.push('/login/examine')
}, },
/* async getCategoryList(){
const {data} = await getCategoryList()
this.dynamicList = data
}, */
async getListSite(){ async getListSite(){
let me = {} let me = {}
me.cateId = 124 me.cateId = 124
...@@ -223,10 +201,6 @@ import Cookies from "js-cookie" ...@@ -223,10 +201,6 @@ import Cookies from "js-cookie"
const {data} = await getLoopPic(message) const {data} = await getLoopPic(message)
this.picArr = data this.picArr = data
}, },
//移入显示退出按钮
/* changeOver(){
this.isshow = true
}, */
//添加退出按钮 清空token //添加退出按钮 清空token
checkout(){ checkout(){
Cookies.remove("token") Cookies.remove("token")
...@@ -235,7 +209,6 @@ import Cookies from "js-cookie" ...@@ -235,7 +209,6 @@ import Cookies from "js-cookie"
pushH(){ pushH(){
let token=Cookies.get("token") let token=Cookies.get("token")
if(token){ if(token){
/* window.location.href="http://192.168.200.201:8082/#/purchaser/Home" */
window.location.href=`http://60.205.251.80:8082/#/purchaser/Home?token=${token}` window.location.href=`http://60.205.251.80:8082/#/purchaser/Home?token=${token}`
} }
} }
...@@ -498,8 +471,6 @@ import Cookies from "js-cookie" ...@@ -498,8 +471,6 @@ import Cookies from "js-cookie"
width:12rem; width:12rem;
margin:0 auto; margin:0 auto;
position: relative; position: relative;
/* height:5.3rem; */
/* top:-310px; */
z-index:99999 z-index:99999
} }
</style> </style>
...@@ -218,10 +218,10 @@ export default { ...@@ -218,10 +218,10 @@ export default {
} }
}, },
prev() { prev() {
let size = Cookies.get("size")||10 /* let size = Cookies.get("size")||10
let currentPage = Cookies.get("currentPage")||1 let currentPage = Cookies.get("currentPage")||1
this.$router.push(`/notice/inquiry/?size=${size}&currentPage=${currentPage}&noticeType=ENQUIRY`) this.$router.push(`/notice/inquiry/?size=${size}&currentPage=${currentPage}&noticeType=ENQUIRY`) */
/* window.history.back() */ window.history.back()
}, },
async getenquirydetails(params) { async getenquirydetails(params) {
const { data } = await getenquirydetails(params); const { data } = await getenquirydetails(params);
......
...@@ -666,6 +666,7 @@ import imgUpload from "~/components/Upload/imgUpload"; ...@@ -666,6 +666,7 @@ import imgUpload from "~/components/Upload/imgUpload";
import Identify from "~/components/identify"; import Identify from "~/components/identify";
import citySelect from "~/components/citySelect"; import citySelect from "~/components/citySelect";
import Cookies from "js-cookie" import Cookies from "js-cookie"
import {getErrorInfo} from '~/common/list.js'
export default { export default {
components: { components: {
Identify, Identify,
...@@ -682,11 +683,8 @@ export default { ...@@ -682,11 +683,8 @@ export default {
// this.getCordimg(); // this.getCordimg();
//如果是来自于auditStatus状态的话 说明有错误信息 重新把用户输入的信息自动填充 //如果是来自于auditStatus状态的话 说明有错误信息 重新把用户输入的信息自动填充
if(Cookies.get("auditStatus")=="1"){ if(Cookies.get("auditStatus")=="1"){
this.active == 2 this.active ==1
this.form = Cookies.get("form") this.getErrorInfo()
this.adminform = Cookies.get("adminform")
this.perfectForm = Cookies.get("perfectForm")
this.form.companyName = Cookies.get("company")
} }
Cookies.remove("auditStatus") Cookies.remove("auditStatus")
}, },
...@@ -1092,6 +1090,15 @@ export default { ...@@ -1092,6 +1090,15 @@ export default {
}; };
}, },
methods: { methods: {
//code502填充注册所有信息
async getErrorInfo(){
let companyErrorId = Cookies.get("companyErrorId")
const {data} = await getErrorInfo(companyErrorId)
this.form = data.form
/* this.adminform = data.adminform */
this.perfectForm = data.perfectForm
},
/* watchStatus(){ /* watchStatus(){
this.$router.push("auditStatus") this.$router.push("auditStatus")
}, */ }, */
...@@ -1206,12 +1213,6 @@ export default { ...@@ -1206,12 +1213,6 @@ 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")
} }
} }
}, },
......
...@@ -163,19 +163,11 @@ ...@@ -163,19 +163,11 @@
type: 'error' type: 'error'
}); });
} }
//储存公司id 审核未通过时自动填充数据
if(code!==200){ if(code!==200){
Cookies.set("code",code)
this.$router.push("/login/auditStatus") this.$router.push("/login/auditStatus")
Cookies.set("companyErrorId",data.companyId)
} }
/* if(code ==501){
this.$router.push("auditStatus")
cookies.set("code",501)
}
if(code ==502){
this.$router.push("auditStatus")
cookies.set("code",502)
} */
} }
} catch (err) { } catch (err) {
console.log(err); console.log(err);
......
...@@ -8,8 +8,8 @@ import requestUrl from '../utils/Domain.js' ...@@ -8,8 +8,8 @@ import requestUrl from '../utils/Domain.js'
// 创建axios实例 // 创建axios实例
const service = axios.create({ const service = axios.create({
baseURL:'http://60.205.251.80:8082/apis', /* baseURL:'http://60.205.251.80:8082/apis', */
/* baseURL: 'http://192.168.3.35:8085/apis', */ baseURL: 'http://192.168.3.35:8085/apis',
timeout: 35000 // 请求超时时间 timeout: 35000 // 请求超时时间
}) })
......
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