@2kog/pkg-widget 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
<UploadImage :upload-fn="uploadImage" :domain="domain" :url="avatar"></UploadImage>
|
|
7
7
|
|
|
8
|
-
<langSelect
|
|
8
|
+
<langSelect :show-flag="false"
|
|
9
|
+
:show-name="true"
|
|
10
|
+
:optionsWithFlag="false"></langSelect>
|
|
9
11
|
<pay></pay>
|
|
10
12
|
</div>
|
|
11
13
|
</template>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
<svg t="1767108661798" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4986" width="200" height="200"><path d="M1023.795 853.64v6.348a163.807 163.807 0 0 1-163.807 163.807h-696.18A163.807 163.807 0 0 1 0 859.988v-696.18A163.807 163.807 0 0 1 163.807 0h696.181a163.807 163.807 0 0 1 163.807 163.807V853.64z" fill="#009FE9" p-id="4987"></path><path d="M844.836 648.267c-40.952-14.333-95.623-34.809-156.846-57.128a949.058 949.058 0 0 0 90.094-222.573H573.325V307.14h245.711v-43.41l-245.71 2.458V143.33H472.173c-18.223 0-21.704 20.476-21.704 20.476v102.38H204.759v40.952h245.71v61.427H245.712v40.952h409.518a805.522 805.522 0 0 1-64.909 148.246c-128.384-42.795-266.186-77.604-354.233-55.08a213.564 213.564 0 0 0-112.003 63.27c-95.418 116.917-26.21 294.034 175.274 294.034 119.989 0 236.087-67.366 325.771-177.73 134.322 65.932 398.666 176.297 398.666 176.297V701.3s-32.352-4.095-178.96-53.033z m-563.702 144.97c-158.893 0-204.759-124.699-126.336-194.112a191.86 191.86 0 0 1 90.913-46.276c93.575-10.238 189.811 35.629 293.624 86.614-74.941 94.598-166.674 153.774-258.2 153.774z" fill="#FFFFFF" p-id="4988"></path></svg>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="c-lang-select">
|
|
3
3
|
<div class="u-select-label">
|
|
4
4
|
<span v-show="showFlag" class="fi u-flag" :class="flag"></span>
|
|
5
|
-
<img v-if="!showFlag" class="u-earth" src="
|
|
5
|
+
<img v-if="!showFlag" class="u-earth" :src="earthIcon" alt="earth" />
|
|
6
6
|
<span class="u-name" v-show="showName">{{ name }}</span>
|
|
7
7
|
</div>
|
|
8
8
|
<el-select class="u-select" v-model="current" popper-class="c-lang-select__pop" filterable :filter-method="filterMethod" @change="onLangChange">
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
import Lang from "@2kog/pkg-common/data/language.json";
|
|
19
19
|
import "flag-icons/css/flag-icons.min.css";
|
|
20
20
|
import User from "@2kog/pkg-common/utils/user";
|
|
21
|
+
import earthIcon from "../../assets/img/earth.svg";
|
|
21
22
|
export default {
|
|
22
23
|
name: "LangSelect",
|
|
23
24
|
props: {
|
|
@@ -41,7 +42,7 @@ export default {
|
|
|
41
42
|
data() {
|
|
42
43
|
return {
|
|
43
44
|
current: "",
|
|
44
|
-
|
|
45
|
+
earthIcon,
|
|
45
46
|
filterLanguages: [],
|
|
46
47
|
};
|
|
47
48
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<el-tab-pane :label="t('payment.wepay')" name="wepay">
|
|
23
23
|
<template #label>
|
|
24
24
|
<span class="u-tab">
|
|
25
|
-
<img src="
|
|
25
|
+
<img :src="wePay" />
|
|
26
26
|
{{ t('payment.wepay') }}
|
|
27
27
|
<em>{{ t('payment.wepayTip') }}</em>
|
|
28
28
|
</span>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<el-tab-pane :label="t('payment.alipay')" name="alipay">
|
|
32
32
|
<template #label>
|
|
33
33
|
<span class="u-tab">
|
|
34
|
-
<img src="
|
|
34
|
+
<img :src="aliPay" />
|
|
35
35
|
{{ t('payment.alipay') }}
|
|
36
36
|
<em>{{ t('payment.alipayTip') }}</em>
|
|
37
37
|
</span>
|
|
@@ -112,6 +112,8 @@ import QrcodeVue from "qrcode.vue";
|
|
|
112
112
|
import { createI18n } from "vue-i18n";
|
|
113
113
|
import enUs from "../../locale/en-us";
|
|
114
114
|
import zhCn from "../../locale/zh-cn";
|
|
115
|
+
import wePay from "../../assets/img/pay/wepay.svg";
|
|
116
|
+
import aliPay from "../../assets/img/pay/alipay.svg";
|
|
115
117
|
|
|
116
118
|
// 创建独立的 i18n 实例
|
|
117
119
|
const getLocale = () => {
|
|
@@ -140,6 +142,7 @@ export default {
|
|
|
140
142
|
Loading,
|
|
141
143
|
CircleCheck,
|
|
142
144
|
QrcodeVue,
|
|
145
|
+
|
|
143
146
|
},
|
|
144
147
|
// 使用独立的 i18n 实例
|
|
145
148
|
i18n: payI18n,
|
|
@@ -232,6 +235,9 @@ export default {
|
|
|
232
235
|
orderPollingTimer: null,
|
|
233
236
|
paymentPollingTimer: null,
|
|
234
237
|
pollingRetries: 0,
|
|
238
|
+
|
|
239
|
+
wePay,
|
|
240
|
+
aliPay,
|
|
235
241
|
};
|
|
236
242
|
},
|
|
237
243
|
computed: {
|