1 |
- !function(){function t(e){return t="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(e)}function e(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function i(e,i,o){return(i=function(e){var i=function(e,i){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,i||"default");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"===t(i)?i:String(i)}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}System.register(["./index-legacy.88892f9c.js","./index-legacy.8c0ad476.js"],(function(t,o){"use strict";var r,a,n,c,l=document.createElement("style");return l.textContent=".el-input .el-input__inner{height:40px}.el-checkbox .el-checkbox__label{font-size:14px;line-height:20px}.me-arrange-doc[data-v-b76931c7]{position:relative;width:702px;height:704px;padding:26px 22px 22px;background:var(--color-white);box-shadow:2px 2px 10px rgba(25,25,25,.2);border-radius:16px;margin:120px auto 206px;text-align:center;display:flex;flex-direction:column}.me-arrange-doc .top[data-v-b76931c7]{height:40px}.me-arrange-doc .button[data-v-b76931c7]{height:35px}.me-arrange-doc .pictures[data-v-b76931c7]{flex:1;margin:31px 0;display:flex;overflow:auto}.me-arrange-doc .top .back[data-v-b76931c7]{position:absolute;top:28px;left:20px;cursor:pointer}.me-arrange-doc .top .back img[data-v-b76931c7]{width:46px;height:46px;border-radius:50%;box-shadow:0 0 6px rgba(0,0,0,.16)}.me-arrange-doc .button[data-v-b76931c7]{display:flex;justify-content:flex-end;align-items:center}.me-arrange-doc .button .el-button[data-v-b76931c7]{width:62px;height:36px;font-size:14px;border-radius:19px}.pictures .column-item[data-v-b76931c7]{width:122px;margin-right:12px}.pictures .column-item[data-v-b76931c7]:nth-child(5){margin-right:0}.column-item .list-item[data-v-b76931c7]{position:relative;margin-bottom:12px}.column-item .list-item .list-item-mask[data-v-b76931c7]{position:absolute;top:0;left:0;width:100%;height:calc(100% - 3px);border-radius:8px;background:rgba(25,25,25,.5);display:none}.column-item .list-item img.image[data-v-b76931c7]{width:100%;height:auto;border-radius:8px}.column-item .list-item img.select[data-v-b76931c7]{position:absolute;top:10px;left:10px;width:26px;height:26px;z-index:1;display:none}.column-item .list-item.selected img.select[data-v-b76931c7],.column-item .list-item.selected .list-item-mask[data-v-b76931c7]{display:block}\n",document.head.appendChild(l),{setters:[function(t){r=t.n,a=t.r,n=t._},function(t){c=t.W}],execute:function(){var o={name:"me-arrange-doc",components:{Waterfall:c},data:function(){return{loading:!1,page:1,limit:10,totalPage:1,go:5,products:[],images:[]}},mounted:function(){this.getProducts()},methods:{rebuildData:function(t){return t.map((function(t){return t.map((function(t){return function(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?e(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t.product)}))}))},toMovefile:function(){this.$router.push({path:"/me/moveFile",query:{ids:this.images.map((function(t){return t.id})).join(","),type:this.type}})},onSelected:function(t){this.images=t},loadData:function(t){this.getProducts({page:t,newload:!1})},getProducts:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.page,o=void 0===i?this.page:i,r=e.newload,n=void 0===r||r,c=this.$t("common.failure");this.$axios.get("".concat({1:"/api/product/collect_list",2:"/api/product/user_product_list"}[this.type]),{params:{page:o,limit:this.limit,go:this.go}}).then((function(e){var i=e.data,r=i.code,l=i.msg,s=void 0===l?c:l,u=i.data,p=void 0===u?{}:u,d=p.items,m=void 0===d?[]:d,g=p.totalPage;0==r?(t.products=1===t.type?t.rebuildData(n?m:a(t.products,m)):n?m:a(t.products,m),t.page=o,t.totalPage=g):t.$message.error(s)}))}},computed:{type:function(){var t=this.$route.query.type;return parseInt(t)},disabled:function(){return 0===this.images.length}}};t("default",r(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"me-arrange-doc"},[e("div",{staticClass:"top"},[e("div",{staticClass:"back"},[e("router-link",{attrs:{to:"/me/profile"}},[e("img",{attrs:{src:n,alt:"back icon"}})])],1),e("b",[t._v(t._s(t.$t("me.profile.arrangeDoc.title")))])]),e("div",{staticClass:"pictures"},[t.products.length?e("Waterfall",{attrs:{page:t.page,totalPage:t.totalPage,data:t.products},on:{loadData:t.loadData,selected:t.onSelected}}):t._e()],1),e("div",{staticClass:"button"},[e("el-button",{staticClass:"complete",attrs:{disabled:t.disabled,type:"primary",round:""},on:{click:t.toMovefile}},[t._v(t._s(t.$t("common.complete")))])],1)])}),[],!1,null,"b76931c7",null,null).exports)}}}))}();
|