Browse Source

优化

master
xiaweibo1 4 years ago
parent
commit
b12562578b
  1. 56
      src/components/common/Header.vue
  2. 2
      src/components/page/Order/orderDetails.vue
  3. 2
      src/components/page/Purchaser/wkPurchaser.vue
  4. 2
      src/components/page/Purchaser/wkThird.vue
  5. 2
      src/components/page/Purchaser/wkTrusteeship.vue

56
src/components/common/Header.vue

@ -158,37 +158,41 @@ export default {
// let data={user_id:8} // let data={user_id:8}
isOpenAccount(data).then(res => { isOpenAccount(data).then(res => {
console.info(res) console.info(res)
this.examine_data=res.data if(res.code==100){
let index; this.examine_data=res.data
for(let i=0; i<this.sidebarList.length;i++){ let index;
if (this.activeClass==this.sidebarList[i].url) {
index=i
}
}
if(res.data.is_buyer>0 &&res.data.buyer_status==1){
this.sidebarList[0].url='/Purchaser'
}else{
this.sidebarList[0].url='/wkPurchaser'
}
if(res.data.is_enter_shop>0 &&res.data.enter_shop_status==1){
this.sidebarList[1].url='/Hoster'
}else{
this.sidebarList[1].url='/wkTrusteeship'
}
if(res.data.is_third_party>0 &&res.data.third_party_status==1){
this.sidebarList[2].url='/wkThird'
}else{
this.sidebarList[2].url='/wkThird'
}
if (typeof(index)=='undefined') {
for(let i=0; i<this.sidebarList.length;i++){ for(let i=0; i<this.sidebarList.length;i++){
if (this.activeClass==this.sidebarList[i].url) { if (this.activeClass==this.sidebarList[i].url) {
index=i index=i
} }
} }
} if(res.data.is_buyer>0 &&res.data.buyer_status==1){
if (typeof(index)!='undefined' && this.activeClass!=this.sidebarList[index].url) { this.sidebarList[0].url='/Purchaser'
this.goPage(this.sidebarList[index].url) }else{
this.sidebarList[0].url='/wkPurchaser'
}
if(res.data.is_enter_shop>0 &&res.data.enter_shop_status==1){
this.sidebarList[1].url='/Hoster'
}else{
this.sidebarList[1].url='/wkTrusteeship'
}
if(res.data.is_third_party>0 &&res.data.third_party_status==1){
this.sidebarList[2].url='/wkThird'
}else{
this.sidebarList[2].url='/wkThird'
}
if (typeof(index)=='undefined') {
for(let i=0; i<this.sidebarList.length;i++){
if (this.activeClass==this.sidebarList[i].url) {
index=i
}
}
}
if (typeof(index)!='undefined' && this.activeClass!=this.sidebarList[index].url) {
this.goPage(this.sidebarList[index].url)
}
}else{
this.$message.error(res.msg)
} }
}); });
}, },

2
src/components/page/Order/orderDetails.vue

@ -41,7 +41,7 @@
<p class="order_info_right_tips" v-else-if="type==2">交易订单已关闭详情请咨询客服人员</p> <p class="order_info_right_tips" v-else-if="type==2">交易订单已关闭详情请咨询客服人员</p>
<div class="order_info_right_tips" v-if="type!=2"> <div class="order_info_right_tips" v-if="type!=2">
<span>您可以点击</span> <span>您可以点击</span>
<a class="pay_button" :href="orderInfos.type==1?orderInfos.asset_report:orderInfos.transaction_doc" target="view_window">{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</a> <a class="pay_button" :href="'http://www.xdocin.com/xdoc?_func=to&amp;_format=html&amp;_cache=1&amp;_xdoc='+orderInfos.type==1?orderInfos.asset_report:orderInfos.transaction_doc" target="_blank" rel="nofollow">{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</a>
<span>下载{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</span> <span>下载{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</span>
</div> </div>
</div> </div>

2
src/components/page/Purchaser/wkPurchaser.vue

@ -195,6 +195,8 @@ export default {
account_type: 1, account_type: 1,
business_license: '', business_license: '',
legal_certificate: '', legal_certificate: '',
legal_card_front:'',
legal_card_backfacade:'',
legal_card: '', legal_card: '',
number_certificate: '', number_certificate: '',
bank_account_certificate: '', bank_account_certificate: '',

2
src/components/page/Purchaser/wkThird.vue

@ -194,6 +194,8 @@ export default {
business_license: '', business_license: '',
legal_certificate: '', legal_certificate: '',
legal_card: '', legal_card: '',
legal_card_front:'',
legal_card_backfacade:'',
number_certificate: '', number_certificate: '',
bank_account_certificate: '', bank_account_certificate: '',
legal_authorization: '', legal_authorization: '',

2
src/components/page/Purchaser/wkTrusteeship.vue

@ -195,6 +195,8 @@ export default {
business_license: '', business_license: '',
legal_certificate: '', legal_certificate: '',
legal_card: '', legal_card: '',
legal_card_front:'',
legal_card_backfacade:'',
number_certificate: '', number_certificate: '',
bank_account_certificate: '', bank_account_certificate: '',
legal_authorization: '', legal_authorization: '',

Loading…
Cancel
Save