优化部分代码
parent
cbd73ae638
commit
6bb8ca73d3
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
<view>
|
<view>
|
||||||
<view style="margin:20rpx 0; color:#003a8c;" @click="navigateTo('/pages/mine/help/tips?type=user')">《{{config.name}}用户协议》</view>
|
<view style="margin:20rpx 0; color:#003a8c;" @click="navigateTo('/pages/mine/help/tips?type=user')">《{{config.name}}用户协议》</view>
|
||||||
<view>CopyRight @{{config.name}} </view>
|
<view>CopyRight ©{{config.name}} </view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -65,8 +65,14 @@ export default {
|
||||||
* 清除缓存重新登录
|
* 清除缓存重新登录
|
||||||
*/
|
*/
|
||||||
async confirm() {
|
async confirm() {
|
||||||
|
try{
|
||||||
await logout();
|
await logout();
|
||||||
this.clear();
|
this.clear();
|
||||||
|
}catch(e){
|
||||||
|
//TODO handle the exception
|
||||||
|
this.clear();
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -125,6 +125,7 @@
|
||||||
<div class="sale" v-if="current === 0 && sku.afterSaleStatus">
|
<div class="sale" v-if="current === 0 && sku.afterSaleStatus">
|
||||||
<div
|
<div
|
||||||
v-if="
|
v-if="
|
||||||
|
order.flowPrice != 0 &&
|
||||||
sku.afterSaleStatus.includes('NOT_APPLIED') ||
|
sku.afterSaleStatus.includes('NOT_APPLIED') ||
|
||||||
sku.afterSaleStatus.includes('PART_AFTER_SALE')
|
sku.afterSaleStatus.includes('PART_AFTER_SALE')
|
||||||
"
|
"
|
||||||
|
|
|
@ -335,12 +335,6 @@ export default {
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
} else if (checkBankno(this.form.bankAccountNumber) === false) {
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: "银行卡卡号不正确",
|
|
||||||
type: "error",
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
} else if (this.$u.test.chinese(this.form.bankAccountName) === false) {
|
} else if (this.$u.test.chinese(this.form.bankAccountName) === false) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: "银行开户名输入错误",
|
title: "银行开户名输入错误",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="layout">
|
<div class="layout">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<u-swiper @click="clickSwiper" interval="5000" duration="500" height="300" v-if="res" name="img" :list="res.list">
|
<u-swiper @click="clickSwiper" interval="5000" duration="500" height="350" v-if="res" name="img" :list="res.list">
|
||||||
<u-loading slot="loading"></u-loading>
|
<u-loading slot="loading"></u-loading>
|
||||||
</u-swiper>
|
</u-swiper>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -39,8 +39,10 @@
|
||||||
:key="_index"
|
:key="_index"
|
||||||
>
|
>
|
||||||
<div class="item-img-box">
|
<div class="item-img-box">
|
||||||
<img
|
<u-image
|
||||||
class="item-img"
|
class="item-img"
|
||||||
|
width="156rpx"
|
||||||
|
height="156rpx"
|
||||||
:src="i.thumbnail ? i.thumbnail : i.goodsImage"
|
:src="i.thumbnail ? i.thumbnail : i.goodsImage"
|
||||||
alt
|
alt
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -121,6 +121,7 @@ http.interceptors.response.use(
|
||||||
if (!isRefreshing) {
|
if (!isRefreshing) {
|
||||||
console.log('旧token',token)
|
console.log('旧token',token)
|
||||||
isRefreshing = true;
|
isRefreshing = true;
|
||||||
|
storage.setAccessToken('')
|
||||||
let oldRefreshToken = storage.getRefreshToken();
|
let oldRefreshToken = storage.getRefreshToken();
|
||||||
//调用刷新token的接口
|
//调用刷新token的接口
|
||||||
return refreshTokenFn(oldRefreshToken)
|
return refreshTokenFn(oldRefreshToken)
|
||||||
|
|
Loading…
Reference in New Issue