app_tree_planting/unpackage/cache/wgt/__UNI__BAFB016/app-service.js

17 lines
152 KiB
JavaScript
Raw Normal View History

2023-02-08 17:59:16 +08:00
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"00e7":function(t,e,s){"use strict";(function(t){var i=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(s("9523")),o=s("26cb"),r=i(s("f492"));function a(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function c(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?a(Object(s),!0).forEach((function(e){(0,n.default)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):a(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var u={components:{scroller:r.default},data:function(){return{currentIndex:1,list:[],list2:[],scroller:{},scroller2:{},optUp:{auto:!0,onScroll:!0,page:{num:0,size:10},empty:{tip:"\u6682\u65e0\u6570\u636e~"}},optUp2:{auto:!0,onScroll:!0,page:{num:0,size:10},empty:{tip:"\u6682\u65e0\u6570\u636e~"}},token:"",imgUrl:this.$api.common.imgUrl,searchContent:""}},onLoad:function(t){},onShow:function(t){this.token=getApp().globalData.token,""!=this.token&&this.getData2()},methods:c(c({},(0,o.mapMutations)(["login"])),{},{tabChange:function(e){this.currentIndex=e,this.bg=1==e?this.bg1:this.bg2,2==this.currentIndex&&(""==this.token?(uni.setStorageSync("loginOriginUrl","/pages/duty/activitylist"),uni.navigateTo({url:"/pages/user/login"})):(t("log",this.list2," at pages/duty/activitylist.vue:159"),this.getData2()))},closePage:function(){uni.navigateBack()},doSearch:function(){uni.hideKeyboard(),""==this.searchContent&&this.$alert("\u8bf7\u8f93\u5165\u5173\u952e\u5b57"),this.refreshData()},initScroller:function(t){this.scroller=t,this.loadData()},refreshData:function(){uni.showLoading({title:"\u5237\u65b0\u4e2d"}),this.scroller.resetUpScroll()},onSearchInput:function(e){this.searchContent=e.target.value,t("log",e.target.value," at pages/duty/activitylist.vue:190"),""==e.target.value&&this.refreshData()},loadData:function(){this.list=[],this.scroller.resetUpScroll()},navFloatShow:function(t){},getData:function(){var e=this;this.$app.request({url:this.$api.duty.getActivityList,method:"GET",data:{rows:"10",page:"1",keywords:this.searchContent},dataType:"json",success:function(s){if(t("log","\u52a0\u8f7d\u5b8c\u6210"," at pages/duty/activitylist.vue:216"),void 0!=s.rows){1==e.scroller.num&&(e.list=[]);var i=[];i=s.rows,t("log",i[2].photo," at pages/duty/activitylist.vue:223");for(var n=0;n<i.length;n++)if(i[n].photo){var o=i[n].photo.indexOf(",");-1!=o&&(i[n].img=i[n].photo.substring(0,o)),i[n].img=i[n].photo}e.list=e.list.concat(i),t("log",e.list," at pages/duty/activitylist.vue:234"),e.scroller.endBySize(s.rows.length,s.rows.total),e.showPageLoading=!1}else e.scroller.endSuccess(),e.$alert(s.msg)},fail:function(t){e.scroller.endErr()},complete:function(t){uni.stopPullDownRefresh(),uni.hideLoading()}})},getData2:function(){var e=this;this.$app.request({url:this.$api.duty.getMineActivity,method:"GET",dataType:"json",header:{token:this.token},success:function(s){if(t("log",s.status," at pages/duty/activitylist.vue:263"),void 0!=s&&void 0==s.status){for(var i=0;i<s.length;i++)if(s[i].activityDTO.photo){var n=s[i].activityDTO.photo.indexOf(",");-1!=n&&(s[i].img=s[i].activityDTO.photo.substring(0,n)),s[i].img=s[i].activityDTO.photo}e.list2=s}else e.list2=[]},fail:function(t){uni.showToast({icon:"error",title:"\u52a0\u8f7d\u5931\u8d25"})},complete:function(t){}})},openDetail:function(t){uni.navigateTo({url:"/pages/duty/activitydetail?id="+t+"&type=1"})},openDetailType:function(t,e){uni.navigateTo({url:"/pages/duty/activitydetail?id="+t+"&type=2&itemId="+e})}})};e.default=u}).call(this,s("0de9")["default"])},"025e":function(t,e){t.exports="/static/images/ic_explan_title_bg.png"},"0707":function(t,e,s){"use strict";s.r(e);var i=s("517c"),n=s("9905");for(var o in n)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){retur
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var s=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,s.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l))}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,s){var i=this,n=m(t,e,s),o=n.type,r=n.payload,a=(n.options,{type:o,payload:r}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(r)}))})),this._subscribers.slice().forEach((function(t){return t(a,i.state)})))},f.prototype.dispatch=function(t,e){var s=this,i=m(t,e),n=i.type,o=i.payload,r={type:n,payload:o},a=this._actions[n];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(r,s.state)}))}catch(u){0}var c=a.length>1?Promise.all(a.map((function(t){return t(o)}))):a[0](o);return new Promise((function(t,e){c.then((function(e){try{s._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(r,s.state)}))}catch(u){0}t(e)}),(function(t){try{s._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(r,s.state,t)}))}catch(u){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){var s="function"===typeof t?{before:t}:t;return p(s,this._actionSubscribers,e)},f.prototype.watch=function(t,e,s){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,s)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,s){void 0===s&&(s={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),s.preserveState),h(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var s=g(e.state,t.slice(0,-1));l.delete(s,t[t.length-1])})),_(this)},f.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),_(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var y=S((function(t,e){var s={};return x(e).forEach((function(e){var i=e.key,n=e.val;s[i]=function(){var e=this.$store.state,s=this.$store.getters;if(t){var i=k(this.$store,"mapState",t);if(!i)return;e=i.context.state,s=i.context.getters}return"function"===typeof n?n.call(this,e,s):e[n]},s[i].vuex=!0})),s})),b=S((function(t,e){var s={};return x(e).forEach((function(e){var i=e.key,n=e.val;s[i]=function(){var e=[],s=arguments.length;while(s--)e[s]=arguments[s];var i=this.$store.commit;if(t){var o=k(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"===typeof n?n.apply(this,[i].concat(e)):i.apply(this.$store,[n].concat(e))}})),s})),$=S((function(t,e){var s={};return x(e).forEach((function(e){var i=e.key,n=e.val;n=t+n,s[i]=function(){if(!t||k(this.$store,"mapGetters",t))return this.$store.getters[n]},s[i].vuex=!0})),s})),C=S((function(t,e){var s={};return x(e).forEach((function(e){var i=e.key,n=e.val;s[i]=function(){var e=[],s=arguments.length;while(s--)e[s]=arguments[s];var i=this.$store.dispatch;if(t){var o=k(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"===typeof n?n.apply(this,[i].concat(e)):i.apply(this.$store,[n].concat(e))}})),s}));function x(t){return function(t){return Array.isArray(t)||r(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function S(t){return function(e,s){return"string"!==typeof e?(s=e,e=""):"/"!==e.ch
/**
* [js-md5]{@link https://github.com/emn178/js-md5}
*
* @namespace md5
* @version 0.7.3
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2017
* @license MIT
*/
(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===("undefined"===typeof window?"undefined":_typeof(window)),root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===("undefined"===typeof self?"undefined":_typeof(self)),NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===("undefined"===typeof process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__("3c35"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===_typeof(t)&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var s=OUTPUT_TYPES[e];t[s]=createOutputMethod(s)}return t},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"===typeof t)return crypto.createHash("md5").update(t,"utf8").digest("hex");if(null===t||void 0===t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(t){if(!this.finalized){var e,s=_typeof(t);if("string"!==s){if("object"!==s)throw ERROR;if(null===t)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw ERROR;e=!0}var i,n,o=0,r=t.length,a=this.blocks,c=this.buffer8;while(o<r){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),e)if(ARRAY_BUFFER)for(n=this.start;o<r&&n<64;++o)c[n++]=t[o];else for(n=this.start;o<r&&n<64;++o)a[n>>2]|=t[o]<<SHIFT[3&n++];else if(ARRAY_BUFFER)for(n=this.start;o<r&&n<64;++o)i=t.charCodeAt(o),i<128?c[n++]=i:i<2048?(c[n++]=192|i>>6,c[n++]=128|63&i):i<55296||i>=57344?(c[n++]=224|i>>12,c[n++]=128|i>>6&63,c[n++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++o)),c[n++]=240|i>>18,c[n++]=128|i>>12&63,c[n++]=128|i>>6&63,c[n++]=128|63&i);else for(n=this.start;o<r&&n<64;++o)i=t.charCodeAt(o),i<128?a[n>>2]|=i<<SHIFT[3&n++]:i<2048?(a[n>>2]|=(192|i>>6)<<SHIFT[3&n++],a[n>>2]|=(128|63&i)<<SHIFT[3&n++]):i<55296||i>=57344?(a[n>>2]|=(224|i>>12)<<SHIFT[3&n++],a[n>>2]|=(128|i>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&i)<<SHIFT[3&n++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++o)),a[n>>2]|=(240|i>>18)<<SHIFT[3&n++],a[n>>2]|=(128|i>>12&63)<<SHIFT[3&n++],a[n>>2]|=(128|i>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&i)<<