Commit db1bf4b9 authored by 黄奎's avatar 黄奎

页面修改

parent 1d3453a6
......@@ -101,19 +101,7 @@ Vue.prototype.apiJavaPost = function (cmd, msg, successCall, faildCall) {
}
})
.then(res => {
if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
this.$router.push({
path: '/login'
})
} else if (res.data.resultCode == 10005) {
this.$router.go(-1)
} else {
if (res.data.award && res.data.award.mName !== null) {
this.MsgBus.$emit('openRaffleTickets', res.data.award)
}
successCall(res)
}
successCall(res)
}, faildCall)
},
......@@ -248,6 +236,9 @@ Vue.prototype.getUrlKey = function (name, url) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(url) || [, ""])[1].replace(/\+/g, '%20')) || null
}
Vue.prototype.GetHtml = function (str) {
return str.replace(/&lt;/g, '<').replace(/&gt;/g, '>')
.replace(/&amp;/g, '&').replace(/&quot;/g, '"').replace(/&apos;/g, "'");
if (str && str != "") {
return str.replace(/&lt;/g, '<').replace(/&gt;/g, '>')
.replace(/&amp;/g, '&').replace(/&quot;/g, '"').replace(/&apos;/g, "'");
}
return str;
}
......@@ -187,6 +187,9 @@
this.accountMsg.Mobile = jsonData.Mobile;
this.accountMsg.Name = jsonData.Name;
this.accountMsg.Sex = jsonData.Sex;
}else if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
localStorage.removeItem("b2bUser");
this.CommonJump('/login', {})
}
},
err => {}
......@@ -225,9 +228,9 @@
position:'top',
timeout: 2000, // 以毫秒为单位; 0意味着没有超时
})
// var jsonData = JSON.stringify(res.data.data);
// window.localStorage.setItem("b2bUser", jsonData);
}else if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
localStorage.removeItem("b2bUser");
this.CommonJump('/login', {})
}
},
err => {}
......@@ -283,6 +286,9 @@
position:'top',
timeout: 2000, // 以毫秒为单位; 0意味着没有超时
})
}else if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
localStorage.removeItem("b2bUser");
this.CommonJump('/login', {})
}
},
err => {}
......
......@@ -152,6 +152,10 @@
if (res.data.resultCode == 1) {
this.InfoData = res.data.data;
}
else if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
localStorage.removeItem("b2bUser");
this.CommonJump('/login', {})
}
},
err => {}
);
......
......@@ -247,6 +247,10 @@
this.DataList = res.data.data.pageData;
this.pageCount = res.data.data.pageCount;
}
else if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
localStorage.removeItem("b2bUser");
this.CommonJump('/login', {})
}
},
err => {}
);
......
......@@ -239,7 +239,6 @@
res => {
this.$q.loading.hide()
if (res.data.resultCode == 1) {
console.log(" res.data.data", res.data.data);
this.InfoData = res.data.data.model;
this.modelPrice = res.data.data.modelPrice;
}
......
......@@ -50,9 +50,11 @@
display: block;
padding: 20px 25px;
}
.order-list{
padding:0;
.order-list {
padding: 0;
}
.order-list li {
margin-bottom: 15px;
font-size: 0;
......@@ -118,18 +120,20 @@
}
}
.text-my{
color:#00afff;
.text-my {
color: #00afff;
}
.order_titleMobile{
margin:20px 0 10px 0;
font-size:25px;
color:#666;
.order_titleMobile {
margin: 20px 0 10px 0;
font-size: 25px;
color: #666;
}
@media only screen and (max-width: 1200px) {
.order_tour {
width: 100%!important;
padding-right:0!important;
width: 100% !important;
padding-right: 0 !important;
}
}
......@@ -140,24 +144,18 @@
<template v-if="!$q.screen.xs">
<div class="order-header">
<div class="order_title">我的訂單</div>
<q-tabs
v-model="tab"
inline-label
class="text-my"
>
<q-tab :name="item.Type" :label="item.Type" v-for="(item,index) in TitList" @click="handleClick(item)" :key="index" />
<q-tabs v-model="tab" inline-label class="text-my">
<q-tab :name="item.Type" :label="item.Type" v-for="(item,index) in TitList" @click="handleClick(item)"
:key="index" />
</q-tabs>
</div>
</template>
<template v-if="$q.screen.xs">
<div>
<div class="order_titleMobile">我的訂單</div>
<q-tabs
v-model="tab"
inline-label
class="text-my"
>
<q-tab :name="item.Type" :label="item.Type" v-for="(item,index) in TitList" @click="handleClick(item)" :key="index" />
<q-tabs v-model="tab" inline-label class="text-my">
<q-tab :name="item.Type" :label="item.Type" v-for="(item,index) in TitList" @click="handleClick(item)"
:key="index" />
</q-tabs>
</div>
</template>
......@@ -216,7 +214,7 @@
props: [],
data() {
return {
tab:'全部',
tab: '全部',
qMsg: {
PageIndex: 1,
PageSize: 10,
......@@ -281,11 +279,15 @@
"/api/b2b/user/getrecentorder",
this.getOrderMsg,
res => {
this.$q.loading.hide()
this.$q.loading.hide();
console.log("res",res);
if (res.data.resultCode == 1) {
this.DataList = res.data.data.pageData;
this.pageCount = res.data.data.pageCount;
}
} else if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
localStorage.removeItem("b2bUser");
this.CommonJump('/login', {})
}
},
null
);
......
This diff is collapsed.
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