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
9.8 KiB

{"version":3,"sources":["webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/common-popup.vue?2a30","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/common-popup.vue?bf65","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/common-popup.vue?19f1","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/common-popup.vue?dcde","uni-app:///components/common-popup.vue"],"names":["title","desc","text","components","props","maskClick","type","default","info","button","imgSize","created","data","ptitle","pdesc","pbutton","computed","primaryColor","subColor","methods","init","open","close","toEmit"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqI;AACrI;AACgE;AACL;;;AAG3D;AACuM;AACvM,gBAAgB,iNAAU;AAC1B,EAAE,kFAAM;AACR,EAAE,mGAAM;AACR,EAAE,4GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA6xB,CAAgB,0yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;ACwDjzB;;;;;;;;;;;;;;;;;;;;;AApCA;EACA;IACAA;IACAC;IACAC;EACA;EACA;IACAF;IACAC;IACAC;EACA;EACA;IACAF;IACAC;IACAC;EACA;EACA;IACAF;IACAC;IACAC;EACA;EACA;IACAF;IACAC;IACAC;EACA;EACA;IACAF;IACAC;EACA;EACA;IACAD;IACAC;IACAC;EACA;AACA;AAAA,gBAKA;EACAC;EACAC;IACAC;MACAC;MACAC;QACA;MACA;IACA;IACAD;MACAA;MACAC;QACA;MACA;IACA;IACAP;MACAM;MACAC;QACA;MACA;IACA;IACAN;MACAK;MACAC;QACA;MACA;IACA;IACAC;MACAF;MACAC;QACA;MACA;IACA;IACAE;MACAH;MACAC;QACA;UACAP;UACAM;QACA;UACAN;UACAM;QACA;MACA;IACA;IACAI;MACAJ;MACAC;QACA;MACA;IACA;EACA;EACAI;IACA;EACA;EACAC;IACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;EACA;EACAC;IACAC;MACA,IACAd,OACA,KADAA;MAEA;QACA;QACA;QACA;QACA;QACA;MACA;IACA;IACAe;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA,IACAjB,OACA,mBADAA;MAEA;QACA;MACA;QACA;MACA;IACA;EACA;AACA;AAAA,4B","file":"components/common-popup.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./common-popup.vue?vue&type=template&id=63408805&scoped=true&\"\nvar renderjs\nimport script from \"./common-popup.vue?vue&type=script&lang=js&\"\nexport * from \"./common-popup.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../Downloads/HBuilderX.3.99.2023122611/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 \"63408805\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/common-popup.vue\"\nexport default component.exports","export * from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./common-popup.vue?vue&type=template&id=63408805&scoped=true&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./common-popup.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./common-popup.vue?vue&type=script&lang=js&\"","<template>\r\n\t<uni-popup type=\"center\" :maskClick=\"maskClick\" ref=\"common_popup\">\r\n\t\t<view class=\"common-popup-content fill-base\">\r\n\t\t\t<view class=\"title\" v-if=\"ptitle\">{{ptitle}}</view>\r\n\t\t\t<view class=\"desc\" v-if=\"pdesc\">{{pdesc}}</view>\r\n\t\t\t<image mode=\"aspectFill\" class=\"image\" :class=\"imgSize\" :src=\"info.image\" v-if=\"info.image\"></image>\r\n\t\t\t<view class=\"name\" v-if=\"info.name\">{{info.name}}</view>\r\n\t\t\t<view class=\"button\">\r\n\t\t\t\t<block v-for=\"(item,index) in pbutton\" :key=\"index\">\r\n\t\t\t\t\t<view @tap.stop=\"toEmit(index)\" class=\"item-child\"\r\n\t\t\t\t\t\t:style=\"{background: item.type == 'confirm' ? primaryColor : '',color:item.type == 'confirm' ?'white':''}\">\r\n\t\t\t\t\t\t{{item.title}}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</block>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</uni-popup>\r\n</template>\r\n\r\n<script>\r\n\tconst Types = {\r\n\t\t'REFUSE_ORDER': {\r\n\t\t\ttitle: '拒绝接单',\r\n\t\t\tdesc: '请确认是否拒绝接单',\r\n\t\t\ttext: '确认拒绝'\r\n\t\t},\r\n\t\t'CANCEL_ORDER': {\r\n\t\t\ttitle: '取消订单',\r\n\t\t\tdesc: '请确认是否取消订单,取消后将无法恢复',\r\n\t\t\ttext: '确认取消'\r\n\t\t},\r\n\t\t'DELETE_ORDER': {\r\n\t\t\ttitle: '删除订单',\r\n\t\t\tdesc: '请确认是否删除订单,删除后将无法恢复',\r\n\t\t\ttext: '确认删除'\r\n\t\t},\r\n\t\t'CANCEL_REFUND_ORDER': {\r\n\t\t\ttitle: '取消退款',\r\n\t\t\tdesc: '请确认是否取消退款',\r\n\t\t\ttext: '确认取消'\r\n\t\t},\r\n\t\t'NO_PASS_REFUND': {\r\n\t\t\ttitle: '拒绝退款',\r\n\t\t\tdesc: '请确认是否拒绝退款',\r\n\t\t\ttext: '确认拒绝'\r\n\t\t},\r\n\t\t'HX_CODE': {\r\n\t\t\ttitle: '核销码',\r\n\t\t\tdesc: '请出示二维码给核销人员',\r\n\t\t},\r\n\t\t'HX_ORDER': {\r\n\t\t\ttitle: '核销订单',\r\n\t\t\tdesc: '请确认是否核销订单',\r\n\t\t\ttext: '确认核销'\r\n\t\t},\r\n\t}\r\n\timport {\r\n\t\tmapState,\r\n\t\tmapMutations\r\n\t} from \"vuex\"\r\n\texport default {\r\n\t\tcomponents: {},\r\n\t\tprops: {\r\n\t\t\tmaskClick: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttype: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn 'CANCEL_ORDER'\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttitle: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn ''\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tdesc: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn ''\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tinfo: {\r\n\t\t\t\ttype: Object,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn {}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tbutton: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn [{\r\n\t\t\t\t\t\ttitle: '取消',\r\n\t\t\t\t\t\ttype: 'cancel'\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\ttitle: '确定取消',\r\n\t\t\t\t\t\ttype: 'confirm'\r\n\t\t\t\t\t}]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\timgSize: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn ''\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tthis.init();\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tptitle: '',\r\n\t\t\t\tpdesc: '',\r\n\t\t\t\tpbutton: [],\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: mapState({\r\n\t\t\tprimaryColor: state => state.config.configInfo.primaryColor,\r\n\t\t\tsubColor: state => state.config.configInfo.subColor,\r\n\t\t}),\r\n\t\tmethods: {\r\n\t\t\tinit() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\ttype,\r\n\t\t\t\t} = this;\r\n\t\t\t\tif (Types[type]) {\r\n\t\t\t\t\tthis.ptitle = this.title || Types[type].title\r\n\t\t\t\t\tthis.pdesc = this.desc || Types[type].desc\r\n\t\t\t\t\tthis.pbutton = this.button\r\n\t\t\t\t\tif (!Types[type].text) return\r\n\t\t\t\t\tthis.pbutton[1].title = Types[type].text\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\topen() {\r\n\t\t\t\tthis.$refs.common_popup.open()\r\n\t\t\t},\r\n\t\t\tclose() {\r\n\t\t\t\tthis.$refs.common_popup.close()\r\n\t\t\t},\r\n\t\t\ttoEmit(index) {\r\n\t\t\t\tlet {\r\n\t\t\t\t\ttype\r\n\t\t\t\t} = this.button[index]\r\n\t\t\t\tif (type == 'cancel') {\r\n\t\t\t\t\tthis.close()\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$emit(type)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n</style>\r\n"],"sourceRoot":""}