chore(手动): 针对已经压缩的代码,手动去除console 相关语句
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-audio"],{"06ff":function(t,i,a){"use strict";a.d(i,"b",(function(){return e})),a.d(i,"c",(function(){return o})),a.d(i,"a",(function(){}));var e=function(){var t=this.$createElement,i=(this._self._c,"style-2"!=this.value.type?this.$util.img(this.value.imageUrl):null);this.$mp.data=Object.assign({},{$root:{g0:i}})},o=[]},6982:function(t,i,a){"use strict";var e=a("eade"),o=a.n(e);o.a},abc0:function(t,i,a){"use strict";a.r(i);var e=a("b482"),o=a.n(e);for(var u in e)["default"].indexOf(u)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(u);i["default"]=o.a},b482:function(t,i,a){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a={name:"diy-audio",props:{value:{type:Object}},data:function(){return{audiosObj:[],audios:{},audioContext:null,audiotime:"00:01",audiowidth:0,status:0}},created:function(){this.audios[this.value.id]={audiotime:"00:01",audiowidth:0}},watch:{componentRefresh:function(t){}},computed:{videoWarpCss:function(){var t="";return"round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t}},methods:{play:function(){var i=this.value.id,a=this.audiosObj[i]||!1;this.$util.img(this.value.audioUrl);if(!a){a=t.createInnerAudioContext("audio_"+i);var e=this.audiosObj;e[i]=a,this.audiosObj=e;var o=t.getStorageSync("audio_list")?t.getStorageSync("audio_list"):[];0==o.includes(i)&&(o.push(i),t.setStorageSync("audio_list",o))}console.log(t.getStorageSync("audio_list"));var u=this;a.onPlay((function(){var t=setInterval((function(){var e=a.currentTime/a.duration*100+"%",o=Math.floor(Math.ceil(a.currentTime)/60),s=(Math.ceil(a.currentTime)%60/100).toFixed(2).slice(-2),n=Math.ceil(a.currentTime);o<10&&(o="0"+o);var d=o+":"+s,r=u.audios;r[i].audiowidth=e,r[i].Time=t,r[i].audiotime=d,r[i].seconds=n,u.audios=r}),1e3)}));var s=u.$util.img(u.value.audioUrl),n=u.audios[u.value.id].seconds||0,d=u.audios;d[i]||(d[i]={}),a.paused&&0==n?(a.src=s,a.play(),a.loop=!0,d[i].status=!0,u.status=!0,u.pauseOther(i)):a.paused&&n>0?(a.play(),a.seek(n),d[i].status=!0,u.status=!0,u.pauseOther(i)):(a.pause(),d[i].status=!1,u.status=!1),u.audios=d,console.log(u.audios)},pauseOther:function(t){this.audiosObj[this.value.id],this.value.id;var i=document.getElementsByTagName("audio");function a(){var t=this;[].forEach.call(i,(function(i){i!==t&&i.pause()}))}[].forEach.call(i,(function(t){t.addEventListener("play",a.bind(t))}))},play_bak:function(){var i=this,a=this.value.id;this.audioContext=t.createInnerAudioContext("audio_"+this.value.id),this.audioContext.src=this.$util.img(this.value.audioUrl);var e=this;if(1==this.status)return this.audioContext.pause(),this.status=0,!1;this.audioContext.play(),this.status=1,this.audioContext.onCanplay((function(t){var i=setInterval((function(){var t=parseFloat(e.audioContext.currentTime)/parseFloat(e.audioContext.duration)*100+"%",o=Math.floor(Math.ceil(e.audioContext.currentTime)/60),u=(Math.ceil(e.audioContext.currentTime)%60/100).toFixed(2).slice(-2),s=Math.ceil(e.audioContext.currentTime);o<10&&(o="0"+o);var n=o+":"+u,d=e.audios;d[a].audiowidth=t,d[a].Time=i,d[a].audiotime=n,d[a].seconds=s,e.audios=d,console.log(e.audios[e.value.id].audiotime),e.audiotime=e.audios[e.value.id].audiotime,e.audiowidth=e.audios[e.value.id].audiowidth,console.log(t),e.lyg=t}),1e3)})),this.audioContext.onEnded((function(){console.log("播放结束"),i.status=0}))}}};i.default=a}).call(this,a("df3c")["default"])},eade:function(t,i,a){},f585:function(t,i,a){"use strict";a.r(i);var e=a("06ff"),o=a("abc0");for(var u in o)["default"].indexOf(u)<0&&function(t){a.d(i,t,(function(){return o[t]}))}(u);a("6982");var s=a("828b"),n=Object(s["a"])(o["default"],e["b"],e["c"],!1,null,"2b17e9e0",null,!1,e["a"],void 0);i["default"]=n.exports}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-audio"],{"06ff":function(t,i,a){"use strict";a.d(i,"b",(function(){return e})),a.d(i,"c",(function(){return o})),a.d(i,"a",(function(){}));var e=function(){var t=this.$createElement,i=(this._self._c,"style-2"!=this.value.type?this.$util.img(this.value.imageUrl):null);this.$mp.data=Object.assign({},{$root:{g0:i}})},o=[]},6982:function(t,i,a){"use strict";var e=a("eade"),o=a.n(e);o.a},abc0:function(t,i,a){"use strict";a.r(i);var e=a("b482"),o=a.n(e);for(var u in e)["default"].indexOf(u)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(u);i["default"]=o.a},b482:function(t,i,a){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a={name:"diy-audio",props:{value:{type:Object}},data:function(){return{audiosObj:[],audios:{},audioContext:null,audiotime:"00:01",audiowidth:0,status:0}},created:function(){this.audios[this.value.id]={audiotime:"00:01",audiowidth:0}},watch:{componentRefresh:function(t){}},computed:{videoWarpCss:function(){var t="";return"round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t}},methods:{play:function(){var i=this.value.id,a=this.audiosObj[i]||!1;this.$util.img(this.value.audioUrl);if(!a){a=t.createInnerAudioContext("audio_"+i);var e=this.audiosObj;e[i]=a,this.audiosObj=e;var o=t.getStorageSync("audio_list")?t.getStorageSync("audio_list"):[];0==o.includes(i)&&(o.push(i),t.setStorageSync("audio_list",o))};var u=this;a.onPlay((function(){var t=setInterval((function(){var e=a.currentTime/a.duration*100+"%",o=Math.floor(Math.ceil(a.currentTime)/60),s=(Math.ceil(a.currentTime)%60/100).toFixed(2).slice(-2),n=Math.ceil(a.currentTime);o<10&&(o="0"+o);var d=o+":"+s,r=u.audios;r[i].audiowidth=e,r[i].Time=t,r[i].audiotime=d,r[i].seconds=n,u.audios=r}),1e3)}));var s=u.$util.img(u.value.audioUrl),n=u.audios[u.value.id].seconds||0,d=u.audios;d[i]||(d[i]={}),a.paused&&0==n?(a.src=s,a.play(),a.loop=!0,d[i].status=!0,u.status=!0,u.pauseOther(i)):a.paused&&n>0?(a.play(),a.seek(n),d[i].status=!0,u.status=!0,u.pauseOther(i)):(a.pause(),d[i].status=!1,u.status=!1),u.audios=d},pauseOther:function(t){this.audiosObj[this.value.id],this.value.id;var i=document.getElementsByTagName("audio");function a(){var t=this;[].forEach.call(i,(function(i){i!==t&&i.pause()}))}[].forEach.call(i,(function(t){t.addEventListener("play",a.bind(t))}))},play_bak:function(){var i=this,a=this.value.id;this.audioContext=t.createInnerAudioContext("audio_"+this.value.id),this.audioContext.src=this.$util.img(this.value.audioUrl);var e=this;if(1==this.status)return this.audioContext.pause(),this.status=0,!1;this.audioContext.play(),this.status=1,this.audioContext.onCanplay((function(t){var i=setInterval((function(){var t=parseFloat(e.audioContext.currentTime)/parseFloat(e.audioContext.duration)*100+"%",o=Math.floor(Math.ceil(e.audioContext.currentTime)/60),u=(Math.ceil(e.audioContext.currentTime)%60/100).toFixed(2).slice(-2),s=Math.ceil(e.audioContext.currentTime);o<10&&(o="0"+o);var n=o+":"+u,d=e.audios;d[a].audiowidth=t,d[a].Time=i,d[a].audiotime=n,d[a].seconds=s,e.audios=d,e.audiotime=e.audios[e.value.id].audiotime,e.audiowidth=e.audios[e.value.id].audiowidth,e.lyg=t}),1e3)})),this.audioContext.onEnded((function(){i.status=0}))}}};i.default=a}).call(this,a("df3c")["default"])},eade:function(t,i,a){},f585:function(t,i,a){"use strict";a.r(i);var e=a("06ff"),o=a("abc0");for(var u in o)["default"].indexOf(u)<0&&function(t){a.d(i,t,(function(){return o[t]}))}(u);a("6982");var s=a("828b"),n=Object(s["a"])(o["default"],e["b"],e["c"],!1,null,"2b17e9e0",null,!1,e["a"],void 0);i["default"]=n.exports}}]);
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'components/diy-components/diy-audio-create-component',
|
'components/diy-components/diy-audio-create-component',
|
||||||
{
|
{
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-digit"],{"073e":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={components:{uvCountTo:function(){e.e("components/uv-count-to/uv-count-to").then(function(){return resolve(e("2a58"))}.bind(null,e)).catch(e.oe)}},name:"diy-digit",props:{value:{type:Object}},data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0}},created:function(){},watch:{componentRefresh:function(t){}},computed:{componentStyle:function(){var t="";return t+="background-image:url("+this.$util.img(this.value.imageUrl)+");background-size:100% 100%;","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",t+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",t}},methods:{getvalue:function(t){return t%1!==0?2:0},redirectTo:function(t){!t.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?(console.log(t),this.$util.diyRedirectTo(t)):this.$refs.login.open(t.wap_url)},swiperChange:function(t){this.swiperCurrent=t.detail.current}}};n.default=o},2805:function(t,n,e){},"4c11":function(t,n,e){"use strict";e.r(n);var o=e("073e"),r=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=r.a},"514d":function(t,n,e){"use strict";e.r(n);var o=e("9e9d"),r=e("4c11");for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e("6e11"),e("9572");var i=e("828b"),a=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=a.exports},"6e11":function(t,n,e){"use strict";var o=e("c033"),r=e.n(o);r.a},9572:function(t,n,e){"use strict";var o=e("2805"),r=e.n(o);r.a},"9e9d":function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return o}));var o={uvCountTo:function(){return e.e("components/uv-count-to/uv-count-to").then(e.bind(null,"2a58"))},nsLogin:function(){return Promise.all([e.e("common/vendor"),e.e("components/ns-login/ns-login")]).then(e.bind(null,"17d0"))}},r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.value.list,(function(n,e){var o=t.__get_orig(n),r=t.getvalue(n.title);return{$orig:o,m0:r}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},u=[]},c033:function(t,n,e){}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-digit"],{"073e":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={components:{uvCountTo:function(){e.e("components/uv-count-to/uv-count-to").then(function(){return resolve(e("2a58"))}.bind(null,e)).catch(e.oe)}},name:"diy-digit",props:{value:{type:Object}},data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0}},created:function(){},watch:{componentRefresh:function(t){}},computed:{componentStyle:function(){var t="";return t+="background-image:url("+this.$util.img(this.value.imageUrl)+");background-size:100% 100%;","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",t+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",t}},methods:{getvalue:function(t){return t%1!==0?2:0},redirectTo:function(t){!t.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?(this.$util.diyRedirectTo(t)):this.$refs.login.open(t.wap_url)},swiperChange:function(t){this.swiperCurrent=t.detail.current}}};n.default=o},2805:function(t,n,e){},"4c11":function(t,n,e){"use strict";e.r(n);var o=e("073e"),r=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=r.a},"514d":function(t,n,e){"use strict";e.r(n);var o=e("9e9d"),r=e("4c11");for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e("6e11"),e("9572");var i=e("828b"),a=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=a.exports},"6e11":function(t,n,e){"use strict";var o=e("c033"),r=e.n(o);r.a},9572:function(t,n,e){"use strict";var o=e("2805"),r=e.n(o);r.a},"9e9d":function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return o}));var o={uvCountTo:function(){return e.e("components/uv-count-to/uv-count-to").then(e.bind(null,"2a58"))},nsLogin:function(){return Promise.all([e.e("common/vendor"),e.e("components/ns-login/ns-login")]).then(e.bind(null,"17d0"))}},r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.value.list,(function(n,e){var o=t.__get_orig(n),r=t.getvalue(n.title);return{$orig:o,m0:r}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},u=[]},c033:function(t,n,e){}}]);
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'components/diy-components/diy-digit-create-component',
|
'components/diy-components/diy-digit-create-component',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-graphic-nav"],{"3f4c":function(e,t,n){},"57d5":function(e,t,n){"use strict";n.r(t);var o=n("814e"),i=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=i.a},"814e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={name:"diy-graphic-nav",props:{value:{type:Object}},data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0}},created:function(){},watch:{componentRefresh:function(e){}},computed:{componentStyle:function(){var e="";return e+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(e+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",e+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),e+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",e+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",e},swiperHeight:function(){var e="",t=0;return"graphic"==this.value.mode?t=(49+this.value.imageSize)*this.value.pageCount:"img"==this.value.mode?t=(22+this.value.imageSize)*this.value.pageCount:"text"==this.value.mode&&(t=43*this.value.pageCount),e+="height:"+2*t+"rpx",e},isIndicatorDots:function(){var e;return e="hide"!=this.value.carousel.type&&1!=Math.ceil(this.value.list.length/(this.value.pageCount*this.value.rowCount)),e}},methods:{redirectTo:function(e){!e.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?(console.log(e),this.$util.diyRedirectTo(e)):this.$refs.login.open(e.wap_url)},swiperChange:function(e){this.swiperCurrent=e.detail.current}}};t.default=o},"8aee":function(e,t,n){},a38b:function(e,t,n){"use strict";var o=n("3f4c"),i=n.n(o);i.a},c9d3:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return o}));var o={diyIcon:function(){return n.e("components/diy-components/diy-icon").then(n.bind(null,"8ba4"))},nsLogin:function(){return Promise.all([n.e("common/vendor"),n.e("components/ns-login/ns-login")]).then(n.bind(null,"17d0"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,"pageSlide"==e.value.showStyle?e.__map(Math.ceil(e.value.list.length/(e.value.pageCount*e.value.rowCount)),(function(t,n){var o=e.__get_orig(t),i=e.__map(e.value.list,(function(n,o){var i=e.__get_orig(n),u=o>=[t*(e.value.pageCount*e.value.rowCount)]&&o<[(t+1)*(e.value.pageCount*e.value.rowCount)]&&"text"!=e.value.mode&&"img"==n.iconType?e.$util.img(n.imageUrl)||e.$util.img("public/uniapp/default_img/goods.png"):null;return{$orig:i,g0:u}}));return{$orig:o,l0:i}})):null),o="pageSlide"==e.value.showStyle&&e.isIndicatorDots?Math.ceil(e.value.list.length/(e.value.pageCount*e.value.rowCount)):null,i="pageSlide"!=e.value.showStyle?e.__map(e.value.list,(function(t,n){var o=e.__get_orig(t),i="text"!=e.value.mode&&"img"==t.iconType?e.$util.img(t.imageUrl)||e.$util.img("public/uniapp/default_img/goods.png"):null;return{$orig:o,g1:i}})):null;e._isMounted||(e.e0=function(t,n){var o=arguments[arguments.length-1].currentTarget.dataset,i=o.eventParams||o["event-params"];n=i.item;return e.redirectTo(n.link)}),e.$mp.data=Object.assign({},{$root:{l1:n,l2:o,l3:i}})},u=[]},d396:function(e,t,n){"use strict";n.r(t);var o=n("c9d3"),i=n("57d5");for(var u in i)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(u);n("d55e"),n("a38b");var a=n("828b"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},d55e:function(e,t,n){"use strict";var o=n("8aee"),i=n.n(o);i.a}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-graphic-nav"],{"3f4c":function(e,t,n){},"57d5":function(e,t,n){"use strict";n.r(t);var o=n("814e"),i=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=i.a},"814e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={name:"diy-graphic-nav",props:{value:{type:Object}},data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0}},created:function(){},watch:{componentRefresh:function(e){}},computed:{componentStyle:function(){var e="";return e+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(e+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",e+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),e+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",e+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",e},swiperHeight:function(){var e="",t=0;return"graphic"==this.value.mode?t=(49+this.value.imageSize)*this.value.pageCount:"img"==this.value.mode?t=(22+this.value.imageSize)*this.value.pageCount:"text"==this.value.mode&&(t=43*this.value.pageCount),e+="height:"+2*t+"rpx",e},isIndicatorDots:function(){var e;return e="hide"!=this.value.carousel.type&&1!=Math.ceil(this.value.list.length/(this.value.pageCount*this.value.rowCount)),e}},methods:{redirectTo:function(e){!e.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?(this.$util.diyRedirectTo(e)):this.$refs.login.open(e.wap_url)},swiperChange:function(e){this.swiperCurrent=e.detail.current}}};t.default=o},"8aee":function(e,t,n){},a38b:function(e,t,n){"use strict";var o=n("3f4c"),i=n.n(o);i.a},c9d3:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return o}));var o={diyIcon:function(){return n.e("components/diy-components/diy-icon").then(n.bind(null,"8ba4"))},nsLogin:function(){return Promise.all([n.e("common/vendor"),n.e("components/ns-login/ns-login")]).then(n.bind(null,"17d0"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,"pageSlide"==e.value.showStyle?e.__map(Math.ceil(e.value.list.length/(e.value.pageCount*e.value.rowCount)),(function(t,n){var o=e.__get_orig(t),i=e.__map(e.value.list,(function(n,o){var i=e.__get_orig(n),u=o>=[t*(e.value.pageCount*e.value.rowCount)]&&o<[(t+1)*(e.value.pageCount*e.value.rowCount)]&&"text"!=e.value.mode&&"img"==n.iconType?e.$util.img(n.imageUrl)||e.$util.img("public/uniapp/default_img/goods.png"):null;return{$orig:i,g0:u}}));return{$orig:o,l0:i}})):null),o="pageSlide"==e.value.showStyle&&e.isIndicatorDots?Math.ceil(e.value.list.length/(e.value.pageCount*e.value.rowCount)):null,i="pageSlide"!=e.value.showStyle?e.__map(e.value.list,(function(t,n){var o=e.__get_orig(t),i="text"!=e.value.mode&&"img"==t.iconType?e.$util.img(t.imageUrl)||e.$util.img("public/uniapp/default_img/goods.png"):null;return{$orig:o,g1:i}})):null;e._isMounted||(e.e0=function(t,n){var o=arguments[arguments.length-1].currentTarget.dataset,i=o.eventParams||o["event-params"];n=i.item;return e.redirectTo(n.link)}),e.$mp.data=Object.assign({},{$root:{l1:n,l2:o,l3:i}})},u=[]},d396:function(e,t,n){"use strict";n.r(t);var o=n("c9d3"),i=n("57d5");for(var u in i)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(u);n("d55e"),n("a38b");var a=n("828b"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},d55e:function(e,t,n){"use strict";var o=n("8aee"),i=n.n(o);i.a}}]);
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'components/diy-components/diy-graphic-nav-create-component',
|
'components/diy-components/diy-graphic-nav-create-component',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-live"],{"0cde":function(e,n,i){"use strict";var t=i("72c0"),o=i.n(t);o.a},"0fd5":function(e,n,i){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={components:{},name:"diy-live",props:{value:{type:Object,default:function(){return{}}}},data:function(){return{loading:!0,skeletonConfig:{headHeight:"200rpx"},liveInfo:{banner:"",anchor_img:""}}},created:function(){this.getLiveInfo()},watch:{componentRefresh:function(e){this.getLiveInfo()}},methods:{getLiveInfo:function(){var e=this;this.$api.sendRequest({url:"/live/api/live/info",success:function(n){0==n.code&&n.data?(e.liveInfo=n.data,e.getLiveStatus()):e.liveInfo=null,e.loading=!1}})},entryRoom:function(n){e.navigateTo({url:"plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(n)})},getLiveStatus:function(){var e=this,n=requirePlugin("live-player-plugin");n.getLiveStatus({room_id:this.liveInfo.roomid}).then((function(n){var i=n.liveStatus;i&&i!=e.liveInfo.live_status&&e.changeLiveStatus(i)})).catch((function(e){console.log("get live status",e)}));var i=setInterval((function(){n.getLiveStatus({room_id:e.liveInfo.roomid}).then((function(n){var t=n.liveStatus;t&&t!=e.liveInfo.live_status&&e.changeLiveStatus(t),e.$util.inArray(t,[103,104,106,107])&&clearInterval(i)})).catch((function(e){console.log("get live status",e)}))}),6e4)},changeLiveStatus:function(e){var n=this;this.$api.sendRequest({url:"/live/api/live/modifyLiveStatus",data:{room_id:this.liveInfo.roomid,status:e},success:function(e){0==e.code&&n.getLiveInfo()}})}}};n.default=i}).call(this,i("3223")["default"])},"2aef":function(e,n,i){},3193:function(e,n,i){"use strict";i.d(n,"b",(function(){return o})),i.d(n,"c",(function(){return a})),i.d(n,"a",(function(){return t}));var t={xSkeleton:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/x-skeleton/components/x-skeleton/x-skeleton")]).then(i.bind(null,"1226"))}},o=function(){var e=this,n=e.$createElement,i=(e._self._c,e.liveInfo&&""!=e.liveInfo.banner?e.$util.img(e.liveInfo.banner):null),t=e.liveInfo&&""==e.liveInfo.banner?e.$util.img("public/uniapp/live/live_default_banner.png"):null,o=e.liveInfo&&(e.value.isShowAnchorInfo||e.value.isShowLiveGood)&&e.value.isShowAnchorInfo&&""!=e.liveInfo.anchor_img?e.$util.img(e.liveInfo.anchor_img):null,a=e.liveInfo&&(e.value.isShowAnchorInfo||e.value.isShowLiveGood)&&e.value.isShowAnchorInfo&&""==e.liveInfo.anchor_img?e.$util.getDefaultImage():null,l=e.liveInfo&&(e.value.isShowAnchorInfo||e.value.isShowLiveGood)&&e.value.isShowLiveGood?e.liveInfo.goods.length:null;e._isMounted||(e.e0=function(n){e.liveInfo.banner=e.$util.img("public/uniapp/live/live_default_banner.png")},e.e1=function(n){e.liveInfo.anchor_img=e.$util.getDefaultImage().head}),e.$mp.data=Object.assign({},{$root:{g0:i,g1:t,g2:o,g3:a,g4:l}})},a=[]},"5aa0":function(e,n,i){"use strict";var t=i("2aef"),o=i.n(t);o.a},"72c0":function(e,n,i){},be05:function(e,n,i){"use strict";i.r(n);var t=i("0fd5"),o=i.n(t);for(var a in t)["default"].indexOf(a)<0&&function(e){i.d(n,e,(function(){return t[e]}))}(a);n["default"]=o.a},fa93:function(e,n,i){"use strict";i.r(n);var t=i("3193"),o=i("be05");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(n,e,(function(){return o[e]}))}(a);i("5aa0"),i("0cde");var l=i("828b"),u=Object(l["a"])(o["default"],t["b"],t["c"],!1,null,"42399e20",null,!1,t["a"],void 0);n["default"]=u.exports}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-live"],{"0cde":function(e,n,i){"use strict";var t=i("72c0"),o=i.n(t);o.a},"0fd5":function(e,n,i){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={components:{},name:"diy-live",props:{value:{type:Object,default:function(){return{}}}},data:function(){return{loading:!0,skeletonConfig:{headHeight:"200rpx"},liveInfo:{banner:"",anchor_img:""}}},created:function(){this.getLiveInfo()},watch:{componentRefresh:function(e){this.getLiveInfo()}},methods:{getLiveInfo:function(){var e=this;this.$api.sendRequest({url:"/live/api/live/info",success:function(n){0==n.code&&n.data?(e.liveInfo=n.data,e.getLiveStatus()):e.liveInfo=null,e.loading=!1}})},entryRoom:function(n){e.navigateTo({url:"plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(n)})},getLiveStatus:function(){var e=this,n=requirePlugin("live-player-plugin");n.getLiveStatus({room_id:this.liveInfo.roomid}).then((function(n){var i=n.liveStatus;i&&i!=e.liveInfo.live_status&&e.changeLiveStatus(i)})).catch((function(){}));var i=setInterval((function(){n.getLiveStatus({room_id:e.liveInfo.roomid}).then((function(n){var t=n.liveStatus;t&&t!=e.liveInfo.live_status&&e.changeLiveStatus(t),e.$util.inArray(t,[103,104,106,107])&&clearInterval(i)})).catch((function(){}))}),6e4)},changeLiveStatus:function(e){var n=this;this.$api.sendRequest({url:"/live/api/live/modifyLiveStatus",data:{room_id:this.liveInfo.roomid,status:e},success:function(e){0==e.code&&n.getLiveInfo()}})}}};n.default=i}).call(this,i("3223")["default"])},"2aef":function(e,n,i){},3193:function(e,n,i){"use strict";i.d(n,"b",(function(){return o})),i.d(n,"c",(function(){return a})),i.d(n,"a",(function(){return t}));var t={xSkeleton:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/x-skeleton/components/x-skeleton/x-skeleton")]).then(i.bind(null,"1226"))}},o=function(){var e=this,n=e.$createElement,i=(e._self._c,e.liveInfo&&""!=e.liveInfo.banner?e.$util.img(e.liveInfo.banner):null),t=e.liveInfo&&""==e.liveInfo.banner?e.$util.img("public/uniapp/live/live_default_banner.png"):null,o=e.liveInfo&&(e.value.isShowAnchorInfo||e.value.isShowLiveGood)&&e.value.isShowAnchorInfo&&""!=e.liveInfo.anchor_img?e.$util.img(e.liveInfo.anchor_img):null,a=e.liveInfo&&(e.value.isShowAnchorInfo||e.value.isShowLiveGood)&&e.value.isShowAnchorInfo&&""==e.liveInfo.anchor_img?e.$util.getDefaultImage():null,l=e.liveInfo&&(e.value.isShowAnchorInfo||e.value.isShowLiveGood)&&e.value.isShowLiveGood?e.liveInfo.goods.length:null;e._isMounted||(e.e0=function(n){e.liveInfo.banner=e.$util.img("public/uniapp/live/live_default_banner.png")},e.e1=function(n){e.liveInfo.anchor_img=e.$util.getDefaultImage().head}),e.$mp.data=Object.assign({},{$root:{g0:i,g1:t,g2:o,g3:a,g4:l}})},a=[]},"5aa0":function(e,n,i){"use strict";var t=i("2aef"),o=i.n(t);o.a},"72c0":function(e,n,i){},be05:function(e,n,i){"use strict";i.r(n);var t=i("0fd5"),o=i.n(t);for(var a in t)["default"].indexOf(a)<0&&function(e){i.d(n,e,(function(){return t[e]}))}(a);n["default"]=o.a},fa93:function(e,n,i){"use strict";i.r(n);var t=i("3193"),o=i("be05");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(n,e,(function(){return o[e]}))}(a);i("5aa0"),i("0cde");var l=i("828b"),u=Object(l["a"])(o["default"],t["b"],t["c"],!1,null,"42399e20",null,!1,t["a"],void 0);n["default"]=u.exports}}]);
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'components/diy-components/diy-live-create-component',
|
'components/diy-components/diy-live-create-component',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-merch-list"],{1869:function(t,e,o){"use strict";o.r(e);var r=o("6897"),n=o("93a3");for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);o("3374"),o("e420");var u=o("828b"),a=Object(u["a"])(n["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=a.exports},"214d":function(t,e,o){},3374:function(t,e,o){"use strict";var r=o("214d"),n=o.n(r);n.a},6897:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return r}));var r={xSkeleton:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/x-skeleton/components/x-skeleton/x-skeleton")]).then(o.bind(null,"1226"))}},n=function(){var t=this,e=t.$createElement,o=(t._self._c,"default"==t.value.ornament.type?t.__map(t.list,(function(e,o){var r=t.__get_orig(e),n=t.$util.img(e.merch_image);return{$orig:r,g0:n}})):null),r="default"!=t.value.ornament.type?t.__map(t.list,(function(e,o){var r=t.__get_orig(e),n="text"!=t.value.mode?t.$util.img(e.merch_image)||t.$util.img("public/uniapp/default_img/goods.png"):null;return{$orig:r,g1:n}})):null;t.$mp.data=Object.assign({},{$root:{l0:o,l1:r}})},i=[]},"8e2a":function(t,e,o){},"93a3":function(t,e,o){"use strict";o.r(e);var r=o("c155"),n=o.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);e["default"]=n.a},c155:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"diy-article",props:{value:{type:Object}},data:function(){return{list:[],loading:!0,skeletonConfig:{gridRows:1,gridRowsGap:"40rpx",headWidth:"160rpx",headHeight:"160rpx",textRows:2}}},created:function(){this.getList()},watch:{componentRefresh:function(t){this.getList()}},computed:{warpCss:function(){var t="";return t+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),console.log(t),t},itemCss:function(){var t="";return t+="background-color:"+this.value.elementBgColor+";","round"==this.value.elementAngle&&(t+="border-top-left-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomElementAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomElementAroundRadius+"rpx;"),"shadow"==this.value.ornament.type&&(t+="box-shadow:0 0 10rpx "+this.value.ornament.color),"stroke"==this.value.ornament.type&&(t+="border:2rpx solid "+this.value.ornament.color),t}},methods:{getList:function(){var t=this;console.log(121);var e={num:this.value.count};console.log(this.value),"diy"==this.value.sources&&(e.num=0,e.merch_id_arr=this.value.merchIds.toString()),this.$api.sendRequest({url:"/merch/api/merch/lists",data:e,success:function(e){if(0==e.code&&e.data){var o=e.data;t.list=o}t.loading=!1}})},toDetail:function(t){this.$util.redirectTo("/pages_promotion/merch/detail",{merch_id:t.merch_id})},imgError:function(t){this.list[t]&&(this.list[t].merch_image=this.$util.getDefaultImage().article)}}};e.default=r},e420:function(t,e,o){"use strict";var r=o("8e2a"),n=o.n(r);n.a}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-merch-list"],{1869:function(t,e,o){"use strict";o.r(e);var r=o("6897"),n=o("93a3");for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);o("3374"),o("e420");var u=o("828b"),a=Object(u["a"])(n["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=a.exports},"214d":function(t,e,o){},3374:function(t,e,o){"use strict";var r=o("214d"),n=o.n(r);n.a},6897:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return r}));var r={xSkeleton:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/x-skeleton/components/x-skeleton/x-skeleton")]).then(o.bind(null,"1226"))}},n=function(){var t=this,e=t.$createElement,o=(t._self._c,"default"==t.value.ornament.type?t.__map(t.list,(function(e,o){var r=t.__get_orig(e),n=t.$util.img(e.merch_image);return{$orig:r,g0:n}})):null),r="default"!=t.value.ornament.type?t.__map(t.list,(function(e,o){var r=t.__get_orig(e),n="text"!=t.value.mode?t.$util.img(e.merch_image)||t.$util.img("public/uniapp/default_img/goods.png"):null;return{$orig:r,g1:n}})):null;t.$mp.data=Object.assign({},{$root:{l0:o,l1:r}})},i=[]},"8e2a":function(t,e,o){},"93a3":function(t,e,o){"use strict";o.r(e);var r=o("c155"),n=o.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);e["default"]=n.a},c155:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"diy-article",props:{value:{type:Object}},data:function(){return{list:[],loading:!0,skeletonConfig:{gridRows:1,gridRowsGap:"40rpx",headWidth:"160rpx",headHeight:"160rpx",textRows:2}}},created:function(){this.getList()},watch:{componentRefresh:function(t){this.getList()}},computed:{warpCss:function(){var t="";return t+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t},itemCss:function(){var t="";return t+="background-color:"+this.value.elementBgColor+";","round"==this.value.elementAngle&&(t+="border-top-left-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomElementAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomElementAroundRadius+"rpx;"),"shadow"==this.value.ornament.type&&(t+="box-shadow:0 0 10rpx "+this.value.ornament.color),"stroke"==this.value.ornament.type&&(t+="border:2rpx solid "+this.value.ornament.color),t}},methods:{getList:function(){var t=this;var e={num:this.value.count};"diy"==this.value.sources&&(e.num=0,e.merch_id_arr=this.value.merchIds.toString()),this.$api.sendRequest({url:"/merch/api/merch/lists",data:e,success:function(e){if(0==e.code&&e.data){var o=e.data;t.list=o}t.loading=!1}})},toDetail:function(t){this.$util.redirectTo("/pages_promotion/merch/detail",{merch_id:t.merch_id})},imgError:function(t){this.list[t]&&(this.list[t].merch_image=this.$util.getDefaultImage().article)}}};e.default=r},e420:function(t,e,o){"use strict";var r=o("8e2a"),n=o.n(r);n.a}}]);
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'components/diy-components/diy-merch-list-create-component',
|
'components/diy-components/diy-merch-list-create-component',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-payment-qrcode"],{"07bf":function(n,t,e){"use strict";e.r(t);var o=e("4a6e"),u=e("616b");for(var c in u)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(c);e("4616");var i=e("828b"),r=Object(i["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},4616:function(n,t,e){"use strict";var o=e("bfde"),u=e.n(o);u.a},"4a6e":function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){return o}));var o={uniPopup:function(){return e.e("components/uni-popup/uni-popup").then(e.bind(null,"1843"))}},u=function(){var n=this.$createElement;this._self._c},c=[]},"616b":function(n,t,e){"use strict";e.r(t);var o=e("c31f"),u=e.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(c);t["default"]=u.a},bfde:function(n,t,e){},c31f:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={name:"diy-payment-qrcode",props:{value:{type:Object}},data:function(){return{}},created:function(){},computed:{warpCss:function(){return""}},watch:{componentRefresh:function(n){}},methods:{toLink:function(){this.$util.redirectTo("/pages_tool/store/payment_qrcode")},scanCodeFn:function(){n.scanCode({success:function(n){console.log("条码类型:"+n.scanType),console.log("条码内容:"+n.result)}})},openPaymentPopup:function(){this.$refs.paymentPopup.open()},closePaymentPopup:function(){this.$refs.paymentPopup.close()}}};t.default=e}).call(this,e("df3c")["default"])}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-payment-qrcode"],{"07bf":function(n,t,e){"use strict";e.r(t);var o=e("4a6e"),u=e("616b");for(var c in u)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(c);e("4616");var i=e("828b"),r=Object(i["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},4616:function(n,t,e){"use strict";var o=e("bfde"),u=e.n(o);u.a},"4a6e":function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){return o}));var o={uniPopup:function(){return e.e("components/uni-popup/uni-popup").then(e.bind(null,"1843"))}},u=function(){var n=this.$createElement;this._self._c},c=[]},"616b":function(n,t,e){"use strict";e.r(t);var o=e("c31f"),u=e.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(c);t["default"]=u.a},bfde:function(n,t,e){},c31f:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={name:"diy-payment-qrcode",props:{value:{type:Object}},data:function(){return{}},created:function(){},computed:{warpCss:function(){return""}},watch:{componentRefresh:function(n){}},methods:{toLink:function(){this.$util.redirectTo("/pages_tool/store/payment_qrcode")},scanCodeFn:function(){n.scanCode({success:function(n){}})},openPaymentPopup:function(){this.$refs.paymentPopup.open()},closePaymentPopup:function(){this.$refs.paymentPopup.close()}}};t.default=e}).call(this,e("df3c")["default"])}}]);
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'components/diy-components/diy-payment-qrcode-create-component',
|
'components/diy-components/diy-payment-qrcode-create-component',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-video-list"],{"7e04":function(e,t,i){},"84ee6":function(e,t,i){"use strict";var n=i("7e04"),o=i.n(n);o.a},"92e0":function(e,t,i){},baf9:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return u})),i.d(t,"a",(function(){return n}));var n={uniPopup:function(){return i.e("components/uni-popup/uni-popup").then(i.bind(null,"1843"))}},o=function(){var e=this,t=e.$createElement,i=(e._self._c,"fixed"==e.value.showStyle?e.__map(e.value.list,(function(t,i){var n=e.__get_orig(t),o=e.$util.img(t.imageUrl),u=e.$util.img("addon/personnel/shop/view/enterprise/play.png");return{$orig:n,g0:o,g1:u}})):null),n="fixed"!=e.value.showStyle?e.__map(e.value.list,(function(t,i){var n=e.__get_orig(t),o="img"==t.iconType?e.$util.img(t.imageUrl)||e.$util.img("public/uniapp/default_img/goods.png"):null,u=e.$util.img("addon/personnel/shop/view/enterprise/play.png");return{$orig:n,g2:o,g3:u}})):null,o=e.$util.img(e.video_url);e.$mp.data=Object.assign({},{$root:{l0:i,l1:n,g4:o}})},u=[]},e44f:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"diy-video-list",props:{value:{type:Object}},data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0,video_url:""}},created:function(){},watch:{componentRefresh:function(e){}},computed:{componentStyle:function(){var e="";return e+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(e+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",e+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),e+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",e+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",console.log(this.value),e},swiperHeight:function(){var e="",t=0;return"graphic"==this.value.mode?t=(49+this.value.imageSize)*this.value.pageCount:"img"==this.value.mode?t=(22+this.value.imageSize)*this.value.pageCount:"text"==this.value.mode&&(t=43*this.value.pageCount),e+="height:"+2*t+"rpx",e},isIndicatorDots:function(){var e;return e="hide"!=this.value.carousel.type&&1!=Math.ceil(this.value.list.length/(this.value.pageCount*this.value.rowCount)),e}},methods:{showVideo:function(e){this.video_url=e.videoUrl,this.$refs.videoPopup.open()}}};t.default=n},e6fd:function(e,t,i){"use strict";i.r(t);var n=i("baf9"),o=i("f2fb");for(var u in o)["default"].indexOf(u)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(u);i("eb9e"),i("84ee6");var r=i("828b"),a=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=a.exports},eb9e:function(e,t,i){"use strict";var n=i("92e0"),o=i.n(n);o.a},f2fb:function(e,t,i){"use strict";i.r(t);var n=i("e44f"),o=i.n(n);for(var u in n)["default"].indexOf(u)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(u);t["default"]=o.a}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-video-list"],{"7e04":function(e,t,i){},"84ee6":function(e,t,i){"use strict";var n=i("7e04"),o=i.n(n);o.a},"92e0":function(e,t,i){},baf9:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return u})),i.d(t,"a",(function(){return n}));var n={uniPopup:function(){return i.e("components/uni-popup/uni-popup").then(i.bind(null,"1843"))}},o=function(){var e=this,t=e.$createElement,i=(e._self._c,"fixed"==e.value.showStyle?e.__map(e.value.list,(function(t,i){var n=e.__get_orig(t),o=e.$util.img(t.imageUrl),u=e.$util.img("addon/personnel/shop/view/enterprise/play.png");return{$orig:n,g0:o,g1:u}})):null),n="fixed"!=e.value.showStyle?e.__map(e.value.list,(function(t,i){var n=e.__get_orig(t),o="img"==t.iconType?e.$util.img(t.imageUrl)||e.$util.img("public/uniapp/default_img/goods.png"):null,u=e.$util.img("addon/personnel/shop/view/enterprise/play.png");return{$orig:n,g2:o,g3:u}})):null,o=e.$util.img(e.video_url);e.$mp.data=Object.assign({},{$root:{l0:i,l1:n,g4:o}})},u=[]},e44f:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"diy-video-list",props:{value:{type:Object}},data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0,video_url:""}},created:function(){},watch:{componentRefresh:function(e){}},computed:{componentStyle:function(){var e="";return e+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(e+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",e+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),e+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",e+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",e},swiperHeight:function(){var e="",t=0;return"graphic"==this.value.mode?t=(49+this.value.imageSize)*this.value.pageCount:"img"==this.value.mode?t=(22+this.value.imageSize)*this.value.pageCount:"text"==this.value.mode&&(t=43*this.value.pageCount),e+="height:"+2*t+"rpx",e},isIndicatorDots:function(){var e;return e="hide"!=this.value.carousel.type&&1!=Math.ceil(this.value.list.length/(this.value.pageCount*this.value.rowCount)),e}},methods:{showVideo:function(e){this.video_url=e.videoUrl,this.$refs.videoPopup.open()}}};t.default=n},e6fd:function(e,t,i){"use strict";i.r(t);var n=i("baf9"),o=i("f2fb");for(var u in o)["default"].indexOf(u)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(u);i("eb9e"),i("84ee6");var r=i("828b"),a=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=a.exports},eb9e:function(e,t,i){"use strict";var n=i("92e0"),o=i.n(n);o.a},f2fb:function(e,t,i){"use strict";i.r(t);var n=i("e44f"),o=i.n(n);for(var u in n)["default"].indexOf(u)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(u);t["default"]=o.a}}]);
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'components/diy-components/diy-video-list-create-component',
|
'components/diy-components/diy-video-list-create-component',
|
||||||
{
|
{
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uv-count-to/uv-count-to"],{"03e5":function(t,i,a){},"2a58":function(t,i,a){"use strict";a.r(i);var n=a("cebe"),e=a("5d0d");for(var s in e)["default"].indexOf(s)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(s);a("81ac");var r=a("828b"),l=Object(r["a"])(e["default"],n["b"],n["c"],!1,null,"4c23f32f",null,!1,n["a"],void 0);i["default"]=l.exports},"4b63":function(t,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={name:"uv-count-to",props:{startVal:{type:[String,Number],default:0},endVal:{type:[String,Number],default:0},duration:{type:[String,Number],default:2e3},autoplay:{type:Boolean,default:!0},decimals:{type:[String,Number],default:0},useEasing:{type:Boolean,default:!0},decimal:{type:[String,Number],default:"."},color:{type:String,default:"#606266"},fontSize:{type:[String,Number],default:22},bold:{type:Boolean,default:!1},separator:{type:String,default:""}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:Number(this.duration),startTime:null,timestamp:null,remaining:null,rAF:null,lastTime:0}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){console.log(123),this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start()},methods:{easingFn:function(t,i,a,n){return a*(1-Math.pow(2,-10*t/n))*1024/1023+i},requestAnimationFrame:function(t){var i=(new Date).getTime(),a=Math.max(0,16-(i-this.lastTime)),n=setTimeout((function(){t(i+a)}),a);return this.lastTime=i+a,n},cancelAnimationFrame:function(t){clearTimeout(t)},start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=this.requestAnimationFrame(this.count)},restart:function(){this.paused?(this.resume(),this.paused=!1):(this.stop(),this.paused=!0)},stop:function(){this.cancelAnimationFrame(this.rAF),this.paused=!0},resume:function(){this.remaining&&(this.startTime=0,this.localDuration=this.remaining,this.localStartVal=this.printVal,this.requestAnimationFrame(this.count))},reset:function(){this.startTime=null,this.cancelAnimationFrame(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var i=t-this.startTime;this.remaining=this.localDuration-i,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(i,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(i,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(i/this.localDuration):this.printVal=this.localStartVal+(this.endVal-this.localStartVal)*(i/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal)||0,i<this.localDuration?this.rAF=this.requestAnimationFrame(this.count):this.$emit("end")},isNumber:function(t){return!isNaN(parseFloat(t))},formatNumber:function(t){t=Number(t),t=t.toFixed(Number(this.decimals)),t+="";var i=t.split("."),a=i[0],n=i.length>1?"".concat(this.decimal).concat(i[1]):"",e=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))while(e.test(a))a=a.replace(e,"$1"+this.separator+"$2");return a+n},destroyed:function(){this.cancelAnimationFrame(this.rAF)}}};i.default=n},"5d0d":function(t,i,a){"use strict";a.r(i);var n=a("4b63"),e=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(s);i["default"]=e.a},"81ac":function(t,i,a){"use strict";var n=a("03e5"),e=a.n(n);e.a},cebe:function(t,i,a){"use strict";a.d(i,"b",(function(){return n})),a.d(i,"c",(function(){return e})),a.d(i,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},e=[]}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uv-count-to/uv-count-to"],{"03e5":function(t,i,a){},"2a58":function(t,i,a){"use strict";a.r(i);var n=a("cebe"),e=a("5d0d");for(var s in e)["default"].indexOf(s)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(s);a("81ac");var r=a("828b"),l=Object(r["a"])(e["default"],n["b"],n["c"],!1,null,"4c23f32f",null,!1,n["a"],void 0);i["default"]=l.exports},"4b63":function(t,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={name:"uv-count-to",props:{startVal:{type:[String,Number],default:0},endVal:{type:[String,Number],default:0},duration:{type:[String,Number],default:2e3},autoplay:{type:Boolean,default:!0},decimals:{type:[String,Number],default:0},useEasing:{type:Boolean,default:!0},decimal:{type:[String,Number],default:"."},color:{type:String,default:"#606266"},fontSize:{type:[String,Number],default:22},bold:{type:Boolean,default:!1},separator:{type:String,default:""}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:Number(this.duration),startTime:null,timestamp:null,remaining:null,rAF:null,lastTime:0}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start()},methods:{easingFn:function(t,i,a,n){return a*(1-Math.pow(2,-10*t/n))*1024/1023+i},requestAnimationFrame:function(t){var i=(new Date).getTime(),a=Math.max(0,16-(i-this.lastTime)),n=setTimeout((function(){t(i+a)}),a);return this.lastTime=i+a,n},cancelAnimationFrame:function(t){clearTimeout(t)},start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=this.requestAnimationFrame(this.count)},restart:function(){this.paused?(this.resume(),this.paused=!1):(this.stop(),this.paused=!0)},stop:function(){this.cancelAnimationFrame(this.rAF),this.paused=!0},resume:function(){this.remaining&&(this.startTime=0,this.localDuration=this.remaining,this.localStartVal=this.printVal,this.requestAnimationFrame(this.count))},reset:function(){this.startTime=null,this.cancelAnimationFrame(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var i=t-this.startTime;this.remaining=this.localDuration-i,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(i,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(i,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(i/this.localDuration):this.printVal=this.localStartVal+(this.endVal-this.localStartVal)*(i/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal)||0,i<this.localDuration?this.rAF=this.requestAnimationFrame(this.count):this.$emit("end")},isNumber:function(t){return!isNaN(parseFloat(t))},formatNumber:function(t){t=Number(t),t=t.toFixed(Number(this.decimals)),t+="";var i=t.split("."),a=i[0],n=i.length>1?"".concat(this.decimal).concat(i[1]):"",e=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))while(e.test(a))a=a.replace(e,"$1"+this.separator+"$2");return a+n},destroyed:function(){this.cancelAnimationFrame(this.rAF)}}};i.default=n},"5d0d":function(t,i,a){"use strict";a.r(i);var n=a("4b63"),e=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(s);i["default"]=e.a},"81ac":function(t,i,a){"use strict";var n=a("03e5"),e=a.n(n);e.a},cebe:function(t,i,a){"use strict";a.d(i,"b",(function(){return n})),a.d(i,"c",(function(){return e})),a.d(i,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},e=[]}}]);
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'components/uv-count-to/uv-count-to-create-component',
|
'components/uv-count-to/uv-count-to-create-component',
|
||||||
{
|
{
|
||||||
|
|||||||
133
package-lock.json
generated
Normal file
133
package-lock.json
generated
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
{
|
||||||
|
"name": "weixin-miniprogram-compressor",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "weixin-miniprogram-compressor",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"terser": "^5.44.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/gen-mapping": {
|
||||||
|
"version": "0.3.13",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
|
||||||
|
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
||||||
|
"@jridgewell/trace-mapping": "^0.3.24"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/resolve-uri": {
|
||||||
|
"version": "3.1.2",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
||||||
|
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/source-map": {
|
||||||
|
"version": "0.3.11",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@jridgewell/source-map/-/source-map-0.3.11.tgz",
|
||||||
|
"integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/gen-mapping": "^0.3.5",
|
||||||
|
"@jridgewell/trace-mapping": "^0.3.25"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/sourcemap-codec": {
|
||||||
|
"version": "1.5.5",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
|
||||||
|
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/trace-mapping": {
|
||||||
|
"version": "0.3.31",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
|
||||||
|
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/resolve-uri": "^3.1.0",
|
||||||
|
"@jridgewell/sourcemap-codec": "^1.4.14"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/acorn": {
|
||||||
|
"version": "8.15.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.15.0.tgz",
|
||||||
|
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"bin": {
|
||||||
|
"acorn": "bin/acorn"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/buffer-from": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/source-map": {
|
||||||
|
"version": "0.6.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz",
|
||||||
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/source-map-support": {
|
||||||
|
"version": "0.5.21",
|
||||||
|
"resolved": "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz",
|
||||||
|
"integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"buffer-from": "^1.0.0",
|
||||||
|
"source-map": "^0.6.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/terser": {
|
||||||
|
"version": "5.44.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/terser/-/terser-5.44.1.tgz",
|
||||||
|
"integrity": "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-2-Clause",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/source-map": "^0.3.3",
|
||||||
|
"acorn": "^8.15.0",
|
||||||
|
"commander": "^2.20.0",
|
||||||
|
"source-map-support": "~0.5.20"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"terser": "bin/terser"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/terser/node_modules/commander": {
|
||||||
|
"version": "2.20.3",
|
||||||
|
"resolved": "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz",
|
||||||
|
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
19
package.json
Normal file
19
package.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"name": "weixin-miniprogram-compressor",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Compressor for Weixin Mini Program files",
|
||||||
|
"main": "release.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"weixin",
|
||||||
|
"miniprogram",
|
||||||
|
"compressor"
|
||||||
|
],
|
||||||
|
"author": "",
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"terser": "^5.44.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/category"],{2741:function(n,e,t){"use strict";t.r(e);var o=t("93c6"),i=t("3c19");for(var a in i)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(a);t("afed");var r=t("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=c.exports},"3c19":function(n,e,t){"use strict";t.r(e);var o=t("7f22"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);e["default"]=i.a},"7f22":function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={components:{},data:function(){return{diyData:null}},onLoad:function(){this.$langConfig.refresh(),n.hideTabBar(),this.getDiyInfo(),this.$langConfig.title('产品中心')},onShow:function(){this.$refs.category&&this.$refs.category[0].pageShow()},onUnload:function(){!this.storeToken&&this.$refs.login&&this.$refs.login.cancelCompleteInfo()},methods:{getDiyInfo:function(){var e=this;this.$api.sendRequest({url:"/api/diyview/info",data:{name:"DIY_VIEW_GOODS_CATEGORY"},success:function(t){0==t.code&&t.data&&(e.diyData=t.data,e.diyData.value&&(e.diyData=JSON.parse(e.diyData.value),e.diyData.global.title='产品中心',console.log('diyData=', e.diyData),e.$refs.loadingCover&&e.$refs.loadingCover.hide()),n.stopPullDownRefresh())}})},toLogin:function(){this.$refs.login.open("/pages/goods/category")}},onPullDownRefresh:function(){n.hideTabBar(),this.getDiyInfo()}};e.default=t}).call(this,t("df3c")["default"])},"93c6":function(n,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return a})),t.d(e,"a",(function(){return o}));var o={diyCategory:function(){return t.e("components/diy-components/diy-category").then(t.bind(null,"ab27"))},nsLogin:function(){return Promise.all([t.e("common/vendor"),t.e("components/ns-login/ns-login")]).then(t.bind(null,"17d0"))},loadingCover:function(){return t.e("components/loading-cover/loading-cover").then(t.bind(null,"0773"))},diyBottomNav:function(){return t.e("components/diy-components/diy-bottom-nav").then(t.bind(null,"e526"))}},i=function(){var n=this.$createElement;this._self._c},a=[]},afed:function(n,e,t){"use strict";var o=t("e939"),i=t.n(o);i.a},bb44:function(n,e,t){"use strict";(function(n,e){var o=t("47a9");t("1dee");o(t("3240"));var i=o(t("2741"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},e939:function(n,e,t){}},[["bb44","common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/category"],{2741:function(n,e,t){"use strict";t.r(e);var o=t("93c6"),i=t("3c19");for(var a in i)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(a);t("afed");var r=t("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=c.exports},"3c19":function(n,e,t){"use strict";t.r(e);var o=t("7f22"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);e["default"]=i.a},"7f22":function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={components:{},data:function(){return{diyData:null}},onLoad:function(){this.$langConfig.refresh(),n.hideTabBar(),this.getDiyInfo(),this.$langConfig.title('产品中心')},onShow:function(){this.$refs.category&&this.$refs.category[0].pageShow()},onUnload:function(){!this.storeToken&&this.$refs.login&&this.$refs.login.cancelCompleteInfo()},methods:{getDiyInfo:function(){var e=this;this.$api.sendRequest({url:"/api/diyview/info",data:{name:"DIY_VIEW_GOODS_CATEGORY"},success:function(t){0==t.code&&t.data&&(e.diyData=t.data,e.diyData.value&&(e.diyData=JSON.parse(e.diyData.value),e.diyData.global.title='产品中心',e.$refs.loadingCover&&e.$refs.loadingCover.hide()),n.stopPullDownRefresh())}})},toLogin:function(){this.$refs.login.open("/pages/goods/category")}},onPullDownRefresh:function(){n.hideTabBar(),this.getDiyInfo()}};e.default=t}).call(this,t("df3c")["default"])},"93c6":function(n,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return a})),t.d(e,"a",(function(){return o}));var o={diyCategory:function(){return t.e("components/diy-components/diy-category").then(t.bind(null,"ab27"))},nsLogin:function(){return Promise.all([t.e("common/vendor"),t.e("components/ns-login/ns-login")]).then(t.bind(null,"17d0"))},loadingCover:function(){return t.e("components/loading-cover/loading-cover").then(t.bind(null,"0773"))},diyBottomNav:function(){return t.e("components/diy-components/diy-bottom-nav").then(t.bind(null,"e526"))}},i=function(){var n=this.$createElement;this._self._c},a=[]},afed:function(n,e,t){"use strict";var o=t("e939"),i=t.n(o);i.a},bb44:function(n,e,t){"use strict";(function(n,e){var o=t("47a9");t("1dee");o(t("3240"));var i=o(t("2741"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},e939:function(n,e,t){}},[["bb44","common/runtime","common/vendor"]]]);
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_promotion/merch/merchcategory"],{"07c1":function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("1dee");n(o("3240"));var i=n(o("cbd5"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},"6b41":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return n}));var n={nsLogin:function(){return Promise.all([o.e("common/vendor"),o.e("components/ns-login/ns-login")]).then(o.bind(null,"17d0"))}},i=function(){var t=this,e=t.$createElement,o=(t._self._c,t.categoryTree?t.categoryTree.length:null),n=t.categoryTree&&o?t.__map(t.categoryTree,(function(e,o){var n=t.__get_orig(e),i=e.child_list.length,r=i>0?t.__map(e.child_list,(function(e,o){var n=t.__get_orig(e),i=t.$util.img(e.merch_image);return{$orig:n,g2:i}})):null;return{$orig:n,g1:i,l0:r}})):null;t._isMounted||(t.e0=function(e,o){var n=arguments[arguments.length-1].currentTarget.dataset,i=n.eventParams||n["event-params"];o=i.one;return t.$util.redirectTo("/pages_promotion/merch/detail",{merch_id:o.merch_id})}),t.$mp.data=Object.assign({},{$root:{g0:o,l1:n}})},r=[]},7925:function(t,e,o){"use strict";o.r(e);var n=o("a2c4"),i=o.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},a2c4:function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={components:{},data:function(){return{scrollTop:0,select:0,categoryId:"category-0",scrollLock:!1,triggered:!0,heightArea:[],loadType:"",categoryTree:[],user_type:t.getStorageSync("user_type")}},onLoad:function(){t.hideTabBar(),this.getCategory()},onShow:function(){this.$refs.category&&this.$refs.category[0].pageShow()},onUnload:function(){!this.storeToken&&this.$refs.login&&this.$refs.login.cancelCompleteInfo()},methods:{switchOnetype:function(t){this.goods_type=t,this.select=-1,this.categoryId="",this.getgoodslist()},switchOneCategory:function(t){t>=this.categoryTree.length||(this.select=t,this.categoryId="category-"+t,this.scrollLock=!0,console.log(t))},touchStart:function(){this.scrollLock=!1},listenScroll:function(t){if(!this.scrollLock){var e=t.detail.scrollTop;if(this.heightArea.length){for(var o=0;o<this.heightArea.length;o++)if(e>=this.heightArea[o][0]&&e<=this.heightArea[o][1]){this.select=o;break}1!=this.value.template&&"all"==this.value.loadType&&this.heightArea[this.select][1]-e-contentWrapHeight<300&&this.$refs.categoryItem[this.select].getGoodsList()}}},sethead:function(t,e){var o=this,n=t.is_select;this.$api.sendRequest({url:"app.ajax_batchheads",data:{goods_id:t.actId,is_select:n},success:function(t){o.$util.showToast({title:t.result.message}),o.getgoodslist()},fail:function(){o.$util.showToast({title:"request:fail"})}})},getCategory:function(){var t=this;this.$api.sendRequest({url:"/merch/api/merch/getcategory",data:{is_type_show:1},success:function(e){console.log(e.data),t.categoryTree=e.data},fail:function(){t.$util.showToast({title:"request:fail"})}})},onRefresh:function(){this.triggered=!1},onRestore:function(){this.triggered="restore"},touchend:function(t){var e=t.changedTouches[0].clientY;("top"==this.scrollType||"none"==this.scrollType)&&e-this.touchstartPosition>100||("bottom"==this.scrollType||"none"==this.scrollType)&&this.touchstartPosition},getDiyInfo:function(){},toLogin:function(){this.$refs.login.open("/pages/goods/category")}}};e.default=o}).call(this,o("df3c")["default"])},b5df:function(t,e,o){},cbd5:function(t,e,o){"use strict";o.r(e);var n=o("6b41"),i=o("7925");for(var r in i)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(r);o("ce6c");var s=o("828b"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=c.exports},ce6c:function(t,e,o){"use strict";var n=o("b5df"),i=o.n(n);i.a}},[["07c1","common/runtime","common/vendor"]]]);
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_promotion/merch/merchcategory"],{"07c1":function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("1dee");n(o("3240"));var i=n(o("cbd5"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},"6b41":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return n}));var n={nsLogin:function(){return Promise.all([o.e("common/vendor"),o.e("components/ns-login/ns-login")]).then(o.bind(null,"17d0"))}},i=function(){var t=this,e=t.$createElement,o=(t._self._c,t.categoryTree?t.categoryTree.length:null),n=t.categoryTree&&o?t.__map(t.categoryTree,(function(e,o){var n=t.__get_orig(e),i=e.child_list.length,r=i>0?t.__map(e.child_list,(function(e,o){var n=t.__get_orig(e),i=t.$util.img(e.merch_image);return{$orig:n,g2:i}})):null;return{$orig:n,g1:i,l0:r}})):null;t._isMounted||(t.e0=function(e,o){var n=arguments[arguments.length-1].currentTarget.dataset,i=n.eventParams||n["event-params"];o=i.one;return t.$util.redirectTo("/pages_promotion/merch/detail",{merch_id:o.merch_id})}),t.$mp.data=Object.assign({},{$root:{g0:o,l1:n}})},r=[]},7925:function(t,e,o){"use strict";o.r(e);var n=o("a2c4"),i=o.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},a2c4:function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={components:{},data:function(){return{scrollTop:0,select:0,categoryId:"category-0",scrollLock:!1,triggered:!0,heightArea:[],loadType:"",categoryTree:[],user_type:t.getStorageSync("user_type")}},onLoad:function(){t.hideTabBar(),this.getCategory()},onShow:function(){this.$refs.category&&this.$refs.category[0].pageShow()},onUnload:function(){!this.storeToken&&this.$refs.login&&this.$refs.login.cancelCompleteInfo()},methods:{switchOnetype:function(t){this.goods_type=t,this.select=-1,this.categoryId="",this.getgoodslist()},switchOneCategory:function(t){t>=this.categoryTree.length||(this.select=t,this.categoryId="category-"+t,this.scrollLock=!0)},touchStart:function(){this.scrollLock=!1},listenScroll:function(t){if(!this.scrollLock){var e=t.detail.scrollTop;if(this.heightArea.length){for(var o=0;o<this.heightArea.length;o++)if(e>=this.heightArea[o][0]&&e<=this.heightArea[o][1]){this.select=o;break}1!=this.value.template&&"all"==this.value.loadType&&this.heightArea[this.select][1]-e-contentWrapHeight<300&&this.$refs.categoryItem[this.select].getGoodsList()}}},sethead:function(t,e){var o=this,n=t.is_select;this.$api.sendRequest({url:"app.ajax_batchheads",data:{goods_id:t.actId,is_select:n},success:function(t){o.$util.showToast({title:t.result.message}),o.getgoodslist()},fail:function(){o.$util.showToast({title:"request:fail"})}})},getCategory:function(){var t=this;this.$api.sendRequest({url:"/merch/api/merch/getcategory",data:{is_type_show:1},success:function(e){t.categoryTree=e.data},fail:function(){t.$util.showToast({title:"request:fail"})}})},onRefresh:function(){this.triggered=!1},onRestore:function(){this.triggered="restore"},touchend:function(t){var e=t.changedTouches[0].clientY;("top"==this.scrollType||"none"==this.scrollType)&&e-this.touchstartPosition>100||("bottom"==this.scrollType||"none"==this.scrollType)&&this.touchstartPosition},getDiyInfo:function(){},toLogin:function(){this.$refs.login.open("/pages/goods/category")}}};e.default=o}).call(this,o("df3c")["default"])},b5df:function(t,e,o){},cbd5:function(t,e,o){"use strict";o.r(e);var n=o("6b41"),i=o("7925");for(var r in i)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(r);o("ce6c");var s=o("828b"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=c.exports},ce6c:function(t,e,o){"use strict";var n=o("b5df"),i=o.n(n);i.a}},[["07c1","common/runtime","common/vendor"]]]);
|
||||||
@@ -1 +1 @@
|
|||||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/agreement/contenr"],{"44a1":function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("1dee");i(e("3240"));var a=i(e("a627"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"4b40":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},a=[]},"6e74":function(t,n,e){"use strict";e.r(n);var i=e("8643"),a=e.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(c);n["default"]=a.a},8643:function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;i(e("e5ac"));var a={components:{},data:function(){return{content:"",type:"",uniacid:0}},onLoad:function(t){this.type=t.type,this.uniacid=t.uniacid?t.uniacid:0,this.isIphoneX=this.$util.uniappIsIPhoneX(),this.getcontent()},onShow:function(){},methods:{getcontent:function(){var n=this,e={type:this.type};this.uniacid>0&&(e.uniacid=this.uniacid),this.$api.sendRequest({url:"/api/config/agreement",data:e,success:function(e){console.log(e.data.title),t.setNavigationBarTitle({title:e.data.title}),n.content=e.data.content}})}}};n.default=a}).call(this,e("df3c")["default"])},a627:function(t,n,e){"use strict";e.r(n);var i=e("4b40"),a=e("6e74");for(var c in a)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(c);var u=e("828b"),o=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=o.exports}},[["44a1","common/runtime","common/vendor"]]]);
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/agreement/contenr"],{"44a1":function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("1dee");i(e("3240"));var a=i(e("a627"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"4b40":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},a=[]},"6e74":function(t,n,e){"use strict";e.r(n);var i=e("8643"),a=e.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(c);n["default"]=a.a},8643:function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;i(e("e5ac"));var a={components:{},data:function(){return{content:"",type:"",uniacid:0}},onLoad:function(t){this.type=t.type,this.uniacid=t.uniacid?t.uniacid:0,this.isIphoneX=this.$util.uniappIsIPhoneX(),this.getcontent()},onShow:function(){},methods:{getcontent:function(){var n=this,e={type:this.type};this.uniacid>0&&(e.uniacid=this.uniacid),this.$api.sendRequest({url:"/api/config/agreement",data:e,success:function(e){t.setNavigationBarTitle({title:e.data.title}),n.content=e.data.content}})}}};n.default=a}).call(this,e("df3c")["default"])},a627:function(t,n,e){"use strict";e.r(n);var i=e("4b40"),a=e("6e74");for(var c in a)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(c);var u=e("828b"),o=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=o.exports}},[["44a1","common/runtime","common/vendor"]]]);
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/files/list"],{"0123":function(t,n,e){"use strict";e.r(n);var o=e("a396"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},3796:function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("1dee");o(e("3240"));var i=o(e("521a"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"521a":function(t,n,e){"use strict";e.r(n);var o=e("a31b"),i=e("0123");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("e1a6");var s=e("828b"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"7dafc250",null,!1,o["a"],void 0);n["default"]=c.exports},"943c":function(t,n,e){},a31b:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={nsAdv:function(){return e.e("components/ns-adv/ns-adv").then(e.bind(null,"8289"))},nsEmpty:function(){return e.e("components/ns-empty/ns-empty").then(e.bind(null,"a84f"))},loadingCover:function(){return e.e("components/loading-cover/loading-cover").then(e.bind(null,"0773"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.list.length),o=e?t.__map(t.list,(function(n,e){var o=t.__get_orig(n),i=t.$util.img("addon/personnel/shop/view/enterprise/fileicon.png");return{$orig:o,g1:i}})):null;t.$mp.data=Object.assign({},{$root:{g0:e,l0:o}})},a=[]},a396:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={data:function(){return{category_id:"",list:[],title:"",keyword:""}},components:{nsAdv:function(){e.e("components/ns-adv/ns-adv").then(function(){return resolve(e("8289"))}.bind(null,e)).catch(e.oe)}},onLoad:function(t){t.category_id>0&&(this.category_id=t.category_id)},onShow:function(){},methods:{search:function(){this.list=[],this.$refs.mescroll.refresh()},getData:function(n){var e=this;this.$api.sendRequest({url:"/api/files/getpage",data:{page_size:n.size,page:n.num,category_id:this.category_id,keyword:this.keyword},success:function(o){var i=[],a=o.message;0==o.code&&o.data?(i=o.data.list,!e.title&&o.data.list.length>0&&t.setNavigationBarTitle({title:o.data.list[0].category_name})):e.$util.showToast({title:a}),n.endSuccess(i.length),1==n.num&&(e.list=[]),e.list=e.list.concat(i),e.$refs.loadingCover&&e.$refs.loadingCover.hide()},fail:function(t){n.endErr(),e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},toDetail:function(n){console.log(n.files_url);var e=n.files_url;t.showLoading({title:"正在加载"});try{t.downloadFile({url:e,success:function(n){if(console.log(n),200===n.statusCode){var e=n.tempFilePath;t.openDocument({filePath:e,success:function(t){console.log("打开成功")},fail:function(){},complete:function(){t.hideLoading({success:function(t){}})}})}},fail:function(n){t.hideLoading({success:function(t){}})},complete:function(n){console.log("下载完成",n),404==n.statusCode&&t.showToast({title:"文件不存在",icon:"none"})}})}catch(o){console.log("CatchClause",o),console.log("CatchClause",o),t.hideLoading({success:function(t){}})}},imgError:function(t){this.list[t]&&(this.list[t].cover_img=this.$util.getDefaultImage().article)}}};n.default=o}).call(this,e("df3c")["default"])},e1a6:function(t,n,e){"use strict";var o=e("943c"),i=e.n(o);i.a}},[["3796","common/runtime","common/vendor"]]]);
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/files/list"],{"0123":function(t,n,e){"use strict";e.r(n);var o=e("a396"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},3796:function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("1dee");o(e("3240"));var i=o(e("521a"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"521a":function(t,n,e){"use strict";e.r(n);var o=e("a31b"),i=e("0123");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("e1a6");var s=e("828b"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"7dafc250",null,!1,o["a"],void 0);n["default"]=c.exports},"943c":function(t,n,e){},a31b:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={nsAdv:function(){return e.e("components/ns-adv/ns-adv").then(e.bind(null,"8289"))},nsEmpty:function(){return e.e("components/ns-empty/ns-empty").then(e.bind(null,"a84f"))},loadingCover:function(){return e.e("components/loading-cover/loading-cover").then(e.bind(null,"0773"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.list.length),o=e?t.__map(t.list,(function(n,e){var o=t.__get_orig(n),i=t.$util.img("addon/personnel/shop/view/enterprise/fileicon.png");return{$orig:o,g1:i}})):null;t.$mp.data=Object.assign({},{$root:{g0:e,l0:o}})},a=[]},a396:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={data:function(){return{category_id:"",list:[],title:"",keyword:""}},components:{nsAdv:function(){e.e("components/ns-adv/ns-adv").then(function(){return resolve(e("8289"))}.bind(null,e)).catch(e.oe)}},onLoad:function(t){t.category_id>0&&(this.category_id=t.category_id)},onShow:function(){},methods:{search:function(){this.list=[],this.$refs.mescroll.refresh()},getData:function(n){var e=this;this.$api.sendRequest({url:"/api/files/getpage",data:{page_size:n.size,page:n.num,category_id:this.category_id,keyword:this.keyword},success:function(o){var i=[],a=o.message;0==o.code&&o.data?(i=o.data.list,!e.title&&o.data.list.length>0&&t.setNavigationBarTitle({title:o.data.list[0].category_name})):e.$util.showToast({title:a}),n.endSuccess(i.length),1==n.num&&(e.list=[]),e.list=e.list.concat(i),e.$refs.loadingCover&&e.$refs.loadingCover.hide()},fail:function(t){n.endErr(),e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},toDetail:function(n){var e=n.files_url;t.showLoading({title:"正在加载"});try{t.downloadFile({url:e,success:function(n){if(200===n.statusCode){var e=n.tempFilePath;t.openDocument({filePath:e,success:function(){},fail:function(){},complete:function(){t.hideLoading({success:function(t){}})}})}},fail:function(n){t.hideLoading({success:function(t){}})},complete:function(n){404==n.statusCode&&t.showToast({title:"文件不存在",icon:"none"})}})}catch(o){t.hideLoading({success:function(t){}})}},imgError:function(t){this.list[t]&&(this.list[t].cover_img=this.$util.getDefaultImage().article)}}};n.default=o}).call(this,e("df3c")["default"])},e1a6:function(t,n,e){"use strict";var o=e("943c"),i=e.n(o);i.a}},[["3796","common/runtime","common/vendor"]]]);
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/order/refund"],{"1b18":function(e,n,o){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={components:{uniPopup:function(){o.e("components/uni-popup/uni-popup").then(function(){return resolve(o("1843"))}.bind(null,o)).catch(o.oe)}},data:function(){return{order_goods_id:"",refund_type:"",refund_reason:"",refund_remark:"",isIphoneX:!1,refund_data:{refund_type:[],order_goods_info:{sku_image:""}},isSub:!1,showText:!1}},onLoad:function(e){e.order_goods_id&&(this.order_goods_id=e.order_goods_id)},onShow:function(){this.isIphoneX=this.$util.uniappIsIPhoneX(),this.storeToken?this.getRefundData():this.$util.redirectTo("/pages_tool/login/login",{back:"/pages_tool/order/refund?order_goods_id="+this.order_goods_id})},methods:{openPopup:function(e){this.$refs[e].open()},closePopup:function(e){this.$refs[e].close()},textBlur:function(){e.pageScrollTo({scrollTop:0,duration:0})},selectRefundType:function(e){this.refund_type=e},getRefundData:function(){var e=this;this.$api.sendRequest({url:"/api/orderrefund/refundData",data:{order_goods_id:this.order_goods_id},success:function(n){n.code>=0?(e.refund_data=n.data,e.$refs.loadingCover&&e.$refs.loadingCover.hide()):(e.$util.showToast({title:"未获取到该订单项退款信息"}),setTimeout((function(){e.$util.redirectTo("/pages/order/list")}),1e3))},fail:function(n){e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},submit:function(){var e=this;if(this.verify()){if(this.isSub)return;this.isSub=!0,this.subscribeMessage((function(){e.$api.sendRequest({url:"/api/orderrefund/refund",data:{order_goods_ids:e.order_goods_id,refund_type:e.refund_type,refund_reason:e.refund_reason,refund_remark:e.refund_remark},success:function(n){e.$util.showToast({title:n.message}),n.code>=0?e.$util.redirectTo("/pages_tool/order/activist",{},"redirectTo"):e.isSub=!1},fail:function(n){e.isSub=!1}})}))}},verify:function(){return""!=this.refund_reason||(this.$util.showToast({title:"请选择退款原因"}),!1)},changeReason:function(e){this.refund_reason=e},change:function(e){e&&(this.showText=e.show)},subscribeMessage:function(n){this.$api.sendRequest({url:"/weapp/api/weapp/messagetmplids",data:{keywords:"ORDER_REFUND_AGREE,ORDER_REFUND_REFUSE"},success:function(o){0==o.code&&o.data.length?e.requestSubscribeMessage({tmplIds:o.data,fail:function(e){console.log("fail",e)},complete:function(){n()}}):n()},fail:function(e){n()}})}}};n.default=t}).call(this,o("df3c")["default"])},"25de":function(e,n,o){"use strict";o.d(n,"b",(function(){return i})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){return t}));var t={uniPopup:function(){return o.e("components/uni-popup/uni-popup").then(o.bind(null,"1843"))},loadingCover:function(){return o.e("components/loading-cover/loading-cover").then(o.bind(null,"0773"))}},i=function(){var e=this,n=e.$createElement,o=(e._self._c,e.$util.img(e.refund_data.order_goods_info.sku_image,{size:"mid"})),t=e.refund_data.refund_type.length,i=e.refund_reason.length,r=e.$lang("common.currencySymbol"),u=e.$lang("common.submit");e._isMounted||(e.e0=function(n){e.refund_data.order_goods_info.sku_image=e.$util.getDefaultImage().goods}),e.$mp.data=Object.assign({},{$root:{g0:o,g1:t,g2:i,m0:r,m1:u}})},r=[]},"26bb":function(e,n,o){"use strict";var t=o("d637"),i=o.n(t);i.a},3356:function(e,n,o){"use strict";(function(e,n){var t=o("47a9");o("1dee");t(o("3240"));var i=t(o("7cf7"));e.__webpack_require_UNI_MP_PLUGIN__=o,n(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},"7cf7":function(e,n,o){"use strict";o.r(n);var t=o("25de"),i=o("9875");for(var r in i)["default"].indexOf(r)<0&&function(e){o.d(n,e,(function(){return i[e]}))}(r);o("dff7"),o("26bb");var u=o("828b"),s=Object(u["a"])(i["default"],t["b"],t["c"],!1,null,"1d72bcdb",null,!1,t["a"],void 0);n["default"]=s.exports},9778:function(e,n,o){},9875:function(e,n,o){"use strict";o.r(n);var t=o("1b18"),i=o.n(t);for(var r in t)["default"].indexOf(r)<0&&function(e){o.d(n,e,(function(){return t[e]}))}(r);n["default"]=i.a},d637:function(e,n,o){},dff7:function(e,n,o){"use strict";var t=o("9778"),i=o.n(t);i.a}},[["3356","common/runtime","common/vendor"]]]);
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/order/refund"],{"1b18":function(e,n,o){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={components:{uniPopup:function(){o.e("components/uni-popup/uni-popup").then(function(){return resolve(o("1843"))}.bind(null,o)).catch(o.oe)}},data:function(){return{order_goods_id:"",refund_type:"",refund_reason:"",refund_remark:"",isIphoneX:!1,refund_data:{refund_type:[],order_goods_info:{sku_image:""}},isSub:!1,showText:!1}},onLoad:function(e){e.order_goods_id&&(this.order_goods_id=e.order_goods_id)},onShow:function(){this.isIphoneX=this.$util.uniappIsIPhoneX(),this.storeToken?this.getRefundData():this.$util.redirectTo("/pages_tool/login/login",{back:"/pages_tool/order/refund?order_goods_id="+this.order_goods_id})},methods:{openPopup:function(e){this.$refs[e].open()},closePopup:function(e){this.$refs[e].close()},textBlur:function(){e.pageScrollTo({scrollTop:0,duration:0})},selectRefundType:function(e){this.refund_type=e},getRefundData:function(){var e=this;this.$api.sendRequest({url:"/api/orderrefund/refundData",data:{order_goods_id:this.order_goods_id},success:function(n){n.code>=0?(e.refund_data=n.data,e.$refs.loadingCover&&e.$refs.loadingCover.hide()):(e.$util.showToast({title:"未获取到该订单项退款信息"}),setTimeout((function(){e.$util.redirectTo("/pages/order/list")}),1e3))},fail:function(n){e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},submit:function(){var e=this;if(this.verify()){if(this.isSub)return;this.isSub=!0,this.subscribeMessage((function(){e.$api.sendRequest({url:"/api/orderrefund/refund",data:{order_goods_ids:e.order_goods_id,refund_type:e.refund_type,refund_reason:e.refund_reason,refund_remark:e.refund_remark},success:function(n){e.$util.showToast({title:n.message}),n.code>=0?e.$util.redirectTo("/pages_tool/order/activist",{},"redirectTo"):e.isSub=!1},fail:function(n){e.isSub=!1}})}))}},verify:function(){return""!=this.refund_reason||(this.$util.showToast({title:"请选择退款原因"}),!1)},changeReason:function(e){this.refund_reason=e},change:function(e){e&&(this.showText=e.show)},subscribeMessage:function(n){this.$api.sendRequest({url:"/weapp/api/weapp/messagetmplids",data:{keywords:"ORDER_REFUND_AGREE,ORDER_REFUND_REFUSE"},success:function(o){0==o.code&&o.data.length?e.requestSubscribeMessage({tmplIds:o.data,fail:function(){},complete:function(){n()}}):n()},fail:function(e){n()}})}}};n.default=t}).call(this,o("df3c")["default"])},"25de":function(e,n,o){"use strict";o.d(n,"b",(function(){return i})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){return t}));var t={uniPopup:function(){return o.e("components/uni-popup/uni-popup").then(o.bind(null,"1843"))},loadingCover:function(){return o.e("components/loading-cover/loading-cover").then(o.bind(null,"0773"))}},i=function(){var e=this,n=e.$createElement,o=(e._self._c,e.$util.img(e.refund_data.order_goods_info.sku_image,{size:"mid"})),t=e.refund_data.refund_type.length,i=e.refund_reason.length,r=e.$lang("common.currencySymbol"),u=e.$lang("common.submit");e._isMounted||(e.e0=function(n){e.refund_data.order_goods_info.sku_image=e.$util.getDefaultImage().goods}),e.$mp.data=Object.assign({},{$root:{g0:o,g1:t,g2:i,m0:r,m1:u}})},r=[]},"26bb":function(e,n,o){"use strict";var t=o("d637"),i=o.n(t);i.a},3356:function(e,n,o){"use strict";(function(e,n){var t=o("47a9");o("1dee");t(o("3240"));var i=t(o("7cf7"));e.__webpack_require_UNI_MP_PLUGIN__=o,n(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},"7cf7":function(e,n,o){"use strict";o.r(n);var t=o("25de"),i=o("9875");for(var r in i)["default"].indexOf(r)<0&&function(e){o.d(n,e,(function(){return i[e]}))}(r);o("dff7"),o("26bb");var u=o("828b"),s=Object(u["a"])(i["default"],t["b"],t["c"],!1,null,"1d72bcdb",null,!1,t["a"],void 0);n["default"]=s.exports},9778:function(e,n,o){},9875:function(e,n,o){"use strict";o.r(n);var t=o("1b18"),i=o.n(t);for(var r in t)["default"].indexOf(r)<0&&function(e){o.d(n,e,(function(){return t[e]}))}(r);n["default"]=i.a},d637:function(e,n,o){},dff7:function(e,n,o){"use strict";var t=o("9778"),i=o.n(t);i.a}},[["3356","common/runtime","common/vendor"]]]);
|
||||||
@@ -1 +1 @@
|
|||||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/order/refund_batch"],{"1c58":function(e,n,t){"use strict";t.r(n);var o=t("ec08"),i=t("c285");for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t("c32b"),t("4c8a");var u=t("828b"),s=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"4f029d32",null,!1,o["a"],void 0);n["default"]=s.exports},"4ad3":function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("1dee");o(t("3240"));var i=o(t("1c58"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"4c8a":function(e,n,t){"use strict";var o=t("77dc"),i=t.n(o);i.a},5776:function(e,n,t){},"77dc":function(e,n,t){},c285:function(e,n,t){"use strict";t.r(n);var o=t("d995"),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},c32b:function(e,n,t){"use strict";var o=t("5776"),i=t.n(o);i.a},d995:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={components:{uniPopup:function(){t.e("components/uni-popup/uni-popup").then(function(){return resolve(t("1843"))}.bind(null,t)).catch(t.oe)}},data:function(){return{order_goods_id:"",refund_type:"",refund_reason:"",refund_remark:"",isIphoneX:!1,refund_data:{refund_type:[],order_goods_info:{sku_image:""}},isSub:!1,showText:!1}},onLoad:function(e){e.order_goods_id&&(this.order_goods_id=e.order_goods_id),e.refund_type&&(this.refund_type=e.refund_type)},onShow:function(){this.isIphoneX=this.$util.uniappIsIPhoneX(),this.storeToken?this.getRefundData():this.$util.redirectTo("/pages_tool/login/login",{back:"/pages_tool/order/refund?order_goods_id="+this.order_goods_id})},methods:{openPopup:function(e){this.$refs[e].open()},closePopup:function(e){this.$refs[e].close()},textBlur:function(){e.pageScrollTo({scrollTop:0,duration:0})},selectRefundType:function(e){this.refund_type=e},getRefundData:function(){var e=this;this.$api.sendRequest({url:"/api/orderrefund/refundDataBatch",data:{order_goods_ids:this.order_goods_id},success:function(n){n.code>=0?(e.refund_data=n.data,e.$refs.loadingCover&&e.$refs.loadingCover.hide()):(e.$util.showToast({title:"未获取到该订单项退款信息"}),setTimeout((function(){e.$util.redirectTo("/pages/order/list")}),1e3))},fail:function(n){e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},submit:function(){var n=this;if(this.verify()){if(this.isSub)return;this.isSub=!0,this.subscribeMessage((function(){n.$api.sendRequest({url:"/api/orderrefund/refund",data:{order_goods_ids:n.order_goods_id,refund_type:n.refund_type,refund_reason:n.refund_reason,refund_remark:n.refund_remark},success:function(t){n.$util.showToast({title:t.message}),t.code>=0?e.removeStorage({key:"refund_goods_data",success:function(e){n.$util.redirectTo("/pages_tool/order/activist")}}):n.isSub=!1},fail:function(e){n.isSub=!1}})}))}},verify:function(){return""!=this.refund_reason||(this.$util.showToast({title:"请选择退款原因"}),!1)},changeReason:function(e){this.refund_reason=e},change:function(e){e&&(this.showText=e.show)},subscribeMessage:function(n){this.$api.sendRequest({url:"/weapp/api/weapp/messagetmplids",data:{keywords:"ORDER_REFUND_AGREE,ORDER_REFUND_REFUSE"},success:function(t){0==t.code&&t.data.length?e.requestSubscribeMessage({tmplIds:t.data,fail:function(e){console.log("fail",e)},complete:function(){n()}}):n()},fail:function(e){n()}})}}};n.default=o}).call(this,t("df3c")["default"])},ec08:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return o}));var o={uniPopup:function(){return t.e("components/uni-popup/uni-popup").then(t.bind(null,"1843"))},loadingCover:function(){return t.e("components/loading-cover/loading-cover").then(t.bind(null,"0773"))}},i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.__map(e.refund_data.order_goods_info,(function(n,t){var o=e.__get_orig(n),i=e.$util.img(n.sku_image,{size:"mid"});return{$orig:o,g0:i}}))),o=e.refund_reason.length,i=e.$lang("common.currencySymbol"),r=e.$lang("common.submit");e._isMounted||(e.e0=function(n,t){var o=arguments[arguments.length-1].currentTarget.dataset,i=o.eventParams||o["event-params"];t=i.item;t.sku_image=e.$util.getDefaultImage().goods}),e.$mp.data=Object.assign({},{$root:{l0:t,g1:o,m0:i,m1:r}})},r=[]}},[["4ad3","common/runtime","common/vendor"]]]);
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/order/refund_batch"],{"1c58":function(e,n,t){"use strict";t.r(n);var o=t("ec08"),i=t("c285");for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t("c32b"),t("4c8a");var u=t("828b"),s=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"4f029d32",null,!1,o["a"],void 0);n["default"]=s.exports},"4ad3":function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("1dee");o(t("3240"));var i=o(t("1c58"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"4c8a":function(e,n,t){"use strict";var o=t("77dc"),i=t.n(o);i.a},5776:function(e,n,t){},"77dc":function(e,n,t){},c285:function(e,n,t){"use strict";t.r(n);var o=t("d995"),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},c32b:function(e,n,t){"use strict";var o=t("5776"),i=t.n(o);i.a},d995:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={components:{uniPopup:function(){t.e("components/uni-popup/uni-popup").then(function(){return resolve(t("1843"))}.bind(null,t)).catch(t.oe)}},data:function(){return{order_goods_id:"",refund_type:"",refund_reason:"",refund_remark:"",isIphoneX:!1,refund_data:{refund_type:[],order_goods_info:{sku_image:""}},isSub:!1,showText:!1}},onLoad:function(e){e.order_goods_id&&(this.order_goods_id=e.order_goods_id),e.refund_type&&(this.refund_type=e.refund_type)},onShow:function(){this.isIphoneX=this.$util.uniappIsIPhoneX(),this.storeToken?this.getRefundData():this.$util.redirectTo("/pages_tool/login/login",{back:"/pages_tool/order/refund?order_goods_id="+this.order_goods_id})},methods:{openPopup:function(e){this.$refs[e].open()},closePopup:function(e){this.$refs[e].close()},textBlur:function(){e.pageScrollTo({scrollTop:0,duration:0})},selectRefundType:function(e){this.refund_type=e},getRefundData:function(){var e=this;this.$api.sendRequest({url:"/api/orderrefund/refundDataBatch",data:{order_goods_ids:this.order_goods_id},success:function(n){n.code>=0?(e.refund_data=n.data,e.$refs.loadingCover&&e.$refs.loadingCover.hide()):(e.$util.showToast({title:"未获取到该订单项退款信息"}),setTimeout((function(){e.$util.redirectTo("/pages/order/list")}),1e3))},fail:function(n){e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},submit:function(){var n=this;if(this.verify()){if(this.isSub)return;this.isSub=!0,this.subscribeMessage((function(){n.$api.sendRequest({url:"/api/orderrefund/refund",data:{order_goods_ids:n.order_goods_id,refund_type:n.refund_type,refund_reason:n.refund_reason,refund_remark:n.refund_remark},success:function(t){n.$util.showToast({title:t.message}),t.code>=0?e.removeStorage({key:"refund_goods_data",success:function(e){n.$util.redirectTo("/pages_tool/order/activist")}}):n.isSub=!1},fail:function(e){n.isSub=!1}})}))}},verify:function(){return""!=this.refund_reason||(this.$util.showToast({title:"请选择退款原因"}),!1)},changeReason:function(e){this.refund_reason=e},change:function(e){e&&(this.showText=e.show)},subscribeMessage:function(n){this.$api.sendRequest({url:"/weapp/api/weapp/messagetmplids",data:{keywords:"ORDER_REFUND_AGREE,ORDER_REFUND_REFUSE"},success:function(t){0==t.code&&t.data.length?e.requestSubscribeMessage({tmplIds:t.data,fail:function(){},complete:function(){n()}}):n()},fail:function(e){n()}})}}};n.default=o}).call(this,t("df3c")["default"])},ec08:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return o}));var o={uniPopup:function(){return t.e("components/uni-popup/uni-popup").then(t.bind(null,"1843"))},loadingCover:function(){return t.e("components/loading-cover/loading-cover").then(t.bind(null,"0773"))}},i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.__map(e.refund_data.order_goods_info,(function(n,t){var o=e.__get_orig(n),i=e.$util.img(n.sku_image,{size:"mid"});return{$orig:o,g0:i}}))),o=e.refund_reason.length,i=e.$lang("common.currencySymbol"),r=e.$lang("common.submit");e._isMounted||(e.e0=function(n,t){var o=arguments[arguments.length-1].currentTarget.dataset,i=o.eventParams||o["event-params"];t=i.item;t.sku_image=e.$util.getDefaultImage().goods}),e.$mp.data=Object.assign({},{$root:{l0:t,g1:o,m0:i,m1:r}})},r=[]}},[["4ad3","common/runtime","common/vendor"]]]);
|
||||||
@@ -1 +1 @@
|
|||||||
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/seal/medium/detail"],{"0c27":function(t,e,i){"use strict";(function(t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{title:"搜索结果",info:{},list:[],keyword:""}},onLoad:function(t){t.keyword&&(this.keyword=t.keyword),this.getdata()},onShow:function(){},methods:{generatePdf:function(){var e=this.$util.img(this.info.files_url);t.showLoading({title:"正在加载"});try{t.downloadFile({url:e,success:function(e){if(200===e.statusCode){t.hideLoading({success:function(t){}});var n=e.tempFilePath;i.shareFileMessage({filePath:n,success:function(){},fail:console.error})}},fail:function(e){t.hideLoading({success:function(t){}})},complete:function(e){404==e.statusCode&&t.showToast({title:"文件不存在",icon:"none"})}})}catch(n){console.log("CatchClause",n),console.log("CatchClause",n),t.hideLoading({success:function(t){}})}},generateImage:function(){var e=this,i=this.$util.img(this.info.img_url);t.showLoading({title:"正在加载"}),t.downloadFile({url:this.$util.img(i),success:function(i){t.hideLoading({success:function(t){}}),200===i.statusCode?t.saveImageToPhotosAlbum({filePath:i.tempFilePath,success:function(){e.$util.showToast({title:"保存成功"})},fail:function(t){"saveImageToPhotosAlbum:fail auth deny"==t.errMsg||"saveImageToPhotosAlbum:fail:auth denied"==t.errMsg||e.$util.showToast({title:"保存失败,请稍后重试"})}}):e.$util.showToast({title:"下载失败"})},fail:function(i){console.log(i),t.hideLoading({success:function(t){}}),e.$util.showToast({title:"下载失败"})}})},getdata:function(){var t=this;this.$api.sendRequest({url:"/api/seal/info",data:{keyword:this.keyword},success:function(e){console.log(e),t.list=e.value,t.info=e,t.title=e.name}})}}};e.default=n}).call(this,i("df3c")["default"],i("3223")["default"])},4131:function(t,e,i){},"6eb5":function(t,e,i){"use strict";i.r(e);var n=i("0c27"),o=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=o.a},7061:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("1dee");n(i("3240"));var o=n(i("f3b8"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"7ca2":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.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},"9adb":function(t,e,i){"use strict";var n=i("4131"),o=i.n(n);o.a},f3b8:function(t,e,i){"use strict";i.r(e);var n=i("7ca2"),o=i("6eb5");for(var s in o)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(s);i("9adb");var a=i("828b"),u=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"f789dd0c",null,!1,n["a"],void 0);e["default"]=u.exports}},[["7061","common/runtime","common/vendor"]]]);
|
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/seal/medium/detail"],{"0c27":function(t,e,i){"use strict";(function(t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{title:"搜索结果",info:{},list:[],keyword:""}},onLoad:function(t){t.keyword&&(this.keyword=t.keyword),this.getdata()},onShow:function(){},methods:{generatePdf:function(){var e=this.$util.img(this.info.files_url);t.showLoading({title:"正在加载"});try{t.downloadFile({url:e,success:function(e){if(200===e.statusCode){t.hideLoading({success:function(t){}});var n=e.tempFilePath;i.shareFileMessage({filePath:n,success:function(){},fail:console.error})}},fail:function(e){t.hideLoading({success:function(t){}})},complete:function(e){404==e.statusCode&&t.showToast({title:"文件不存在",icon:"none"})}})}catch(n){t.hideLoading({success:function(t){}})}},generateImage:function(){var e=this,i=this.$util.img(this.info.img_url);t.showLoading({title:"正在加载"}),t.downloadFile({url:this.$util.img(i),success:function(i){t.hideLoading({success:function(t){}}),200===i.statusCode?t.saveImageToPhotosAlbum({filePath:i.tempFilePath,success:function(){e.$util.showToast({title:"保存成功"})},fail:function(t){"saveImageToPhotosAlbum:fail auth deny"==t.errMsg||"saveImageToPhotosAlbum:fail:auth denied"==t.errMsg||e.$util.showToast({title:"保存失败,请稍后重试"})}}):e.$util.showToast({title:"下载失败"})},fail:function(i){t.hideLoading({success:function(t){}}),e.$util.showToast({title:"下载失败"})}})},getdata:function(){var t=this;this.$api.sendRequest({url:"/api/seal/info",data:{keyword:this.keyword},success:function(e){t.list=e.value,t.info=e,t.title=e.name}})}}};e.default=n}).call(this,i("df3c")["default"],i("3223")["default"])},4131:function(t,e,i){},"6eb5":function(t,e,i){"use strict";i.r(e);var n=i("0c27"),o=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=o.a},7061:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("1dee");n(i("3240"));var o=n(i("f3b8"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"7ca2":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.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},"9adb":function(t,e,i){"use strict";var n=i("4131"),o=i.n(n);o.a},f3b8:function(t,e,i){"use strict";i.r(e);var n=i("7ca2"),o=i("6eb5");for(var s in o)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(s);i("9adb");var a=i("828b"),u=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"f789dd0c",null,!1,n["a"],void 0);e["default"]=u.exports}},[["7061","common/runtime","common/vendor"]]]);
|
||||||
@@ -1 +1 @@
|
|||||||
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/seal/medium/search"],{"0ae6":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={nsEmpty:function(){return i.e("components/ns-empty/ns-empty").then(i.bind(null,"a84f"))}},s=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},1550:function(t,e,i){"use strict";i.r(e);var n=i("0ae6"),s=i("cc87");for(var o in s)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(o);i("d58d");var a=i("828b"),r=Object(a["a"])(s["default"],n["b"],n["c"],!1,null,"5e0c5052",null,!1,n["a"],void 0);e["default"]=r.exports},4329:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("1dee");n(i("3240"));var s=n(i("1550"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(s.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"6aa5":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{inputValue:"",historyList:[],searchList:[],alikeList:[],isIndex:!1,searchWords:"",hotList:[],isAllHistory:!1,list:[]}},onLoad:function(e){e.keyword&&(this.inputValue=e.keyword),!t.getStorageSync("search")&&t.setStorageSync("search",[])},onShow:function(){this.$nextTick((function(){this.getHistoryHeight()}))},methods:{findHistoryList:function(){this.historyList=t.getStorageSync("search").reverse()},deleteHistoryList:function(){var e=this;t.showModal({title:"提示",content:"确认删除全部历史记录?",success:function(i){i.confirm&&(t.setStorageSync("search",[]),e.findHistoryList())}})},deleteItem:function(e){var i=this;t.showModal({title:"提示",content:"确认删除该条历史记录?",success:function(n){if(n.confirm){var s=t.getStorageSync("search"),o=s.filter((function(t){return t!=e}));t.setStorageSync("search",o),i.findHistoryList()}}})},findHotList:function(){var t=this;this.$api.sendRequest({url:"/api/goods/hotSearchWords",success:function(e){""!=e.data.words&&(t.hotList=e.data.words.split(","))}})},inputFocus:function(t){""!=this.inputValue.trim()&&(this.dataList=[])},otherSearch:function(t){this.$util.redirectTo("/pages_tool/seal/medium/detail",{keyword:t.name.trim()})},search:function(){var e=this;if(console.log(this.inputValue),""==this.inputValue)return this.$util.showToast({title:"搜索内容不能为空哦"}),!1;t.showLoading({}),this.$api.sendRequest({url:"/api/seal/search",data:{keyword:this.inputValue},success:function(i){console.log(i),e.list=i.list,t.hideLoading({})}})},getHistoryHeight:function(){var e=this,i=t.createSelectorQuery().in(this);i.select("#history-list").boundingClientRect((function(i){i&&i.height>2*t.upx2px(70)+2*t.upx2px(35)&&(e.isAllHistory=!0)})).exec()}}};e.default=i}).call(this,i("df3c")["default"])},cc87:function(t,e,i){"use strict";i.r(e);var n=i("6aa5"),s=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"]=s.a},d58d:function(t,e,i){"use strict";var n=i("f138"),s=i.n(n);s.a},f138:function(t,e,i){}},[["4329","common/runtime","common/vendor"]]]);
|
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/seal/medium/search"],{"0ae6":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={nsEmpty:function(){return i.e("components/ns-empty/ns-empty").then(i.bind(null,"a84f"))}},s=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},1550:function(t,e,i){"use strict";i.r(e);var n=i("0ae6"),s=i("cc87");for(var o in s)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(o);i("d58d");var a=i("828b"),r=Object(a["a"])(s["default"],n["b"],n["c"],!1,null,"5e0c5052",null,!1,n["a"],void 0);e["default"]=r.exports},4329:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("1dee");n(i("3240"));var s=n(i("1550"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(s.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"6aa5":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{inputValue:"",historyList:[],searchList:[],alikeList:[],isIndex:!1,searchWords:"",hotList:[],isAllHistory:!1,list:[]}},onLoad:function(e){e.keyword&&(this.inputValue=e.keyword),!t.getStorageSync("search")&&t.setStorageSync("search",[])},onShow:function(){this.$nextTick((function(){this.getHistoryHeight()}))},methods:{findHistoryList:function(){this.historyList=t.getStorageSync("search").reverse()},deleteHistoryList:function(){var e=this;t.showModal({title:"提示",content:"确认删除全部历史记录?",success:function(i){i.confirm&&(t.setStorageSync("search",[]),e.findHistoryList())}})},deleteItem:function(e){var i=this;t.showModal({title:"提示",content:"确认删除该条历史记录?",success:function(n){if(n.confirm){var s=t.getStorageSync("search"),o=s.filter((function(t){return t!=e}));t.setStorageSync("search",o),i.findHistoryList()}}})},findHotList:function(){var t=this;this.$api.sendRequest({url:"/api/goods/hotSearchWords",success:function(e){""!=e.data.words&&(t.hotList=e.data.words.split(","))}})},inputFocus:function(t){""!=this.inputValue.trim()&&(this.dataList=[])},otherSearch:function(t){this.$util.redirectTo("/pages_tool/seal/medium/detail",{keyword:t.name.trim()})},search:function(){var e=this;if(""==this.inputValue)return this.$util.showToast({title:"搜索内容不能为空哦"}),!1;t.showLoading({}),this.$api.sendRequest({url:"/api/seal/search",data:{keyword:this.inputValue},success:function(i){e.list=i.list,t.hideLoading({})}})},getHistoryHeight:function(){var e=this,i=t.createSelectorQuery().in(this);i.select("#history-list").boundingClientRect((function(i){i&&i.height>2*t.upx2px(70)+2*t.upx2px(35)&&(e.isAllHistory=!0)})).exec()}}};e.default=i}).call(this,i("df3c")["default"])},cc87:function(t,e,i){"use strict";i.r(e);var n=i("6aa5"),s=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"]=s.a},d58d:function(t,e,i){"use strict";var n=i("f138"),s=i.n(n);s.a},f138:function(t,e,i){}},[["4329","common/runtime","common/vendor"]]]);
|
||||||
@@ -1 +1 @@
|
|||||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/seal/structure"],{"141c":function(e,t,n){"use strict";var i=n("ad01"),a=n.n(i);a.a},"3a67":function(e,t,n){"use strict";n.r(t);var i=n("b943"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},"446b":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.files_url?e.$util.img("addon/personnel/shop/view/enterprise/fileicon.png"):null);e._isMounted||(e.e0=function(t,n,i){var a=[],r=arguments.length-3;while(r-- >0)a[r]=arguments[r+3];var s=a[a.length-1].currentTarget.dataset,c=s.eventParams||s["event-params"];n=c.idx,i=c.item;return e.bindPickerChange(t,n,i)}),e.$mp.data=Object.assign({},{$root:{g0:n}})},a=[]},"7d80":function(e,t,n){"use strict";n.r(t);var i=n("446b"),a=n("3a67");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n("141c");var s=n("828b"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=c.exports},ad01:function(e,t,n){},b943:function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("7ca3"));function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={components:{},data:function(){return{index:0,array:["选项1","选项2","选项3"],pickerList:[],maxIndex:0,answerName:"",files_url:""}},onLoad:function(e){this.getdata()},methods:{onTapDoc:function(){var t=this.$util.img(this.files_url);e.showLoading({title:"正在加载"});try{e.downloadFile({url:t,success:function(t){if(console.log(t),200===t.statusCode){var n=t.tempFilePath;e.openDocument({filePath:n,success:function(e){console.log("打开成功")},fail:function(){},complete:function(){e.hideLoading({success:function(e){}})}})}},fail:function(t){e.hideLoading({success:function(e){}})},complete:function(t){console.log("下载完成",t),404==t.statusCode&&e.showToast({title:"文件不存在",icon:"none"})}})}catch(n){console.log("CatchClause",n),console.log("CatchClause",n),e.hideLoading({success:function(e){}})}},getdata:function(){var e=this;this.$api.sendRequest({url:"/api/seal/getstructure",success:function(t){console.log(t);var n=t.data;e.pickerList.push({id:e.generateId(),value:0,range:n})}})},generateId:function(){return Date.now()+Math.floor(1e3*Math.random())},addPicker:function(){var e=["新选项1-".concat(this.pickerList.length+1),"新选项2-".concat(this.pickerList.length+1),"新选项3-".concat(this.pickerList.length+1)];this.pickerList.push({id:this.generateId(),value:0,range:e})},deletePicker:function(e){this.pickerList.splice(e,1)},bindPickerChange:function(e,t,n){var i=e.detail.value;if(this.$set(this.pickerList,t,s(s({},this.pickerList[t]),{},{value:i})),console.log("当前选择"+t),console.log("当前记录值"+this.maxIndex),n.range[i].child_list.length>0&&n.range[i].child_list[1].is_answer)return console.log("这里是结果"),this.maxIndex=t,this.answerName=n.range[i].child_list[1].name,void(this.files_url=n.range[i].child_list[1].files_url);if(this.maxIndex>t&&-1!=this.maxIndex)return console.log("选小了"),this.pickerList.splice(t+1),this.maxIndex=t,this.answerName="",void(this.files_url="");if(this.maxIndex==t){if(this.pickerList.splice(t+1),this.maxIndex=0,n.range[i].child_list.length>0){var a=n.range[i].child_list;this.pickerList.push({id:this.generateId(),value:0,range:a})}}else if(n.range[i].child_list.length>0){a=n.range[i].child_list;this.pickerList.push({id:this.generateId(),value:0,range:a})}this.maxIndex=t},showAllResult:function(){var t=this.pickerList.map((function(e,t){return{pickerIndex:t+1,selectedValue:e.range[e.value],selectedIndex:e.value,pickerId:e.id}}));e.showModal({title:"所有选择结果",content:JSON.stringify(t,null,2),showCancel:!1})}}};t.default=c}).call(this,n("df3c")["default"])},ea7a:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("1dee");i(n("3240"));var a=i(n("7d80"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["ea7a","common/runtime","common/vendor"]]]);
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/seal/structure"],{"141c":function(e,t,n){"use strict";var i=n("ad01"),a=n.n(i);a.a},"3a67":function(e,t,n){"use strict";n.r(t);var i=n("b943"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},"446b":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.files_url?e.$util.img("addon/personnel/shop/view/enterprise/fileicon.png"):null);e._isMounted||(e.e0=function(t,n,i){var a=[],r=arguments.length-3;while(r-- >0)a[r]=arguments[r+3];var s=a[a.length-1].currentTarget.dataset,c=s.eventParams||s["event-params"];n=c.idx,i=c.item;return e.bindPickerChange(t,n,i)}),e.$mp.data=Object.assign({},{$root:{g0:n}})},a=[]},"7d80":function(e,t,n){"use strict";n.r(t);var i=n("446b"),a=n("3a67");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n("141c");var s=n("828b"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=c.exports},ad01:function(e,t,n){},b943:function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("7ca3"));function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={components:{},data:function(){return{index:0,array:["选项1","选项2","选项3"],pickerList:[],maxIndex:0,answerName:"",files_url:""}},onLoad:function(e){this.getdata()},methods:{onTapDoc:function(){var t=this.$util.img(this.files_url);e.showLoading({title:"正在加载"});try{e.downloadFile({url:t,success:function(t){if(200===t.statusCode){var n=t.tempFilePath;e.openDocument({filePath:n,success:function(){},fail:function(){},complete:function(){e.hideLoading({success:function(e){}})}})}},fail:function(t){e.hideLoading({success:function(e){}})},complete:function(t){404==t.statusCode&&e.showToast({title:"文件不存在",icon:"none"})}})}catch(n){e.hideLoading({success:function(e){}})}},getdata:function(){var e=this;this.$api.sendRequest({url:"/api/seal/getstructure",success:function(t){var n=t.data;e.pickerList.push({id:e.generateId(),value:0,range:n})}})},generateId:function(){return Date.now()+Math.floor(1e3*Math.random())},addPicker:function(){var e=["新选项1-".concat(this.pickerList.length+1),"新选项2-".concat(this.pickerList.length+1),"新选项3-".concat(this.pickerList.length+1)];this.pickerList.push({id:this.generateId(),value:0,range:e})},deletePicker:function(e){this.pickerList.splice(e,1)},bindPickerChange:function(e,t,n){var i=e.detail.value;if(this.$set(this.pickerList,t,s(s({},this.pickerList[t]),{},{value:i})),n.range[i].child_list.length>0&&n.range[i].child_list[1].is_answer)return undefined,this.maxIndex=t,this.answerName=n.range[i].child_list[1].name,void(this.files_url=n.range[i].child_list[1].files_url);if(this.maxIndex>t&&-1!=this.maxIndex)return undefined,this.pickerList.splice(t+1),this.maxIndex=t,this.answerName="",void(this.files_url="");if(this.maxIndex==t){if(this.pickerList.splice(t+1),this.maxIndex=0,n.range[i].child_list.length>0){var a=n.range[i].child_list;this.pickerList.push({id:this.generateId(),value:0,range:a})}}else if(n.range[i].child_list.length>0){a=n.range[i].child_list;this.pickerList.push({id:this.generateId(),value:0,range:a})}this.maxIndex=t},showAllResult:function(){var t=this.pickerList.map((function(e,t){return{pickerIndex:t+1,selectedValue:e.range[e.value],selectedIndex:e.value,pickerId:e.id}}));e.showModal({title:"所有选择结果",content:JSON.stringify(t,null,2),showCancel:!1})}}};t.default=c}).call(this,n("df3c")["default"])},ea7a:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("1dee");i(n("3240"));var a=i(n("7d80"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["ea7a","common/runtime","common/vendor"]]]);
|
||||||
@@ -1 +1 @@
|
|||||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/vr/index"],{"1ba5":function(t,n,e){},"71be":function(t,n,e){"use strict";(function(t,n){var a=e("47a9");e("1dee");a(e("3240"));var c=a(e("da94"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(c.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"765d":function(t,n,e){"use strict";var a=e("1ba5"),c=e.n(a);c.a},8287:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},c=[]},ce73:function(t,n,e){"use strict";e.r(n);var a=e("ec28"),c=e.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(u);n["default"]=c.a},da94:function(t,n,e){"use strict";e.r(n);var a=e("8287"),c=e("ce73");for(var u in c)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(u);e("765d");var i=e("828b"),o=Object(i["a"])(c["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=o.exports},ec28:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{src:""}},onLoad:function(n){var e=this;this.$api.sendRequest({url:"/api/config/defaultvr",success:function(n){console.log(n),0==n.code&&(t.setNavigationBarTitle({title:n.data.title}),e.src=n.data.url)},fail:function(t){}})},methods:{navigateBack:function(){t.navigateBack({delta:1})}}};n.default=e}).call(this,e("df3c")["default"])}},[["71be","common/runtime","common/vendor"]]]);
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/vr/index"],{"1ba5":function(t,n,e){},"71be":function(t,n,e){"use strict";(function(t,n){var a=e("47a9");e("1dee");a(e("3240"));var c=a(e("da94"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(c.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"765d":function(t,n,e){"use strict";var a=e("1ba5"),c=e.n(a);c.a},8287:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},c=[]},ce73:function(t,n,e){"use strict";e.r(n);var a=e("ec28"),c=e.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(u);n["default"]=c.a},da94:function(t,n,e){"use strict";e.r(n);var a=e("8287"),c=e("ce73");for(var u in c)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(u);e("765d");var i=e("828b"),o=Object(i["a"])(c["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=o.exports},ec28:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{src:""}},onLoad:function(n){var e=this;this.$api.sendRequest({url:"/api/config/defaultvr",success:function(n){0==n.code&&(t.setNavigationBarTitle({title:n.data.title}),e.src=n.data.url)},fail:function(t){}})},methods:{navigateBack:function(){t.navigateBack({delta:1})}}};n.default=e}).call(this,e("df3c")["default"])}},[["71be","common/runtime","common/vendor"]]]);
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
},
|
},
|
||||||
"ignoreUploadUnusedFiles": false,
|
"ignoreUploadUnusedFiles": true,
|
||||||
"compileWorklet": false,
|
"compileWorklet": false,
|
||||||
"uglifyFileName": false,
|
"uglifyFileName": false,
|
||||||
"uploadWithSourceMap": true,
|
"uploadWithSourceMap": true,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"compileHotReLoad": true,
|
"compileHotReLoad": true,
|
||||||
"checkInvalidKey": true,
|
"checkInvalidKey": true,
|
||||||
"ignoreDevUnusedFiles": true,
|
"ignoreDevUnusedFiles": true,
|
||||||
"bigPackageSizeSupport": true
|
"bigPackageSizeSupport": false
|
||||||
},
|
},
|
||||||
"condition": {},
|
"condition": {},
|
||||||
"libVersion": "2.27.3",
|
"libVersion": "2.27.3",
|
||||||
|
|||||||
164
release.js
164
release.js
@@ -1,6 +1,8 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { execSync } = require('child_process');
|
const { execSync } = require('child_process');
|
||||||
|
const { minify } = require('terser');
|
||||||
|
|
||||||
|
|
||||||
// 定义项目根目录
|
// 定义项目根目录
|
||||||
const rootDir = __dirname;
|
const rootDir = __dirname;
|
||||||
@@ -10,6 +12,18 @@ const distDir = path.join(rootDir, 'dist');
|
|||||||
const excludeDirs = ['node_modules', '.git', 'dist', '.vscode', 'scripts'];
|
const excludeDirs = ['node_modules', '.git', 'dist', '.vscode', 'scripts'];
|
||||||
const excludeFiles = ['.gitignore', 'package-lock.json', 'yarn.lock', 'release.js', 'README.md'];
|
const excludeFiles = ['.gitignore', 'package-lock.json', 'yarn.lock', 'release.js', 'README.md'];
|
||||||
|
|
||||||
|
// 统计信息变量
|
||||||
|
let totalJsOriginalSize = 0;
|
||||||
|
let totalJsCompressedSize = 0;
|
||||||
|
let jsFileCount = 0;
|
||||||
|
const jsSizeDetails = [];
|
||||||
|
// 存储包含console语句的JS文件
|
||||||
|
const filesWithConsole = [];
|
||||||
|
// 存储压缩错误的JS文件
|
||||||
|
const filesWithCompressionError = [];
|
||||||
|
// 存储压缩后仍含console语句的JS文件
|
||||||
|
const filesWithConsoleAfterCompression = [];
|
||||||
|
|
||||||
// 获取当前日期,用于生成zip文件名(格式:YYYY-MM-DD)
|
// 获取当前日期,用于生成zip文件名(格式:YYYY-MM-DD)
|
||||||
function getCurrentDate() {
|
function getCurrentDate() {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
@@ -35,11 +49,43 @@ function compressWxml(content) {
|
|||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 定义js压缩函数 - 安全处理已压缩文件,去除真正多余的内容
|
// 定义js压缩函数 - 使用Terser去除console语句
|
||||||
function compressJs(content) {
|
function compressJs(content, filePath) {
|
||||||
let result = content;
|
return content;
|
||||||
return result;
|
try {
|
||||||
|
// 使用Terser进行压缩
|
||||||
|
const result = minify(content, {
|
||||||
|
compress: {
|
||||||
|
drop_console: true, // 去除所有console语句
|
||||||
|
drop_debugger: true, // 去除debugger语句
|
||||||
|
dead_code: true,
|
||||||
|
passes: 3 // 增加压缩次数
|
||||||
|
},
|
||||||
|
mangle: false, // 不混淆变量名,保持代码可读性
|
||||||
|
output: {
|
||||||
|
ascii_only: true, // 确保输出ASCII字符
|
||||||
|
comments: false // 去除所有注释
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (result.error) {
|
||||||
|
console.warn('Terser compression failed for', filePath, ':', result.error.message);
|
||||||
|
if (filePath && !filesWithCompressionError.includes(filePath)) {
|
||||||
|
filesWithCompressionError.push(filePath);
|
||||||
|
}
|
||||||
|
return content; // 出错时返回原始内容
|
||||||
|
}
|
||||||
|
|
||||||
|
return result.code || content;
|
||||||
|
} catch (error) {
|
||||||
|
console.warn('Error in compressJs for', filePath, ':', error.message);
|
||||||
|
if (filePath && !filesWithCompressionError.includes(filePath)) {
|
||||||
|
filesWithCompressionError.push(filePath);
|
||||||
|
}
|
||||||
|
return content; // 捕获异常时返回原始内容
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 定义css压缩函数
|
// 定义css压缩函数
|
||||||
function compressCss(content) {
|
function compressCss(content) {
|
||||||
@@ -75,6 +121,38 @@ function compressJson(content) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 输出JS文件压缩统计结果
|
||||||
|
function outputJsCompressionStats() {
|
||||||
|
if (jsFileCount === 0) {
|
||||||
|
console.log('\nNo JS files were processed.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('\n=== JS File Compression Statistics ===');
|
||||||
|
|
||||||
|
// 输出每个文件的详细信息
|
||||||
|
console.log('\nIndividual File Statistics:');
|
||||||
|
jsSizeDetails.forEach(file => {
|
||||||
|
console.log(`${file.path}`);
|
||||||
|
console.log(` Original: ${file.originalSize} bytes`);
|
||||||
|
console.log(` Compressed: ${file.compressedSize} bytes`);
|
||||||
|
console.log(` Saved: ${file.sizeDiff} bytes (-${file.compressionRatio}%)`);
|
||||||
|
console.log('');
|
||||||
|
});
|
||||||
|
|
||||||
|
// 计算整体统计信息
|
||||||
|
const totalSaved = totalJsOriginalSize - totalJsCompressedSize;
|
||||||
|
const overallRatio = totalJsOriginalSize > 0 ? (totalSaved / totalJsOriginalSize * 100).toFixed(2) : '0.00';
|
||||||
|
|
||||||
|
// 输出整体统计结果
|
||||||
|
console.log('=== Overall JS Compression Results ===');
|
||||||
|
console.log(`Total JS files processed: ${jsFileCount}`);
|
||||||
|
console.log(`Total original size: ${totalJsOriginalSize} bytes`);
|
||||||
|
console.log(`Total compressed size: ${totalJsCompressedSize} bytes`);
|
||||||
|
console.log(`Total saved: ${totalSaved} bytes (-${overallRatio}%)`);
|
||||||
|
console.log('=====================================');
|
||||||
|
}
|
||||||
|
|
||||||
// 递归复制目录并压缩文件(wxml, js, css, json)
|
// 递归复制目录并压缩文件(wxml, js, css, json)
|
||||||
function copyAndCompressDir(sourceDir, targetDir) {
|
function copyAndCompressDir(sourceDir, targetDir) {
|
||||||
// 创建目标目录
|
// 创建目标目录
|
||||||
@@ -113,9 +191,41 @@ function copyAndCompressDir(sourceDir, targetDir) {
|
|||||||
} else if (extname === '.js') {
|
} else if (extname === '.js') {
|
||||||
// 压缩js文件
|
// 压缩js文件
|
||||||
content = fs.readFileSync(sourcePath, { encoding: 'utf8' });
|
content = fs.readFileSync(sourcePath, { encoding: 'utf8' });
|
||||||
compressedContent = compressJs(content);
|
|
||||||
|
// 检测是否包含console语句
|
||||||
|
const hasConsole = /console\.(log|warn|error|info|debug|trace|table|dir|time|timeEnd)/i.test(content);
|
||||||
|
if (hasConsole) {
|
||||||
|
filesWithConsole.push(sourcePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
compressedContent = compressJs(content, sourcePath);
|
||||||
|
|
||||||
|
// 检测压缩后是否仍包含console语句
|
||||||
|
const hasConsoleAfterCompression = /console\.(log|warn|error|info|debug|trace|table|dir|time|timeEnd)/i.test(compressedContent);
|
||||||
|
if (hasConsoleAfterCompression) {
|
||||||
|
filesWithConsoleAfterCompression.push({ sourcePath, targetPath });
|
||||||
|
}
|
||||||
|
|
||||||
fs.writeFileSync(targetPath, compressedContent, { encoding: 'utf8' });
|
fs.writeFileSync(targetPath, compressedContent, { encoding: 'utf8' });
|
||||||
console.log(`Compressed and copied: ${sourcePath}`);
|
|
||||||
|
// 统计JS文件大小变化
|
||||||
|
const originalSize = Buffer.from(content).length;
|
||||||
|
const compressedSize = Buffer.from(compressedContent).length;
|
||||||
|
const sizeDiff = originalSize - compressedSize;
|
||||||
|
const compressionRatio = originalSize > 0 ? (sizeDiff / originalSize * 100).toFixed(2) : '0.00';
|
||||||
|
|
||||||
|
totalJsOriginalSize += originalSize;
|
||||||
|
totalJsCompressedSize += compressedSize;
|
||||||
|
jsFileCount++;
|
||||||
|
jsSizeDetails.push({
|
||||||
|
path: sourcePath,
|
||||||
|
originalSize,
|
||||||
|
compressedSize,
|
||||||
|
sizeDiff,
|
||||||
|
compressionRatio
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log(`Compressed and copied: ${sourcePath} - ${originalSize} → ${compressedSize} bytes (-${compressionRatio}%)`);
|
||||||
} else if (extname === '.css') {
|
} else if (extname === '.css') {
|
||||||
// 压缩css文件
|
// 压缩css文件
|
||||||
content = fs.readFileSync(sourcePath, { encoding: 'utf8' });
|
content = fs.readFileSync(sourcePath, { encoding: 'utf8' });
|
||||||
@@ -194,7 +304,7 @@ function main() {
|
|||||||
try {
|
try {
|
||||||
// 解析命令行参数
|
// 解析命令行参数
|
||||||
const args = process.argv.slice(2);
|
const args = process.argv.slice(2);
|
||||||
const keepDist = args.includes('--keep-dist') || args.includes('-k');
|
const keepDist = args.includes('--keep-dist') || args.includes('-k') || true;
|
||||||
|
|
||||||
// 清理dist目录(如果存在且不保留)
|
// 清理dist目录(如果存在且不保留)
|
||||||
if (fs.existsSync(distDir)) {
|
if (fs.existsSync(distDir)) {
|
||||||
@@ -210,6 +320,9 @@ function main() {
|
|||||||
copyAndCompressDir(rootDir, distDir);
|
copyAndCompressDir(rootDir, distDir);
|
||||||
console.log('Files copied and compressed successfully!');
|
console.log('Files copied and compressed successfully!');
|
||||||
|
|
||||||
|
// 输出JS文件压缩统计结果
|
||||||
|
outputJsCompressionStats();
|
||||||
|
|
||||||
// 生成zip文件名(格式:POCT检测分析平台-定制化-YYYY-MM-DD-mp-weixin.zip)
|
// 生成zip文件名(格式:POCT检测分析平台-定制化-YYYY-MM-DD-mp-weixin.zip)
|
||||||
const currentDate = getCurrentDate();
|
const currentDate = getCurrentDate();
|
||||||
const zipFileName = `POCT检测分析平台-定制化-${currentDate}-mp-weixin.zip`;
|
const zipFileName = `POCT检测分析平台-定制化-${currentDate}-mp-weixin.zip`;
|
||||||
@@ -227,6 +340,43 @@ function main() {
|
|||||||
console.log('\nAll tasks completed successfully!');
|
console.log('\nAll tasks completed successfully!');
|
||||||
console.log(`Dist directory: ${distDir}`);
|
console.log(`Dist directory: ${distDir}`);
|
||||||
console.log(`Zip file: ${zipPath}`);
|
console.log(`Zip file: ${zipPath}`);
|
||||||
|
|
||||||
|
// 输出包含console语句的JS文件列表
|
||||||
|
if (filesWithConsole.length > 0) {
|
||||||
|
console.log('\n=== JS Files with Console Statements ===');
|
||||||
|
console.log(`Found ${filesWithConsole.length} file(s) containing console statements:`);
|
||||||
|
filesWithConsole.forEach(file => {
|
||||||
|
console.log(`- ${file}`);
|
||||||
|
});
|
||||||
|
console.log('======================================');
|
||||||
|
} else {
|
||||||
|
console.log('\nNo JS files contain console statements.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// 输出压缩错误的JS文件列表
|
||||||
|
if (filesWithCompressionError.length > 0) {
|
||||||
|
console.log('\n=== JS Files with Compression Errors ===');
|
||||||
|
console.log(`Found ${filesWithCompressionError.length} file(s) with compression errors:`);
|
||||||
|
filesWithCompressionError.forEach(file => {
|
||||||
|
console.log(`- ${file}`);
|
||||||
|
});
|
||||||
|
console.log('======================================');
|
||||||
|
} else {
|
||||||
|
console.log('\nNo JS files had compression errors.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// 输出压缩后仍含有console语句的JS文件列表
|
||||||
|
if (filesWithConsoleAfterCompression.length > 0) {
|
||||||
|
console.log('\n=== JS Files with Console Statements After Compression ===');
|
||||||
|
console.log(`Found ${filesWithConsoleAfterCompression.length} file(s) still containing console statements after compression:`);
|
||||||
|
filesWithConsoleAfterCompression.forEach((file, index) => {
|
||||||
|
console.log(`\n${index + 1}. Source: ${file.sourcePath}`);
|
||||||
|
console.log(` Target: ${file.targetPath}`);
|
||||||
|
});
|
||||||
|
console.log('\n=================================================');
|
||||||
|
} else {
|
||||||
|
console.log('\nNo JS files contain console statements after compression.');
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error occurred:', error);
|
console.error('Error occurred:', error);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/x-skeleton/components/x-skeleton/x-skeleton"],{1226:function(t,n,e){"use strict";e.r(n);var i=e("dbda"),o=e("df51");for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("6ff6");var a=e("828b"),s=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"67adcfb6",null,!1,i["a"],void 0);n["default"]=s.exports},5884:function(t,n,e){},"6ff6":function(t,n,e){"use strict";var i=e("5884"),o=e.n(i);o.a},"7b33":function(t,n,e){"use strict";var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("52c5")),r={name:"x-skeleton",mixins:[o.default],props:{type:{type:String,default:""},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},animateTime:{type:Number|String,default:1.8},fadeOut:{type:Boolean,default:!0},fadeOutTime:{type:Number|String,default:.5},bgColor:{type:String,default:"#EAEDF5"},highlightBgColor:{type:String,default:"#F9FAFF"},configs:{type:Object,default:function(){return{}}}},computed:{gridRowsArr:function(){var t;return new Array(Number((null===(t=this.skeletonConfigs)||void 0===t?void 0:t.gridRows)||[]))},gridColumnsArr:function(){var t;return new Array(Number((null===(t=this.skeletonConfigs)||void 0===t?void 0:t.gridColumns)||[]))},textRowsArr:function(){var t;if(null===(t=this.skeletonConfigs)||void 0===t||!t.textShow)return[];/%$/.test(this.skeletonConfigs.textHeight)&&console.error("x-skeleton: textHeight参数不支持百分比单位");for(var n=[],e=0;e<this.skeletonConfigs.textRows;e++){var i=this.skeletonConfigs,o=i.gridRows,r=i.textWidth,a=i.textHeight,s={},u=this.isArray(r)?r[e]||(e===o-1?"70%":"100%"):e===o-1?"70%":r,l=this.isArray(a)?a[e]||"30rpx":a;/%$/.test(u)?s.width=u:s.width=this.addUnit(u),s.height=this.addUnit(l),n.push(s)}return n},variableStr:function(){var t=this,n=["animateTime","fadeOutTime","bgColor","highlightBgColor"].map((function(n){return n.indexOf("Time")>-1?"--".concat(n,":").concat(t[n],"s"):"--".concat(n,":").concat(t[n])})).join(";");return n}},watch:{loading:{immediate:!0,handler:function(t){var n=this;t?this.skeletonLoading=!0:this.fadeOut?(this.startFadeOut=!0,setTimeout((function(){n.skeletonLoading=!1,n.startFadeOut=!1}),1e3*this.fadeOutTime)):this.skeletonLoading=!1}},type:{immediate:!0,handler:function(t){this.skeletonConfigs="banner"===t?this.bannerConfigs():"info"===t?this.infoConfigs():"text"===t?this.textConfigs():"menu"===t?this.menuConfigs():"list"===t?this.listConfigs():"waterfall"===t?this.waterfallConfigs():this.configs||{}}}},data:function(){return{skeletonConfigs:this.configs||{},skeletonLoading:this.loading,startFadeOut:!1,width:0}},mounted:function(){},methods:{isArray:function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},addUnit:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return t=String(t),/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(t)?"".concat(t).concat(n):t}}};n.default=r},dbda:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.skeletonLoading?t.__map(t.gridRowsArr,(function(n,e){var i=t.__get_orig(n),o=t.gridRowsArr.length,r=t.gridColumnsArr.length,a=t.__map(t.gridColumnsArr,(function(n,e){var i=t.__get_orig(n),o=t.skeletonConfigs.textShow?t.__map(t.textRowsArr,(function(n,e){var i=t.__get_orig(n),o=t.textRowsArr.length;return{$orig:i,g2:o}})):null;return{$orig:i,l0:o}}));return{$orig:i,g0:o,g1:r,l1:a}})):null);t.$mp.data=Object.assign({},{$root:{l2:e}})},o=[]},df51:function(t,n,e){"use strict";e.r(n);var i=e("7b33"),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=o.a}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/x-skeleton/components/x-skeleton/x-skeleton"],{1226:function(t,n,e){"use strict";e.r(n);var i=e("dbda"),o=e("df51");for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("6ff6");var a=e("828b"),s=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"67adcfb6",null,!1,i["a"],void 0);n["default"]=s.exports},5884:function(t,n,e){},"6ff6":function(t,n,e){"use strict";var i=e("5884"),o=e.n(i);o.a},"7b33":function(t,n,e){"use strict";var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("52c5")),r={name:"x-skeleton",mixins:[o.default],props:{type:{type:String,default:""},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},animateTime:{type:Number|String,default:1.8},fadeOut:{type:Boolean,default:!0},fadeOutTime:{type:Number|String,default:.5},bgColor:{type:String,default:"#EAEDF5"},highlightBgColor:{type:String,default:"#F9FAFF"},configs:{type:Object,default:function(){return{}}}},computed:{gridRowsArr:function(){var t;return new Array(Number((null===(t=this.skeletonConfigs)||void 0===t?void 0:t.gridRows)||[]))},gridColumnsArr:function(){var t;return new Array(Number((null===(t=this.skeletonConfigs)||void 0===t?void 0:t.gridColumns)||[]))},textRowsArr:function(){var t;if(null===(t=this.skeletonConfigs)||void 0===t||!t.textShow)return[];/%$/.test(this.skeletonConfigs.textHeight);for(var n=[],e=0;e<this.skeletonConfigs.textRows;e++){var i=this.skeletonConfigs,o=i.gridRows,r=i.textWidth,a=i.textHeight,s={},u=this.isArray(r)?r[e]||(e===o-1?"70%":"100%"):e===o-1?"70%":r,l=this.isArray(a)?a[e]||"30rpx":a;/%$/.test(u)?s.width=u:s.width=this.addUnit(u),s.height=this.addUnit(l),n.push(s)}return n},variableStr:function(){var t=this,n=["animateTime","fadeOutTime","bgColor","highlightBgColor"].map((function(n){return n.indexOf("Time")>-1?"--".concat(n,":").concat(t[n],"s"):"--".concat(n,":").concat(t[n])})).join(";");return n}},watch:{loading:{immediate:!0,handler:function(t){var n=this;t?this.skeletonLoading=!0:this.fadeOut?(this.startFadeOut=!0,setTimeout((function(){n.skeletonLoading=!1,n.startFadeOut=!1}),1e3*this.fadeOutTime)):this.skeletonLoading=!1}},type:{immediate:!0,handler:function(t){this.skeletonConfigs="banner"===t?this.bannerConfigs():"info"===t?this.infoConfigs():"text"===t?this.textConfigs():"menu"===t?this.menuConfigs():"list"===t?this.listConfigs():"waterfall"===t?this.waterfallConfigs():this.configs||{}}}},data:function(){return{skeletonConfigs:this.configs||{},skeletonLoading:this.loading,startFadeOut:!1,width:0}},mounted:function(){},methods:{isArray:function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},addUnit:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return t=String(t),/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(t)?"".concat(t).concat(n):t}}};n.default=r},dbda:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.skeletonLoading?t.__map(t.gridRowsArr,(function(n,e){var i=t.__get_orig(n),o=t.gridRowsArr.length,r=t.gridColumnsArr.length,a=t.__map(t.gridColumnsArr,(function(n,e){var i=t.__get_orig(n),o=t.skeletonConfigs.textShow?t.__map(t.textRowsArr,(function(n,e){var i=t.__get_orig(n),o=t.textRowsArr.length;return{$orig:i,g2:o}})):null;return{$orig:i,l0:o}}));return{$orig:i,g0:o,g1:r,l1:a}})):null);t.$mp.data=Object.assign({},{$root:{l2:e}})},o=[]},df51:function(t,n,e){"use strict";e.r(n);var i=e("7b33"),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=o.a}}]);
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'uni_modules/x-skeleton/components/x-skeleton/x-skeleton-create-component',
|
'uni_modules/x-skeleton/components/x-skeleton/x-skeleton-create-component',
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user