From a22b3fba7172e46386eb665dd38a5568af4fe4b1 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Tue, 11 Aug 2020 09:36:03 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/informations/notice/notice.vue | 4 ++-- pageB/follow/index.vue | 6 +++--- pages/information/information.vue | 2 +- static/imservice.js | 13 +++++++++---- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/components/informations/notice/notice.vue b/components/informations/notice/notice.vue index b212e45..712914a 100644 --- a/components/informations/notice/notice.vue +++ b/components/informations/notice/notice.vue @@ -1,11 +1,11 @@ @@ -76,7 +76,7 @@ export default { }, searchValue() { uni.navigateTo({ - url: '/pageB/search/index?type=1' + url: '/pageB/search/index?type=2' }) }, }, diff --git a/pages/information/information.vue b/pages/information/information.vue index f44ad09..8a4444d 100644 --- a/pages/information/information.vue +++ b/pages/information/information.vue @@ -10,7 +10,7 @@ - + diff --git a/static/imservice.js b/static/imservice.js index f2d1e6f..098524d 100644 --- a/static/imservice.js +++ b/static/imservice.js @@ -297,7 +297,8 @@ IMService.prototype.initialIMListeners = function () { friend.text = message.type != "text" ? "其他消息" : message.payload.text let time = new Date(message.timestamp) friend.date = message.timestamp - friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds()) + console.log(that.friends) that.friendsarr = [] for(let i in that.friends){ @@ -322,7 +323,7 @@ IMService.prototype.initialIMListeners = function () { friend.text = message.type != "text" ? "其他消息" : message.payload.text let time = new Date(message.timestamp) friend.date = message.timestamp - friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds()) console.log(this.friends) that.friendsarr = [] for(let i in this.friends){ @@ -537,7 +538,9 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){ friend.text = message let time = new Date() friend.date = time.getTime() - friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds()) + + console.log(that.friends) that.friendsarr = [] for(let i in that.friends){ @@ -561,7 +564,9 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){ friend.text = message let time = new Date() friend.date = time.getTime() - friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds()) + + console.log(this.friends) that.friendsarr = [] for(let i in this.friends){ From 6984ea9374bd730a427457cdc2a2282a0491df26 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Tue, 11 Aug 2020 10:25:41 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageC/merchant/index.vue | 39 ++++++++++++++++++++++++++- pages/information/information.vue | 45 ++++++++++++++++++++++++++++++- 2 files changed, 82 insertions(+), 2 deletions(-) diff --git a/pageC/merchant/index.vue b/pageC/merchant/index.vue index 83921d5..ccfc7f9 100644 --- a/pageC/merchant/index.vue +++ b/pageC/merchant/index.vue @@ -64,7 +64,7 @@ 店铺信息 - + 联系客服 @@ -109,6 +109,43 @@ export default { // if(e.index == 0) this.show = true; }, methods: { + customers(){ + console.log(this.$store.state.hasLogin) + if(!this.$store.state.hasLogin){ + this.$refs.uToast.show({ + title: "请先登录", + type: 'warning' + }) + }else{ + function Friend(uuid, name, avatar,time = "", text = "",date = "") { + this.uuid = uuid; + this.name = name; + this.avatar = avatar; + this.online = false; + this.unReadMessage = 0; + this.text = text; + this.time = time; + this.date = date + } + console.log(123) + this.$u.api.getAtwillUserInfo({ + id:this.sid + }).then((res)=>{ + console.log(res) + let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar) + this.$u.route({ + url:"/pageD/privateChat/privateChat", + params:{ + id:JSON.stringify(user) + } + + }) + }).catch((err)=>{ + console.log(err) + }) + } + + }, toDetailsPage(id) { // console.log(11); this.$u.route('pageB/photo/index', { diff --git a/pages/information/information.vue b/pages/information/information.vue index 8a4444d..e75d614 100644 --- a/pages/information/information.vue +++ b/pages/information/information.vue @@ -3,7 +3,7 @@ - + @@ -105,6 +105,49 @@ }, methods: { + kefu(){ + if(!this.$store.state.hasLogin){ + this.$refs.uToast.show({ + title: "请先登录", + type: 'warning' + }) + }else{ + function Friend(uuid, name, avatar,time = "", text = "",date = "") { + this.uuid = uuid; + this.name = name; + this.avatar = avatar; + this.online = false; + this.unReadMessage = 0; + this.text = text; + this.time = time; + this.date = date + } + const token = uni.getStorageSync('token'); + let that = this + uni.request({ + url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo", + data:{ + userId: 1 + }, + method:"POST", + header:{ + "Authorization" : 'Bearer' + " " + token + }, + success(res){ + console.log(res) + res = res.data + let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar) + that.$u.route({ + url:"/pageD/privateChat/privateChat", + params:{ + id:JSON.stringify(user) + } + }) + } + }) + } + + }, gochat(id){ this.$u.route({ url:"/pageD/privateChat/privateChat", From b34ac35821f93c551264dfe9b93e61ee78e2ce66 Mon Sep 17 00:00:00 2001 From: Gdpao <1341331954@qq.com> Date: Tue, 11 Aug 2020 10:35:01 +0800 Subject: [PATCH 3/4] gdpaoup --- pageB/photo/index.vue | 2 +- static/image/mine/38.png | Bin 2863 -> 9022 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/pageB/photo/index.vue b/pageB/photo/index.vue index 13a2d12..d0a673d 100644 --- a/pageB/photo/index.vue +++ b/pageB/photo/index.vue @@ -66,7 +66,7 @@ - + 发送 diff --git a/static/image/mine/38.png b/static/image/mine/38.png index c199bccfd92daa9b005a1c86249309bea83b68fb..1855a52d0225a74e068322929d3d8742259f5c0d 100644 GIT binary patch literal 9022 zcmV-EBf;E>P)pkb>DyIzV6vD7;FRx?u$rb-$;u4s*S`-iV`F_apIKiD5WH>Y<9}d7gxTzN=cRN zl%o{osFXOC30cHOf&#@=TtE;20b(VwQp7?M`(XC&cTeiv_j)t~4hA!Wo?gJdRa1kd zyWhL#{rlXr{*UklSgL>S*nBKv+{cdN&5ki=9rX>4wt7dD6Pn@-UD*b*J&okFo+z6^ zeFkw3pO1(lPd?5eQ4V|#rJHQF3(+3hGkM0fDc#MU_^i^>6VpD~bNsmHkym38^l}!l zT+W-bz3GnSb#&24Lwh5+x(1@S0g*bO4x|p%O!zIn0dWm@>TqQ6M2L4N5zcwg9G*NP zd7uaNU8wdD(H($g0K@(sb)nKto$n;q(8a8o9U}kLU#@b#YyqUtERUGiHGyt-6&g<= zk}2ROBJmZdjzeS|Fczda0h87Ru!uNR9f-+BKvNlsfyjgXCJsNMIgobHHdI=1w1S?* zN2l@rI8ILB<6|`X6LRai*2@t@mj!_Il}9p6oiL7`d<&7bpwSqFNq9dAr&B?$M05%& z6M-uL15XMd8ZYs|#sNTx0i+e-Bybwl;|M44(J{myC)Ur1q!rDy;pH6l`Li;8^|?#D zcG=%v^#Ia6%f`~9*Wlc(XnZpwH-dqND^u;#1OX)W(~$ny5f+Vt^m9NL&<%8^f9?P} z5Kf_-0R0$s2T}GRa*)~ck5uy!S9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^S6|*w?sOIpn+Yp_d6adSuVqiOkZdoWQ@l?vwUEo1I?yDgCx|9MSv;rI# zE~PS8*XWJ}2;lY5?@A?{qyccQzzz~+O}}s+AZog%KaXmM3e1gyMg0?hQs-UsD`f)X zrYUm^r#X=ot7p}_jHU7bQ6hBlK=xp%_c9|B!T9-baE1Aq-?bzM7q)98Di!IiBH%k3|4(fG&zvy;`_GX-EB93IV% zt`XsRR+G#_KWtZT;!iHq^!HJ6$Q*$6AeJtHn(j~u-4S3@c0XSgZeswjfwPlEIKx(1 ztpR)L$)_uslRT=5&tw_MJ4klW6a!>#p%k$J^Yv7rOPLF(d1cC5&Zq_09^~@vBlhlJ zQO_FE9T2p1ewT<>(Z-j7yaNrBN3-fxu|QZVe(XzlRKhy~ z4BuY1qgnbK0JNsw^u{(bzYoG(0kAm{wuFQ^TvPxqi0~q7H^Iz1BDDj6Hh9oBxs+3} zGPwm{Ctg?qfq-=Yb~6Xm^{pmYvL<{JszX4XJS%)#ZiN9L?kQk71|T@A5S(q6A%u&s zd?7)5^Zx^cJ|OgMSgWf%;YoE14?vOt%Kmo;K* Date: Tue, 11 Aug 2020 11:12:32 +0800 Subject: [PATCH 4/4] gdpaomg1 --- common/http.interceptor.js | 2 +- components/index/video-item/index.vue | 2 +- components/remaining/remaining.vue | 2 +- pageA/register/register.vue | 7 ----- pageB/photo/index.vue | 10 +++++-- pageB/sdetails/index.vue | 3 +- pageB/video/video.nvue | 40 +++++++++++++++++++++++++-- pages.json | 6 ++++ pages/index/index.vue | 13 +++++++-- pages/mine/index.vue | 34 +++++++++++++---------- 10 files changed, 87 insertions(+), 32 deletions(-) diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 6ca6879..f1a4095 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -46,7 +46,7 @@ const install = (Vue, vm) => { } else if(res.data.errCode == 401) { // 假设201为token失效,这里跳转登录 // vm.$u.toast('您还没有登录哦,请先去登录!'); - if (res.data.action != "memberinfo") { + if (res.data.data.action != "memberinfo") { uni.showModal({ title: "温馨提示", content: "您还未登录,请立即登录", diff --git a/components/index/video-item/index.vue b/components/index/video-item/index.vue index a51ec25..a9cfe18 100644 --- a/components/index/video-item/index.vue +++ b/components/index/video-item/index.vue @@ -241,7 +241,7 @@ export default { // console.log(res) if(res.errCode == 0) { this.$u.toast(res.message); - this.$emit("getArticlelist"); + this.$emit("updateList"); } }) }, diff --git a/components/remaining/remaining.vue b/components/remaining/remaining.vue index c0dd56b..96664c5 100644 --- a/components/remaining/remaining.vue +++ b/components/remaining/remaining.vue @@ -205,7 +205,7 @@ z-index: 1000; position: absolute; bottom: 100rpx; - right: 30%; + right: 230rpx; width: 300rpx; height: 80rpx; line-height: 80rpx; diff --git a/pageA/register/register.vue b/pageA/register/register.vue index 2b567ab..d77a45b 100644 --- a/pageA/register/register.vue +++ b/pageA/register/register.vue @@ -152,16 +152,9 @@ // type: 'success', // url: '/pageA/topick/topick' // }) - } else if(res.errCode == 2){ - this.$refs.uToast.show({ - title: res.message, - type: 'primary', - url: '/pageA/login/login' - }) } else { this.$refs.uToast.show({ title: res.message, - type: 'primary' }) } }) diff --git a/pageB/photo/index.vue b/pageB/photo/index.vue index 5ffccac..894737e 100644 --- a/pageB/photo/index.vue +++ b/pageB/photo/index.vue @@ -27,7 +27,7 @@ 评论 - + @@ -180,13 +180,15 @@ z-index: 1000; position: fixed; top: 0; + display: flex; + align-items: center; + justify-content: space-between; width: 100%; height: 88rpx; padding: 0 20rpx; line-height: 88rpx; background-color: #ECECEC; & > text { - margin-right: 280rpx; color: #333; font-size: 30rpx; font-weight: 500; @@ -514,6 +516,10 @@ export default { }, // 发布评论 sendComment() { + if (this.send_value.length == 0) { + this.$u.toast("内容不能为空!"); + return; + } this.$u.post("article/articleAddComment",{ article_id: this.article_id, content: this.send_value, diff --git a/pageB/sdetails/index.vue b/pageB/sdetails/index.vue index 2b14b17..8b4da81 100644 --- a/pageB/sdetails/index.vue +++ b/pageB/sdetails/index.vue @@ -135,7 +135,7 @@ 购买数量 - + @@ -520,6 +520,7 @@ export default { }) } else { this.debounce = true; + this.$u.toast(res.message); } }) }, diff --git a/pageB/video/video.nvue b/pageB/video/video.nvue index 1da0d21..ceba9e7 100644 --- a/pageB/video/video.nvue +++ b/pageB/video/video.nvue @@ -8,7 +8,7 @@ - + > 视频 @@ -68,6 +68,7 @@