Files
lucky_shop/pages_tool/seal/structure.vue
ZF sun 8e218bb663 feat: 新增多语言国际化页面配置,修复部分页面硬编码文案
1. 新增了zh-cn和en-us两套语言下的大量页面国际化配置文件,覆盖商品、订单、会员、营销活动等多个业务模块
2. 修复了分销页面、VR页面、支付页面、商品不存在页面的硬编码提示文案,替换为国际化调用
3. 删除了原有的i18n检查脚本文件
2026-06-25 11:00:50 +08:00

114 lines
2.6 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view>
<view class="picker-container">
<view v-for="(item, idx) in pickerList" :key="item.id" class="single-picker">
<picker mode="selector" :value="item.value" :range="item.range" range-key="name" @change="bindPickerChange($event, idx, item)">
<view class="picker">当前选择:{{item.range[item.value].name || '请选择'}}</view>
</picker>
</view>
</view>
<block v-if="answerName">
<view style="font-size:32rpx;color:#ff0000;text-align:center;">
<view style="color:#ff0000;">选型结果:</view>{{answerName}}
</view>
</block>
<block v-if="files_url">
<view class="pdfcss" style="text-align:center;">
<view @tap="onTapDoc" class="graphic-nav-item">
<view style="display:flex;margin:10rpx;">
<view style="flex:1;">
<image style="width:50rpx;height:50rpx;" :src="g0" mode="widthFix" show-menu-by-longpress></image>
</view>
</view>
<view class="file_title">结果文件</view>
</view>
</view>
</block>
</view>
</template>
<script>
export default {
data() {
return {
pickerList: [],
answerName: '',
files_url: '',
g0: ''
};
},
computed: {
themeColor() {
return '#ffffff';
}
},
onLoad() {
// 初始化数据
this.files_url = '';
this.g0 = this.files_url ? this.$util.img('addon/personnel/shop/view/enterprise/fileicon.png') : null;
},
methods: {
bindPickerChange(e, idx, item) {
// 处理选择器变化
item.value = e.detail.value;
this.$set(this.pickerList, idx, item);
// 可以在这里添加逻辑,根据选择结果更新 answerName
},
onTapDoc() {
// 处理文档点击事件
if (this.files_url) {
uni.downloadFile({
url: this.files_url,
success: (res) => {
if (res.statusCode === 200) {
uni.openDocument({
filePath: res.tempFilePath,
success: (res) => {
}
});
}
}
});
}
}
}
};
</script>
<style scoped>
.picker-container {
padding: 20rpx;
display: flex;
flex-direction: column;
gap: 30rpx;
}
.single-picker {
display: flex;
align-items: center;
gap: 20rpx;
border: solid 2rpx red;
border-radius: 16rpx;
justify-content: center;
width: 100%;
}
.picker {
flex: 1;
padding: 20rpx;
border-radius: 10rpx;
font-size: 32rpx;
width: 100%;
font-weight: 600;
}
.file_title {
font-size: 28rpx;
color: #666;
}
.graphic-nav-item {
padding: 20rpx;
text-align: center;
}
</style>