杨总惠通宝
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-browsingHistory...

1 line
15 KiB

9 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-browsingHistory-index"],{"20b5":function(t,i,e){var a=e("f442");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("4ef08599",a,!0,{sourceMap:!1,shadowMode:!1})},"5bca":function(t,i,e){"use strict";var a=e("20b5"),n=e.n(a);n.a},6229:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){}));var a=function(){var t=this.$createElement,i=this._self._c||t;return i("v-uni-view",{staticClass:"empty-box"},[i("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),i("v-uni-view",{staticClass:"txt"},[this._v(this._s(this.title))])],1)},n=[]},"713e":function(t,i,e){"use strict";var a=e("93e4"),n=e.n(a);n.a},8669:function(t,i,e){var a=e("24fb");i=a(!1),i.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=i},"8c6b":function(t,i,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("d3b7"),e("159b"),e("99af"),e("14d9"),e("a434"),e("4de4");var n=a(e("c61e")),o=e("c6c3"),s=e("bd9e"),c=a(e("ae65")),r=e("26cb"),l={components:{emptyPage:n.default,easyLoadimage:c.default},computed:(0,r.mapGetters)(["viewColor"]),data:function(){return{list:[],isScroll:!0,page:1,limit:50,isAllSelect:!1,isEdit:!1,allArr:[],total:0}},onShow:function(){this.list=[],this.allArr=[],this.isScroll=!0,this.page=1,this.getList(),this.isAllSelect=!1,this.isEdit=!1},methods:{getList:function(){var t=this;(0,o.historyList)({page:t.page,limit:t.limit}).then((function(i){var e=i.data;t.total=e.count,e.list&&(e.list.forEach((function(t,i){t.check=!1})),t.isScroll=e.list.length>=t.limit,t.page+=1,t.list=t.list.concat(e.list),t.listFilter(t.list))}))},listFilter:function(t){var i=this;t.forEach((function(t,e){t.allCheck||i.$set(t,"allCheck",!1),t.list.forEach((function(t,e){t.check||i.$set(t,"check",!1)}))})),this.isAllSelect&&this.cartAllCheck("allCheck")},checkboxAllChange:function(){this.isAllSelect=!this.isAllSelect,this.cartAllCheck("allCheck")},handleEdit:function(){this.isEdit=!this.isEdit},historyCheck:function(t){t.check=!t.check,this.cartAllCheck("goodsCheck")},subDel:function(t){var i,e=this,a="empty"==t?"确定清空浏览记录?":"确定删除浏览记录?";if("batch"==t?(i=[],e.list.forEach((function(t){t.list.forEach((function(t){t.check&&i.push(t.user_history_id)}))}))):i=1,0==i.length&&"batch"==t)return e.$util.Tips({title:"请选择记录"});uni.showModal({title:"提示",content:a,success:function(t){if(t.confirm)(0,o.historyBatchDelete)({history_id:i}).then((function(t){return e.allArr=[],e.page=1,e.list=[],e.isEdit=!1,e.isScroll=!0,e.getList(),e.$util.Tips({title:t.message,icon:"success"})})).catch((function(t){return e.$util.Tips({title:t})}));else if(t.cancel)return e.$util.Tips({title:"<EFBFBD><EFBFBD>