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
17 KiB
1 lines
17 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/channel/apply.vue?9955","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/channel/apply.vue?e7f4","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/channel/apply.vue?97f9","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/channel/apply.vue?74eb","uni-app:///user/pages/channel/apply.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","data","tipArr","text","color","buttonArr","type","title","image","channel_status","channelInd","channelList","isLoad","options","form","id","user_name","mobile","cate_id","rule","name","checkType","errorMsg","regType","lockTap","computed","primaryColor","subColor","configInfo","userInfo","location","onLoad","methods","initIndex","refresh","Promise","channelInfo","list","bg","uni","initRefresh","pickerChange","confirm","url","openType","validate","item","submit","param","msg","admin_id","salesman_id","setTimeout"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;;;AAGpD;AAC6M;AAC7M,gBAAgB,iNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC5BA;AAAA;AAAA;AAAA;AAAozB,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;ACsDx0B;AAIA;AAAA;AAAA,eACA;EACAC;EACAC;IACA;MACA;MACAC;QACA;UACAC;UACAC;QACA;UACAD;UACAC;QACA;QACA;UACAD;UACAC;QACA;UACAD;UACAC;QACA;QACA;UACAD;UACAC;QACA;QACA;UACAD;UACAC;QACA;MACA;MACAC;QACA;UACAF;UACAG;QACA;QACA;UACAH;UACAG;QACA;QACA;UACAH;UACAG;QACA;QACA;UACAH;UACAG;QACA;MACA;MACAC;QACA;QACA;QACA;QACA;QACA;MACA;MACAC;QACA;QACA;QACA;QACA;MACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAf;MACA;MACAgB;QACAC;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,EACA;MACAE;IACA;EACA;EACAC;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;EACA;EACAC;IAAA;IAAA;MAAA;QAAA;UAAA;YAAA;cACA;cACA;cAAA;cAAA,OACA;YAAA;cACA;YAAA;YAAA;cAAA;UAAA;QAAA;MAAA;IAAA;EACA;EACAC,uDACA,0DACA;IACAC;MAAA;QAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAAC;gBAAA,MASA;kBAAA;kBAAA;gBAAA;gBAAA;gBAAA,OACA;cAAA;gBAAA;gBAAA,OAEAC,0EACAC,cACA;cAAA;gBAAA;gBAAA;gBAFAC;gBAAApC;gBAGA;kBACAqC;gBACA;gBACA;gBAAA,IACArC;kBAAA;kBAAA;gBAAA;gBACA;gBAAA;cAAA;gBAGA;kBACA;gBACA;gBACA;gBACA;kBACA;gBACA;gBACAsC;kBACAhC;gBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAiC;MACA;IACA;IACAC;MACA;MACA;IACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEAjC,iBACA,OADAA;gBAEAkC;gBACA;gBACA;kBACAA;kBACAC;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAC;MACA;MACA;QACA,IACAzB,OACA0B,KADA1B;QAEAyB;MACA;MACA;MACA;IACA;IACAE;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAC;gBACAC;gBAAA,KACAA;kBAAA;kBAAA;gBAAA;gBACA;kBACA1C;gBACA;gBAAA;cAAA;gBAAA,iBAOA,uDAFA2C,0HACAC;gBAEAH;gBACAA;gBAAA,KACA;kBAAA;kBAAA;gBAAA;gBAAA;cAAA;gBACA;gBACAA;gBACA;gBAAA;gBAAA;gBAAA,OAEA;cAAA;gBACA;gBACA;kBACAzC;gBACA;gBACA6C;kBACA;kBACA;oBACAT;oBACAC;kBACA;gBACA;gBAAA;gBAAA;cAAA;gBAAA;gBAAA;gBAEAQ;kBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAGA;EAAA;AAEA;AAAA,2B","file":"user/pages/channel/apply.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './user/pages/channel/apply.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./apply.vue?vue&type=template&id=25034821&\"\nvar renderjs\nimport script from \"./apply.vue?vue&type=script&lang=js&\"\nexport * from \"./apply.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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"user/pages/channel/apply.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!./apply.vue?vue&type=template&id=25034821&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 =\n _vm.isLoad && !(_vm.channel_status != -1)\n ? _vm.channelInd != -1 && _vm.channelList.length > 0\n : null\n var g1 =\n _vm.isLoad && !(_vm.channel_status != -1) ? _vm.form.text.length : null\n var g2 =\n _vm.isLoad && !(_vm.channel_status != -1) && !(g1 > 300)\n ? _vm.form.text.length\n : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n g2: g2,\n },\n }\n )\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!./apply.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!./apply.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"apply-pages\" v-if=\"isLoad\">\r\n\t\t<view class=\"page-height\" v-if=\"channel_status != -1\">\r\n\t\t\t<abnor percent=\"150%\" @confirm=\"confirm\" @cancel=\"confirm\" :title=\"title[channel_status]\"\r\n\t\t\t\t:tip=\"tipArr[channel_status]\" :button=\"buttonArr[channel_status]\" :image=\"image[channel_status]\"\r\n\t\t\t\t:tipMax=\"channel_status == 4? '690rpx':''\"></abnor>\r\n\t\t</view>\r\n\t\t<block v-else>\r\n\t\t\t<view class=\"apply-form\">\r\n\t\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t\t<view class=\"item-text\">您的姓名</view>\r\n\t\t\t\t\t\t<input v-model=\"form.user_name\" type=\"text\" class=\"item-input flex-1\" maxlength=\"20\"\r\n\t\t\t\t\t\t\t:placeholder=\"rule[0].errorMsg\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t\t<view class=\"item-text\">手机号码</view>\r\n\t\t\t\t\t\t<input v-model=\"form.mobile\" type=\"text\" class=\"item-input flex-1\"\r\n\t\t\t\t\t\t\t:placeholder=\"rule[1].errorMsg\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t\t<view class=\"item-text\">申请渠道</view>\r\n\t\t\t\t\t\t<view class=\"item-input flex-1 text\">\r\n\t\t\t\t\t\t\t<picker @change=\"pickerChange($event)\" :value=\"channelInd\" :range=\"channelList\"\r\n\t\t\t\t\t\t\t\trange-key=\"title\">\r\n\t\t\t\t\t\t\t\t<view class=\"flex-between\" style=\"color: #A9A9A9;\">\r\n\t\t\t\t\t\t\t\t\t{{channelInd!=-1 && channelList.length > 0?channelList[channelInd].title:'请选择您能接入的渠道'}}\r\n\t\t\t\t\t\t\t\t\t<i class=\"iconfont icon-right ml-sm\" style=\"font-size: 28rpx;\"></i>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</picker>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t\t<view class=\"item-text\">备注信息</view>\r\n\t\t\t\t\t\t<input :disabled=\"true\" type=\"text\" class=\"item-input flex-1\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<textarea v-model=\"form.text\" class=\"item-textarea pd-lg\" maxlength=\"300\" placeholder=\"输入备注信息\" />\r\n\t\t\t\t\t<view class=\"text-right pb-lg pr-lg\">\r\n\t\t\t\t\t\t{{form.text.length>300?300:form.text.length}}/300\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\r\n\t\t\t<view class=\"space-max-footer\"></view>\r\n\r\n\t\t\t<fix-bottom-button @confirm=\"submit\" :text=\"[{text:'确定申请',type:'confirm',isAuth:true}]\" bgColor=\"#fff\">\r\n\t\t\t</fix-bottom-button>\r\n\t\t</block>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tmapState,\r\n\t\tmapActions,\r\n\t\tmapMutations\r\n\t} from \"vuex\"\r\n\texport default {\r\n\t\tcomponents: {},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\t// -1未申请,1审核中,2审核通过,3取消授权,4审核失败(可再次申请)\r\n\t\t\t\ttipArr: {\r\n\t\t\t\t\t'1': [{\r\n\t\t\t\t\t\ttext: '您已经成功提交申请',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\ttext: '审核将在3个工作日内出结果,请耐心等待',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'2': [{\r\n\t\t\t\t\t\ttext: '恭喜您,审核通过!',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\ttext: '您已具备渠道商资格,快去分享体验吧~',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'3': [{\r\n\t\t\t\t\t\ttext: '请联系平台管理人员询问原因',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'4': [{\r\n\t\t\t\t\t\ttext: '请联系平台管理人员询问失败原因',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}]\r\n\t\t\t\t},\r\n\t\t\t\tbuttonArr: {\r\n\t\t\t\t\t'1': [{\r\n\t\t\t\t\t\ttext: '个人中心',\r\n\t\t\t\t\t\ttype: 'cancel'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'2': [{\r\n\t\t\t\t\t\ttext: '去分享',\r\n\t\t\t\t\t\ttype: 'confirm'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'3': [{\r\n\t\t\t\t\t\ttext: '个人中心',\r\n\t\t\t\t\t\ttype: 'cancel'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'4': [{\r\n\t\t\t\t\t\ttext: '个人中心',\r\n\t\t\t\t\t\ttype: 'cancel'\r\n\t\t\t\t\t}]\r\n\t\t\t\t},\r\n\t\t\t\ttitle: {\r\n\t\t\t\t\t'-1': '申请渠道商',\r\n\t\t\t\t\t'1': '等待审核',\r\n\t\t\t\t\t'2': '',\r\n\t\t\t\t\t'3': '取消授权',\r\n\t\t\t\t\t'4': '申请失败',\r\n\t\t\t\t},\r\n\t\t\t\timage: {\r\n\t\t\t\t\t'1': 'https://lbqny.migugu.com/admin/public/apply_wait.jpg',\r\n\t\t\t\t\t'2': 'https://lbqny.migugu.com/admin/public/apply_suc.jpg',\r\n\t\t\t\t\t'3': 'https://lbqny.migugu.com/admin/public/apply_fail.jpg',\r\n\t\t\t\t\t'4': 'https://lbqny.migugu.com/admin/public/apply_fail.jpg',\r\n\t\t\t\t},\r\n\t\t\t\tchannel_status: -1,\r\n\t\t\t\tchannelInd: -1,\r\n\t\t\t\tchannelList: [],\r\n\t\t\t\tisLoad: false,\r\n\t\t\t\toptions: {},\r\n\t\t\t\tform: {\r\n\t\t\t\t\tid: 0,\r\n\t\t\t\t\tuser_name: '', //姓名 \r\n\t\t\t\t\tmobile: '', //手机号 \r\n\t\t\t\t\tcate_id: '', // 渠道\r\n\t\t\t\t\ttext: ''\r\n\t\t\t\t},\r\n\t\t\t\trule: [{\r\n\t\t\t\t\t\tname: \"user_name\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请输入您的真实姓名\",\r\n\t\t\t\t\t\tregType: 2\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"mobile\",\r\n\t\t\t\t\t\tcheckType: \"isMobile\",\r\n\t\t\t\t\t\terrorMsg: \"请输入常用手机号码\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"cate_id\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请选择您能接入的渠道\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\tlockTap: false\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\tconfigInfo: state => state.config.configInfo,\r\n\t\t\tuserInfo: state => state.user.userInfo,\r\n\t\t\tlocation: state => state.user.location,\r\n\t\t}),\r\n\t\tasync onLoad(options) {\r\n\t\t\tthis.$util.showLoading()\r\n\t\t\tthis.options = options\r\n\t\t\tawait this.initIndex()\r\n\t\t\tthis.isLoad = true\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t...mapActions(['getConfigInfo', 'getUserInfo']),\r\n\t\t\t...mapMutations(['updateUserItem']),\r\n\t\t\tasync initIndex(refresh = false) {\r\n\t\t\t\t// #ifdef H5\r\n\t\t\t\tif (!refresh && this.$jweixin.isWechat()) {\r\n\t\t\t\t\tawait this.$jweixin.initJssdk();\r\n\t\t\t\t\tthis.$jweixin.wxReady(() => {\r\n\t\t\t\t\t\tthis.$jweixin.hideOptionMenu()\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t// #endif\r\n\t\t\t\tif (!this.configInfo.id || refresh) {\r\n\t\t\t\t\tawait this.getConfigInfo()\r\n\t\t\t\t}\r\n\t\t\t\tlet [list, data] = await Promise.all([this.$api.channel.channelCateSelect(), this.$api.channel\r\n\t\t\t\t\t.channelInfo()\r\n\t\t\t\t])\r\n\t\t\t\tthis.$util.setNavigationBarColor({\r\n\t\t\t\t\tbg: this.primaryColor\r\n\t\t\t\t})\r\n\t\t\t\tthis.channelList = list\r\n\t\t\t\tif (!data.id) {\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tfor (let key in this.form) {\r\n\t\t\t\t\tthis.form[key] = data[key]\r\n\t\t\t\t}\r\n\t\t\t\tthis.channel_status = data.status\r\n\t\t\t\tif (data.status == 4 && data.sh_text) {\r\n\t\t\t\t\tthis.tipArr[4][0].text = data.sh_text\r\n\t\t\t\t}\r\n\t\t\t\tuni.setNavigationBarTitle({\r\n\t\t\t\t\ttitle: this.title[data.status]\r\n\t\t\t\t})\r\n\t\t\t\tthis.$util.hideAll()\r\n\t\t\t},\r\n\t\t\tinitRefresh() {\r\n\t\t\t\tthis.initIndex(true)\r\n\t\t\t},\r\n\t\t\tpickerChange(e, val) {\r\n\t\t\t\tthis.channelInd = e.target.value\r\n\t\t\t\tthis.form.cate_id = this.channelList[this.channelInd].id\r\n\t\t\t},\r\n\t\t\t// 个人中心/去分享\r\n\t\t\tasync confirm() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tchannel_status\r\n\t\t\t\t} = this\r\n\t\t\t\tlet url = channel_status == 2 ? `/user/pages/channel/income` : `/pages/mine`\r\n\t\t\t\tthis.$util.log(url)\r\n\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\turl,\r\n\t\t\t\t\topenType: `reLaunch`\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t//表单验证\r\n\t\t\tvalidate(param) {\r\n\t\t\t\tlet validate = new this.$util.Validate();\r\n\t\t\t\tthis.rule.map(item => {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tname,\r\n\t\t\t\t\t} = item\r\n\t\t\t\t\tvalidate.add(param[name], item);\r\n\t\t\t\t})\r\n\t\t\t\tlet message = validate.start();\r\n\t\t\t\treturn message;\r\n\t\t\t},\r\n\t\t\tasync submit() {\r\n\t\t\t\tlet param = this.$util.deepCopy(this.form)\r\n\t\t\t\tlet msg = this.validate(param);\r\n\t\t\t\tif (msg) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: msg\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlet {\r\n\t\t\t\t\tadmin_id = 0,\r\n\t\t\t\t\t\tsalesman_id = 0\r\n\t\t\t\t} = this.options\r\n\t\t\t\tparam.admin_id = admin_id\r\n\t\t\t\tparam.salesman_id = salesman_id\r\n\t\t\t\tif (this.lockTap) return\r\n\t\t\t\tthis.lockTap = true\r\n\t\t\t\tparam.text = param.text.length > 300 ? param.text.substring(0, 300) : param.text\r\n\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\ttry {\r\n\t\t\t\t\tawait this.$api.channel.applyChannel(param)\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: `提交成功`\r\n\t\t\t\t\t});\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.$util.back()\r\n\t\t\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\t\t\turl: '/user/pages/apply-result?type=3',\r\n\t\t\t\t\t\t\topenType: `redirectTo`\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}, 1000)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\t}, 2000)\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n\r\n<style lang=\"scss\">\r\n</style>"],"sourceRoot":""} |