pages-news_list-index.5511ec56.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-news_list-index"],{"02aa":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ajcaptchaCheck=function(t){return a.default.post("ajcheck",t,{noAuth:!0})},e.appleAppAuth=function(t){return a.default.post("auth/apple",t,{noAuth:!0})},e.appletsDecrypt=function(t){return a.default.post("user/mp/binding",t)},e.bindingPhone=function(t){return a.default.post("user/binding",t)},e.getAjcaptcha=function(t){return a.default.get("ajcaptcha",t,{noAuth:!0})},e.getAppVersion=function(){return a.default.get("appVersion",{},{noAuth:!0})},e.getArticleBannerList=function(){return a.default.get("article/banner/list",{},{noAuth:!0})},e.getArticleCategoryList=function(){return a.default.get("article/category/lst",{},{noAuth:!0})},e.getArticleDetails=function(t){return a.default.get("article/detail/"+t,{},{noAuth:!0})},e.getArticleHotList=function(){return a.default.get("article/hot/list",{},{noAuth:!0})},e.getArticleList=function(t,e){return a.default.get("article/lst/"+t,e,{noAuth:!0})},e.getAssistData=function(t){return a.default.get("diy/assist",t,{noAuth:!0})},e.getCateData=function(t){return a.default.get("diy/category",t,{noAuth:!0})},e.getCity=function(){return a.default.get("system/city/lst",{},{noAuth:!0})},e.getCityList=function(t){return a.default.get("v2/system/city",{address:t},{noAuth:!0})},e.getCityV2=function(t){return a.default.get("v2/system/city/lst/"+t,{},{noAuth:!0})},e.getCombinationData=function(t){return a.default.get("diy/group",t,{noAuth:!0})},e.getCouponData=function(t){return a.default.get("diy/coupon",t,{noAuth:!0})},e.getCoupons=function(t){return a.default.get("coupon/product",t,{noAuth:!0})},e.getDiy=function(t){return a.default.get("diy",t,{noAuth:!0})},e.getIndexData=function(){return a.default.get("common/home",{},{noAuth:!0})},e.getLiveData=function(t){return a.default.get("diy/broadcast",t,{noAuth:!0})},e.getLiveList=function(t,e){return a.default.get("wechat/live",{page:t,limit:e},{noAuth:!0})},e.getLogo=function(){return a.default.get("wechat/get_logo",{},{noAuth:!0})},e.getOpenAdv=function(){return a.default.get("open_screen",{},{noAuth:!0})},e.getPageDiy=function(t){return a.default.get("micro",t,{noAuth:!0})},e.getPresellData=function(t){return a.default.get("diy/presell",t,{noAuth:!0})},e.getProductData=function(t){return a.default.get("diy/spu",t,{noAuth:!0})},e.getSeckillData=function(t){return a.default.get("diy/seckill",t,{noAuth:!0})},e.getShopCoupons=function(t){return a.default.get("coupon/store/"+t,{},{noAuth:!0})},e.getTemlIds=function(){return a.default.get("wechat/teml_ids",{},{noAuth:!0})},e.getUserCoupons=function(t){return a.default.get("coupon/list",t)},e.graphicLstData=function(t){return a.default.get("diy/community",t,{noAuth:!0})},e.hotRankingList=function(t){return a.default.get("diy/hot_top",t,{noAuth:!0})},e.loginMobile=function(t){return a.default.post("login/mobile",t,{noAuth:!0})},e.logout=function(){return a.default.get("logout")},e.modifyPassword=function(t){return a.default.post("user/change/password",t)},e.modifyPhone=function(t){return a.default.post("user/change/phone",t)},e.phoneLogin=function(t){return a.default.post("login",t,{noAuth:!0})},e.phoneRegister=function(t){return a.default.post("register",t,{noAuth:!0})},e.phoneRegisterReset=function(t){return a.default.post("register/reset",t,{noAuth:!0})},e.pink=function(){return a.default.get("pink",{},{noAuth:!0})},e.registerVerify=function(t,e,i,n){return a.default.post("register/verify",{phone:t,type:void 0===e?"reset":e,key:i,code:n},{noAuth:!0})},e.setCouponReceive=function(t){return a.default.post("coupon/receive/"+t)},e.setFormId=function(t){return a.default.post("wechat/set_form_id",{formId:t})},e.storeList=function(t){return a.default.get("diy/store",t,{noAuth:!0})},e.switchH5Login=function(t){return a.default.post("user/switch",t)},e.verifyCode=function(){return a.default.get("verify_code",{},{noAuth:!0})},e.wechatAppAuth=function(t){return a.default.post("auth/app",t,{noAuth:!0})};var a=n(i("fea3"))},"13d7":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"newsList"},[t.navList.length>0?i("v-uni-view",{staticClass:"nav bg-f"},[i("v-uni-scroll-view",{staticClass:"scroll-view_x",staticStyle:{width:"auto",overflow:"hidden"},attrs:{"scroll-x":!0,"scroll-with-animation":!0,"scroll-left":t.scrollLeft}},[t._l(t.navList,(function(e,n){return[i("v-uni-view",{key:n+"_0",staticClass:"item",class:t.active==e.article_category_id?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.tabSelect(e.article_category_id)}}},[i("v-uni-view",[t._v(t._s(e.title))]),t.active==e.article_category_id?i("v-uni-view",{staticClass:"line bg-color"}):t._e()],1)]}))],2)],1):t._e(),i("v-uni-view",{staticClass:"list pad20"},[t._l(t.articleList,(function(e,n){return[i("v-uni-navigator",{key:n+"_0",staticClass:"item acea-row row-between-wrapper bg-f boder-24 mt20",attrs:{url:"/pages/news_details/index?id="+e.article_id,"hover-class":"none"}},[i("v-uni-view",{staticClass:"text acea-row row-column-between"},[i("v-uni-view",{staticClass:"name line2"},[t._v(t._s(e.title))]),i("v-uni-view",[t._v(t._s(e.create_time))])],1),i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.image_input}})],1)],1)]}))],2)],1),0!=t.articleList.length||1==t.page&&0!=t.active?t._e():[i("emptyPage",{attrs:{title:"暂无新闻信息~",noImage:t.domain+"/static/images/empty-box.png"}})],i("home")],2)},a=[]},"13f0":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"empty-box"},[e("v-uni-image",{attrs:{src:this.noImage}}),e("v-uni-view",{staticClass:"txt"},[this._v(this._s(this.title))])],1)},a=[]},"247f":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticStyle:{"touch-action":"none"},style:t.viewColor},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px",bottom:t.bottom},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?i("v-uni-view",{staticClass:"homeCon",class:!0===t.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-ic_home",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-ic_ShoppingCart1",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-ic_user1",attrs:{"hover-class":"none",url:"/pages/user/index","open-type":"switchTab"}})],1):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image pictruea",attrs:{src:!0===t.homeActive?t.domain+"/static/images/navbtn_open.gif":t.domain+"/static/images/navbtn_close.gif"}})],1)],1)],1)],1)},a=[]},2968:function(t,e,i){var n=i("87a7");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("0ecf5b3c",n,!0,{sourceMap:!1,shadowMode:!1})},4478:function(t,e,i){"use strict";i.r(e);var n=i("db23"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"4c0c":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("8f59"),a=i("aa10"),o={name:"Home",props:{},data:function(){return{domain:a.HTTP_REQUEST_URL,top:"",bottom:""}},computed:(0,n.mapGetters)(["homeActive","viewColor","keyColor"]),methods:{setTouchMove:function(t){t.touches[0].clientY<545&&t.touches[0].clientY>66&&(this.top=t.touches[0].clientY,this.bottom="auto")},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){this.bottom="50px"}};e.default=o},"60f4":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.newsList .nav[data-v-16ac8874]{padding:0 %?30?%;width:100%;white-space:nowrap;box-sizing:border-box;padding-top:%?43?%}.newsList .nav .item[data-v-16ac8874]{display:inline-block;font-size:%?32?%;color:#999;min-width:%?130?%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;padding-bottom:%?20?%;text-align:center}.newsList .nav .item.on[data-v-16ac8874]{color:#282828}.newsList .nav .item ~ .item[data-v-16ac8874]{margin-left:%?46?%}.newsList .nav .item .line[data-v-16ac8874]{width:%?24?%;height:%?4?%;border-radius:%?2?%;margin:%?10?% auto 0 auto;position:absolute;bottom:%?5?%;left:50%;margin-left:%?-12?%}.newsList .list .item[data-v-16ac8874]{border-bottom:1px solid #f0f0f0;padding:%?35?% %?30?%}.newsList .list .item .pictrue[data-v-16ac8874]{width:%?250?%;height:%?156?%;border-radius:%?16?%}.newsList .list .item .pictrue uni-image[data-v-16ac8874]{width:100%;height:100%;border-radius:%?16?%}.newsList .list .item .text[data-v-16ac8874]{width:%?360?%;height:%?156?%;font-size:%?24?%;color:#999}.newsList .list .item .text .name[data-v-16ac8874]{font-size:%?30?%;color:#282828}.newsList .list .item .picList .pictrue[data-v-16ac8874]{width:%?335?%;height:%?210?%;border-radius:%?16?%}.newsList .list .item .picList.on .pictrue[data-v-16ac8874]{width:%?217?%;height:%?136?%;border-radius:%?16?%}.newsList .list .item .picList .pictrue uni-image[data-v-16ac8874]{width:100%;height:100%;border-radius:%?16?%}.empty-box[data-v-16ac8874]{margin-top:%?200?%}',""]),t.exports=e},6776:function(t,e,i){"use strict";var n=i("2968"),a=i.n(n);a.a},7935:function(t,e,i){"use strict";i.r(e);var n=i("4c0c"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},8329:function(t,e,i){"use strict";i.r(e);var n=i("13f0"),a=i("c4bf");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("ad31");var r=i("828b"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"07efc1fe",null,!1,n["a"],void 0);e["default"]=u.exports},"87a7":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,".pictrueBox[data-v-0dd0b5be]{width:%?130?%;height:%?120?%}\n/*返回主页按钮*/.home[data-v-0dd0b5be]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-0dd0b5be]{border-radius:%?50?%;opacity:0;height:0;color:#e93323;width:0}.home .homeCon.on[data-v-0dd0b5be]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)}.home .homeCon .iconfont[data-v-0dd0b5be]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-0dd0b5be]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme);box-shadow:0 %?5?% %?12?% rgba(0,0,0,.5)}.home .pictrue .image[data-v-0dd0b5be]{width:100%;height:100%}.pictruea[data-v-0dd0b5be]{width:100%;height:100%;display:block;object-fit:cover;vertical-align:middle}",""]),t.exports=e},a382:function(t,e,i){"use strict";var n=i("c084"),a=i.n(n);a.a},ad31:function(t,e,i){"use strict";var n=i("fb63"),a=i.n(n);a.a},b1c7:function(t,e,i){"use strict";i.r(e);var n=i("13d7"),a=i("4478");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("a382");var r=i("828b"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"16ac8874",null,!1,n["a"],void 0);e["default"]=u.exports},b7b2:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("aa10"),a={props:{title:{type:String,default:"暂无记录"},noImage:{type:String,default:n.HTTP_REQUEST_URL+"/static/images/empty-box.png"}}};e.default=a},c084:function(t,e,i){var n=i("60f4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("027d7d5a",n,!0,{sourceMap:!1,shadowMode:!1})},c4bf:function(t,e,i){"use strict";i.r(e);var n=i("b7b2"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},db23:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223");var a=i("02aa"),o=n(i("defc")),r=i("aa10"),u=n(i("8329")),s={components:{home:o.default,emptyPage:u.default},data:function(){return{domain:r.HTTP_REQUEST_URL,imgUrls:[],articleList:[],indicatorDots:!1,circular:!0,autoplay:!0,interval:3e3,duration:500,navList:[],active:0,page:1,limit:8,status:!1,scrollLeft:0}},onShow:function(){},onLoad:function(){this.getArticleCate(),this.status=!1,this.page=1,this.articleList=[]},onReachBottom:function(){this.getCidArticle()},methods:{getArticleHot:function(){var t=this;(0,a.getArticleHotList)().then((function(e){t.$set(t,"articleList",e.data)}))},getCidArticle:function(){var t=this;if(0!=t.active){var e=t.limit,i=t.page,n=t.articleList;t.status||(0,a.getArticleList)(t.active,{page:i,limit:e}).then((function(i){var a,o=i.length;a=n.concat(i.data.list),t.page++,t.$set(t,"articleList",a),t.status=e>o,t.page=t.page}))}},getArticleCate:function(){var t=this,e=this;(0,a.getArticleCategoryList)().then((function(i){t.active=i.data[0].article_category_id,e.$set(e,"navList",i.data),t.getCidArticle()}))},tabSelect:function(t){this.active=t,0==this.active?this.getArticleHot():(this.$set(this,"articleList",[]),this.page=1,this.status=!1,this.getCidArticle())}}};e.default=s},defc:function(t,e,i){"use strict";i.r(e);var n=i("247f"),a=i("7935");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("6776");var r=i("828b"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"0dd0b5be",null,!1,n["a"],void 0);e["default"]=u.exports},eb2d:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.empty-box[data-v-07efc1fe]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?120?%}.empty-box uni-image[data-v-07efc1fe]{width:%?414?%;height:%?305?%}.empty-box .txt[data-v-07efc1fe]{font-size:%?26?%;color:#999}',""]),t.exports=e},fb63:function(t,e,i){var n=i("eb2d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("c382cd32",n,!0,{sourceMap:!1,shadowMode:!1})}}]);