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.
1 line
8.9 KiB
1 line
8.9 KiB
4 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-04e895ad"],{"3ce4":function(t,e,a){"use strict";a("7c84")},"7c84":function(t,e,a){},"8f86":function(t,e,a){"use strict";a.r(e);var s=a("2f62"),i=a("47c5"),o={name:"live_detail",data:function(){return{option:{form:{labelWidth:"150px"}},FormData:{},loading:!1}},methods:{getData:function(t){var e=this;this.loading=!0,Object(i.h)(t).then((function(t){e.FormData=t.data,e.loading=!1})).catch((function(t){e.$Message.error(t.msg),e.loading=!1}))}}},r=(a("3ce4"),a("2877")),n=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"divBox"},[e("div",[e("div",{staticClass:"box-container"},[e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("商品名称:")]),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.name))])]),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("直播价:")]),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.price))])]),t.FormData.product?e("div",{staticClass:"list sp100",staticStyle:{display:"flex"}},[e("label",{staticClass:"name"},[t._v("商品图:")]),e("viewer",[e("img",{attrs:{src:t.FormData.product.image,alt:""}})])],1):t._e(),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("审核结果:")]),e("span",{staticClass:"info"},[t._v(t._s(t._f("liveStatusFilter")(t.FormData.audit_status)))])])])])])}),[],!1,null,"9d5b9f9a",null).exports,l=a("d708");function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function d(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?u(Object(a),!0).forEach((function(e){m(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function m(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var s=a.call(t,e||"default");if("object"!=c(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var f={name:"live",components:{goodsFrom:n},data:function(){return{roterPre:l.a.roterPre,grid:{xl:7,lg:7,md:12,sm:24,xs:24},formValidate:{status:"",kerword:"",page:1,limit:20},treeData:{withdrawal:[{title:"全部",value:""},{title:"待审核",value:0},{title:"已通过",value:1},{title:"未通过",value:-1}]},columns1:[{key:"product_id",title:"商品ID",width:80},{slot:"name",minWidth:240,title:"商品名称"},{key:"price",minWidth:90,title:"直播价"},{slot:"cost_price",minWidth:90,title:"原价"},{slot:"stock",minWidth:90,title:"库存"},{slot:"status",minWidth:90,title:"审核状态"},{slot:"is_mer_show",title:"是否显示",minWidth:90},{slot:"action",title:"操作",minWidth:120}],tabList:[],loading:!1,modals:!1,total:0}},computed:d(d({},Object(s.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList()},methods:{pageChange:function(t){this.formValidate.page=t,this.getList()},onchangeIsShow:function(t){var e=this,a=t.id,s=t.is_show;Object(i.i)(a,s).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,Object(i.e)(this.formValidate).then((function(e){t.total=e.data.count,t.tabList=e.data.list,t.loading=!1})).catch((function(e){t.$Message.error(e.msg),t.loading=!1}))},selChange:fu
|