From 60a619fa7b15eb312986fe95f33b2bb2eea86c45 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Sat, 22 Aug 2020 09:00:00 +0800 Subject: [PATCH 01/12] fix 756 --- pageD/notice/notice.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pageD/notice/notice.vue b/pageD/notice/notice.vue index 4c7d154..c8ab6a7 100644 --- a/pageD/notice/notice.vue +++ b/pageD/notice/notice.vue @@ -39,7 +39,7 @@ }; - \ No newline at end of file diff --git a/pages.json b/pages.json index 144ff1c..fbcc15f 100644 --- a/pages.json +++ b/pages.json @@ -988,6 +988,19 @@ } } }, + { + "path": "setting/binding", + "style": { + "navigationBarTitleText": "第三方绑定", + "app-plus": { + "titleSize": "36px", + "titleNView": { + "titleColor": "#333333", + "backgroundColor": "#FFFFFF" + } + } + } + }, { "path": "setting/ShieldUsers", "style": { diff --git a/static/image/mine/43.png b/static/image/mine/43.png new file mode 100644 index 0000000000000000000000000000000000000000..1d1ef78ab3cb814908366741cf3da218c954ece6 GIT binary patch literal 665 zcmV;K0%rY*P)M-U~%uDAP$19TAg%r^1cUHjy5rM<+3Fs6nW<34GRku@Dt*w1lPxMyOS|ep0 zL+#7!915bLi(C-3_W7-gTo4gmA{T;Mb|-z7gt8b{8fOZ;q-q&GD!mJ#{GKJE zZ3>e|&LM9GxZFfv!D`c5`1Lk2LjF-xGTqCe3ics1 z3{wTXAN;9&r&8LI-Af(A5+^Xbia3KQ6&e@}Acm>m8&?72tA7vcl9e&uBfUV?Z?gOS z!&GV`NVj%HBP_UssbBtR=Ox-T`vxM))S{h6jfn}0Ceb($$Cz0YhiKB##3a>*?%Pi+KKKhPen83(6w>_w zMTn_rJE16Q6f6-L#FEm0LlA>D31R~(l77QIXQx)zdDgSJZ|d%l`-$S+zW1y>t+n^Q zf@6FwSg_!PVzGFJh+L$q=L47n;A8-k{ZV272LbFBk$0SPJ4EEoR4TP=|Ni|S4-5?0 z>LbgsJbx5LDF9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0~ zytQ^)J%$~tCm1&Abei&j>X)5YUCSo|n5a&wRZrY@+ilaVwIkK0QOu7n$6pAcT9zM+ zo^Qnyd~Xm0H~XYLMMU0W)2^y){J#+Mi2&}n{_v61*dX#FNvavZ6n7g)YumT_|%U+2C~`grdFm0wcgaIpAeDlnM~$L z9LIsRw%Fd@Uf|TN(cwqRXm4+CPE|QAyAD8_CC?c1fNw?`&TX1`3Gb=bPmr0-1HGb8hvrWy?59nb3>Fg6Y$zvtzq4shL&<*p~8{&tE##(2!f~j`uaEpo{)>$rcfwcAtGeg zG)Lqjvc6a>Y8ZwWhzQAxzp=AxSvwH`XPuPDF9BE;hT*!q@4kEAM4Y}#Ro?6m$+7xM z=iGhFF*2}oj-A%^N&SR#Zd*r3$4B)l5&_WK+)r%>a6ic_pU=NPUI3$1B}bGes_JGD zSvovCyn5BDRY&-adi?}|Cxal^SZ^v$0FHL#bWWTir1?DR(g7R{v;yYoXqvhwB=zKJ~);evxT7xdZad94?K}V%&#cExpr@_1uhx?loL;Ny z#m+f4{v0>X;O?qc58Dg?-ZOvx{K*t|hYlSY9vB!X)%rW(z-n-CaH?OVu^-?FePj;+ zU^4(p4JOk;Rs9S=**O=aQYj9$+N`y6M1&iY@A;wA$lPZ1^q|>;w|d`5M@A4sLqpTz zI6l`8ZYj9v39kGpHMqf_u z>NiA$#KKKE56;W@4>Jgc-!W_#k(WK;yqi=l{#R&@0?^sn8O)qHb85L9&|wsSOjP00000NkvXXu0mjf D;GYHN literal 0 HcmV?d00001 From 18c99cd668f8fd61fd54b751b82be0648f6edb0c Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Thu, 27 Aug 2020 11:06:11 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E9=93=83=E5=A3=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageD/privateChat/privateChat.vue | 3 +++ pages/zhibo/index.nvue | 2 +- static/imservice.js | 12 ++++++++++++ static/music.mp3 | Bin 0 -> 11582 bytes 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 static/music.mp3 diff --git a/pageD/privateChat/privateChat.vue b/pageD/privateChat/privateChat.vue index a34f460..2cf173c 100644 --- a/pageD/privateChat/privateChat.vue +++ b/pageD/privateChat/privateChat.vue @@ -128,6 +128,8 @@ this.friend = JSON.parse(options.id); this.currentUser = this.imService.currentUser; let privateMessages = this.imService.getPrivateMessages(this.friend.uuid); + this.imService.uid = this.friend.uuid; + this.messages = privateMessages.sentMessages; this.pendingMessages = privateMessages.pendingMessages; @@ -153,6 +155,7 @@ this.imService.onPrivateHistoryLoad = (friendId, messages) =>{}; //将未读消息数清零 this.imService.resetFriendUnReadMessage(this.friend); + this.imService.uid = 0; }, methods: { bindtapInput(){ diff --git a/pages/zhibo/index.nvue b/pages/zhibo/index.nvue index 3050fb9..876bf7a 100644 --- a/pages/zhibo/index.nvue +++ b/pages/zhibo/index.nvue @@ -29,7 +29,7 @@ - + 发送 diff --git a/static/imservice.js b/static/imservice.js index b276f2c..9d85284 100644 --- a/static/imservice.js +++ b/static/imservice.js @@ -8,6 +8,8 @@ import GoEasyIM from './goeasy-im-1.0.9'; // import GoEasyIM from './goeasy-im-1.1.1'; import restApi from './restapi'; +import music from './music.mp3' + function Friend(uuid, name, avatar,time = "", text = "",date = "",unReadMessage = 0) { this.uuid = uuid; @@ -52,6 +54,8 @@ function IMService() { //群聊消息记录,map格式,每个群对应一个数组 this.groupMessages = {}; + + this.uid = 0; /* * 监听器们 @@ -283,6 +287,14 @@ IMService.prototype.initialIMListeners = function () { friends.sort(paixu) } + if(message.senderId != this.uid){ + const innerAudioContext = uni.createInnerAudioContext(); + innerAudioContext.autoplay = true; + innerAudioContext.src = music; + innerAudioContext.onPlay(() => { + console.log('开始播放'); + }); + } let that = this if(!friend && friend == undefined){ diff --git a/static/music.mp3 b/static/music.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..61c030bcb44530063108076ea7d4c076d463f9b9 GIT binary patch literal 11582 zcmeI2WmFtZx9=Mb?hq^l1_?5_LvRQZe1b!8w*UbGgfI{Y8XSVVy95YMg1bW?SRlA1 zXpo`r@VxJP*Scq|`{|sI=f7sHuAV(zwYz^+y?51=vOGUJaId#7^!4?TM-l))b2fKy zbvLzeH+QiD++Neu1OK)W-`nh6kTx%CcMp447l7wKCQ78q($)Eu`D=R%C+mM*>+$c4 zVK4<`#e~RTsG57(2#Rp=iE{Ds@Z7ihZ-F-=|0(`|kIF7Ku1F)Y8h{!ApkDw20s=~; z7?9#XN)RbYq?DADw2?AG${HzGq~0JE6ciMNR1#9zNR=X0hg2Ifz$y~ z7f691c<&6-XG^5df&%v^{}B_$)xV0+FW5Ba4gdN2zaGJxH&y`QZve1ITCe~BpB?~E zke>qNDY7U42LN=OfaM<(^IZC;|{S~?)oZrG$HTqKSJyq72lVy7f$C`$WEx;$lgb7OMy4y zwF4!MuE=I0LU>AQ%;>-54wQn|Y!R&HAz|X;BHgs1V6JL+^gphEcW#D@jX_sQFA}90 zXYu|#N&WG@SR`)utt~|bE9VG1lLOw(Q{p3nCEfV2GvC}S=JV$K{&3%b|M&o&MjY8! ztAa6|;N5K0)jlbX557o*OrJ*?3V@CQj?4s-;d-&s^PP45eTF&mp@6lpo}Y0wC*yAj z5cUe9gg@{~ARhP$!8Jj}1Ag0~MM;bCu?nCUv3!k{`=<%5+*Bb2IFB?{54@0vFZewq zqMqbynM)cDePBTMUrbCaI>eg0@;$FUg0=sb7s)!^3%T$+S^Dl_bSY+@6G*G z?|mJ(=xA%LG=;3&Dn41HSMy21fV30&g|B6>id5E1yFB)k5(^JMWuoor67&8pOB14lU1f;<0 zO$n9XKLgcWbkl7^#WbzaJ(QGeW_=>;+|7f-arq}dx=n8%%%@5EsO~Yojib@^e=0lf zefxhO?7s_lKclLq0TYr0lBh9e3BS?5IzP^zbn3cjsE}|j?04z!09P4 zx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Z($=PF3@Xy^}7bSFK zCXjAmmrxUn`BfH$o1~JY_cy(IKJa7SG!3A9TUpOy_T;8vWGlFjB1W(IxZlf9_cBnAqp$X!L0@7o3UZsLl-)sclO-B*SpA{%L7F z<9N?YB<%DEHrO30@Jg@?xqb)%i12gSI18MmSO3L}gp(Cd@LDI^-xPfLd_7=a>a$JG zy6(R5>Jrq$Skc?iF!W?EKw@?8rn*D+*c0Dmn0cA-gff-+rRtPBekEH;ubX)e6WSwX zxi~z&(1l;p5FvcrbpHuf15FtsdU#-uM?D*AthBasQ+39V47MKaV(Jr8Z^ndav9KzSMr( zvFw>|E41zTH3zNvpy|Pvl`7<0x~rh|YQ)~&)!K8SOu<$Dr@Z?j}y4nHyE~4-^KvhL~v&qU` zItTU>dGUG$0v>|1S$KM}?cGY96)^(Q~1hqqWqc)w2_~1>Yn%Fy* zUUF1J&UltmJ1&*;JcWG4AZ)CS+D=pK1^HiZlAvPqJSpr45aS4`<)I*@U93+E^cA4S=+6U%-|EX;==aD^Ml;LAoQIb zhq<9>)w*}jDxEq(@MI87yx;V=86TIxVe|-J9~%83oL)=X%mO>-v$nu`Oz=z`X(Y6} zn?=T~^f7o1 Date: Thu, 27 Aug 2020 12:15:55 +0800 Subject: [PATCH 08/12] 1 --- pages/index/index.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 6888b10..9f6e93b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -262,7 +262,8 @@ loading: '努力加载中', nomore: '实在没有了' }, - refresher:true + refresher:true, + zqie:false } }, components: { @@ -354,7 +355,11 @@ tabLiveList() { uni.showLoading({ title: "loading..." - }) + }) + if(this.zqie){ + return ; + } + this.zqie = true; this.$u.api.tabLiveList({page:this.live_page}).then((res) => { // uni.stopPullDownRefresh(); this.status_live = "loading"; @@ -371,6 +376,7 @@ } else if (res.data.data.length == 0 && this.live_page > 1) { this.status_live = "nomore"; } else { + console.log(this.live_page,1223) this.tabLiveLists = this.tabLiveLists.concat(res.data.data); console.log(this.tabLiveLists) } @@ -381,6 +387,8 @@ } else { this.status_live = "nomore" } + this.zqie = false; + }) }, From 16115ba1115df7dde1cbd6b66dd01c40ba6030c5 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Thu, 27 Aug 2020 12:16:09 +0800 Subject: [PATCH 09/12] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E7=BB=91?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/user.js | 13 ++++++++++ pageE/setting/binding.vue | 50 ++++++++++++++++++++++++++++++++------- 2 files changed, 54 insertions(+), 9 deletions(-) diff --git a/common/api/user.js b/common/api/user.js index 459f496..714350d 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -454,6 +454,19 @@ export default { //获取默认头像 getDefaultAvatar(){ return vm.$u.post("member/getDefaultAvatar") + }, + // 第三方账号绑定【微信|QQ】 + bindingThird({ openid, type }) { + return vm.$u.post("auth/memberBindThird", { + third_openid: openid, + third_type: type, + }) + }, + // 解绑 + unbindingThird({ type }) { + return vm.$u.post("auth/memberUnbindThird", { + third_type: type, + }) } } diff --git a/pageE/setting/binding.vue b/pageE/setting/binding.vue index e085f80..a01be37 100644 --- a/pageE/setting/binding.vue +++ b/pageE/setting/binding.vue @@ -2,11 +2,11 @@ {{ item.title }} - + 解绑 - + 绑定 @@ -17,29 +17,61 @@ export default { data() { return { + userInfo: '', bangdingList: [ { title: 'QQ', - provider: 'qq' + provider: 'qq', // uni 登录 provider + type: 'qq', // 后台需要解绑的参数名 type + name: 'member_qqopenid', // 后台返回是否绑定的字段名 }, { title: '微信', - provider: 'weixin' + provider: 'weixin', + type: 'wechat', + name: 'member_wxopenid', } ] } }, + onLoad() { + this.getMemberInfo(); + }, methods: { - binding(provider) { + getMemberInfo() { + this.$u.api.getMemberInfo().then(res => { + if (res.errCode == 0) { + this.userInfo = res.data.MemberArray; + } + }) + }, + binding(provider, type) { uni.login({ provider: provider, - success: function (loginRes) { - console.log(loginRes.authResult); + success: (loginRes) => { + console.log(loginRes); + uni.getUserInfo({ + provider: provider, + success: (res) => { + console.log(res.userInfo.openId); + this.$u.api.bindingThird({ + openid: res.userInfo.openId, + type: type + }).then(res => { + this.$u.toast(res.message); + }) + } + }) + }, + fail: (e) => { + console.log(e); } }); }, - unbinding() { - + unbinding(type) { + this.$u.api.unbindingThird({ type: type }).then(res => { + this.$u.toast(res.message); + }) } } }; From d3154dc864471f0d2eecd720c944f425132caeb7 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Thu, 27 Aug 2020 12:21:32 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E7=BB=91?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageE/setting/binding.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pageE/setting/binding.vue b/pageE/setting/binding.vue index a01be37..2450d1f 100644 --- a/pageE/setting/binding.vue +++ b/pageE/setting/binding.vue @@ -59,6 +59,9 @@ export default { type: type }).then(res => { this.$u.toast(res.message); + if(res.errCode == 0) { + this.getMemberInfo(); + } }) } }) @@ -71,6 +74,9 @@ export default { unbinding(type) { this.$u.api.unbindingThird({ type: type }).then(res => { this.$u.toast(res.message); + if(res.errCode == 0) { + this.getMemberInfo(); + } }) } } From 839b1728f0d9cc7c2350135381843bc2931539ab Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 28 Aug 2020 22:54:51 +0800 Subject: [PATCH 11/12] =?UTF-8?q?=E5=95=86=E5=93=81=E4=B8=8D=E5=87=BA?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/zhibo/index.nvue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/zhibo/index.nvue b/pages/zhibo/index.nvue index 876bf7a..cf26a68 100644 --- a/pages/zhibo/index.nvue +++ b/pages/zhibo/index.nvue @@ -18,7 +18,7 @@ {{room.onlineUsers.users.length}} - + From 97c9774cc4fafcde3048bb339812fc6f96106021 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 28 Aug 2020 23:11:12 +0800 Subject: [PATCH 12/12] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=20=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E7=9A=84=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/shop.js | 3 ++- pageC/classify/goods.vue | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/common/api/shop.js b/common/api/shop.js index fccbc0e..ab442b0 100644 --- a/common/api/shop.js +++ b/common/api/shop.js @@ -86,11 +86,12 @@ export default { return vm.$u.post('Goods/getGoodsClassRecommend'); }, // goodsListByClassId - goodsListByClassId({ gc_id, page, order }) { + goodsListByClassId({ gc_id, page, order, keyword }) { return vm.$u.post('goods/goodsListByClassId', { gc_id: gc_id, page: page, order: order, + keyword:keyword }); }, // 商品推荐 diff --git a/pageC/classify/goods.vue b/pageC/classify/goods.vue index c6305a8..97c6bee 100644 --- a/pageC/classify/goods.vue +++ b/pageC/classify/goods.vue @@ -1,5 +1,6 @@