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 lines
15 KiB
1 lines
15 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/user/complaint/complaint.vue?dbd7","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/user/complaint/complaint.vue?6262","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/user/complaint/complaint.vue?9e74","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/user/complaint/complaint.vue?7d2e","uni-app:///pages/user/complaint/complaint.vue","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/user/complaint/complaint.vue?8a42","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/user/complaint/complaint.vue?5fd9"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","index","picker","complaintId","typeName","complaint","type","complaint_user_id","complaint_shop_id","complaint_goods_id","images","content","reason","onLoad","methods","pickerChange","chooseImg","uni","sourceType","sizeType","count","success","url","src","filePath","name","formData","close","previewImage","image","imgArr","urls","current","indicator","submit"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,kBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;AACa;;;AAGrE;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,oFAAM;AACR,EAAE,6FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACnBA;AAAA;AAAA;AAAA;AAAmmB,CAAgB,6nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCuDvnB;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA;IACA;EACA;EACAC;IACA;IACA;IACA;MACA;MACA;IACA;MACA;MACA;IACA;MACA;MACA;IACA;MACA;MACA;IACA;EACA;EACAC;IACAC;MACA;QACA;MACA;QACA;MACA;IACA;IACAC;MAAA;MAAA;MACAC;QACAC;QACAC;QACAC;QACAC;UACA;YACAC;YACAD;cACA;gBACA;gBACAJ;kBACAM;kBACAF;oBACA;sBACAC;sBACAE;sBACAC;sBACAC;sBACAL;wBACA;sBACA;oBACA;kBACA;gBACA;cACA;YACA;UACA;QACA;MACA;IACA;IACAM;MACA;IACA;IACAC;MACA;MAAA,2CACAC;QAAA;MAAA;QAAA;UAAA;UACAC;QACA;MAAA;QAAA;MAAA;QAAA;MAAA;MACAb;QACAc;QACAC;QACAC;MACA;IACA;IACAC;MAAA;MACA;QACA;QACA;MACA;MACA;QACA;QACA;MACA;MACA;QACAZ;QACAtB;QACAqB;UACA;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACjKA;AAAA;AAAA;AAAA;AAAq3B,CAAgB,s3BAAG,EAAC,C;;;;;;;;;;;ACAz4B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/complaint/complaint.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/user/complaint/complaint.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./complaint.vue?vue&type=template&id=3ce869fc&\"\nvar renderjs\nimport script from \"./complaint.vue?vue&type=script&lang=js&\"\nexport * from \"./complaint.vue?vue&type=script&lang=js&\"\nimport style0 from \"./complaint.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/user/complaint/complaint.vue\"\nexport default component.exports","export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./complaint.vue?vue&type=template&id=3ce869fc&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.complaint.images.length\n var g1 = _vm.complaint.images.length\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./complaint.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./complaint.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<view class=\"edgeInsetTop\"></view>\r\n\t\t<view class=\"complaint-title\">\r\n\t\t <view>举报{{typeName}}理由 </view>\r\n\t\t\t<view class=\"complaint-quick text-red\">\r\n\t\t\t\t<text class=\"margin-right-xs\">{{typeName}}ID:{{complaintId}}</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"cu-form-group\">\r\n\t\t\t<picker @change=\"pickerChange\" :value=\"complaint.reason\" :range=\"picker\">\r\n\t\t\t\t<view class=\"picker\">\r\n\t\t\t\t\t{{complaint.reason>-1?picker[complaint.reason]:'请选择举报理由'}}\r\n\t\t\t\t</view>\r\n\t\t\t</picker>\r\n\t\t</view>\r\n\t\t\r\n\t\t\r\n\t\t<view class=\"complaint-title\">\r\n\t\t <text>{{typeName}}举报截图</text>\r\n\t\t</view>\r\n\t\t<view class=\"cu-bar bg-white\">\r\n\t\t\t<view class=\"action\">\r\n\t\t\t\t点击预览图片\r\n\t\t\t</view>\r\n\t\t\t<view class=\"action\">\r\n\t\t\t\t{{complaint.images.length}}/8\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"cu-form-group\">\r\n\t\t\t<view class=\"grid col-4 grid-square flex-sub\">\r\n\t\t\t\t<view class=\"bg-img\" v-for=\"(image,index) in complaint.images\" :key=\"index\">\r\n\t\t\t\t <image :src=\"image\" @tap=\"previewImage(complaint.images, index)\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t<view class=\"cu-tag bg-red\" @tap.stop=\"close(index)\">\r\n\t\t\t\t\t\t<text class='wlIcon-shanchu2'></text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"solids\" @tap=\"chooseImg\" v-if=\"complaint.images.length<8\">\r\n\t\t\t\t\t<text class=\"wlIcon-31paishe\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"complaint-title\">\r\n\t\t <view>{{typeName}}举报详情</view>\r\n\t\t</view>\r\n\t\t<view class=\"cu-form-group\">\r\n\t\t\t<textarea maxlength=\"-1\" v-model=\"complaint.content\" placeholder-class=\"placeholder\" placeholder=\"请详细描述举报内容...\"></textarea>\r\n\t\t</view>\r\n\t\t<view class=\"wanlian cu-bar tabbar foot flex flex-direction\">\r\n\t\t\t<button class=\"cu-btn wanl-bg-redorange lg\" @tap=\"submit\">发起举报</button>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tindex: -1,\r\n\t\t\t\tpicker: ['虚假交易', '诈骗欺诈', '收到空包裹', '假冒盗版', '泄露信息', '违禁物品', '未按成交价交易', '未按约定时间发货', '垃圾营销', '涉黄信息', '不实信息', '人身攻击', '违法信息', '诈骗信息'],\r\n\t\t\t\tcomplaintId: 0,\r\n\t\t\t\ttypeName: '',\r\n\t\t\t\tcomplaint:{\r\n\t\t\t\t\ttype: 0,\r\n\t\t\t\t\tcomplaint_user_id: 0,\r\n\t\t\t\t\tcomplaint_shop_id: 0,\r\n\t\t\t\t\tcomplaint_goods_id: 0,\r\n\t\t\t\t\timages: [],\r\n\t\t\t\t\tcontent: '',\r\n\t\t\t\t\treason: -1\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t},\r\n\t\tonLoad(option) {\r\n\t\t\tthis.complaint.type = option.type;\r\n\t\t\tthis.complaintId = option.id;\r\n\t\t\tif(option.type == 0){\r\n\t\t\t\tthis.typeName = '用户';\r\n\t\t\t\tthis.complaint.complaint_user_id = option.id;\r\n\t\t\t}else if(option.type == 1){\r\n\t\t\t\tthis.typeName = '商品';\r\n\t\t\t\tthis.complaint.complaint_goods_id = option.id;\r\n\t\t\t}else if(option.type == 2){\r\n\t\t\t\tthis.typeName = '店铺';\r\n\t\t\t\tthis.complaint.complaint_shop_id = option.id;\r\n\t\t\t}else if(option.type == 3){\r\n\t\t\t\tthis.typeName = '拼团';\r\n\t\t\t\tthis.complaint.complaint_goods_id = option.id;\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tpickerChange(e){\r\n\t\t\t\tif(e.detail.value == -1){\r\n\t\t\t\t\tthis.complaint.reason = 0;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.complaint.reason = e.detail.value;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchooseImg() { //选择图片\r\n\t\t\t uni.chooseImage({\r\n\t\t\t sourceType: [\"camera\", \"album\"],\r\n\t\t\t sizeType: \"compressed\",\r\n\t\t\t count: 8 - this.complaint.images.length,\r\n\t\t\t success: res => {\r\n\t\t\t\t\t\tthis.$api.get({\r\n\t\t\t\t\t\t\turl: '/wanlshop/common/uploadData',\r\n\t\t\t\t\t\t\tsuccess: updata => {\r\n\t\t\t\t\t\t\t\tfor (let i = 0; i < res.tempFilePaths.length; i++) {\r\n\t\t\t\t\t\t\t\t\t// 读取图片宽高\r\n\t\t\t\t\t\t\t\t\tuni.getImageInfo({\r\n\t\t\t\t\t\t\t\t\t\tsrc: res.tempFilePaths[i],\r\n\t\t\t\t\t\t\t\t\t\tsuccess: image => {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.$api.upload({\r\n\t\t\t\t\t\t\t\t\t\t\t\turl: updata.uploadurl,\r\n\t\t\t\t\t\t\t\t\t\t\t\tfilePath: image.path,\r\n\t\t\t\t\t\t\t\t\t\t\t\tname: 'file',\r\n\t\t\t\t\t\t\t\t\t\t\t\tformData: updata.storage == 'local' ? null : updata.multipart,\r\n\t\t\t\t\t\t\t\t\t\t\t\tsuccess: data => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.complaint.images.push(data.fullurl);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t }\r\n\t\t\t })\r\n\t\t\t},\r\n\t\t\tclose(e){\r\n\t\t\t this.complaint.images.splice(e,1);\r\n\t\t\t},\r\n\t\t\tpreviewImage(image, index) {\r\n\t\t\t\tvar imgArr = [];\r\n\t\t\t\tfor (var item of image) {\r\n\t\t\t\t\timgArr = imgArr.concat(this.$wanlshop.oss(item, 500));\r\n\t\t\t\t}\r\n\t\t\t\tuni.previewImage({\r\n\t\t\t\t\turls: imgArr,\r\n\t\t\t\t\tcurrent: imgArr[index],\r\n\t\t\t\t\tindicator: 'number'\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tsubmit() { \r\n\t\t\t\tif(this.complaint.reason == -1){\r\n\t\t\t\t\tthis.$wanlshop.msg('请选择举报理由');\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif(!this.complaint.content){\r\n\t\t\t\t\tthis.$wanlshop.msg('请填写举报内容');\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t this.$api.post({\r\n\t\t\t \turl: '/wanlshop/complaint/add',\r\n\t\t\t\t\tdata: this.complaint,\r\n\t\t\t \tsuccess: res => {\r\n\t\t\t \t\tthis.$wanlshop.to('/pages/page/success?type=complaint');\r\n\t\t\t \t}\r\n\t\t\t });\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t.complaint-title {\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: row;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\tpadding: 20rpx 25rpx;\r\n\t\tcolor: #666;\r\n\t}\r\n\t.complaint-star-view.complaint-title {\r\n\t\tjustify-content: flex-start;\r\n\t\tmargin: 0;\r\n\t}\r\n\t.cu-form-group picker .picker{\r\n\t\ttext-align: left;\r\n\t}\r\n\t.solids::after {\r\n\t border: 2px dashed #c5c5c5;\r\n\t}\r\n\t.wanlian.cu-bar.tabbar {\r\n\t\tbackground-color: transparent;\r\n\t}\r\n\t.wanlian.cu-bar.tabbar .cu-btn {\r\n\t\twidth: calc(100% - 50rpx);\r\n\t}\r\n\t.wanlian.cu-bar.tabbar .cu-btn.lg {\r\n\t\tfont-size: 32rpx;\r\n\t\theight: 86rpx;\r\n\t}\r\n</style>\r\n","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./complaint.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./complaint.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1699454290084\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |