王总上门按摩后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
shangmenanmo/public/h6/static/js/user-pages-stored-consume.5...

1 lines
8.3 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-stored-consume"],{"2f77":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={wPicker:a("13f3").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"stored-record-pages"},[a("fixed",[a("v-uni-view",{staticClass:"list-time flex-center f-paragraph c-title fill-base b-1px-b"},t._l(t.rankList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"item-child flex-center",style:{color:t.rankInd==i?t.primaryColor:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChangeItem(i,"rankInd")}}},[t._v(t._s(e)),"日期筛选"==e?a("i",{staticClass:"iconfont icon-right rotate-90 ml-sm"}):t._e()])})),1)],1),t._l(t.list.data,(function(e,i){return a("v-uni-view",{key:i,staticClass:"cate-item-area mt-md ml-lg mr-lg fill-base radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChangeItem(i,"curInd")}}},[a("v-uni-view",{staticClass:"content f-title c-title pd-lg"},[a("v-uni-view",{staticClass:"flex-between"},[a("v-uni-view",{staticClass:"max-446 ellipsis"},[t._v(t._s(e.goods_title))]),a("v-uni-view",{staticClass:"c-warning"},[t._v(t._s(1==e.add?"+":"-")+t._s(e.price))])],1),a("v-uni-view",{staticClass:"flex-between f-caption c-caption"},[a("v-uni-view",[t._v(t._s(e.create_time))]),a("v-uni-view",[t._v("余额:"+t._s(e.after_balance))])],1)],1)],1)})),t.loading?a("load-more",{attrs:{noMore:t.list.current_page>=t.list.last_page&&t.list.data.length>0,loading:t.loading}}):t._e(),!t.loading&&t.list.data.length<=0&&1==t.list.current_page?a("abnor"):t._e(),a("v-uni-view",{staticClass:"space-footer"}),a("uni-popup",{ref:"show_choose_time",attrs:{type:"top",custom:!0,maskClick:!1}},[a("v-uni-view",{staticStyle:{height:"95rpx"}}),a("v-uni-view",{staticClass:"popup-choose-time fill-base f-paragraph c-desc pt-lg pb-lg"},[a("v-uni-view",{staticClass:"flex-center"},[a("v-uni-view",{staticClass:"item-child flex-center flex-column",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toShowTime("start_time")}}},[a("v-uni-view",[t._v("开始时间")]),a("v-uni-view",{staticClass:"mt-sm",style:{color:t.param.start_time?t.primaryColor:"#999"}},[t._v(t._s(t.param.start_time||"选择时间"))])],1),a("v-uni-view",{staticClass:"item-child flex-center flex-column b-1px-l",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toShowTime("end_time")}}},[a("v-uni-view",[t._v("结束时间")]),a("v-uni-view",{staticClass:"mt-sm",style:{color:t.param.end_time?t.primaryColor:"#999"}},[t._v(t._s(t.param.end_time||"选择时间"))])],1)],1)],1)],1),a("w-picker",{ref:"day",attrs:{mode:"date",startYear:1*t.startYear-10,endYear:t.startYear,value:t.toDay,current:!1,fields:"day","disabled-after":!1,themeColor:t.primaryColor,visible:t.showDate},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm(e)},"update:visible":function(e){arguments[0]=e=t.$handleEvent(e),t.showDate=e}}})],2)},r=[]},"4a1f":function(t,e,a){"use strict";a.r(e);var i=a("822f"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"822f":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("fd3c"),a("c223"),a("dd2b"),a("bf0f"),a("2797");var n=i(a("5de6")),r=i(a("2634")),s=i(a("2fdc")),o=i(a("9b1b")),u=a("8f59"),c=i(a("13f3")),l={components:{wPicker:c.default},data:function(){return{toDay:"",startYear:"",showKey:"",showDate:!1,rankList:["本月","日期筛选"],rankInd:0,start_time:"",param:{page:1,start_time:"",end_time:""},list:{data:[]},loading:!0,curInd:-1,startX:0,startY:0,lockTap:!1}},computed:(0,u.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),onLoad:function(){this.$util.showLoading(),this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:(0,o.default)((0,o.default)({},(0,u.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,r.default)().mark((function a(){var i,n;return(0,r.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],i||!e.$jweixin.isWechat()){a.next=5;break}return a.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:return n=new Date(Math.ceil((new Date).getTime())),e.toDay=e.$util.formatTime(n,"YY-M-D"),e.startYear=e.$util.formatTime(n,"YY"),e.start_time=e.$util.formatTime(n,"YY-M")+"-01",a.next=11,e.getList();case 11:e.$util.setNavigationBarColor({bg:e.primaryColor});case 12:case"end":return a.stop()}}),a)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(){var t=this;return(0,s.default)((0,r.default)().mark((function e(){var a,i,n,s,o,u;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.list,i=t.rankInd,n=t.start_time,s=t.toDay,o=t.$util.deepCopy(t.param),0==i&&(o.start_time=n,o.end_time=s),o.start_time=t.$util.DateToUnix(o.start_time),o.end_time=t.$util.DateToUnix(o.end_time)+86400-1,e.next=7,t.$api.mine.payWater(o);case 7:u=e.sent,u.data.map((function(t){t.isTouchMove=!1})),1==t.param.page||(u.data=a.data.concat(u.data)),t.list=u,t.loading=!1,t.$util.hideAll();case 12:case"end":return e.stop()}}),e)})))()},toChangeItem:function(t,e){var a=this;return(0,s.default)((0,r.default)().mark((function i(){var n;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a[e]=t,"rankInd"!=e){i.next=9;break}if(n=1==t?"open":"close",a.$refs.show_choose_time[n](),1!=t){i.next=6;break}return i.abrupt("return");case 6:return a.param.page=1,i.next=9,a.getList();case 9:case"end":return i.stop()}}),i)})))()},toShowTime:function(t){"end_time"!=t||this.param.start_time?(this.showKey=t,this.showDate=!0):this.$util.showToast({title:"请选择开始时间"})},onConfirm:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function a(){var i,n,s,o,u,c;return(0,r.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=e.param,n=i.start_time,s=i.end_time,o=e.showKey,e.$util.DateToUnix("month"==o?"".concat(t.result,"-01"):t.result),u=n?e.$util.DateToUnix(n):0,c=s?e.$util.DateToUnix(s):0,!("start_time"==o&&c&&c<e.$util.DateToUnix(t.result)||"end_time"==o&&u&&u>e.$util.DateToUnix(t.result))){a.next=8;break}return e.$util.showToast({title:"结束时间不能小于开始时间"}),a.abrupt("return");case 8:if(e.param[o]=t.result,"end_time"!=o){a.next=15;break}return e.showDate=!1,e.$refs.show_choose_time.close(),e.param.page=1,a.next=15,e.getList();case 15:case"end":return a.stop()}}),a)})))()},toDel:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function a(){var i,s,o,u,c,l,f;return(0,r.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=e.list.data[t],s=i.id,o=i.title,a.next=3,uni.showModal({content:"请确认是否要删除‘".concat(o,"'")});case 3:if(u=a.sent,c=(0,n.default)(u,2),c[0],l=c[1].confirm,l){a.next=9;break}return a.abrupt("return");case 9:return f={id:s,status:-1},a.next=12,e.$api.master.goodsCateUpdate(f);case 12:e.$util.showToast({title:"删除成功"}),e.list.data.splice(t,1);case 14:case"end":return a.stop()}}),a)})))()},touchstart:function(t){this.list.data.forEach((function(t){t.isTouchMove&&(t.isTouchMove=!1)})),this.startX=t.changedTouches[0].clientX,this.startY=t.changedTouches[0].clientY},touchmove:function(t){var e=this.startX,a=this.startY,i=t.currentTarget.dataset.index,n=t.changedTouches[0],r=n.clientX,s=n.clientY,o=r,u=s,c=this.angle({X:e,Y:a},{X:o,Y:u});this.list.data.forEach((function(t,a){t.isTouchMove=!1,Math.abs(c)>30||a==i&&(t.isTouchMove=!(o>e))}))},angle:function(t,e){var a=e.X-t.X,i=e.Y-t.Y;return 360*Math.atan(i/a)/(2*Math.PI)}})};e.default=l},a1a5:function(t,e,a){"use strict";a.r(e);var i=a("2f77"),n=a("4a1f");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);var s=a("828b"),o=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"71e71196",null,!1,i["a"],void 0);e["default"]=o.exports}}]);