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 0980a0c..894737e 100644 --- a/pageB/photo/index.vue +++ b/pageB/photo/index.vue @@ -27,7 +27,7 @@ 评论 - + @@ -66,7 +66,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 @@