启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/static/js/pages-users-user_bill-index...

1 lines
7.6 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_bill-index"],{1184:function(t,i,n){var e=n("1761");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=n("4f06").default;a("235c3bfa",e,!0,{sourceMap:!1,shadowMode:!1})},1761:function(t,i,n){var e=n("24fb");i=e(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.empty-box[data-v-f1a26612]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-f1a26612]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-f1a26612]{font-size:%?26?%;color:#999}',""]),t.exports=i},"2c19":function(t,i,n){"use strict";var e=n("36a9"),a=n.n(e);a.a},"36a9":function(t,i,n){var e=n("9c45");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=n("4f06").default;a("12493075",e,!0,{sourceMap:!1,shadowMode:!1})},4225:function(t,i,n){"use strict";n("7a82");var e=n("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=n("6859"),s=n("26cb"),o=e(n("c71c")),l=n("ddb3"),c={components:{emptyPage:o.default},data:function(){return{loadTitle:"加载更多",loading:!1,loadend:!1,page:1,limit:15,type:0,userBillList:[]}},computed:(0,s.mapGetters)(["isLogin","viewColor"]),onShow:function(){this.isLogin?this.getUserBillList():(0,l.toLogin)()},onLoad:function(t){this.type=t.type||0},onReachBottom:function(){this.getUserBillList()},methods:{getUserBillList:function(){var t=this;if(!t.loadend&&!t.loading){t.loading=!0,t.loadTitle="";var i={page:t.page,limit:t.limit,type:t.type};(0,a.getCommissionInfo)(i).then((function(i){var n=i.data.list,e=n.length<t.limit;t.userBillList=t.$util.SplitArray(n,t.userBillList),t.$set(t,"userBillList",t.userBillList),t.loadend=e,t.loading=!1,t.loadTitle=e?"哼😕~我也是有底线的~":"加载更多",t.page=t.page+1}),(function(i){t.loading=!1,t.loadTitle="加载更多"}))}},changeType:function(t){this.type=t,this.loadend=!1,this.page=1,this.$set(this,"userBillList",[]),this.getUserBillList()}}};i.default=c},"53a1":function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return a})),n.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",{style:t.viewColor},[n("v-uni-view",{staticClass:"bill-details"},[n("v-uni-view",{staticClass:"nav acea-row"},[n("v-uni-view",{staticClass:"item",class:0==t.type?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeType(0)}}},[t._v("全部")]),n("v-uni-view",{staticClass:"item",class:1==t.type?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeType(1)}}},[t._v("消费")]),n("v-uni-view",{staticClass:"item",class:2==t.type?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeType(2)}}},[t._v("充值")])],1),n("v-uni-view",{staticClass:"sign-record"},[t._l(t.userBillList,(function(i,e){return n("v-uni-view",{key:e,staticClass:"list"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"listn"},[n("v-uni-view",{staticClass:"itemn acea-row row-between-wrapper"},[n("v-uni-view",[n("v-uni-view",{staticClass:"name line1"},[t._v(t._s(i.title))]),n("v-uni-view",[t._v(t._s(i.create_time))])],1),1==i.pm?n("v-uni-view",{staticClass:"num"},[t._v("+"+t._s(i.number))]):n("v-uni-view",{staticClass:"num p-color"},[t._v("-"+t._s(i.number))])],1)],1)],1)],1)})),t.userBillList.length>0?n("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[n("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e(),0==t.userBillList.length?n("v-uni-view",[n("emptyPage",{attrs:{title:"暂无账单的记录哦~"}})],1):t._e()],2)],1)],1)},a=[]},"90a8":function(t,i,n){"use strict";n.r(i);var e=n("e652"),a=n.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(s);i["default"]=a.a},"9c45":function(t,i,n){var e=n("24fb");i=e(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.bill-details .nav[data-v-7d451f44]{background-color:#fff;height:%?90?%;width:100%;line-height:%?90?%}.bill-details .nav .item[data-v-7d451f44]{flex:1;text-align:center;font-size:%?30?%;color:#282828}.bill-details .nav .item.on[data-v-7d451f44]{color:var(--view-theme);border-bottom:%?3?% solid var(--view-theme)}.p-color[data-v-7d451f44]{color:var(--view-priceColor)!important}',""]),t.exports=i},b1dc:function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return a})),n.d(i,"a",(function(){}));var e=function(){var t=this.$createElement,i=this._self._c||t;return i("v-uni-view",{staticClass:"empty-box"},[i("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),i("v-uni-view",{staticClass:"txt"},[this._v(this._s(this.title))])],1)},a=[]},c3fc:function(t,i,n){"use strict";n.r(i);var e=n("53a1"),a=n("f9b4");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(i,t,(function(){return a[t]}))}(s);n("2c19");var o=n("f0c5"),l=Object(o["a"])(a["default"],e["b"],e["c"],!1,null,"7d451f44",null,!1,e["a"],void 0);i["default"]=l.exports},c71c:function(t,i,n){"use strict";n.r(i);var e=n("b1dc"),a=n("90a8");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(i,t,(function(){return a[t]}))}(s);n("e6c2");var o=n("f0c5"),l=Object(o["a"])(a["default"],e["b"],e["c"],!1,null,"f1a26612",null,!1,e["a"],void 0);i["default"]=l.exports},e652:function(t,i,n){"use strict";n("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={props:{title:{type:String,default:"暂无记录"}}};i.default=e},e6c2:function(t,i,n){"use strict";var e=n("1184"),a=n.n(e);a.a},f9b4:function(t,i,n){"use strict";n.r(i);var e=n("4225"),a=n.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(s);i["default"]=a.a}}]);