File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
components/DiyEditor/components/mobile Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 67
67
class =" text-16px"
68
68
:style =" { color: property.fields.price.color }"
69
69
>
70
- ¥{{ spu.price }}
70
+ ¥{{ fenToYuan( spu.price) }}
71
71
</span >
72
72
<!-- 市场价 -->
73
73
<span
74
74
v-if =" property.fields.marketPrice.show && spu.marketPrice"
75
75
class =" ml-4px text-10px line-through"
76
76
:style =" { color: property.fields.marketPrice.color }"
77
- >¥{{ spu.marketPrice }}</ span
78
- >
77
+ >¥{{ fenToYuan( spu.marketPrice) }}
78
+ </ span >
79
79
</div >
80
80
<div class =" text-12px" >
81
81
<!-- 销量 -->
117
117
<script setup lang="ts">
118
118
import { ProductCardProperty } from ' ./config'
119
119
import * as ProductSpuApi from ' @/api/mall/product/spu'
120
+ import { fenToYuan } from ' ../../../../../utils'
120
121
121
122
/** 商品卡片 */
122
123
defineOptions ({ name: ' ProductCard' })
Original file line number Diff line number Diff line change 54
54
class =" text-12px"
55
55
:style =" { color: property.fields.price.color }"
56
56
>
57
- ¥{{ spu.price }}
57
+ ¥{{ fenToYuan( spu.price) }}
58
58
</span >
59
59
</div >
60
60
</div >
65
65
<script setup lang="ts">
66
66
import { ProductListProperty } from ' ./config'
67
67
import * as ProductSpuApi from ' @/api/mall/product/spu'
68
+ import { fenToYuan } from ' ./index'
68
69
69
70
/** 商品栏 */
70
71
defineOptions ({ name: ' ProductList' })
Original file line number Diff line number Diff line change @@ -206,15 +206,12 @@ const refreshToken = async () => {
206
206
const handleAuthorized = ( ) => {
207
207
const { t } = useI18n ( )
208
208
if ( ! isRelogin . show ) {
209
- // 如果已经到重新登录页面则不进行弹窗提示
210
- if ( window . location . href . includes ( 'login?redirect=' ) ) {
211
- return
212
- }
213
209
isRelogin . show = true
214
210
ElMessageBox . confirm ( t ( 'sys.api.timeoutMessage' ) , t ( 'common.confirmTitle' ) , {
215
211
showCancelButton : false ,
216
212
closeOnClickModal : false ,
217
213
showClose : false ,
214
+ closeOnPressEscape : false ,
218
215
confirmButtonText : t ( 'login.relogin' ) ,
219
216
type : 'warning'
220
217
} ) . then ( ( ) => {
You can’t perform that action at this time.
0 commit comments