update:英文版代码备份
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<script setup>
|
||||
import { t } from "@/locales";
|
||||
|
||||
import { ref } from "vue";
|
||||
import { onLoad } from "@dcloudio/uni-app";
|
||||
import Container from "@/components/Container.vue";
|
||||
@@ -109,7 +111,7 @@ const selectStore = (store) => {
|
||||
const storeId = String(store?.id || "");
|
||||
if (!/^\d+$/.test(storeId) || Number(storeId) <= 0) {
|
||||
uni.showToast({
|
||||
title: "门店信息无效",
|
||||
title: t('invalid_store_information'),
|
||||
icon: "none",
|
||||
});
|
||||
return;
|
||||
@@ -131,7 +133,7 @@ onLoad((options = {}) => {
|
||||
<template>
|
||||
<Container :bgType="6" :isHome="true" @scrolltolower="loadStores">
|
||||
<template #header>
|
||||
<CoinHeader title="附近门店" />
|
||||
<CoinHeader :title="t('nearby_stores')" />
|
||||
</template>
|
||||
<view class="stores-page">
|
||||
<LocationPermissionState
|
||||
@@ -145,10 +147,8 @@ onLoad((options = {}) => {
|
||||
:store="store"
|
||||
@select="selectStore"
|
||||
/>
|
||||
<text v-if="loaded && !stores.length" class="stores-page__more">
|
||||
附近暂无门店~
|
||||
</text>
|
||||
<text v-else-if="noMore" class="stores-page__more">没有更多门店了~</text>
|
||||
<text v-if="loaded && !stores.length" class="stores-page__more">{{ t('no_nearby_stores') }}</text>
|
||||
<text v-else-if="noMore" class="stores-page__more">{{ t('no_more_stores') }}</text>
|
||||
</template>
|
||||
</view>
|
||||
</Container>
|
||||
|
||||
Reference in New Issue
Block a user