| 12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_index/voiceList"],{250:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(251));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},251:function(e,n,t){"use strict";t.r(n);var o=t(252),r=t(254);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t(257);var c,s=t(34),u=Object(s["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"8a22564c",null,!1,o["components"],c);u.options.__file="pages_index/voiceList.vue",n["default"]=u.exports},252:function(e,n,t){"use strict";t.r(n);var o=t(253);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},253:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return c})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return o}));try{o={uSticky:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-sticky/u-sticky")]).then(t.bind(null,704))},uTabs:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(t.bind(null,688))},mescrollBody:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/mescroll-uni/components/mescroll-body/mescroll-body")]).then(t.bind(null,712))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.__map(e.dataList,(function(n,t){var o=e.__get_orig(n),r=e.secondsToHoursAndMinutes(n.duration||0);return{$orig:o,m0:r}}))),o=1==e.current&&e.dataList&&e.dataList.length>0;e.$mp.data=Object.assign({},{$root:{l0:t,g0:o}})},i=!1,c=[];r._withStripped=!0},254:function(e,n,t){"use strict";t.r(n);var o=t(255),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},255:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(256)),i=t(223),c={mixins:[r.default],data:function(){return{current:0,tabs:[{id:2,name:"声音录制"},{id:0,name:"未完成"},{id:1,name:"已完成"}],mescroll:null,downOption:{use:!0,auto:!1},upOption:{onScroll:!1,use:!0,page:{pae:0,size:10},noMoreSize:10,textNoMore:"已经到底了",empty:{icon:"https://cos.his.cdwjyyh.com/fs/20240423/cf4a86b913a04341bb44e34bb4d37aa2.png",tip:"暂无数据"}},dataList:[],height:0,bottom:0}},onLoad:function(){var n=this;e.$on("refreshVoiceList",(function(){n.mescroll.resetUpScroll()}))},onUnload:function(){e.$off("refreshVoiceList")},methods:{getHeight:function(){var n=this;this.$nextTick((function(){var t=e.createSelectorQuery().in(n);t.select("#footer-btn").boundingClientRect((function(t){t&&(n.height=e.getSystemInfoSync().windowHeight-t.height-44,n.bottom=t.height)})).exec()}))},secondsToHoursAndMinutes:function(e){var n=Math.floor(e/3600),t=Math.floor(e%3600/60),o=e%60;return n=n.toString().padStart(2,"0"),t=t.toString().padStart(2,"0"),o=o.toString().padStart(2,"0"),n+":"+t+":"+o},tabChange:function(e){this.current!=e.index&&(this.current=e.index,this.mescroll.resetUpScroll())},navTo:function(n){e.navigateTo({url:n})},mescrollInit:function(e){this.mescroll=e},downCallback:function(){this.mescroll.resetUpScroll()},upCallback:function(n){var t=this,o={recordType:this.tabs[this.current].id,pageNum:n.num,pageSize:n.size};(0,i.querySopVoiceList)(o).then((function(o){200==o.code?(1==n.num?(t.dataList=o.rows,t.getHeight()):t.dataList=t.dataList.concat(o.rows),t.mescroll.endBySize(o.rows.length,o.total)):(e.showToast({icon:"none",title:"请求失败"}),t.dataList=null,t.mescroll.endErr())}))},handleAllVoice:function(){(0,i.createUserAllVoice)().then((function(n){e.showToast({icon:"none",title:n.msg,duration:2e3})}))}}};n.default=c}).call(this,t(2)["default"])},257:function(e,n,t){"use strict";t.r(n);var o=t(258),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},258:function(e,n,t){}},[[250,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_index/voiceList.js.map
|