advertisementTime.js 3.19 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/advertisementTime/advertisementTime"],{"4d51":function(t,e,n){"use strict";n.r(e);var a=n("f5ff"),c=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=c.a},"6ea1":function(t,e,n){"use strict";var a=n("f62e"),c=n.n(a);c.a},"765d":function(t,e,n){"use strict";n.r(e);var a=n("fdb1"),c=n("4d51");for(var o in c)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(o);n("6ea1");var i=n("828b"),r=Object(i["a"])(c["default"],a["b"],a["c"],!1,null,"4fe30b5b",null,!1,a["a"],void 0);e["default"]=r.exports},9621:function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("aab8");a(n("3240"));var c=a(n("765d"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(c.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},f5ff:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={components:{calendar:function(){Promise.all([n.e("common/vendor"),n.e("components/dc-calendar/dc-calendar")]).then(function(){return resolve(n("3626"))}.bind(null,n)).catch(n.oe)}},data:function(){return{isShow:!1,startDate:"",endDate:"",height:600,limit:12,bottom1:0,yimanArray:[],dicdes:{price:1},type:0}},mounted:function(){},onUnload:function(){t.setStorageSync("满日期显示",0)},onLoad:function(e){t.showLoading({title:"加载中"});var n=t.getSystemInfoSync();n.statusBarHeight>=44&&(this.bottom1=34);var a=t.getStorageSync("入离日期");a&&(this.startDate=a.startDate,this.endDate=a.endDate),this.newdate(),this.type=1,t.setStorageSync("满日期显示",1),this.gethttpurl(this.dicdes.id)},methods:{advertisementAdd:function(){t.navigateTo({url:"/pages/advertisementAdd/advertisementAdd"})},gethttpurl:function(e){this.yimanArray=["2022-03-25","2022-04-10"],this.isShow=!0,t.hideLoading()},showCalendar:function(){this.isShow=!0},cancel:function(){this.isShow=!1},selectDate:function(e){console.log("拿到传参",e),t.setStorageSync("入离日期",e)},newdate:function(){var e=new Date,n=e.getFullYear(),a=e.getMonth()+1,c=(e.getDay(),e.getDate()),o=new Date(n,a,0).getDate();a=a<10?"0"+a:a,c=c<10?"0"+c:c;var i="".concat(n,"-").concat(a,"-").concat(c),r="".concat(n,"-").concat(a,"-").concat(c),s="".concat(a,"月").concat(c,"日"),d="".concat(a,"月").concat(c,"日");if(12==a&&parseInt(c)==parseInt(o)){var u=parseInt(n)+1;r="".concat(u,"-").concat("01","-").concat("01"),d="".concat(u,"年").concat("01","月").concat("01","日")}else if(parseInt(c)==parseInt(o)){var f=parseInt(a)+1;f=f<10?"0"+f:f,r="".concat(n,"-").concat(f,"-").concat("01"),d="".concat(f,"月").concat("01","日")}else{var l=parseInt(c)+1;l=l<10?"0"+l:l,r="".concat(n,"-").concat(a,"-").concat(l),d="".concat(a,"月").concat(l,"日")}var h={startDate:i,endDate:r,startDate1:s,endDate1:d,dayNum:"1"};this.startDate=h.startDate,this.endDate=h.endDate,t.setStorageSync("入离日期",h)}}};e.default=a}).call(this,n("df3c")["default"])},f62e:function(t,e,n){},fdb1:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},c=[]}},[["9621","common/runtime","common/vendor"]]]);