advertisement.js
3.19 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/advertisement/advertisement"],{"1d62":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{tableData:[],query:{advertisingName:"",advertisingType:"",publishStatus:2},pageindex:{pageNumber:0,pageSize:10,publishStatus:2},typeshow:!1,typeList:[{value:"线上广告位",label:"线上广告位"},{value:"实体广告位",label:"实体广告位"}],show:!1,companys:[{value:"1",label:"线上广告位"},{value:"2",label:"实体广告位"}]}},mounted:function(){this.getAll()},methods:{getAll:function(){var e=this,t=Object.assign(this.pageindex,this.query);this.$http.sendRequest("/cereAdvertisingInformation/queryByPage","POST",t,1).then((function(t){e.tableData=t.data.data.content})).catch((function(e){console.log(e)}))},search:function(){this.pageindex={pageNumber:1,pageSize:10},this.getAll()},queryChange:function(e,t){this.query["".concat(e)]=t[0].value,this.search()},toDetail:function(t){var n=JSON.stringify(t);e.navigateTo({url:"/pages/advertisementDetail/advertisementDetail?item=".concat(n)})},setList:function(e){console.log(e),0==e?this.companys=[{value:"1",label:"线上广告位"},{value:"2",label:"线下广告位"}]:(1==e||2==e)&&(this.companys=[]),this.show=!0},handleCompanyConfirm:function(e){var t=this;console.log(e);var n={pageNumber:1,pageSize:10,advertisingType:e[0].label};this.$http.sendRequest("/cereAdvertisingInformation/likeGet","POST",n,1).then((function(e){t.tableData=e.data.data.content}))},sousu:function(){this.keyword}}};t.default=n}).call(this,n("df3c")["default"])},"22c7":function(e,t,n){"use strict";n.r(t);var a=n("1d62"),u=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=u.a},a9eb:function(e,t,n){"use strict";n.r(t);var a=n("d763"),u=n("22c7");for(var i in u)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(i);n("e725");var o=n("828b"),s=Object(o["a"])(u["default"],a["b"],a["c"],!1,null,"912887d6",null,!1,a["a"],void 0);t["default"]=s.exports},d763:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var a={uSearch:function(){return n.e("node-modules/uview-ui/components/u-search/u-search").then(n.bind(null,"33d7"))},uButton:function(){return n.e("node-modules/uview-ui/components/u-button/u-button").then(n.bind(null,"2221"))},uSelect:function(){return n.e("node-modules/uview-ui/components/u-select/u-select").then(n.bind(null,"ba16"))},uImage:function(){return n.e("node-modules/uview-ui/components/u-image/u-image").then(n.bind(null,"fbb2"))}},u=function(){var e=this,t=e.$createElement,n=(e._self._c,e.$imgUrl("/down.png")),a=e.tableData.length;e._isMounted||(e.e0=function(t){e.typeshow=!0}),e.$mp.data=Object.assign({},{$root:{m0:n,g0:a}})},i=[]},e725:function(e,t,n){"use strict";var a=n("eeb4"),u=n.n(a);u.a},eeb4:function(e,t,n){},f5fd:function(e,t,n){"use strict";(function(e,t){var a=n("47a9");n("06cb");a(n("3240"));var u=a(n("a9eb"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(u.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["f5fd","common/runtime","common/vendor"]]]);