Files
ZangShiQi/public/weapp/pages_tool/verification/list.js
2026-04-05 10:48:38 +08:00

1 line
3.9 KiB
JavaScript
Executable File

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/verification/list"],{"0105":function(t,i,e){"use strict";e.d(i,"b",(function(){return r})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var n={nsEmpty:function(){return e.e("components/ns-empty/ns-empty").then(e.bind(null,"52a6"))},loadingCover:function(){return e.e("components/loading-cover/loading-cover").then(e.bind(null,"c003"))}},r=function(){var t=this,i=t.$createElement,e=(t._self._c,t.__map(t.typeList,(function(i,e){var n=t.__get_orig(i),r=void 0!=t.verifyList[e]&&t.verifyList[e].list.length>0,a=r?t.__map(t.verifyList[e].list,(function(i,e){var n=t.__get_orig(i),r=t.$util.timeStampTurnTime(i.verify_time),a=t.$lang("common.currencySymbol"),s=t.__map(i.item_array,(function(i,e){var n=t.__get_orig(i),r=t.$util.img(i.img),a=t._f("abs")(i.price);return{$orig:n,g1:r,f0:a}}));return{$orig:n,g2:r,m0:a,l0:s}})):null;return{$orig:n,g0:r,l1:a}})));t.$mp.data=Object.assign({},{$root:{l2:e}})},a=[]},"0c5e":function(t,i,e){"use strict";e.r(i);var n=e("a0c9"),r=e.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=r.a},"46c9":function(t,i,e){"use strict";var n=e("6243"),r=e.n(n);r.a},"5e80":function(t,i,e){"use strict";(function(t,i){var n=e("47a9");e("d381");n(e("3240"));var r=n(e("e2d8"));t.__webpack_require_UNI_MP_PLUGIN__=e,i(r.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},6243:function(t,i,e){},a0c9:function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={data:function(){return{scrollInto:"",type:0,typeList:[],verifyList:[],isShow:!1}},onShow:function(){this.getVerifyType()},methods:{toDetail:function(t){this.$util.redirectTo("/pages_tool/verification/detail",{code:t})},ontabtap:function(t){var i=t.target.dataset.current||t.currentTarget.dataset.current;this.switchTab(i),this.isShow=!1},switchTab:function(t){this.type!==t&&(this.type=t,this.scrollInto=this.typeList[t].type)},ontabchange:function(t){var i=t.target.current||t.detail.current;this.switchTab(i)},getVerifyType:function(){var t=this;this.$api.sendRequest({url:"/api/verify/getVerifyType",success:function(i){i.code>=0&&(t.typeList=[],t.verifyList=[],Object.keys(i.data).forEach((function(e){t.typeList.push({type:e,name:i.data[e].name}),t.verifyList.push({page:1,totalPage:1,list:[],isLoading:!1}),t.getVerifyList(e,1,t.typeList.length-1)})))},fail:function(i){t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},getVerifyList:function(i,e,n){var r=this;this.verifyList[n].isLoading||1!=e&&e>this.verifyList[n].totalPage||(this.verifyList[n].isLoading=!0,this.verifyList[n].loadingType="loading",this.$api.sendRequest({url:"/api/verify/lists",data:{verify_type:i,page:e},success:function(i){r.verifyList[n].page=e,1==e&&(r.verifyList[n].list=[],t.stopPullDownRefresh()),i.data.list.length&&i.data.list.forEach((function(t){r.verifyList[n].list.push(t)})),r.verifyList[n].totalPage=i.data.page_count,r.verifyList[n].isLoading=!1,r.verifyList[n].loadingType=e==r.verifyList[n].totalPage?"nomore":"more",r.$refs.loadingCover&&r.$refs.loadingCover.hide(),r.isShow=!0}}))},scrolltolower:function(){var t=this.type;this.getVerifyList(this.typeList[t].type,this.verifyList[t].page+1,t)},onPullDownRefresh:function(){var t=this.type;this.getVerifyList(this.typeList[t].type,1,t)},imageError:function(t,i,e){this.verifyList[t].list[i].item_array[e].img=this.$util.getDefaultImage().goods,this.$forceUpdate()}},filters:{abs:function(t){return Math.abs(parseFloat(t)).toFixed(2)}}};i.default=e}).call(this,e("df3c")["default"])},e2d8:function(t,i,e){"use strict";e.r(i);var n=e("0105"),r=e("0c5e");for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return r[t]}))}(a);e("46c9");var s=e("828b"),o=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);i["default"]=o.exports}},[["5e80","common/runtime","common/vendor"]]]);