other-special-special.4fe52f8d.js 8.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["other-special-special"],{1154:function(t,e,i){"use strict";i.r(e);var n=i("327e9"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"1d12":function(t,e,i){var n=i("9878");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("967d").default;o("01286df5",n,!0,{sourceMap:!1,shadowMode:!1})},"327e9":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"),i("bd06");var o=n(i("2ba3")),a={components:{Shenhe:o.default},data:function(){return{arrlist:[],current:-2,currentpage:1,list:[],loadmore:this.$t("home.pullUp"),id:"",useFoot:!1}},onLoad:function(t){uni.setNavigationBarTitle({title:this.$t("title.special")}),this.getSpecialTpye(t)},onShow:function(){var t=this;setTimeout((function(){try{t.useFoot=t.$utils.useFoot(t.controls)}catch(e){}}),500)},onReachBottom:function(){var t=this;this.loadmore=this.$t("home.loading");var e={page:this.currentpage,type:this.id,reload:!0,limit:10};this.$allrequest.special.getTopicList(e).then((function(e){if(0==e.code){if(0==e.data.list.length)return void(t.loadmore=t.$t("home.noMore"));t.list=t.list.concat(e.data.list),t.currentpage=t.currentpage+1}}))},methods:{getSpecialTpye:function(t){var e=this;this.$allrequest.special.getTopicType({}).then((function(i){if(0==i.code&&(e.arrlist=i.data.list,e.arrlist.length>0&&t.id)){var n=e.arrlist.findIndex((function(e){return e.id==t.id}));n>=0&&e.selectType(n,t.id)}})),this.getSpecialList(0)},getSpecialList:function(t){var e=this;this.loadmore=this.$t("home.loading");var i={page:this.currentpage,type:t,reload:!0,limit:10};this.$allrequest.special.getTopicList(i).then((function(t){if(0==t.code){if(t.data.list.length<10){if(0==t.data.list.length)return void(e.loadmore=e.$t("common.noContent"));e.loadmore=e.$t("home.noMore")}else e.loadmore=e.$t("home.pullUp");e.list=t.data.list,e.currentpage=e.currentpage+1}}))},selectType:function(t,e){this.current=t,this.id=e,this.currentpage=1,this.list=[],this.getSpecialList(e)},goTopic:function(t){uni.navigateTo({url:"./topic?id="+t})}},computed:{boxStyle:function(){return{paddBottom:this.useFoot?"calc(env(safe-area-inset-bottom) + 100rpx)":"0px"}}},filters:{dateFilter:function(t){}}};e.default=a},"583a":function(t,e,i){"use strict";i.r(e);var n=i("eddc"),o=i("1154");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("b050");var s=i("828b"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"7c355cf6",null,!1,n["a"],void 0);e["default"]=c.exports},9878: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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-7c355cf6] .u-form-item--right__content__slot > uni-view,[data-v-7c355cf6] .u-form-item--right__content__slot > div,[data-v-7c355cf6] .u-form-item--right__content__slot > span,[data-v-7c355cf6] .u-form-item--right__content__slot > uni-text{width:100%}.special[data-v-7c355cf6]{padding-top:%?90?%;min-height:100vh;background-color:#f5f5f5}.special-top[data-v-7c355cf6]{color:#262626;z-index:999;position:fixed;top:%?0?%;left:%?0?%;width:100%;height:%?90?%;white-space:nowrap;background-color:#fff}.special-top .special-top-list[data-v-7c355cf6]{position:relative;display:inline-block;margin-right:%?69?%;font-size:%?30?%;height:%?90?%;line-height:%?80?%;text-align:center}.special-top .special-top-list[data-v-7c355cf6]:nth-child(1){margin-left:%?35?%}.special-top .special-top-list[data-v-7c355cf6]:nth-last-child(1){margin-right:%?35?%}.special-top .select[data-v-7c355cf6]{font-weight:600}.special-top .select[data-v-7c355cf6]::before{content:"";position:absolute;bottom:%?19?%;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);width:%?52?%;height:%?6?%;background:#f7271f}.special-list-modeone[data-v-7c355cf6]{margin:%?24?% %?25?%;display:flex;padding:%?31?% %?22?% %?32?% %?25?%;border-radius:%?16?%;justify-content:space-between;background-color:#fff}.special-list-modeone > uni-image[data-v-7c355cf6]{width:%?216?%;height:%?170?%;background:#f2f2f2;border-radius:%?10?%}.special-list-modeone > uni-view[data-v-7c355cf6]{flex:1;display:flex;flex-direction:column;justify-content:space-between;margin-right:%?56?%}.special-list-modeone > uni-view .title[data-v-7c355cf6]{font-size:%?32?%;font-weight:700;color:#000;line-height:%?42?%}.special-list-modeone > uni-view .list-modeone-one[data-v-7c355cf6]{display:flex;align-items:center;font-size:%?24?%;color:#999;line-height:%?23?%}.special-list-modeone > uni-view .list-modeone-one uni-view[data-v-7c355cf6]{margin-right:%?24?%}.special-list-modetwo[data-v-7c355cf6]{margin:%?24?% 0;padding:%?31?% %?24?%;background-color:#fff;border-radius:%?16?%}.special-list-modetwo .title[data-v-7c355cf6]{margin-bottom:%?20?%;font-size:%?32?%;font-weight:700;color:#000;line-height:%?42?%}.special-list-modetwo > uni-image[data-v-7c355cf6]{width:100%;max-height:360px;background:#f2f2f2;border-radius:%?10?%}.special-list-modetwo > uni-view[data-v-7c355cf6]:last-child{margin-top:%?20?%;display:flex;align-items:center;height:%?23?%;font-size:%?24?%;color:#999}.special-list-modetwo > uni-view:last-child uni-view[data-v-7c355cf6]{margin-right:%?24?%}.loadmore[data-v-7c355cf6]{font-size:%?20?%;margin:%?16?% %?0?%;text-align:center;color:#888}',""]),t.exports=e},b050:function(t,e,i){"use strict";var n=i("1d12"),o=i.n(n);o.a},eddc:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return 0==t.shenheStatus?i("v-uni-view",{staticClass:"special",style:[t.boxStyle]},[i("v-uni-scroll-view",{staticClass:"special-top",attrs:{"scroll-x":"true"}},[i("v-uni-view",{class:["special-top-list",-2==t.current&&"select"],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectType(-2,0)}}},[t._v(t._s(t.$t("person.cashStatus1")))]),i("v-uni-view",{class:["special-top-list",-1==t.current&&"select"],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectType(-1,-1)}}},[t._v(t._s(t.$t("home.select")))]),t._l(t.arrlist,(function(e,n){return i("v-uni-view",{key:n,class:["special-top-list",t.current==n&&"select"],on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.selectType(n,e.id)}}},[t._v(t._s(e.name))])}))],2),t._l(t.list,(function(e,n){return i("v-uni-view",{key:n,staticClass:"special-list"},[0==e.layout?i("v-uni-view",{staticClass:"special-list-modeone",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goTopic(e.id)}}},[i("v-uni-view",[i("v-uni-view",{staticClass:"text-more-2 title"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"list-modeone-one"},[i("v-uni-view",[t._v(t._s(t.$utils.turnDate(1e3*e.addtime,"yyyy-mm-dd")))]),i("v-uni-view",[t._v(t._s(e.read_count))]),e.goods_count?i("v-uni-view",[t._v(t._s(e.goods_count))]):t._e()],1)],1),i("v-uni-image",{attrs:{src:e.cover_pic,mode:"aspectFill"}})],1):t._e(),1==e.layout?i("v-uni-view",{staticClass:"special-list-modetwo",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goTopic(e.id)}}},[i("v-uni-view",{staticClass:"title text-more-2"},[t._v(t._s(e.title))]),i("v-uni-image",{attrs:{src:e.cover_pic,mode:"aspectFill"}}),i("v-uni-view",[i("v-uni-view",[t._v(t._s(t.$utils.turnDate(1e3*e.addtime,"yyyy-mm-dd")))]),i("v-uni-view",[t._v(t._s(e.read_count))]),e.goods_count?i("v-uni-view",[t._v(t._s(e.goods_count))]):t._e()],1)],1):t._e()],1)})),i("v-uni-view",{staticClass:"loadmore"},[t._v(t._s(t.loadmore))]),t.useFoot?i("div",{staticClass:"footNav fixed"},[t._l(t.controls,(function(e,n){return["foot_nav"==e.type?i("footNav",{key:n,attrs:{param:e.param}}):t._e()]}))],2):t._e()],2):1==t.shenheStatus?i("Shenhe"):t._e()},o=[]}}]);