From bd03d5b95e7728e7d15228d7086c6e88e26f099f Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 15 Mar 2023 15:38:43 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E6=8D=A2=E6=88=90class=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/GeneralLawExam.vue | 16 ++++++++-------- .../AppLegalLearning/components/OnlineClass.vue | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue index 2e745a0..542133c 100644 --- a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue +++ b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue @@ -19,10 +19,10 @@ {{ item.passNumber }}人通过/{{ item.examinationNumber }}人参与
- - - - + + + +
{{ item.myRecord.score }}
@@ -38,9 +38,9 @@
*姓名
- +
*身份证号
- +
*地区
@@ -220,7 +220,7 @@ export default { position: absolute; right: 0; top: 0; - img { + .result-img { width: 200px; height: 200px; } @@ -276,7 +276,7 @@ export default { } } - input { + .input { height: 96px; background: #F4F5FA; border-radius: 16px; diff --git a/src/project/qujing/AppLegalLearning/components/OnlineClass.vue b/src/project/qujing/AppLegalLearning/components/OnlineClass.vue index 5cd25df..22b0a73 100644 --- a/src/project/qujing/AppLegalLearning/components/OnlineClass.vue +++ b/src/project/qujing/AppLegalLearning/components/OnlineClass.vue @@ -11,7 +11,7 @@
- +
{{ item.title }}
@@ -98,7 +98,7 @@ export default { box-sizing: border-box; .card_left { margin-right: 24px; - img { + .card-img { width: 160px; height: 160px; border-radius: 8px; From 4abfb9f7bf07d9163477512521f482689b9041fc Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 15 Mar 2023 15:53:38 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qujing/AppHome/AppHome.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/project/qujing/AppHome/AppHome.vue b/src/project/qujing/AppHome/AppHome.vue index d11821d..dcaeadb 100644 --- a/src/project/qujing/AppHome/AppHome.vue +++ b/src/project/qujing/AppHome/AppHome.vue @@ -167,8 +167,9 @@ export default { } }, clickLaw(index) { - - this.$linkTo("/pages/AppLegalLearning/AppLegalLearning?inx=" + index) + un.switchTab({ + url: "/pages/AppLegalLearning/AppLegalLearning?inx=" + index + }) }, handleActive({type, appId, url}) { if (type == 0) { From 78d6862d9f7014e6f5770ac88a34408359e249b8 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 15 Mar 2023 16:07:15 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qujing/AppHome/AppHome.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/project/qujing/AppHome/AppHome.vue b/src/project/qujing/AppHome/AppHome.vue index dcaeadb..3a619fd 100644 --- a/src/project/qujing/AppHome/AppHome.vue +++ b/src/project/qujing/AppHome/AppHome.vue @@ -167,8 +167,8 @@ export default { } }, clickLaw(index) { - un.switchTab({ - url: "/pages/AppLegalLearning/AppLegalLearning?inx=" + index + uni.switchTab({ + url: `/pages/AppLegalLearning/AppLegalLearning?inx=${index}` }) }, handleActive({type, appId, url}) { From 2168403b2f40fa59f767b8246bbaed89c740380a Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 15 Mar 2023 16:21:11 +0800 Subject: [PATCH 4/9] console --- src/project/qujing/AppHome/AppHome.vue | 2 +- src/project/qujing/AppLegalLearning/AppLegalLearning.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/project/qujing/AppHome/AppHome.vue b/src/project/qujing/AppHome/AppHome.vue index 3a619fd..e3509e0 100644 --- a/src/project/qujing/AppHome/AppHome.vue +++ b/src/project/qujing/AppHome/AppHome.vue @@ -168,7 +168,7 @@ export default { }, clickLaw(index) { uni.switchTab({ - url: `/pages/AppLegalLearning/AppLegalLearning?inx=${index}` + url: '/pages/AppLegalLearning/AppLegalLearning?inx=' + index }) }, handleActive({type, appId, url}) { diff --git a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue index 208f32d..1590e01 100644 --- a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue +++ b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue @@ -49,6 +49,7 @@ export default { }, onLoad(o) { if(o) { + console.log(o); this.currIndex = o.inx } }, From 17543b1fca53e3dab57b74fc4bac94d7267f9716 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 15 Mar 2023 16:31:44 +0800 Subject: [PATCH 5/9] uni.relaunch --- src/project/qujing/AppHome/AppHome.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project/qujing/AppHome/AppHome.vue b/src/project/qujing/AppHome/AppHome.vue index e3509e0..d3910f4 100644 --- a/src/project/qujing/AppHome/AppHome.vue +++ b/src/project/qujing/AppHome/AppHome.vue @@ -167,7 +167,7 @@ export default { } }, clickLaw(index) { - uni.switchTab({ + uni.relaunch({ url: '/pages/AppLegalLearning/AppLegalLearning?inx=' + index }) }, From 43b7aa757b2efddda01ef5437f265bf7da035e13 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 15 Mar 2023 16:51:26 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=AD=98=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qujing/AppHome/AppHome.vue | 7 +++++-- .../qujing/AppLegalLearning/AppLegalLearning.vue | 10 +++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/project/qujing/AppHome/AppHome.vue b/src/project/qujing/AppHome/AppHome.vue index d3910f4..c55eb9a 100644 --- a/src/project/qujing/AppHome/AppHome.vue +++ b/src/project/qujing/AppHome/AppHome.vue @@ -167,8 +167,11 @@ export default { } }, clickLaw(index) { - uni.relaunch({ - url: '/pages/AppLegalLearning/AppLegalLearning?inx=' + index + uni.switchTab({ + url: '/pages/AppLegalLearning/AppLegalLearning', + success: ()=> { + uni.setStorageSync('inx', index) + } }) }, handleActive({type, appId, url}) { diff --git a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue index 1590e01..206451f 100644 --- a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue +++ b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue @@ -35,6 +35,9 @@ export default { } }, onShow() { + if(uni.getStorageSync('inx')) { + this.currIndex = uni.getStorageSync('inx') + } if(this.currIndex == 0) { this.$refs.OnlineClass.getList(); } else { @@ -47,11 +50,8 @@ export default { } }); }, - onLoad(o) { - if(o) { - console.log(o); - this.currIndex = o.inx - } + onUnload() { + uni.removeStorageSync('inx') }, components: { OnlineClass, From 43cee8bd0fa527a6345fa3b7bc2470d8c760c61b Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 15 Mar 2023 17:14:27 +0800 Subject: [PATCH 7/9] console --- src/project/qujing/AppLegalLearning/AppLegalLearning.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue index 206451f..4e0459b 100644 --- a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue +++ b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue @@ -35,7 +35,9 @@ export default { } }, onShow() { + console.log(uni.getStorageSync('inx'),'index'); if(uni.getStorageSync('inx')) { + console.log(uni.getStorageSync('inx'), 'inx'); this.currIndex = uni.getStorageSync('inx') } if(this.currIndex == 0) { @@ -50,7 +52,7 @@ export default { } }); }, - onUnload() { + onHide() { uni.removeStorageSync('inx') }, components: { From c1ca841f287e8315e6afc05ced00927a03faeed7 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 15 Mar 2023 17:28:36 +0800 Subject: [PATCH 8/9] $emit --- src/project/qujing/AppHome/AppHome.vue | 2 +- .../qujing/AppLegalLearning/AppLegalLearning.vue | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/project/qujing/AppHome/AppHome.vue b/src/project/qujing/AppHome/AppHome.vue index c55eb9a..aa27c7b 100644 --- a/src/project/qujing/AppHome/AppHome.vue +++ b/src/project/qujing/AppHome/AppHome.vue @@ -170,7 +170,7 @@ export default { uni.switchTab({ url: '/pages/AppLegalLearning/AppLegalLearning', success: ()=> { - uni.setStorageSync('inx', index) + uni.$emit('update',{inx: index}) } }) }, diff --git a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue index 4e0459b..d8ddb94 100644 --- a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue +++ b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue @@ -35,11 +35,9 @@ export default { } }, onShow() { - console.log(uni.getStorageSync('inx'),'index'); - if(uni.getStorageSync('inx')) { - console.log(uni.getStorageSync('inx'), 'inx'); - this.currIndex = uni.getStorageSync('inx') - } + uni.$once('update',(data)=> { + this.currIndex = data.inx + }) if(this.currIndex == 0) { this.$refs.OnlineClass.getList(); } else { @@ -52,9 +50,6 @@ export default { } }); }, - onHide() { - uni.removeStorageSync('inx') - }, components: { OnlineClass, GeneralLawExam From 9918f1eec924ff6d056ecea27a05b6e452e02489 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 16 Mar 2023 09:10:17 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E6=88=91=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/fengdu/AppMine/AppMine.vue | 353 +++++++++++++++++++++ src/project/fengdu/AppMine/me.png | Bin 0 -> 993 bytes src/project/fengdu/AppMine/me_selected.png | Bin 0 -> 1035 bytes src/project/fengdu/AppMine/myFamily.vue | 180 +++++++++++ src/project/fengdu/AppMine/userInfo.vue | 282 ++++++++++++++++ 5 files changed, 815 insertions(+) create mode 100644 src/project/fengdu/AppMine/AppMine.vue create mode 100644 src/project/fengdu/AppMine/me.png create mode 100644 src/project/fengdu/AppMine/me_selected.png create mode 100644 src/project/fengdu/AppMine/myFamily.vue create mode 100644 src/project/fengdu/AppMine/userInfo.vue diff --git a/src/project/fengdu/AppMine/AppMine.vue b/src/project/fengdu/AppMine/AppMine.vue new file mode 100644 index 0000000..e36f663 --- /dev/null +++ b/src/project/fengdu/AppMine/AppMine.vue @@ -0,0 +1,353 @@ + + + diff --git a/src/project/fengdu/AppMine/me.png b/src/project/fengdu/AppMine/me.png new file mode 100644 index 0000000000000000000000000000000000000000..03b531e43c595fe513714a8a21f4a46145487440 GIT binary patch literal 993 zcmV<710MW|P)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91FrWhf1ONa40RR91FaQ7m0NXcg3;+NFOG!jQRA>e5S-)#jQ50^{1QIX~ zLI!IGp^K0qkYsZzxE1^{baQbLr6RbvivNIuSac|45jtcLg>FJ!+>$_sKo`M5>rm)m zg#_};?~6CkXWz+t=ib|BF&8fH-5=*W-*?V?H}}3QEX>P10{?de5S6@30miGzWb#R= zRN9Z28#(MO0OYTO{2O@6MS2TPID&}V5b-|Pt!pK9(}T0?_4-3R9&gdBB~PFnZHW;? z)wQfMz{ryTs#6f~ZVXXx*=E8@fO+Qk7)4#Y#MykDuGqX2R?#yrtS|CZl{1*4LTNyq z0WOujUhfM4qgETqr_?`4r_-0UORPErW}WvHd~r+cy9^Ar3Rf+_{8Cm`UgAxzYJY_Zs}?Xe!eIp0Bi?%|+{_VEU91Ff z*T};NUb>;$;~xgZFb5l})y+x(IdK1uW$%%T2-*_E_AEdi>fI=fj+Zliq@)l=kB1T5 zZlT6moj7NUHZG9|#<)0VU;@PJnfa`O$0m;x)Fz(c6zT&+(&`1|(G>5%OVmCxvH_ff z;{l0tug(CzBCLb-CY8?n|v*<@Q>X}St6(W9y`Ada$ zvJa7ej*B(Osu P00000NkvXXu0mjfs`RPk literal 0 HcmV?d00001 diff --git a/src/project/fengdu/AppMine/me_selected.png b/src/project/fengdu/AppMine/me_selected.png new file mode 100644 index 0000000000000000000000000000000000000000..dff9fcad51a427fe6d821489f29d35b1be45360f GIT binary patch literal 1035 zcmV+m1oZofP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91FrWhf1ONa40RR91FaQ7m0NXcg3;+NFbxA})RA>e5Sifr&Q4pS&Un^)V zBv%+Mgfw8vg)5(Iw~*V)*JauU$OfS@4}gftPvpoMUaU~z>gNDw8lvGWhG5iB$o zcW2>gak(VVZ`R$z%k8_{ncZ9r-ooAP&c6BP`{uo!on4~d*2}>EodJ`k{K)HA@DX98H~iIM;Uo3@WGXlFttfY*TP&b6jqZ*R3qaXQ+`qUaYOuuu zxT|y#NNiVNiv@5?oS3KsK!Yt7!2NvC5<6(<%#6v{Qg5+<;7M7K28uDhAbkomrdR+w z@yiJAg(@GXvH{D-RDh`j_+2AjMo=|26)~G!d<?9ow(aUyN|w&q0{6d!SyW$Ih&$%DNSdXJc@fuDrfs zzPDceV{r<|E!utMGOb|PxXZaq_75W?lr84X&!~6DXl;5V3H4*E~|h{pf`002ovPDHLk FV1ghz#N+?~ literal 0 HcmV?d00001 diff --git a/src/project/fengdu/AppMine/myFamily.vue b/src/project/fengdu/AppMine/myFamily.vue new file mode 100644 index 0000000..a544cf9 --- /dev/null +++ b/src/project/fengdu/AppMine/myFamily.vue @@ -0,0 +1,180 @@ + + + diff --git a/src/project/fengdu/AppMine/userInfo.vue b/src/project/fengdu/AppMine/userInfo.vue new file mode 100644 index 0000000..79ebe2a --- /dev/null +++ b/src/project/fengdu/AppMine/userInfo.vue @@ -0,0 +1,282 @@ + + +