diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 498c36f..4d23618 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -4,17 +4,18 @@ const install = (Vue, vm) => { baseUrl: 'https://dmmall.sdbairui.com/storeapi', loadingText: '努力加载中~', loadingTime: 800, - // 设置自定义头部content-type - // header: { - // "Authorization" : "122" - // } - // ...... + originalData: true, + }); Vue.prototype.$u.http.interceptor.request = (config) => { const token = uni.getStorageSync('token'); config.header.Authorization = 'Bearer' + " " + token; return config; - } + } + Vue.prototype.$u.http.interceptor.response = (res) => { + // todo 判断状态码 + return res.data; + } } export default { diff --git a/pages/release/tosign.vue b/pages/release/tosign.vue index c3e082f..639e9f6 100644 --- a/pages/release/tosign.vue +++ b/pages/release/tosign.vue @@ -28,7 +28,7 @@ 直播封面图 - + {{relerest}} @@ -60,7 +60,8 @@ relerest: '开始直播', fileListes:[], rSelect:[], - image:"" + image:"", + token:"" }; }, methods: { @@ -90,7 +91,7 @@ this.init() }, tupian(a){ - console.log(JSON.parse(a.data).data) + console.log(JSON.parse(a.data)) this.image = JSON.parse(a.data).data.file_name }, navto(url){ @@ -111,7 +112,8 @@ url:"/pages/release/zhibo", params:{ url:res.data.url.replace("&","*"), - id:res.data.chat_id + id:res.data.chat_id, + live_id: res.data.live_id } }) }) @@ -137,6 +139,14 @@ onLoad(){ this.init() uni.removeStorageSync('gouwudai') + // + + this.token = uni.getStorageSync('token'); + var config = { + appkey: 'mgb7ka1', + debug:true + }; + } }; @@ -472,5 +482,6 @@ left: 0; right: 0; margin: auto; + z-index: 10; } diff --git a/pages/release/zhibo.nvue b/pages/release/zhibo.nvue index bd36da7..1864862 100644 --- a/pages/release/zhibo.nvue +++ b/pages/release/zhibo.nvue @@ -1,7 +1,7 @@ @@ -41,9 +41,33 @@ {{info.member_name}} - asdasdsa | sadasdas + {{time}} | sadasdas + + + + 德铭阳光在线绿色直播,请遵循相关法律法规,警察叔叔24小时巡查哦。为了保障直播系统稳定,现将全局开放防主播沉迷功能。主播积累直播16小时将自动下播休息2小时后方可继续开播。请大家注意休息/避免空播。 + + + + + 直播工具 + + + + 翻转 + + + + + 美颜 + + + + + +