From 39fa3b08016ca90e2fa6c965f60ce0a4b6520678 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 2 Nov 2020 09:58:49 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E5=9B=BD=E5=AE=B6=E4=B8=8D=E8=83=BD=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/i18n.ts | 2 +- src/views/mine/Archives.vue | 52 +++++++++++++++++++++++++------------ 2 files changed, 36 insertions(+), 18 deletions(-) diff --git a/src/utils/i18n.ts b/src/utils/i18n.ts index c03d8b7..a2e7ad4 100644 --- a/src/utils/i18n.ts +++ b/src/utils/i18n.ts @@ -13,7 +13,7 @@ const createI18n = (config: Config) => ({ locale: ref(config.locale), messages: config.messages, $t(key: string) { - console.log(key) + // console.log(key) return this.messages[this.locale.value][key]; }, $s(){ diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index 28d4bf4..e84ca54 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -50,6 +50,8 @@ style="width: 171px" size="small" ref="select" + show-search + @change="selguojia" :getPopupContainer=" (triggerNode) => triggerNode.parentNode " @@ -57,7 +59,7 @@ {{ item.name }} @@ -77,6 +79,7 @@ v-model:value="userinfo.tlanguageValue" style="width: 171px" size="small" + show-search ref="select" :getPopupContainer=" (triggerNode) => triggerNode.parentNode @@ -105,6 +108,7 @@ style="width: 171px" size="small" ref="select" + show-search @change="choosewillsay" :getPopupContainer=" (triggerNode) => @@ -253,6 +257,7 @@ style="width: 171px" size="small" ref="select" + show-search :getPopupContainer=" (triggerNode) => triggerNode.parentNode " @@ -548,7 +553,6 @@ export default defineComponent({ formData.value = toRaw(userinfo.value); console.log(userinfo.value.currencyValue, "listsssss"); currencyindex.value = userinfo.value.currency; - console.log(currencyindex.value, "listsssss"); }); const modalNode = () => @@ -803,22 +807,30 @@ export default defineComponent({ console.log(uesrinfo); // console.log(toRaw(formData.value)); - if (userinfo.value.currency == "") { - if (userinfo.value.currencyValue != "") { - for (let i = 0; i < currencylist.value.length; i++) { - if ( - userinfo.value.currencyValue == - currencylist.value[i].name - ) { - userinfo.value.currency = (i + 1).toString(); - } - } - } - } - - const reg = /^\w+((.\w+)|(-\w+))@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+).[A-Za-z0-9]+$/; + // if (uesrinfo.currency == "") { + // if (uesrinfo.currencyValue != "") { + // for (let i = 0; i < currencylist.value.length; i++) { + // if ( + // uesrinfo.currencyValue == + // currencylist.value[i].name + // ) { + // uesrinfo.currency = currencylist.value[i].value; + // } + // } + // } + // } + // eslint-disable-next-line + const reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; console.log(userinfo.value.email); - console.log(); + // console.log(); + // for (let i = 0; i < currencylist.value.length; i++) { + // if ( + // uesrinfo.currencyValue == + // currencylist.value[i].name + // ) { + // uesrinfo.currency = currencylist.value[i].value; + // } + // } if (reg.test(userinfo.value.email)) { putmember(uesrinfo); } else { @@ -858,6 +870,7 @@ export default defineComponent({ if (formData.value.video != "" && uploadprogress.value == 0) { uploadprogress.value = 100; } + console.log(formData.value.country) }); function choosewillsay(e?: any) { @@ -881,6 +894,10 @@ export default defineComponent({ // picinfo.url=res.video.url formData.value.img = res.video.url; } + function selguojia(e: any){ + userinfo.value.countryValue = e; + console.log(e) + } return { modalNode, @@ -923,6 +940,7 @@ export default defineComponent({ showname, uploadspic, lan, + selguojia }; }, }); -- 2.47.2 From 05e2e2df346863493dd1bc5e765548218e673365 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 2 Nov 2020 10:10:25 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E6=97=B6=E5=8C=BA=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mine/Archives.vue | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index e84ca54..288e8d6 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -51,7 +51,6 @@ size="small" ref="select" show-search - @change="selguojia" :getPopupContainer=" (triggerNode) => triggerNode.parentNode " @@ -59,7 +58,7 @@ {{ item.name }} @@ -253,7 +252,7 @@
{{ lan.$t("shiqu") }}
{{ item.city }}{{ item.gmt }} @@ -831,6 +830,17 @@ export default defineComponent({ // uesrinfo.currency = currencylist.value[i].value; // } // } + for(const i in chiveslist.value[0]){ + if(chiveslist.value[0][i].name == uesrinfo.country){ + uesrinfo.countryValue = chiveslist.value[0][i].id + } + } + for(const i in zonelist.value){ + if((zonelist.value[i].city + zonelist.value[i].gmt) == uesrinfo.zoneStr){ + uesrinfo.zoneid = zonelist.value[i].zoneid + } + console.log(zonelist.value[i].city + zonelist.value[i].gmt, uesrinfo.zoneStr) + } if (reg.test(userinfo.value.email)) { putmember(uesrinfo); } else { @@ -894,10 +904,10 @@ export default defineComponent({ // picinfo.url=res.video.url formData.value.img = res.video.url; } - function selguojia(e: any){ - userinfo.value.countryValue = e; - console.log(e) - } + // function selguojia(e: any){ + // userinfo.value.countryValue = e; + // console.log(e) + // } return { modalNode, @@ -940,7 +950,6 @@ export default defineComponent({ showname, uploadspic, lan, - selguojia }; }, }); -- 2.47.2 From 683b173a047e8e9823b2c2965223f555119016fa Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 2 Nov 2020 10:36:21 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=88=91?= =?UTF-8?q?=E8=BF=98=E4=BC=9A=E8=AF=B4=E6=8F=90=E4=BA=A4=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 2 +- src/views/mine/Archives.vue | 58 +++++++++++++++++++++++-------------- 2 files changed, 38 insertions(+), 22 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 02251d1..1d327b1 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -746,7 +746,7 @@ export async function putmember(data: any): Promise{ mtongue: data.mtongue, email: data.email, interest: JSON.stringify(data.interest), - willsay: JSON.stringify(data.willsayValue), + willsay: JSON.stringify(data.willsay), birthday: data.birthday, zoneid: data.zoneid, currency: data.currencyValue, diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index 288e8d6..6414209 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -118,10 +118,9 @@ v-for="(item, index) in chiveslist[1]" :key="index" - :value="item.languageid" + :value="item.name" > {{ item.name }} - {{ item.languageid }}
@@ -781,28 +780,45 @@ export default defineComponent({ // console.log(toRaw(formData.value).willsay[i]) // } const uesrinfo = toRaw(formData.value); - for (let m = 0; m < toRaw(chiveslist.value).length; m++) { - for (const i in uesrinfo.willsayValue) { - // console.log(toRaw(formData.value).willsayValue[i]) + // for (let m = 0; m < toRaw(chiveslist.value).length; m++) { + // for (const i in uesrinfo.willsayValue) { + // // console.log(toRaw(formData.value).willsayValue[i]) - if (typeof uesrinfo.willsay[i].name == "string") { - // console.log(toRaw(chiveslist.value)) - if ( - uesrinfo.willsay[i].name == - toRaw(chiveslist.value)[m].name - ) { - uesrinfo.willsayValue[i].name = toRaw( - chiveslist.value - )[m].languageid; - } - } else { - uesrinfo.willsayValue[i].name = - uesrinfo.willsay[i].name; + // if (typeof uesrinfo.willsay[i].name == "string") { + // // console.log(toRaw(chiveslist.value)) + // if ( + // uesrinfo.willsay[i].name == + // toRaw(chiveslist.value)[m].name + // ) { + // uesrinfo.willsayValue[i].name = toRaw( + // chiveslist.value + // )[m].languageid; + // } + // } else { + // uesrinfo.willsayValue[i].name = + // uesrinfo.willsay[i].name; + // } + + // uesrinfo.willsayValue[i].level = uesrinfo.willsay[i].level; + // } + // } + + for(const i in uesrinfo.willsay){ + for(const j in chiveslist.value[1]){ + if(uesrinfo.willsay[i].name == chiveslist.value[1][j].name){ + uesrinfo.willsay[i].name = chiveslist.value[1][j].languageid } - - uesrinfo.willsayValue[i].level = uesrinfo.willsay[i].level; + console.log(uesrinfo.willsay[i].name, chiveslist.value[1][j].name) } } + const arr: any = {}; + for(const i in uesrinfo.willsay){ + // const a: any = {}; + arr[uesrinfo.willsay[i].name] = uesrinfo.willsay[i].level + // arr.push(a); + // arr.push({uesrinfo.willsay[i].name}) + } + uesrinfo.willsay = arr; console.log(uesrinfo); // console.log(toRaw(formData.value)); @@ -839,7 +855,7 @@ export default defineComponent({ if((zonelist.value[i].city + zonelist.value[i].gmt) == uesrinfo.zoneStr){ uesrinfo.zoneid = zonelist.value[i].zoneid } - console.log(zonelist.value[i].city + zonelist.value[i].gmt, uesrinfo.zoneStr) + // console.log(zonelist.value[i].city + zonelist.value[i].gmt, uesrinfo.zoneStr) } if (reg.test(userinfo.value.email)) { putmember(uesrinfo); -- 2.47.2 From 5fceedfd1d64149de8605abe32231c4cc4298d37 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 2 Nov 2020 10:44:20 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BA=86=E7=A7=92?= =?UTF-8?q?=E7=9A=84=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mine/ReleaseWebcast.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/views/mine/ReleaseWebcast.vue b/src/views/mine/ReleaseWebcast.vue index cdabbf2..2f57c0d 100644 --- a/src/views/mine/ReleaseWebcast.vue +++ b/src/views/mine/ReleaseWebcast.vue @@ -101,10 +101,15 @@ placeholder="请设置您的开始时间" /> --> \ No newline at end of file -- 2.47.2 From 6dddc2cd7aac3d6b1acf7c6f9fc52ef94522a723 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 2 Nov 2020 14:22:57 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/en.ts | 5 +- src/i18n/zh.ts | 5 +- src/views/mine/Archives.vue | 8 + src/views/mine/ReleaseVideo.vue | 914 +++++++++++++++--------------- src/views/mine/ReleaseWebcast.vue | 38 +- 5 files changed, 514 insertions(+), 456 deletions(-) diff --git a/src/i18n/en.ts b/src/i18n/en.ts index cb9ad18..030f2c7 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -289,5 +289,8 @@ export default { chushihuashibai: "Failed to initialize local stream", buzhichifenxiang: "Your browser does not support screen sharing. Please download the new version of chrome", xuanzefenxiangneirong: "Please choose what to share", - guanbishibai: "Closing failed" + guanbishibai: "Closing failed", + fengmianyaoqiu:"Cover requirements:", + fengmianyaoqiu1:"File extension: JPG, png", + fengmianyaoqiu2:"File size limit: 2m", } \ No newline at end of file diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index 9701418..ebafbc4 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -94,7 +94,10 @@ export default { shipinyaoqiu:"视频要求:", shipinyaoqiu1:"上传视频时间要求为30s之内", shipinyaoqiu2:"支持文件大小100M", - shipinyaoqiu3:"文件扩展名:fiv、mp4…", + shipinyaoqiu3:"文件扩展名:fiv、mp4", + fengmianyaoqiu:"封面要求:", + fengmianyaoqiu1:"文件扩展名:jpg,png", + fengmianyaoqiu2:"文件大小限制:2M", ziwojieshao:"自我介绍", lianxifangshi:"联系方式", genghuanshoujihao:"更换手机号", diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index 6414209..cccdc32 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -804,6 +804,10 @@ export default defineComponent({ // } for(const i in uesrinfo.willsay){ + if(uesrinfo.willsay[i].name == '请选择'){ + console.log(111) + break; + } for(const j in chiveslist.value[1]){ if(uesrinfo.willsay[i].name == chiveslist.value[1][j].name){ uesrinfo.willsay[i].name = chiveslist.value[1][j].languageid @@ -814,6 +818,10 @@ export default defineComponent({ const arr: any = {}; for(const i in uesrinfo.willsay){ // const a: any = {}; + if(uesrinfo.willsay[i].name == '请选择'){ + console.log(111) + break; + } arr[uesrinfo.willsay[i].name] = uesrinfo.willsay[i].level // arr.push(a); // arr.push({uesrinfo.willsay[i].name}) diff --git a/src/views/mine/ReleaseVideo.vue b/src/views/mine/ReleaseVideo.vue index 37d3e51..6093041 100644 --- a/src/views/mine/ReleaseVideo.vue +++ b/src/views/mine/ReleaseVideo.vue @@ -1,106 +1,130 @@ \ No newline at end of file diff --git a/src/views/mine/ReleaseWebcast.vue b/src/views/mine/ReleaseWebcast.vue index 2f57c0d..3e31e48 100644 --- a/src/views/mine/ReleaseWebcast.vue +++ b/src/views/mine/ReleaseWebcast.vue @@ -10,7 +10,8 @@ /> - +
+ +
+

+ {{ lan.$t("fengmianyaoqiu") }} +

+

+ 1.{{ lan.$t("fengmianyaoqiu1") }} +

+

+ 2.{{ lan.$t("fengmianyaoqiu2") }} +

+
+
+ p { + margin: 0; + } + } .video-introduction { .ant-form-item-control-wrapper { .ant-form-item-children { display: flex; align-items: center; - .demand { - line-height: 17px; - font-size: 10px; - font-weight: 500; - color: #808080; - width: 134px; - > p { - margin: 0; - } - } + } } } -- 2.47.2 From d305d45cfd753933128d04df4cbe7cd7748eeb3f Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 2 Nov 2020 14:33:19 +0800 Subject: [PATCH 06/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=92=B1?= =?UTF-8?q?=E5=8C=85=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mine/Transactiondetail.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/mine/Transactiondetail.vue b/src/views/mine/Transactiondetail.vue index fe09e41..43abd82 100644 --- a/src/views/mine/Transactiondetail.vue +++ b/src/views/mine/Transactiondetail.vue @@ -31,7 +31,7 @@
{{lan.$t('laiyuan')}}
-
{{accountinfo.remark}}
+
{{accountinfo.typename}}
{{lan.$t('fanhui')}}
@@ -77,13 +77,13 @@
{{accountinfo.typename}}
-
{{riqi}}
+
{{lan.$t('riqi')}}
{{accountinfo.created_at}}
{{lan.$t('shoukuanzhanghu')}}
-
{{accountinfo.account}}
+
{{accountinfo.typename}}
{{lan.$t('fanhui')}}
-- 2.47.2 From f2a1b7f105e820c4cf4b72eebbc3f7287bef03d9 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 2 Nov 2020 14:35:22 +0800 Subject: [PATCH 07/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E6=94=BE=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Menu.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 1615967..84a6657 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -8,7 +8,7 @@
-
+
@@ -74,6 +74,14 @@ padding: 0 18px; justify-content: space-between; cursor: pointer; + &:hover{ + .route{ + + .title{ + font-weight: bold; + } + } + } .route{ display: flex; .icon{ -- 2.47.2 From 31e8e04017afd6d1f199dc40d957a9d252c58f2d Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 2 Nov 2020 14:38:14 +0800 Subject: [PATCH 08/10] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E7=9C=81?= =?UTF-8?q?=E7=95=A5=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mine/Archives.vue | 2 +- src/views/mine/ReleaseVideo.vue | 16 ++++++++-------- src/views/mine/ReleaseWebcast.vue | 12 ++++++------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index cccdc32..0302c5f 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -1113,7 +1113,7 @@ export default defineComponent({ font-size: 10px; font-weight: 500; color: #808080; - width: 134px; + // width: 134px; p { margin: 0; } diff --git a/src/views/mine/ReleaseVideo.vue b/src/views/mine/ReleaseVideo.vue index 6093041..0b544ca 100644 --- a/src/views/mine/ReleaseVideo.vue +++ b/src/views/mine/ReleaseVideo.vue @@ -39,13 +39,13 @@
-

+

{{ lan.$t("fengmianyaoqiu") }}

-

+

1.{{ lan.$t("fengmianyaoqiu1") }}

-

+

2.{{ lan.$t("fengmianyaoqiu2") }}

@@ -91,12 +91,12 @@
-

+

{{ lan.$t("shipinyaoqiu") }}

-

1.{{ lan.$t("shipinyaoqiu1") }}

-

2.{{ lan.$t("shipinyaoqiu2") }}

-

3.{{ lan.$t("shipinyaoqiu3") }}

+

1.{{ lan.$t("shipinyaoqiu1") }}

+

2.{{ lan.$t("shipinyaoqiu2") }}

+

3.{{ lan.$t("shipinyaoqiu3") }}

- + +