Files
lucky_shop/pages_tool/storeclose/storeclose.vue
ZF sun b30ba914b9 i18n: replace hardcoded strings with language translations
批量将项目中多处硬编码的文本替换为多语言翻译条目,统一项目文案管理,提升多语言适配效率,包括导航提示、操作反馈、空状态提示、表单占位符等各类文本内容。
2026-06-22 17:59:25 +08:00

99 lines
1.8 KiB
Vue

<template>
<view :style="themeColor">
<view class="closeBox">
<image :src="$util.img('public/uniapp/store/storeclose.png')" mode="widthFix" show-menu-by-longpress></image>
<text class="close-title">{{ textVal }}</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
isIphoneX: false
};
},
onShow() {
this.isIphoneX = this.$util.uniappIsIPhoneX();
this.getSiteStatus();
// #ifdef MP-WEIXIN
wx.hideHomeButton();
// #endif
},
methods:{
getSiteStatus(){
this.$api.sendRequest({
url: '/api/site/status',
data: {},
success: res => {
if (res.code == 0) {
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
}
}
});
}
},
computed: {
textVal() {
return this.$lang('storeclose.storeClosed');
},
pageVal() {
if (this.$store.state.siteState == -2) {
return this.$lang('storeclose.storeNotExist');
} else if (this.$store.state.siteState == -3) {
return this.$lang('storeclose.storeClosed');
}
}
},
onBackPress() {
return true;
}
};
</script>
<style lang="scss">
.head-nav {
width: 100%;
height: var(--status-bar-height);
}
.head-nav.active {
padding-top: 40rpx;
}
.head-return {
padding-left: 30rpx;
padding-right: 30rpx;
height: 90rpx;
line-height: 90rpx;
text-align: center;
font-weight: 600;
font-size: $font-size-toolbar;
text {
display: inline-block;
margin-right: 10rpx;
}
}
.closeBox {
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 330rpx;
}
image {
width: 240rpx;
}
.close-title {
font-size: $font-size-toolbar;
color: $color-tip;
margin-top: 55rpx;
letter-spacing: 4rpx;
}
</style>