2 lines
985 B
JavaScript
2 lines
985 B
JavaScript
"use strict";const e=require("../../common/vendor.js"),t=e.defineComponent({__name:"profile",setup(t){const o=e.ref([]),n=e.computed(()=>{const e=(new Date).toDateString();return o.value.filter(t=>new Date(t.timestamp).toDateString()===e).length}),a=e.computed(()=>{const e=(new Date).toDateString();return o.value.filter(t=>new Date(t.timestamp).toDateString()===e).reduce((e,t)=>e+t.totalAmount,0)}),r=e.computed(()=>o.value.length),u=()=>{e.index.navigateTo({url:"/pages/price/price"})},i=()=>{e.index.navigateTo({url:"/pages/bluetooth/bluetooth"})},c=()=>{e.index.showModal({title:"关于我们",content:"易分宝现场回收 v1.0.0\n\n致力于为回收行业提供便捷的现场回收解决方案",showCancel:!1})};return e.onMounted(()=>{const t=e.index.getStorageSync("orders");o.value=t?JSON.parse(t):[]}),(t,o)=>({a:e.t(n.value),b:e.t(a.value.toFixed(2)),c:e.t(r.value),d:e.o(u),e:e.o(i),f:e.o(c)})}}),o=e._export_sfc(t,[["__scopeId","data-v-50e886ff"]]);wx.createPage(o);
|