杨总惠通宝
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.
 
 
 
 
 
 
htb_backend/public/static/js/pages-users-user_bill-index...

1 lines
15 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_bill-index"],{"1c6c":function(t,e,i){"use strict";var n=i("d630"),a=i.n(n);a.a},"1f40":function(t,e,i){var n=i("92e7");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("a91eacd6",n,!0,{sourceMap:!1,shadowMode:!1})},"3dcd":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.viewColor},[i("v-uni-view",{staticClass:"bill-details"},[i("v-uni-view",{staticClass:"nav acea-row"},[i("v-uni-view",{staticClass:"item",class:0==t.type?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeType(0)}}},[t._v("全部")]),i("v-uni-view",{staticClass:"item",class:1==t.type?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeType(1)}}},[t._v("消费")]),i("v-uni-view",{staticClass:"item",class:2==t.type?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeType(2)}}},[t._v("充值")])],1),i("v-uni-view",{staticClass:"sign-record"},[t._l(t.userBillList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"list"},[i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"listn"},[i("v-uni-view",{staticClass:"itemn acea-row row-between-wrapper"},[i("v-uni-view",[i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.title))]),i("v-uni-view",[t._v(t._s(e.create_time))])],1),1==e.pm?i("v-uni-view",{staticClass:"num"},[t._v("+"+t._s(e.number))]):i("v-uni-view",{staticClass:"num p-color"},[t._v("-"+t._s(e.number))])],1)],1)],1)],1)})),t.userBillList.length>0?i("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[i("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?i("v-uni-view",[i("emptyPage",{attrs:{title:"暂无账单的记录哦~"}})],1):t._e()],2)],1),i("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadFun.apply(void 0,arguments)},authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}})],1)},a=[]},"493d":function(t,e,i){"use strict";i.r(e);var n=i("e933"),a=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"]=a.a},6229:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"empty-box"},[e("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),e("v-uni-view",{staticClass:"txt"},[this._v(this._s(this.title))])],1)},a=[]},"713e":function(t,e,i){"use strict";var n=i("93e4"),a=i.n(n);a.a},"75b4":function(t,e,i){"use strict";i.r(e);var n=i("93fd"),a=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"]=a.a},"7e03":function(t,e,i){"use strict";var n=i("1f40"),a=i.n(n);a.a},8669:function(t,e,i){var n=i("24fb");e=n(!1),e.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-46377bcc]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-46377bcc]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-46377bcc]{font-size:%?26?%;color:#999}',""]),t.exports=e},"92e7":function(t,e,i){var n=i("24fb");e=n(!1),e.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-467538f0]{background-color:#fff;height:%?90?%;width:100%;line-height:%?90?%}.bill-details .nav .item[data-v-467538f0]{flex:1;text-align:center;font-size:%?30?%;color:#282828}.bill-details .nav .item.on[data-v-467538f0]{color:var(--view-theme);border-bottom:%?3?% solid var(--view-theme)}.p-color[data-v-467538f0]{color:var(--view-priceColor)!important}',""]),t.exports=e},"93e4":function(t,e,i){var n=i("8669");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("172dfd1c",n,!0,{sourceMap:!1,shadowMode:!1})},"93fd":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("c6c3"),o=i("26cb"),s=n(i("f272")),u=n(i("c61e")),c={components:{authorize:s.default,emptyPage:u.default},data:function(){return{loadTitle:"加载更多",loading:!1,loadend:!1,page:1,limit:15,type:0,userBillList:[],isAuto:!1,isShowAuth:!1}},computed:(0,o.mapGetters)(["isLogin","viewColor"]),onShow:function(){this.isLogin?this.getUserBillList():(this.isAuto=!0,this.isShowAuth=!0)},onLoad:function(t){this.type=t.type||0},onReachBottom:function(){this.getUserBillList()},methods:{onLoadFun:function(){this.isShowAuth=!1,this.getUserBillList()},authColse:function(t){this.isShowAuth=t},getUserBillList:function(){var t=this;if(!t.loadend&&!t.loading){t.loading=!0,t.loadTitle="";var e={page:t.page,limit:t.limit,type:t.type};(0,a.getCommissionInfo)(e).then((function(e){var i=e.data.list,n=i.length<t.limit;t.userBillList=t.$util.SplitArray(i,t.userBillList),t.$set(t,"userBillList",t.userBillList),t.loadend=n,t.loading=!1,t.loadTitle=n?"哼😕~我也是有底线的~":"加载更多",t.page=t.page+1}),(function(e){t.loading=!1,t.loadTitle="加载更多"}))}},changeType:function(t){this.type=t,this.loadend=!1,this.page=1,this.$set(this,"userBillList",[]),this.getUserBillList()}}};e.default=c},a296:function(t,e,i){var n=i("24fb");e=n(!1),e.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/* 文章场景相关 */.Popup[data-v-ac292046]{flex:1;align-items:center;justify-content:center;width:%?500?%;background-color:#fff;position:fixed;top:%?500?%;left:%?125?%;z-index:1000}.Popup .logo-auth[data-v-ac292046]{z-index:-1;position:absolute;left:50%;top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:%?150?%;height:%?150?%;display:flex;align-items:center;justify-content:center;border:%?8?% solid #fff;border-radius:50%;background:#fff}.Popup .image[data-v-ac292046]{height:%?42?%;margin-top:%?-54?%}.Popup .title[data-v-ac292046]{font-size:%?28?%;color:#000;text-align:center;margin-top:%?30?%;align-items:center;justify-content:center;width:%?500?%;display:flex}.Popup .tip[data-v-ac292046]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%;display:flex;align-items:center;justify-content:center}.Popup .bottom .item[data-v-ac292046]{width:%?250?%;height:%?80?%;background-color:#eee;text-align:center;line-height:%?80?%;margin-top:%?54?%;font-size:%?24?%;color:#666}.Popup .bottom .item .text[data-v-ac292046]{font-size:%?24?%;color:#666}.Popup .bottom .item.on[data-v-ac292046]{width:%?500?%}.flex[data-v-ac292046]{display:flex;flex-direction:row}.Popup .bottom .item.grant[data-v-ac292046]{font-weight:700;background-color:#e93323;\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-ac292046]{font-size:%?28?%;color:#fff}.mask[data-v-ac292046]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}',""]),t.exports=e},b5d8:function(t,e,i){"use strict";i.r(e);var n=i("3dcd"),a=i("75b4");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7e03");var s=i("f0c5"),u=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"467538f0",null,!1,n["a"],void 0);e["default"]=u.exports},b821:function(t,e,i){"use strict";i.r(e);var n=i("d4b0"),a=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"]=a.a},c15c:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t.isShowAuth&&t.code?i("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),t.isShowAuth&&t.code?i("v-uni-view",{staticClass:"Popup",style:"top:"+t.top+"px;"},[i("v-uni-view",{staticClass:"logo-auth"},[i("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),t.isWeixin?i("v-uni-text",{staticClass:"title"},[t._v("授权提醒")]):i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.title))]),t.isWeixin?i("v-uni-text",{staticClass:"tip"},[t._v("请授权头像等信息,以便为您提供更好的服务!")]):i("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.info))]),i("v-uni-view",{staticClass:"bottom flex"},[i("v-uni-text",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),i("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?i("v-uni-text",{staticClass:"text"},[t._v("去授权")]):i("v-uni-text",{staticClass:"text"},[t._v("去登录")])],1)],1)],1):t._e()],1)},a=[]},c61e:function(t,e,i){"use strict";i.r(e);var n=i("6229"),a=i("b821");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("713e");var s=i("f0c5"),u=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"46377bcc",null,!1,n["a"],void 0);e["default"]=u.exports},d4b0:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{title:{type:String,default:"暂无记录"}}};e.default=n},d630:function(t,e,i){var n=i("a296");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("8f383f98",n,!0,{sourceMap:!1,shadowMode:!1})},e933:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530")),o=n(i("ff56")),s=i("31bd"),u=i("5cac"),c=i("26cb"),l=n(i("dae1")),r=i("4f1b"),d=(n(i("8b6a")),i("713c")),f=getApp(),p={name:"Authorize",props:{isAuto:{type:Boolean,default:!0},isGoIndex:{type:Boolean,default:!0},isShowAuth:{type:Boolean,default:!1}},components:{},data:function(){return{title:"用户登录",info:"请登录,将为您提供更好的服务!",isWeixin:this.$wechat.isWeixin(),canUseGetUserProfile:!1,code:null,top:0,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,editModal:!1}},computed:(0,a.default)((0,a.default)({},(0,c.mapGetters)(["isLogin","userInfo","viewColor"])),(0,r.configMap)(["routine_logo"])),watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)},isShowAuth:function(t){this.getCode(this.isShowAuth)}},created:function(){this.top=uni.getSystemInfoSync().windowHeight/2-70,wx.getUserProfile&&(this.canUseGetUserProfile=!0),this.setAuthStatus(),this.getCode(this.isShowAuth)},methods:{setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,d.toLogin)(!0)},getUserProfile:function(){var t=this,e=this;l.default.getUserProfile().then((function(i){var n=i.userInfo;n.code=t.code,n.spread=f.globalData.spid,n.spread_code=f.globalData.code,(0,s.commonAuth)({auth:{type:"routine",auth:n}}).then((function(i){if(200!=i.data.status)return uni.setStorageSync("auth_token",i.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var n=i.data.result.expires_time-o.default.time();e.$store.commit("UPDATE_USERINFO",i.data.result.user),e.$store.commit("LOGIN",{token:i.data.result.token,time:n}),e.$store.commit("SETUID",i.data.result.user.uid),o.default.set(u.EXPIRES_TIME,i.data.result.expires_time,n),o.default.set(u.USER_INFO,i.data.result.user,n),t.$emit("onLoadFun",i.data.result.user),i.data.result.user.isNew&&t.mp_is_new&&(t.editModal=!0)})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading()}))},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1)}}};e.default=p},f272:function(t,e,i){"use strict";i.r(e);var n=i("c15c"),a=i("493d");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("1c6c");var s=i("f0c5"),u=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"ac292046",null,!1,n["a"],void 0);e["default"]=u.exports}}]);