Commit edcf5521 authored by 吴冠's avatar 吴冠

?

parent e46fac65
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<img src="~/assets/css/7.png" v-show="!showDefault"> <img src="~/assets/css/7.png" v-show="!showDefault">
</div> </div>
<div class="login-title">{{userName}}</div> <div class="login-title">{{userName}}</div>
<div class="login-button" @click="loginuser" v-show="showDefault">用户登录</div> <div class="login-button" @click="loginuser" v-show="showDefault">用户登录?</div>
<div class="login-button" @click="Merchant">商家入驻</div> <div class="login-button" @click="Merchant">商家入驻</div>
<div class="login-button" @click="checkout" v-show="!showDefault">退出</div> <div class="login-button" @click="checkout" v-show="!showDefault">退出</div>
</div> </div>
......
...@@ -95,19 +95,25 @@ export default { ...@@ -95,19 +95,25 @@ export default {
citySelect, citySelect,
dataTable dataTable
}, },
/* async mounted(){ /* mounted(){
let message={}; let message={};
message.size=10 message.size=10
message.currentPage=1 message.currentPage=1
getInquiryList(message); getInquiryList(message);
industryList(); industryList();
}, }, */
async asyncData(){ /* async asyncData({params,route,error}){
const {data,total} = await getInquiryList(params) console.log(route)
let message = {}
message.size =10
message.currentPage = 1
const res =await industryList();
const [data,total] = await getInquiryList(message)
console.log(data+'------------') console.log(data+'------------')
return { return {
priceList = data, priceList : data,
total = total total : total,
industryOptions:res
} }
console.log(11111111111111) console.log(11111111111111)
......
...@@ -76,9 +76,6 @@ export default { ...@@ -76,9 +76,6 @@ export default {
async getWindetails(id){ async getWindetails(id){
const {data} = await getWindetails(id) const {data} = await getWindetails(id)
console.log(id) console.log(id)
this.itemTitle = data.title
this.itemCode = data.projectId
this.itemTime = data.createTime
}, },
}, },
} }
......
...@@ -90,7 +90,7 @@ service.interceptors.response.use( ...@@ -90,7 +90,7 @@ service.interceptors.response.use(
error => { error => {
console.log(error+'--------------------------------') console.log(error+'--------------------------------')
//如果不在首页 不验证token信息 //如果不在首页 不验证token信息
if(error.response.status == 401){ if(error.response.code == 401){
/* console.log(error+'++++++++++++++++++++++++') /* console.log(error+'++++++++++++++++++++++++')
console.log(error.response.status+'--------------------') console.log(error.response.status+'--------------------')
//获取首页token验证时传递的特殊参数值 //获取首页token验证时传递的特殊参数值
......
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