face-pay-face-pay-record.b5b5c9a7.js 6.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["face-pay-face-pay-record"],{"1bd1":function(t,e,n){"use strict";var a=n("f062"),i=n.n(a);i.a},5826:function(t,e,n){"use strict";n.r(e);var a=n("f975"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},7456:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return 0==t.shenheStatus?n("v-uni-view",{staticClass:"page"},[n("v-uni-view",{staticClass:"page-content"},[t.listData.length>0?t._l(t.listData,(function(e,a){return n("v-uni-view",{key:a,staticClass:"list-item"},[n("v-uni-view",{staticClass:"list-header"},[n("v-uni-view",{staticClass:"item-time"},[t._v(t._s(e.date))]),n("v-uni-view",{staticClass:"item-total"},[n("v-uni-text",[t._v(t._s(t.$t("facePay.income")))]),n("v-uni-text",[t._v("+"+t._s(t._f("formatNum")(e.totalPrice)))]),n("v-uni-text",[t._v(t._s(e.data.length)+"笔")])],1)],1),t._l(e.data,(function(e,a){return n("v-uni-view",{key:a,staticClass:"record-item"},[n("v-uni-view",{staticClass:"record-info"},[n("v-uni-view",[t._v(t._s(t.$t("facePay.trade"))+t._s(t._f("substrStr")(e.nickname)))]),n("v-uni-view",[t._v(t._s(t._f("timestampToTime")(e.created_at)))])],1),n("v-uni-view",{staticClass:"record-money"},[t._v("+"+t._s(t._f("formatNum")(e.amount)))])],1)}))],2)})):t._e()],2)],1):1==t.shenheStatus?n("Shenhe"):t._e()},i=[]},b586:function(t,e,n){"use strict";n.r(e);var a=n("7456"),i=n("5826");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("1bd1");var s=n("828b"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"2b9f33d1",null,!1,a["a"],void 0);e["default"]=r.exports},f062:function(t,e,n){var a=n("fcf7");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("6ca4c0ca",a,!0,{sourceMap:!1,shadowMode:!1})},f975:function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("5c47"),n("a1c1"),n("c223"),n("bf0f"),n("2797"),n("473f"),n("64aa");var i=a(n("2ba3")),o={components:{Shenhe:i.default},data:function(){return{listData:[]}},onLoad:function(t){this.getRecordList()},filters:{formatNum:function(t){var e=String(t).replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,"$1,");return 1==e.split(".").length&&(e+=".00"),e},substrStr:function(t){return"-**".concat(t.substr(t.length-1))},timestampToTime:function(t){var e=new Date(1e3*t),n=e.getHours()<10?"0"+e.getHours():e.getHours(),a=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),i=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return"".concat(n,":").concat(a,":").concat(i)}},methods:{getRecordList:function(){var t=this;this.$allrequest.facePay.getRecordList({}).then((function(e){if(!e.code&&e.data){var n=e.data||[];n.length>0?(n.forEach((function(t){var e=0;e=1==t.data.length?t.data[0].amount:t.data.reduce((function(t,e){return Number(t.amount)+Number(e.amount)})),t["totalPrice"]=e})),t.listData=n):(uni.showToast({title:t.$t("facePay.noRecord"),icon:"none",duration:2e3}),setTimeout((function(){uni.navigateBack()}),1500))}}))}}};e.default=o},fcf7:function(t,e,n){var a=n("c86c");e=a(!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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-2b9f33d1] .u-form-item--right__content__slot > uni-view,[data-v-2b9f33d1] .u-form-item--right__content__slot > div,[data-v-2b9f33d1] .u-form-item--right__content__slot > span,[data-v-2b9f33d1] .u-form-item--right__content__slot > uni-text{width:100%}.page[data-v-2b9f33d1]{width:100%;min-height:100vh;background-color:#0eb5f8}.page .page-content[data-v-2b9f33d1]{width:%?702?%;margin:0 auto;padding-top:%?24?%}.page .page-content .list-item[data-v-2b9f33d1]{width:100%;background:#fff;border-radius:%?14?%;padding:0 %?25?%;margin-bottom:%?24?%}.page .page-content .list-item .list-header[data-v-2b9f33d1]{display:flex;align-items:center;justify-content:space-between;padding:%?49?% 0}.page .page-content .list-item .list-header .item-time[data-v-2b9f33d1]{font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#191919}.page .page-content .list-item .list-header .item-total[data-v-2b9f33d1]{display:flex;align-items:center;font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#191919}.page .page-content .list-item .list-header .item-total uni-text[data-v-2b9f33d1]:nth-child(1){font-weight:400;color:#888}.page .page-content .list-item .list-header .item-total uni-text[data-v-2b9f33d1]:nth-child(2){margin:0 %?31?% 0 %?36?%}.page .page-content .list-item .record-item[data-v-2b9f33d1]{display:flex;justify-content:space-between;align-items:center;padding:%?29?% 0 %?24?% 0;border-top:%?1?% solid #eee}.page .page-content .list-item .record-item .record-info[data-v-2b9f33d1]{font-size:%?30?%;font-family:PingFang SC;font-weight:400;color:#191919}.page .page-content .list-item .record-item .record-info uni-view[data-v-2b9f33d1]:last-child{font-size:%?24?%;font-weight:500;color:#888;margin-top:%?15?%}.page .page-content .list-item .record-item .record-money[data-v-2b9f33d1]{font-size:%?36?%;font-family:PingFang SC;font-weight:500;color:#ff4b33}',""]),t.exports=e}}]);