1 |
- {"version":3,"sources":["webpack:///./src/views/product/product-my-release.vue?8ca3","webpack:///./src/views/product/product-my-release.vue","webpack:///src/views/product/product-my-release.vue","webpack:///./src/views/product/product-my-release.vue?6480","webpack:///./src/views/product/product-my-release.vue?6be4","webpack:///./node_modules/core-js/modules/es6.function.name.js","webpack:///./src/assets/icon-176.png","webpack:///./src/components/text-highlight.vue","webpack:///src/components/text-highlight.vue","webpack:///./src/components/text-highlight.vue?972c","webpack:///./src/components/text-highlight.vue?ad5c"],"names":["render","_vm","this","_c","_self","staticClass","attrs","require","on","$event","$router","back","_v","ref","swipeCellOption","scopedSlots","_u","key","fn","item","toDetail","is_normal","cover","_s","name","low_price","stopPropagation","undercarriagePopup","push","staticRenderFns","components","TextHighlight","SwipeCellList","data","searchKey","showSearch","listApi","itemButtons","bottomButtons","mounted","methods","component","dP","f","FProto","Function","prototype","nameRE","NAME","configurable","get","match","e","module","exports","domProps","content","props","val","default","highlightKey","color","computed"],"mappings":"kHAAA,W,yDCAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaC,MAAM,CAAC,IAAMC,EAAQ,QAAuB,IAAM,IAAIC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,QAAQC,WAAWR,EAAG,IAAI,CAACE,YAAY,gBAAgB,CAACJ,EAAIW,GAAG,cAAcT,EAAG,kBAAkB,CAACU,IAAI,gBAAgBP,MAAM,CAAC,OAASL,EAAIa,iBAAiBC,YAAYd,EAAIe,GAAG,CAAC,CAACC,IAAI,OAAOC,GAAG,YAAkB,IAAPC,EAAI,EAAJA,KAAQ,MAAO,CAAChB,EAAG,MAAM,CAACE,YAAY,YAAYG,GAAG,CAAC,MAAQ,SAASC,G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,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,QAAQkB,KAAK,sBAAsB,CAAC3B,EAAIW,GAAG,uCAAuC,IAEv2DiB,EAAkB,G,gDCsEP,GACfC,YAAAC,qBAAAC,sBACAC,gBACA,OAEAN,sBACAb,iBACAoB,kBACAC,cACAC,oBACA,kCAEAC,eACAC,oBAIAC,qBACAC,SACApB,qBACA,gDACA,0DC7F2W,I,wBCQvWqB,EAAY,eACd,EACAzC,EACA6B,GACA,EACA,KACA,WACA,MAIa,aAAAY,E,gCCnBf,IAAIC,EAAK,EAAQ,QAAgBC,EAC7BC,EAASC,SAASC,UAClBC,EAAS,wBACTC,EAAO,OAGXA,KAAQJ,GAAU,EAAQ,SAAqBF,EAAGE,EAAQI,EAAM,CAC9DC,cAAc,EACdC,IAAK,WACH,IACE,OAAQ,GAAKhD,MAAMiD,MAAMJ,GAAQ,GACjC,MAAOK,GACP,MAAO,Q,8CCZbC,EAAOC,QAAU,IAA0B,6B,kCCA3C,IAAItD,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,OAAO,CAACE,YAAY,iBAAiBkD,SAAS,CAAC,UAAYtD,EAAIsB,GAAGtB,EAAIuD,aAExI3B,EAAkB,GCIP,GACfL,sBACAiC,OACAC,KACAC,YAEAC,cACAD,YAEAE,OACAF,oBAGAG,UACAN,mBACA,kBACA,WADA,IAEA,WAOA,YC9BwV,I,YCOpVf,EAAY,eACd,EACAzC,EACA6B,GACA,EACA,KACA,KACA,MAIa,OAAAY,E","file":"js/chunk-38259419.e0c2a801.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./product-my-release.vue?vue&type=style&index=0&id=414edeb8&prod&lang=scss&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"},[_c('div',{staticClass:\"header-wrap\"},[_c('div',{staticClass:\"header\"},[_c('img',{staticClass:\"return-img\",attrs:{\"src\":require(\"@/assets/return.png\"),\"alt\":\"\"},on:{\"click\":function($event){return _vm.$router.back()}}}),_c('p',{staticClass:\"header-title\"},[_vm._v(\"我的发布\")])])]),_c('swipe-cell-list',{ref:\"swipeCellList\",attrs:{\"option\":_vm.swipeCellOption},scopedSlots:_vm._u([{key:\"item\",fn:function({ item }){return [_c('div',{staticClass:\"list-item\",on:{\"click\":function($event){return _vm.toDetail(item)}}},[_c('div',{staticClass:\"top\"},[_c('div',{staticClass:\"cover-box\"},[(item.is_normal)?_c('img',{staticClass:\"cover\",attrs:{\"src\":item.cover}}):_c('img',{staticClass:\"normal\",attrs:{\"src\":require(\"@/assets/icon-176.png\"),\"alt\":\"\"}})]),(item.is_normal)?_c('div',{staticClass:\"info\"},[_c('div',{staticClass:\"name\"},[_vm._v(_vm._s(item.name))]),_c('div',{staticClass:\"price\"},[_vm._v(\"\\n ¥\"),_c('span',[_vm._v(_vm._s(item.low_price))])])]):_c('div',{staticClass:\"normal-text\"},[_vm._v(\"已下架\")])]),_c('div',{staticClass:\"bottom\"},[_c('div',{staticClass:\"btn\",on:{\"click\":function($event){$event.stopPropagation();_vm.undercarriagePopup = true}}},[_vm._v(\"下架\")])])])]}}])}),_c('van-overlay',{attrs:{\"show\":_vm.undercarriagePopup,\"z-index\":\"99999\"},on:{\"click\":function($event){_vm.undercarriagePopup = false}}},[_c('div',{staticClass:\"window\"},[_c('span',{staticClass:\"window-text\"},[_vm._v(\"下架商品需联系客服\")]),_c('div',{staticClass:\"window-btn-box\"},[_c('button',{staticClass:\"cancel\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){_vm.undercarriagePopup = false}}},[_vm._v(\"\\n 取消\\n \")]),_c('button',{staticClass:\"confirm\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.$router.push('/contact-online')}}},[_vm._v(\"\\n 联系客服\\n \")])])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"wrap\">\r\n <div class=\"header-wrap\">\r\n <div class=\"header\">\r\n <img\r\n src=\"@/assets/return.png\"\r\n class=\"return-img\"\r\n @click=\"$router.back()\"\r\n alt=\"\"\r\n />\r\n <p class=\"header-title\">我的发布</p>\r\n </div>\r\n </div>\r\n\r\n <swipe-cell-list ref=\"swipeCellList\" :option=\"swipeCellOption\">\r\n <template #item=\"{ item }\">\r\n <div class=\"list-item\" @click=\"toDetail(item)\">\r\n <div class=\"top\">\r\n <div class=\"cover-box\">\r\n <img class=\"cover\" v-if=\"item.is_normal\" :src=\"item.cover\" />\r\n <img class=\"normal\" src=\"@/assets/icon-176.png\" v-else alt=\"\" />\r\n </div>\r\n <div class=\"info\" v-if=\"item.is_normal\">\r\n <div class=\"name\">{{ item.name }}</div>\r\n <div class=\"price\">\r\n ¥<span>{{ item.low_price }}</span>\r\n </div>\r\n </div>\r\n <div class=\"normal-text\" v-else>已下架</div>\r\n </div>\r\n <div class=\"bottom\">\r\n <div class=\"btn\" @click.stop=\"undercarriagePopup = true\">下架</div>\r\n </div>\r\n </div>\r\n </template>\r\n </swipe-cell-list>\r\n\r\n <!-- 下架弹窗 -->\r\n <van-overlay\r\n :show=\"undercarriagePopup\"\r\n @click=\"undercarriagePopup = false\"\r\n z-index=\"99999\"\r\n >\r\n <div class=\"window\">\r\n <span class=\"window-text\">下架商品需联系客服</span>\r\n <div class=\"window-btn-box\">\r\n <button\r\n type=\"button\"\r\n class=\"cancel\"\r\n @click=\"undercarriagePopup = false\"\r\n >\r\n 取消\r\n </button>\r\n <button\r\n type=\"button\"\r\n class=\"confirm\"\r\n @click=\"$router.push('/contact-online')\"\r\n >\r\n 联系客服\r\n </button>\r\n </div>\r\n </div>\r\n </van-overlay>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { MallService } from \"@/common/service\";\r\nimport { Toast } from \"vant\";\r\nimport SwipeCellList from \"@/components/swipe-cell-list.vue\";\r\nimport TextHighlight from \"@/components/text-highlight.vue\";\r\n\r\nexport default {\r\n components: { TextHighlight, SwipeCellList },\r\n data() {\r\n return {\r\n // 下架弹窗\r\n undercarriagePopup: false,\r\n swipeCellOption: {\r\n searchKey: \"title\",\r\n showSearch: false,\r\n listApi: (params) => {\r\n return MallService.getOwnGoodsList(params);\r\n },\r\n itemButtons: [],\r\n bottomButtons: [],\r\n },\r\n };\r\n },\r\n mounted() {},\r\n methods: {\r\n toDetail(item) {\r\n if (item.is_normal === 0) return Toast(\"已下架\");\r\n this.$router.push(`/product-details?id=${item.id}`);\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.wrap {\r\n width: 100%;\r\n height: calc(100vh - 42px);\r\n display: flex;\r\n flex-direction: column;\r\n margin: 42px 0 0;\r\n box-sizing: border-box;\r\n background: #f4f4f4;\r\n overflow-y: auto;\r\n padding-top: 15px;\r\n .header-wrap {\r\n width: 100%;\r\n height: 42px;\r\n display: flex;\r\n flex-direction: column;\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n z-index: 500;\r\n background-color: #ffffff;\r\n .header {\r\n width: 100%;\r\n height: 44px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n background-color: #ffffff;\r\n z-index: 999;\r\n position: relative;\r\n box-sizing: border-box;\r\n .return-img {\r\n position: absolute;\r\n left: 15px;\r\n top: 50%;\r\n transform: translate(0, -50%);\r\n width: 20px;\r\n z-index: 99999;\r\n }\r\n .header-title {\r\n width: 100%;\r\n text-align: center;\r\n color: #333333;\r\n font-size: 18px;\r\n font-weight: bold;\r\n position: relative;\r\n }\r\n }\r\n }\r\n .list-item {\r\n background: #ffffff;\r\n border-radius: 8px;\r\n padding: 12px 15px;\r\n .top {\r\n display: flex;\r\n align-items: center;\r\n .cover-box {\r\n width: 70px;\r\n height: 70px;\r\n border-radius: 8px;\r\n .cover {\r\n width: 100%;\r\n height: 100%;\r\n border-radius: 8px;\r\n }\r\n .normal {\r\n width: 100%;\r\n height: 100%;\r\n border-radius: 8px;\r\n }\r\n }\r\n .info {\r\n width: calc(100% - 80px);\r\n height: 70px;\r\n margin-left: 10px;\r\n .name {\r\n font-size: 15px;\r\n font-weight: 400;\r\n color: #222222;\r\n display: -webkit-box;\r\n -webkit-line-clamp: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n -webkit-box-orient: vertical;\r\n }\r\n .price {\r\n font-size: 10px;\r\n font-weight: 400;\r\n color: #ff5143;\r\n line-height: 20px;\r\n margin-top: 5px;\r\n span {\r\n font-size: 17px;\r\n font-weight: 500;\r\n }\r\n }\r\n }\r\n .normal-text {\r\n height: 70px;\r\n margin-left: 10px;\r\n }\r\n }\r\n .bottom {\r\n width: 100%;\r\n display: flex;\r\n justify-content: flex-end;\r\n .btn {\r\n width: 64px;\r\n height: 28px;\r\n border-radius: 14px;\r\n border: 1px solid #d8d8d8;\r\n font-size: 12px;\r\n font-weight: 400;\r\n color: #333333;\r\n text-align: center;\r\n line-height: 28px;\r\n }\r\n }\r\n }\r\n}\r\n\r\n.window {\r\n width: calc(100% - 54px);\r\n height: 180px;\r\n border-radius: 12px;\r\n background-color: #ffffff;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 38px 25px 32px;\r\n box-sizing: border-box;\r\n position: fixed;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n z-index: 1000;\r\n .window-text {\r\n color: #222222;\r\n font-size: 18px;\r\n }\r\n .window-btn-box {\r\n width: 100%;\r\n display: flex;\r\n align-items: center;\r\n margin-top: 43px;\r\n button {\r\n flex: 1;\r\n height: 42px;\r\n font-size: 17px;\r\n margin-right: 27px;\r\n border-radius: 50px;\r\n }\r\n :last-child {\r\n margin-right: 0;\r\n }\r\n .cancel {\r\n background-color: #f4f4f4;\r\n color: #333333;\r\n }\r\n .confirm {\r\n background-color: #2a63f3;\r\n color: #ffffff;\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./product-my-release.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./product-my-release.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./product-my-release.vue?vue&type=template&id=414edeb8&scoped=true&\"\nimport script from \"./product-my-release.vue?vue&type=script&lang=js&\"\nexport * from \"./product-my-release.vue?vue&type=script&lang=js&\"\nimport style0 from \"./product-my-release.vue?vue&type=style&index=0&id=414edeb8&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"414edeb8\",\n null\n \n)\n\nexport default component.exports","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","module.exports = __webpack_public_path__ + \"img/icon-176.4d232e45.png\";","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"text-highlight\",domProps:{\"innerHTML\":_vm._s(_vm.content)}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <span class=\"text-highlight\" v-html=\"content\"></span>\r\n</template>\r\n\r\n<script>\r\n\r\nexport default {\r\n name: 'text-highlight',\r\n props: {\r\n val: {\r\n default: '',\r\n },\r\n highlightKey: {\r\n default: '',\r\n },\r\n color: {\r\n default: '#FF6700',\r\n },\r\n },\r\n computed: {\r\n content() {\r\n const highlightKey = this.highlightKey;\r\n const color = this.color;\r\n let val = this.val;\r\n // if (val && highlightKey) {\r\n // val = val.replace(\r\n // RegExp(highlightKey, 'g'),\r\n // `<span style=\"color: ${color}\">${highlightKey}</span>`,\r\n // );\r\n // }\r\n return val;\r\n },\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./text-highlight.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./text-highlight.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./text-highlight.vue?vue&type=template&id=3ec1bdd9&\"\nimport script from \"./text-highlight.vue?vue&type=script&lang=js&\"\nexport * from \"./text-highlight.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
|