bonus-edit.js.map
15.8 KB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/linon/work/workai/yxly-teacher/pages/main/home/bonus-edit.vue?3623","webpack:////Users/linon/work/workai/yxly-teacher/pages/main/home/bonus-edit.vue?0cb2","webpack:////Users/linon/work/workai/yxly-teacher/pages/main/home/bonus-edit.vue?76e8","webpack:////Users/linon/work/workai/yxly-teacher/pages/main/home/bonus-edit.vue?fb88","uni-app:///pages/main/home/bonus-edit.vue","webpack:////Users/linon/work/workai/yxly-teacher/pages/main/home/bonus-edit.vue?ada7"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;AAE2D;AAC3D;AACA,0G,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,kBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmI;AACnI;AAC8D;AACL;AACsC;;;AAG/F;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,iGAAM;AACR,EAAE,0GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qGAAU;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,aAAa,oLAEN;AACP,KAAK;AACL;AACA,aAAa,sQAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAAu1B,CAAgB,wyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqC32B;AACA,MADA,kBACA;AACA;AACA;AACA,uBADA;AAEA,wBAFA,EADA;;AAKA,wBALA;AAMA,cANA;;AAQA,GAVA;;AAYA,QAZA,kBAYA,CAZA,EAYA;AACA;AACA;AACA;AACA;AACA,GAjBA;;AAmBA,QAnBA,oBAmBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GA5BA;;AA8BA;AACA,aADA,qBACA,CADA,EACA;AACA;AACA;AACA,KAJA;;AAMA,UANA,oBAMA;AACA;AACA;AACA;AACA;AACA,KAXA;;AAaA,QAbA,kBAaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFADA;AAEA,oFAFA;AAGA;AACA,qBADA;AAEA,oBAFA,GAHA;;AAOA;AACA,KApCA;;AAsCA,aAtCA,qBAsCA,CAtCA,EAsCA;AACA;AACA,gBADA;AAEA,qBAFA;AAGA,sBAHA;;AAKA,KA5CA,EA9BA,E;;;;;;;;;;;;;ACrCA;AAAA;AAAA;AAAA;AAA0lD,CAAgB,+7CAAG,EAAC,C","file":"pages/main/home/bonus-edit.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import '@dcloudio/uni-stat/dist/uni-stat.es.js';\nimport Vue from 'vue'\nimport Page from './pages/main/home/bonus-edit.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./bonus-edit.vue?vue&type=template&id=254d9e6a&scoped=true&\"\nvar renderjs\nimport script from \"./bonus-edit.vue?vue&type=script&lang=js&\"\nexport * from \"./bonus-edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./bonus-edit.vue?vue&type=style&index=0&id=254d9e6a&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/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 \"254d9e6a\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/main/home/bonus-edit.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./bonus-edit.vue?vue&type=template&id=254d9e6a&scoped=true&\"","var components\ntry {\n components = {\n uForm: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-form/u-form\" */ \"@/uview-ui/components/u-form/u-form.vue\"\n )\n },\n cInputItem: function() {\n return import(\n /* webpackChunkName: \"components/c-input-item/c-input-item\" */ \"@/components/c-input-item/c-input-item.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./bonus-edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./bonus-edit.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"page\">\n\t\t<view class=\"content\">\n\t\t\t<view class=\"text1\">\n\t\t\t\t编辑其他推荐人\n\t\t\t</view>\n\t\t\t<view class=\"text2\">\n\t\t\t\t其他推荐人和主推荐人共享推荐人分奖金比例,比例总和不会超过推荐人总比例。\n\t\t\t</view>\n\t\t\t<u-form :model=\"form\" :error-type=\"errorType\" ref=\"uForm\">\n\t\t\t\t<c-input-item label=\"推荐人姓名\" type=\"text\" name=\"contactName\" v-model=\"form.contactName\"\n\t\t\t\t\t:rightIcon=\"false\">\n\t\t\t\t</c-input-item>\n\t\t\t\t<c-input-item label=\"手机号\" type=\"number\" name=\"contactPhone\" v-model=\"form.contactPhone\"\n\t\t\t\t\t:rightIcon=\"false\">\n\t\t\t\t</c-input-item>\n\t\t\t</u-form>\n\t\t\t<view class=\"text3\">奖金比例</view>\n\t\t\t<view style=\"display: flex;\">\n\t\t\t\t<view class=\"textValue\" style=\"width: 92rpx;\">\n\t\t\t\t\t<input :value=\"inputProportion\" :type=\"number\" maxlength=\"3\" placeholder=\"请输入\"\n\t\t\t\t\t\tplaceholder-style=\"font-size:34rpx;color:rgba(0,0,0,0.5);\" @blur=\"inputBlur\" />\n\t\t\t\t</view>\n\t\t\t\t<text class=\"textValue\">%</text>\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"botBtn\">\n\t\t\t<view style=\"width: 100%;height: 2rpx;background-color: #f0f0ff;\"></view>\n\t\t\t<view class=\"btn_wrap\">\n\t\t\t\t<view class=\"btn01\" @click=\"remove\">删除</view>\n\t\t\t\t<view class=\"btn02\" @click=\"save\">保存</view>\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tform: {\n\t\t\t\t\tcontactName: '',\n\t\t\t\t\tcontactPhone: ''\n\t\t\t\t},\n\t\t\t\tinputProportion: 0,\n\t\t\t\tindex: 0\n\t\t\t}\n\t\t},\n\n\t\tonLoad(e) {\n\t\t\tconsole.log(e)\n\t\t\tthis.form.contactName = e.contactName\n\t\t\tthis.form.contactPhone = e.contactPhone\n\t\t\tthis.inputProportion = e.proportion\n\t\t},\n\n\t\tonShow() {\n\t\t\tlet pages = getCurrentPages();\n\t\t\tlet prevPage = pages[pages.length - 2];\n\t\t\tfor (var i = 0; i < prevPage.$vm.otherRewardList.length; i++) {\n\t\t\t\tif (this.form.contactPhone == prevPage.$vm.otherRewardList[i].contactPhone) {\n\t\t\t\t\tthis.index = i;\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tmethods: {\n\t\t\tinputBlur(e) {\n\t\t\t\tconsole.log(e)\n\t\t\t\tthis.inputProportion = parseInt(e.target.value) + 0\n\t\t\t},\n\n\t\t\tremove() {\n\t\t\t\tlet pages = getCurrentPages();\n\t\t\t\tlet prevPage = pages[pages.length - 2];\n\t\t\t\tprevPage.$vm.otherRewardList.splice(this.index, 1);\n\t\t\t\tsetTimeout(() => uni.navigateBack(), 1000);\n\t\t\t},\n\n\t\t\tsave() {\n\t\t\t\tif (!this.form.contactName) {\n\t\t\t\t\tthis.showToast(\"请输入姓名\")\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tif (!this.form.contactPhone || !this.$u.test.mobile(this.form.contactPhone)) {\n\t\t\t\t\tthis.showToast(\"请输入正确手机号\")\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tif (!this.inputProportion || this.inputProportion <= 0 || this.inputProportion > 100) {\n\t\t\t\t\tthis.showToast(\"请输入合理分佣比例\")\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tlet pages = getCurrentPages();\n\t\t\t\tlet prevPage = pages[pages.length - 2];\n\t\t\t\tprevPage.$vm.otherRewardList[this.index].contactName = this.form.contactName,\n\t\t\t\tprevPage.$vm.otherRewardList[this.index].contactPhone = this.form.contactPhone,\n\t\t\t\tprevPage.$vm.otherRewardList[this.index].proportion = this.inputProportion-0,\n\t\t\t\tuni.showToast({\n\t\t\t\t\ttitle: '保存成功',\n\t\t\t\t\ticon: 'none',\n\t\t\t\t});\n\t\t\t\tsetTimeout(() => uni.navigateBack(), 1000);\n\t\t\t},\n\n\t\t\tshowToast(s) {\n\t\t\t\tuni.showToast({\n\t\t\t\t\ttitle: s,\n\t\t\t\t\ticon: 'error',\n\t\t\t\t\tduration: 1000\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t.page {\n\t\tbackground-color: #fafaff;\n\t\theight: 100%;\n\n\t\t.content {\n\t\t\tbackground-color: #FFF;\n\t\t\tpadding: 40rpx;\n\t\t}\n\n\t\t.text1 {\n\t\t\tfont-size: 40rpx;\n\t\t\tfont-family: PingFangSC-Medium, PingFang SC;\n\t\t\tfont-weight: 500;\n\t\t\tcolor: #121212;\n\t\t\tline-height: 40rpx;\n\t\t\tmargin-top: 16rpx;\n\t\t}\n\n\t\t.text2 {\n\t\t\tfont-size: 26rpx;\n\t\t\tfont-family: PingFangSC-Light, PingFang SC;\n\t\t\tfont-weight: 300;\n\t\t\tcolor: #646464;\n\t\t\tline-height: 40rpx;\n\t\t\tmargin-top: 24rpx;\n\t\t}\n\n\t\t.text3 {\n\t\t\tfont-size: 26rpx;\n\t\t\tfont-family: PingFangSC-Regular, PingFang SC;\n\t\t\tfont-weight: 400;\n\t\t\tcolor: #121212;\n\t\t\tmargin-top: 20rpx;\n\t\t}\n\n\t\t.textValue {\n\t\t\tfont-size: 34rpx;\n\t\t\tfont-family: PingFangSC-Medium, PingFang SC;\n\t\t\tfont-weight: 500;\n\t\t\tcolor: #121212;\n\t\t\tline-height: 34rpx;\n\t\t\tpadding-top: 40rpx;\n\t\t}\n\n\t\t.botBtn {\n\t\t\twidth: 100%;\n\t\t\theight: 180rpx;\n\t\t\tposition: fixed;\n\t\t\tbackground-color: #FFFFFF;\n\t\t\tbottom: 0;\n\t\t\tz-index: 99;\n\t\t\t\n\t\t\t.btn_wrap{\n\t\t\t\tpadding: 32rpx;\n\t\t\t\tdisplay: flex\n\t\t\t}\n\t\t\t\n\t\t\t.btn01 {\n\t\t\t\tflex: 1;\n\t\t\t\theight: 44px;\n\t\t\t\tbackground: #F7F7F7;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tfont-size: 17px;\n\t\t\t\tfont-weight: 500;\n\t\t\t\tcolor: #646464;\n\t\t\t\ttext-align: center;\n\t\t\t\tline-height: 44px;\n\t\t\t}\n\t\t\n\t\t\t.btn02 {\n\t\t\t\tflex: 2;\n\t\t\t\theight: 44px;\n\t\t\t\tbackground: linear-gradient(331deg, #FF5E00 0%, #FF001A 100%);\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tfont-size: 17px;\n\t\t\t\tfont-weight: 400;\n\t\t\t\tcolor: #FFFFFF;\n\t\t\t\tline-height: 17px;\n\t\t\t\ttext-align: center;\n\t\t\t\tline-height: 44px;\n\t\t\t\tmargin-left: 40rpx;\n\t\t\t}\n\t\t\n\t\t}\n\t}\n</style>\n","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./bonus-edit.vue?vue&type=style&index=0&id=254d9e6a&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./bonus-edit.vue?vue&type=style&index=0&id=254d9e6a&lang=scss&scoped=true&\""],"sourceRoot":""}