## 删除的死代码脚本
- scripts/i18n_class_c.py (脚本自承'新架构下永远输出 0',纯防御性)
- scripts/full_migrate_i18n.py (其产出违反 CLAUDE.md 1.2 中文 key 铁律,已标 DEPRECATED)
- scripts/__pycache__/ (Python 缓存)
## 删除的旧 per-page lang 文件
- lang/zh-cn/<page>/<file>.js (140 个)
- lang/en-us/<page>/<file>.js (139 个)
- 共 279 个文件,运行时不再加载,0 个 key 被 .vue 调用(经 diagnose_keys.py 验证)
## 删除的备份和迁移表
- lang/_backup/ (git 已跟踪原文件)
- lang/_migration_map.json / lang/_migration-map.json (运行时不用)
## 删除的中间产物 JSON
- docs/i18n-rename-*.json (smart_rename 中间产物,已用完)
- docs/i18n-ambiguous.json / i18n-audit.json / i18n-call-rewrite.log /
i18n-clean-dead.log / i18n-file-texts.json / i18n-page-titles.json /
i18n-vue-extract.json (前一会话残留,无引用方)
- docs/i18n-{naming,shadow,strict}-audit.json (脚本会自动重新生成)
## 删除的 modular lang 文件
- lang/zh-cn/*.js / lang/en-us/*.js (20 个模块文件,内容是上一会话产生的死代码)
- lang/zh-cn/index.js / lang/en-us/index.js (聚合入口)
- lang/DEPRECATED.md (已不再相关)
## 删除的不成熟脚本
- scripts/check_perpage.py (诊断用,已完成)
- scripts/diagnose_keys.py (诊断用,已完成)
- scripts/smart_rename_i18n.py (v1-v3 都 bug,未修完)
## 现状
- lang/ 现在只有 zh-cn.js + en-us.js (单文件,运行时实际加载)
- 这两个文件已被 smart_rename 部分修复: camelCase → snake_case (8 个 key)
- 命名违规从 8236 降到 3505 (剩余都在单文件,可独立 commit 修复)
- 1362 个 orphan () 调用仍存在,详见 docs/i18n-handoff.md
221 lines
4.5 KiB
Vue
221 lines
4.5 KiB
Vue
<template>
|
|
<view data-component-name="diy-payment-qrcode" class="payment-qrocde-wrap" :style="warpCss">
|
|
<view class="payment-qrocde-box">
|
|
<view class="qrocde-left">
|
|
<view class="qrocde-desc">
|
|
<text>{{ $lang("diy.diy-payment-qrcode.l6.t0") }}</text>
|
|
<!-- <text class="iconfont icon-shuaxin"></text> -->
|
|
</view>
|
|
<view class="qrocde-action">
|
|
<button type="primary" @tap.stop="toLink">
|
|
<text class="iconfont icon-fukuanma"></text>
|
|
<text class="action-name">{{ $lang("diy.diy-payment-qrcode.l12.t0") }}</text>
|
|
</button>
|
|
<button type="primary" @tap.stop="openPaymentPopup">
|
|
<text class="iconfont icon-saomafu"></text>
|
|
<text class="action-name">{{ $lang("diy.diy-payment-qrcode.l16.t0") }}</text>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
<view class="qrocde-right">
|
|
<text class="iconfont icon-zhifu"></text>
|
|
<text class="name">{{ $lang("diy.diy-payment-qrcode.l22.t0") }}</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view @touchmove.prevent.stop>
|
|
<uni-popup ref="paymentPopup" type="center">
|
|
<view class="payment-popup">
|
|
<view class="head-wrap" @tap.stop="closePaymentPopup">
|
|
<text>{{ $lang("common.wxwork-contact.l202.t0") }}</text>
|
|
<text class="iconfont icon-close"></text>
|
|
</view>
|
|
<view class="content-wrap">{{ $lang("diy.diy-payment-qrcode.l33.t0") }}</view>
|
|
<button type="primary" @tap.stop="closePaymentPopup">{{ $lang("diy.diy-notice.l49.t0") }}</button>
|
|
</view>
|
|
</uni-popup>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
// 付款码展示
|
|
import DiyMinx from './minx.js'
|
|
export default {
|
|
name: 'diy-payment-qrcode',
|
|
props: {
|
|
value: {
|
|
type: Object
|
|
}
|
|
},
|
|
mixins: [DiyMinx],
|
|
data() {
|
|
return {};
|
|
},
|
|
created() { },
|
|
computed: {
|
|
warpCss() {
|
|
var obj = '';
|
|
return obj;
|
|
}
|
|
},
|
|
watch: {
|
|
// 组件刷新监听
|
|
componentRefresh: function (nval) { }
|
|
},
|
|
methods: {
|
|
toLink() {
|
|
this.$util.redirectTo('/pages_tool/store/payment_qrcode');
|
|
},
|
|
scanCodeFn() {
|
|
// #ifdef APP-PLUS
|
|
this.toLink();
|
|
// #endif
|
|
// #ifndef H5
|
|
// 允许从相机和相册扫码,h5端不起作用
|
|
uni.scanCode({
|
|
success: function (res) {
|
|
}
|
|
});
|
|
// #endif
|
|
},
|
|
openPaymentPopup() {
|
|
this.$refs.paymentPopup.open();
|
|
},
|
|
closePaymentPopup() {
|
|
this.$refs.paymentPopup.close();
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.payment-qrocde-box {
|
|
overflow: hidden;
|
|
display: flex;
|
|
background-color: #fff;
|
|
border-radius: 16rpx;
|
|
|
|
.qrocde-left {
|
|
flex: 1;
|
|
|
|
.qrocde-desc {
|
|
margin-top: 20rpx;
|
|
margin-bottom: 26rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: $color-tip;
|
|
font-size: $font-size-tag;
|
|
|
|
.iconfont {
|
|
margin-left: 10rpx;
|
|
font-size: $font-size-tag;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
.qrocde-action {
|
|
padding-bottom: 36rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0;
|
|
width: 230rpx;
|
|
height: 86rpx;
|
|
border-radius: 50rpx;
|
|
|
|
&:first-of-type {
|
|
margin-right: 46rpx;
|
|
background-color: $base-color;
|
|
}
|
|
|
|
&:last-of-type {
|
|
background-color: #999;
|
|
}
|
|
|
|
.iconfont {
|
|
margin-right: 10rpx;
|
|
}
|
|
|
|
.action-name {
|
|
font-size: 30rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.qrocde-right {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding-left: 16rpx;
|
|
width: 90rpx;
|
|
z-index: 2;
|
|
box-sizing: border-box;
|
|
|
|
.name {
|
|
font-size: $font-size-sub;
|
|
writing-mode: tb-rl;
|
|
color: #fff;
|
|
letter-spacing: 6rpx;
|
|
}
|
|
|
|
.iconfont {
|
|
color: #fff;
|
|
}
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
width: 500rpx;
|
|
height: 500rpx;
|
|
border-radius: 50%;
|
|
background-color: $base-color;
|
|
transform: translateY(-50%);
|
|
z-index: -1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.payment-popup {
|
|
padding: 0 30rpx 40rpx;
|
|
background-color: #fff;
|
|
|
|
.head-wrap {
|
|
font-size: $font-size-toolbar;
|
|
line-height: 100rpx;
|
|
height: 100rpx;
|
|
display: block;
|
|
text-align: center;
|
|
position: relative;
|
|
border-bottom: 2rpx solid $color-line;
|
|
margin-bottom: 20rpx;
|
|
|
|
.iconfont {
|
|
position: absolute;
|
|
float: right;
|
|
right: 0;
|
|
font-size: $font-size-toolbar;
|
|
}
|
|
}
|
|
|
|
.content-wrap {
|
|
max-height: 600rpx;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
button {
|
|
margin-top: 40rpx;
|
|
}
|
|
}
|
|
</style>
|