|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/home"],{288:function(e,t,n){"use strict";(function(e,t){var i=n(4);n(26);i(n(25));var a=i(n(289));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n(1)["default"],n(2)["createPage"])},289:function(e,t,n){"use strict";n.r(t);var i=n(290),a=n(292);for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n(294);var r,s=n(32),c=Object(s["default"])(a["default"],i["render"],i["staticRenderFns"],!1,null,"92bb8f34",null,!1,i["components"],r);c.options.__file="pages/home/home.vue",t["default"]=c.exports},290:function(e,t,n){"use strict";n.r(t);var i=n(291);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},291:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return r})),n.d(t,"recyclableRender",(function(){return o})),n.d(t,"components",(function(){return i}));try{i={uLoadingPage:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loading-page/u-loading-page")]).then(n.bind(null,411))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,386))},uEmpty:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(n.bind(null,455))},uDatetimePicker:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-datetime-picker/u-datetime-picker")]).then(n.bind(null,428))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,463))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-input/u-input")]).then(n.bind(null,378))},uPicker:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-picker/u-picker")]).then(n.bind(null,403))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var a=function(){var e=this,t=e.$createElement,n=(e._self._c,!e.load&&e.isMarket?e.moduleList.length:null),i=!e.load&&e.isMarket&&n>0?e.__map(e.moduleList,(function(t,n){var i=e.__get_orig(t),a=0!=t.sortChange?Math.abs(t.sortChange):null;return{$orig:i,g1:a}})):null,a=e.load||e.isMarket?null:e.privateList.length,o=!e.load&&!e.isMarket&&a>0?e.__map(e.privateList,(function(t,n){var i=e.__get_orig(t),a=t.riseLossesCurrentDay>0?t.riseLossesCurrentDay.toFixed(2):null,o=t.riseLossesCurrentDay>0?null:t.riseLossesCurrentDay.toFixed(2);return{$orig:i,g3:a,g4:o}})):null;e._isMounted||(e.e0=function(t){e.isMarket=!0}),e.$mp.data=Object.assign({},{$root:{g0:n,l0:i,g2:a,l1:o}})},o=!1,r=[];a._withStripped=!0},292:function(e,t,n){"use strict";n.r(t);var i=n(293),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},293:function(e,t,n){"use strict";(function(e){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(18)),o={data:function(){return{AllMarketData:{},showPrivateBelong:!1,currentBelong:"所属板块",columnsBelong:[["所属板块","成交量"]],showPrivatePrice:!1,currentPrice:"全部价格",columnsPrice:[["全部价格","价格升序","价格降序"]],showPrivatePlate:!1,currentPlate:"全部板块",columnsPlate:[["全部板块","上证指数","深证指数","创业板","科创板"]],showPrivateMarket:!1,currentMarket:"全部大盘",currentMarketId:"",columnsMarket:[[{name:"全部大盘",current:""},{name:"上证指数",current:"SH"},{name:"深证指数",current:"SZ"},{name:"创业板",current:"30"},{name:"科创版",current:"688"}]],trendShowNum:"",trendShow:!1,dateShow:!1,isMarket:!0,marketRank:!0,trendList:[{name:"当日趋势",is:!0,current:1},{name:"5日趋势",is:!1,current:5},{name:"10日趋势",is:!1,current:10},{name:"15日趋势",is:!1,current:15}],showTrendList:[{name:"当日趋势",is:!0,current:1},{name:"5日趋势",is:!1,current:5},{name:"10日趋势",is:!1,current:10},{name:"15日趋势",is:!1,current:15},{name:"20日趋势",is:!1,current:20},{name:"30日趋势",is:!1,current:30}],trendCurrent:1,date:"",indicatorsList:[],moduleList:[{date:"2023-03-14",name:"半导体",ranking:"1",riseOrDecline:2,state:3},{date:"2023-03-14",name:"电子设备制造",ranking:"1",riseOrDecline:2,state:1},{date:"2023-03-14",name:"电子设备制",ranking:"1",riseOrDecline:3,state:2}],privateList:[{name:"长城汽车",code:"601633",price:"33.21",gains:"10%",suoshu:"电子设备制造"},{name:"长城汽车",code:"601633",price:"33.21",gains:"10%",suoshu:"电子设备制造"},{name:"长城汽车",code:"601633",price:"33.21",gains:"10%",suoshu:"电子设备制造"}],sortWay:"",last_page:null,pagenum:1,load:!0}},onLoad:function(e){this.date=this.getTime(Date.parse(new Date)),this.isMarket?this.marketRending():this.isMarketNav()},onReachBottom:function(){this.isMarket||this.pagenum<this.last_page&&this.getnewGoods()},methods:{isMarketNav:function(){var e=this;this.isMarket=!1,this.$api.post("/stock/originalIssueStockDetail",{businessDate:"",keyWord:"",market:"",pageModel:{pageNo:this.pagenum,pageSize:20,sortField:"",sortWay:""}}).then((function(t){t&&(e.privateList=t.list,e.last_page=t.totalPage)})).catch((function(e){console.log(e)}))},isMarketNav1:function(){var e=this;this.isMarket=!1,this.$api.post("/stock/originalIssueStockDetail",{businessDate:"",keyWord:"",market:"",pageModel:{pageNo:this.pagenum,pageSize:20,sortField:"",sortWay:""}}).then((function(t){t&&(e.privateList=[].concat((0,a.default)(e.privateList),(0,a.default)(t.list)),e.last_page=t.totalPage)})).catch((function(e){console.log(e)}))},getnewGoods:function(){this.pagenum=this.pagenum+1,e.showLoading({title:"数据加载中..."}),this.isLoading=!0,this.isMarketNav1(),e.hideLoading(),this.isLoading=!1},getModuleList:function(){var e=this;console.log(1),this.$api.post("/stock/trendPlate",{businessDate:this.date,pageModel:{pageNo:1,pageSize:10,sortField:"sort",sortWay:this.marketRank?"asc":"desc"},trendType:this.trendCurrent}).then((function(t){t&&(e.moduleList=t.list,console.log(t))})).catch((function(e){console.log(e)}))},marketRankSelect:function(){var e=this;this.marketRank=!this.marketRank,this.$api.post("/stock/trendPlate",{businessDate:this.date,pageModel:{pageNo:1,pageSize:10,sortField:"sort",sortWay:this.marketRank?"asc":"desc"},trendType:this.trendCurrent}).then((function(t){t&&(e.moduleList=t.list,console.log(t))})).catch((function(e){console.log(e)}))},getTime:function(e){var t=new Date(e),n=t.getFullYear(),i=t.getMonth()+1,a=t.getDate(),o=t.getHours(),r=t.getMinutes(),s=t.getSeconds();return s<10&&(s="0"+s),o<10&&(o="0"+o),r<10&&(r="0"+r),i<10&&(i="0"+i),a<10&&(a="0"+a),"".concat(n,"-").concat(i,"-").concat(a)},beforeDay:function(e){this.date=this.getTime(new Date(e).getTime()-864e5),this.marketRending()},afterDay:function(e){this.date=this.getTime(new Date(e).getTime()+864e5),this.marketRending()},selectDate:function(){this.dateShow=!0,e.hideTabBar({})},cancelDate:function(){this.dateShow=!1,e.showTabBar({})},confirmDate:function(t){var n=this;this.$nextTick((function(){n.date=n.getTime(t.value),n.marketRending()})),this.dateShow=!1,e.showTabBar({})},selectTrend:function(e){var t=this;this.trendList.forEach((function(n){n.name===e?(n.is=!0,t.trendCurrent=n.current,t.getModuleList()):n.is=!1}))},selectShowTrend:function(e){var t=this;this.showTrendList.forEach((function(n){n.name===e?(n.is=!0,t.trendCurrent=n.current):n.is=!1}))},openSelectTrend:function(){e.hideTabBar({}),this.trendShow=!0},closeTrendShow:function(){this.trendShow=!1,e.showTabBar({})},confirmTrendShow:function(){var t=this;this.$api.post("/stock/trendPlate",{businessDate:this.date,pageModel:{pageNo:1,pageSize:this.trendShowNum,sortField:"sort",sortWay:this.marketRank?"asc":"desc"},trendType:this.trendCurrent}).then((function(e){e&&(t.moduleList=e.list,console.log(e))})).catch((function(e){console.log(e)})),this.trendShow=!1,e.showTabBar({})},marketRending:function(){var e=this;this.moduleList.forEach((function(e){1==e.state?e.color="#D9001B":e.color="#8FC320"})),this.$api.post("/stock/appRiseLossesStatistics",{businessDate:this.date,securityCode:"",securityType:""}).then((function(t){if(t){var n=[];t.list.forEach((function(t){"全部股票"==t.securityName?e.AllMarketData=t:n.push(t)})),e.indicatorsList=n,e.load=!1,console.log(t)}})).catch((function(e){console.log(e)})),this.getModuleList()},toModuleDateil:function(){e.navigateTo({url:"/pages/home/market/allTrendModule?date=".concat(this.date)})},toMarketDetail:function(t){e.navigateTo({url:"/subpkgA/marketIndex?name=".concat(t.securityName,"&date=").concat(this.date)})},toAllMarket:function(){e.navigateTo({url:"/pages/home/market/allMarket"})},toTrendDetail:function(t,n,i){e.navigateTo({url:"/pages/home/market/trendDetail?name=".concat(t,"&id=").concat(n,"&type=").concat(i,"&date=").concat(this.date)})},toPrivateDetail:function(t,n){e.navigateTo({url:"/pages/home/private/privateDetail?name=".concat(t,"&id=").concat(n)})},toSerch:function(){e.navigateTo({url:"/pages/home/private/serch"})},PrivateMarket:function(){e.hideTabBar({}),this.showPrivateMarket=!0},cancelPrivateMarket:function(){this.showPrivateMarket=!1,e.showTabBar({})},confirmPrivateMarket:function(t){var n=this;console.log(t),this.pagenum=1,this.currentMarket=t.value[0].name,this.currentMarketId=t.value[0].current,this.$api.post("/stock/originalIssueStockDetail",{businessDate:"",keyWord:"",market:this.currentMarketId,pageModel:{pageNo:this.pagenum,pageSize:20,sortField:this.sortWay?"sort":"",sortWay:this.sortWay}}).then((function(e){e&&(n.privateList=e.list,console.log(n.privateList),console.log(e))})).catch((function(e){console.log(e)})),this.showPrivateMarket=!1,e.showTabBar({})},PrivatePlate:function(){e.hideTabBar({}),this.showPrivatePlate=!0},cancelPrivatePlate:function(){this.showPrivatePlate=!1,e.showTabBar({})},confirmPrivatePlate:function(t){this.currentPlate=t.value[0],this.showPrivatePlate=!1,e.showTabBar({})},PrivatePrice:function(){e.hideTabBar({}),this.showPrivatePrice=!0},cancelPrivatePrice:function(){this.showPrivatePrice=!1,e.showTabBar({})},confirmPrivatePrice:function(t){var n=this;this.pagenum=1,this.currentPrice=t.value[0],"价格升序"==this.currentPrice?this.sortWay="asc":this.sortWay="desc",this.$api.post("/stock/originalIssueStockDetail",{businessDate:"",keyWord:"",market:"",pageModel:{pageNo:this.pagenum,pageSize:20,sortField:this.sortWay?"sort":"",sortWay:this.sortWay}}).then((function(e){e&&(n.privateList=e.list,console.log(n.privateList),console.log(e))})).catch((function(e){console.log(e)})),this.showPrivatePrice=!1,e.showTabBar({})},privateBelong:function(){e.hideTabBar({}),this.showPrivateBelong=!0},cancelPrivateBelong:function(){this.showPrivateBelong=!1,e.showTabBar({})},confirmPrivateBelong:function(t){this.currentBelong=t.value[0],this.showPrivateBelong=!1,e.showTabBar({})}}};t.default=o}).call(this,n(2)["default"])},294:function(e,t,n){"use strict";n.r(t);var i=n(295),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},295:function(e,t,n){}},[[288,"common/runtime","common/vendor"]]]);
|