8.28 修改事件详情相关概念模块样式,增加股票详情信息来源展示
This commit is contained in:
@@ -1 +1 @@
|
||||
"use strict";const e=require("./http.js");exports.calendarDataList=t=>e.get("/api/calendar/data",t),exports.calendarEventCount=t=>e.get("/api/calendar-event-counts",t),exports.calendarEventList=t=>e.get("/api/calendar/events",t),exports.eventHistoryEvent=t=>e.get("/api/event/"+t+"/historical-events"),exports.eventList=t=>e.get("/api/events",t),exports.eventRelatedConcept=t=>e.get("/api/event/"+t+"/related-concepts"),exports.eventRelatedStock=t=>e.get("/api/event/"+t+"/related-stocks-detail"),exports.filterOptions=t=>e.get("/api/filter/options",t),exports.homeData=t=>e.get("/api/home",t),exports.industryCategoryList=t=>e.get("/api/industry-classifications",t),exports.investEventDetails=(t,a)=>e.get("/event/"+t,a),exports.loginByEmail=t=>e.post("/api/auth/login/email",t),exports.userInfo=t=>e.get("/api/user/profile",t);
|
||||
"use strict";const e=require("./http.js");exports.agreements=()=>e.get("/api/agreements"),exports.calendarDataList=t=>e.get("/api/calendar/data",t),exports.calendarEventCount=t=>e.get("/api/calendar-event-counts",t),exports.calendarEventList=t=>e.get("/api/calendar/events",t),exports.commentEvent=(t,s)=>e.post("/post/create/"+t,s),exports.eventCommentList=t=>e.get("/api/event/"+t+"/comments"),exports.eventHistoryEvent=t=>e.get("/api/event/"+t+"/historical-events"),exports.eventList=t=>e.get("/api/events",t),exports.eventRelatedConcept=t=>e.post("/concept-api/search",t),exports.eventRelatedStock=t=>e.get("/api/event/"+t+"/related-stocks-detail"),exports.feedback=t=>e.post("/api/user/feedback",t),exports.filterOptions=t=>e.get("/api/filter/options",t),exports.followEvent=t=>e.post("/event/follow/"+t),exports.homeData=t=>e.get("/api/home",t),exports.industryCategoryList=t=>e.get("/api/sector/hierarchy",t),exports.investEventDetails=(t,s)=>e.get("/api/calendar/detail/"+t,s),exports.likeEventComment=t=>e.post("/post/like/"+t),exports.loginByPhone=t=>e.post("/api/auth/login/phone",t),exports.loginByWx=t=>e.post("/api/auth/login/wechat",t),exports.membershipStatus=t=>e.get("/api/membership/status",t),exports.replyComment=(t,s)=>e.post("/post/comment/"+t,s),exports.sendSMS=t=>e.post("/api/auth/send-sms",t),exports.stockCandlestickChartData=(t,s)=>e.get("/api/stock/"+t+"/kline",s),exports.stockCategoryList=t=>e.get("/api/sector/banner",t),exports.stockDetails=(t,s)=>e.get("/api/event/"+t+"/stock/"+s+"/detail"),exports.updateBasicInfo=t=>e.post("/settings/profile",t),exports.updateInvestPreference=t=>e.post("/settings/investment_preferences",t),exports.userActivityList=t=>e.get("/api/user/activities",t),exports.userInfo=t=>e.get("/api/user/profile",t);
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../common/vendor.js");let o="";o="http://43.143.189.195:5002",exports.get=function(t,n){return new Promise(((i,a)=>{let r=e.index.getStorageSync("token");e.index.request({url:o+t,data:n,header:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded",Authorization:r?"Bearer "+r:""},method:"GET",success:o=>{console.log(o),-200==o.data.code?e.index.navigateTo({url:"/pages/login/login"}):i(o.data)},fail:e=>{a(e.response)}})}))},exports.post=function(t,n){return new Promise(((i,a)=>{let r=e.index.getStorageSync("token"),s=0;n&&(s=n.isJson),e.index.request({url:o+t,data:n,header:{Accept:"application/json","Content-Type":s?"application/json":"application/x-www-form-urlencoded",Authorization:r?"bearer"+r:""},method:"POST",success:o=>{console.log(JSON.parse(JSON.stringify(o)));let t="Set-Cookie";if(o.header[t]&&!n.isNotSaveToken){let n=o.header[t].split(";")[0].split("=.")[1];e.index.setStorageSync("token",n)}n&&n.isNotNeedLogin||(-200==o.data.code?(e.index.removeStorageSync("token"),e.index.navigateTo({url:"/pages/login/login"}),a(o.data)):i(o.data))},fail:o=>{e.index.showToast({title:"网络请求失败",icon:"none"}),a(o.response)}})}))};
|
||||
"use strict";const e=require("../common/vendor.js");let o="";o="http://43.143.189.195:5002",exports.get=function(n,t){return new Promise(((i,a)=>{let d=e.index.getStorageSync("token");e.index.showLoading({title:"加载中"}),e.index.request({url:o+n,data:t,header:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded",Authorization:d?"Bearer "+d:""},method:"GET",success:o=>{console.log(o),e.index.hideLoading(),401==o.data.code?(e.index.removeStorageSync("token"),e.index.navigateTo({url:"/pages/login/login"})):i(o.data)},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"请求失败",icon:"error"}),a(o.response)}})}))},exports.post=function(n,t){return new Promise(((i,a)=>{let d=e.index.getStorageSync("token"),r=0,s=0;if(t&&(r=t.isJson),t&&(s=t.isFile),e.index.showLoading({title:"加载中"}),s){let d=e.index.getStorageSync("token");e.index.uploadFile({url:o+n,filePath:t.avatar,name:"avatar",header:{Authorization:d?"Bearer "+d:""},formData:t,success:o=>{console.log(o),e.index.hideLoading(),401==o.data.code?(e.index.removeStorageSync("token"),e.index.navigateTo({url:"/pages/login/login"}),a(o.data)):i(o.data)},fail:o=>{console.log("上传失败"+o.errMsg),e.index.hideLoading(),e.index.showToast({title:"请求失败",icon:"error"}),a()}})}else{let l=o;n.indexOf("concept-api")>-1&&(l="https://valuefrontier.cn"),e.index.request({url:l+n,data:t,header:{Accept:"application/json","Content-Type":r?"application/json":s?"multipart/form-data":"application/x-www-form-urlencoded",Authorization:d?"Bearer "+d:""},method:"POST",success:o=>{e.index.hideLoading(),t&&t.isNotNeedLogin||(console.log(o.data),401==o.data.code?(e.index.removeStorageSync("token"),e.index.navigateTo({url:"/pages/login/login"}),a(o.data)):i(o.data))},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"请求失败",icon:"error"}),a(o.response)}})}}))};
|
||||
|
||||
Reference in New Issue
Block a user