From fe8af80983cc1276915e29c6a7d30136cb0b9471 Mon Sep 17 00:00:00 2001 From: Gdpao <1341331954@qq.com> Date: Sun, 9 Aug 2020 11:31:47 +0800 Subject: [PATCH] gdpao --- common/http.interceptor.js | 2 +- components/index/video-item/index.vue | 16 +- components/informations/notice/notice.vue | 12 +- pageB/components/nuserinfo/nuserinfo.nvue | 22 +++ pageB/photo/index.vue | 15 +- pageB/video/video.nvue | 207 ++++++++++++++++++++++ pageD/activity/activity.vue | 4 +- pageD/notice/info.vue | 70 ++++++++ pageD/notice/notice.vue | 4 +- pages.json | 23 ++- pages/shop/index.vue | 30 +++- static/videoPlay.png | Bin 0 -> 2345 bytes 12 files changed, 385 insertions(+), 20 deletions(-) create mode 100644 pageB/components/nuserinfo/nuserinfo.nvue create mode 100644 pageB/video/video.nvue create mode 100644 pageD/notice/info.vue create mode 100644 static/videoPlay.png diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 75c6d58..6ca6879 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -69,7 +69,7 @@ const install = (Vue, vm) => { return false; } else if (res.errCode == 1) { console.log(res.message); - return res; + return res.data; } else { // 如果返回false,则会调用Promise的reject回调, // 并将进入this.$u.post(url).then().catch(res=>{})的catch回调中,res为服务端的返回值 diff --git a/components/index/video-item/index.vue b/components/index/video-item/index.vue index 9e45136..3f694aa 100644 --- a/components/index/video-item/index.vue +++ b/components/index/video-item/index.vue @@ -1,5 +1,5 @@