Skip to content

Commit cb34733

Browse files
author
puhui999
committed
Merge remote-tracking branch 'yudao/dev' into dev-crm
2 parents ed54cfe + 7ba29c9 commit cb34733

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/components/DiyEditor/components/mobile/ProductCard/index.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@
6767
class="text-16px"
6868
:style="{ color: property.fields.price.color }"
6969
>
70-
¥{{ spu.price }}
70+
¥{{ fenToYuan(spu.price) }}
7171
</span>
7272
<!-- 市场价 -->
7373
<span
7474
v-if="property.fields.marketPrice.show && spu.marketPrice"
7575
class="ml-4px text-10px line-through"
7676
:style="{ color: property.fields.marketPrice.color }"
77-
>¥{{ spu.marketPrice }}</span
78-
>
77+
>¥{{ fenToYuan(spu.marketPrice) }}
78+
</span>
7979
</div>
8080
<div class="text-12px">
8181
<!-- 销量 -->
@@ -117,6 +117,7 @@
117117
<script setup lang="ts">
118118
import { ProductCardProperty } from './config'
119119
import * as ProductSpuApi from '@/api/mall/product/spu'
120+
import { fenToYuan } from '../../../../../utils'
120121
121122
/** 商品卡片 */
122123
defineOptions({ name: 'ProductCard' })

src/components/DiyEditor/components/mobile/ProductList/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
class="text-12px"
5555
:style="{ color: property.fields.price.color }"
5656
>
57-
¥{{ spu.price }}
57+
¥{{ fenToYuan(spu.price) }}
5858
</span>
5959
</div>
6060
</div>
@@ -65,6 +65,7 @@
6565
<script setup lang="ts">
6666
import { ProductListProperty } from './config'
6767
import * as ProductSpuApi from '@/api/mall/product/spu'
68+
import { fenToYuan } from './index'
6869
6970
/** 商品栏 */
7071
defineOptions({ name: 'ProductList' })

src/config/axios/service.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,12 @@ const refreshToken = async () => {
206206
const handleAuthorized = () => {
207207
const { t } = useI18n()
208208
if (!isRelogin.show) {
209-
// 如果已经到重新登录页面则不进行弹窗提示
210-
if (window.location.href.includes('login?redirect=')) {
211-
return
212-
}
213209
isRelogin.show = true
214210
ElMessageBox.confirm(t('sys.api.timeoutMessage'), t('common.confirmTitle'), {
215211
showCancelButton: false,
216212
closeOnClickModal: false,
217213
showClose: false,
214+
closeOnPressEscape: false,
218215
confirmButtonText: t('login.relogin'),
219216
type: 'warning'
220217
}).then(() => {

0 commit comments

Comments
 (0)