dengrui/unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/businessCooperation/businessCooperation.js.map

1 line
13 KiB
Plaintext

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/businessCooperation/businessCooperation.vue?b032","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/businessCooperation/businessCooperation.vue?c247","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/businessCooperation/businessCooperation.vue?2b4e","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/businessCooperation/businessCooperation.vue?bfaf","uni-app:///pagesB/businessCooperation/businessCooperation.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,wI;AACAA,UAAU,CAACC,4BAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAA4I;AAC5I;AACuE;AACL;;;AAGlE;AACmL;AACnL,gBAAgB,uLAAU;AAC1B,EAAE,yFAAM;AACR,EAAE,0GAAM;AACR,EAAE,mHAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,8GAAU;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;AAAgsB,CAAgB,+qBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0CptB;AACA,MADA,kBACA;AACA;AACA,qBADA,EACA;AACA,oBAFA,EAEA;AACA,gBAHA,EAGA;AACA,cAJA;AAKA,eALA;AAMA,iBANA,EAMA;AACA,qBAPA;AAQA,kBARA,EAQA;AACA,gDATA;;AAWA,GAbA;AAcA,QAdA,oBAcA;AACA;AACA,GAhBA;AAiBA,QAjBA,oBAiBA;AACA;AACA,GAnBA;AAoBA;AACA;AACA;AACA;AACA;AACA;AACA,KANA,EApBA;;AA4BA;AACA,iBADA,2BACA;AACA;AACA;AACA,OAFA,EAEA,mBAFA;AAGA,KALA;AAMA,UANA,oBAMA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA,oCADA,EACA;AACA,iCAFA,EAEA;AACA,2BAHA,EAGA;AACA,8BAJA,CAIA;AAJA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCADA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oEADA,CACA;AACA,sEAFA,CAEA;AACA,sEAHA,CAGA;AACA,4EAJA,CAIA;AACA,4EALA,CAKA;AACA;AACA,qBARA,MAQA;AACA;AACA;AACA,mBAZA,EAYA,mBAZA;AAaA;AACA,eAnBA;;AAqBA;AACA,SA/BA,EA+BA,mBA/BA;AAgCA;AACA,KA5DA;AA6DA,aA7DA,uBA6DA;AACA;AACA;AACA;AACA,OAHA,EAGA,mBAHA;AAIA,KAlEA;AAmEA,aAnEA,uBAmEA;AACA;AACA,gBADA;AAEA,8BAFA;AAGA;AACA;AACA;AACA,SANA;AAOA;AACA;AACA,SATA;;AAWA,KA/EA;AAgFA,cAhFA,wBAgFA;AACA;AACA,2BADA;;AAGA,KApFA;AAqFA,UArFA,oBAqFA;AACA;AACA;AACA,KAxFA,EA5BA,E","file":"pagesB/businessCooperation/businessCooperation.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesB/businessCooperation/businessCooperation.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./businessCooperation.vue?vue&type=template&id=7925ab24&scoped=true&\"\nvar renderjs\nimport script from \"./businessCooperation.vue?vue&type=script&lang=js&\"\nexport * from \"./businessCooperation.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HbuilderX/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 \"7925ab24\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesB/businessCooperation/businessCooperation.vue\"\nexport default component.exports","export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./businessCooperation.vue?vue&type=template&id=7925ab24&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 \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./businessCooperation.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./businessCooperation.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"\">\n <!-- 使用标题栏 -->\r\n <status-nav :statusBackw=\"true\" :statusTitle=\"true\" :whereCome=\"1\" :title-val=\"'商务合作'\" :tabcolor=\"'#ffffff'\"></status-nav>\r\n <!-- 合作列表 -->\r\n <view class=\"bacb padding-zy20 posir\" :style=\"{marginTop:statusHNH+'px'}\">\r\n <view class=\"disbc flw padding-zy10 padding-sx30\">\r\n <view class=\"fon36 bold\">商务合作</view>\r\n <view class=\"fon24 margin-s10\" style=\"text-align: center;\">\r\n\t\t\t\t\t<rich-text :nodes=\"businessCon\"></rich-text>\r\n\t\t\t\t</view>\r\n </view>\r\n <view class=\"padding-zy20 margin-s20 business-box\">\r\n <input class=\"fon24 businessInput\" type=\"text\" v-model=\"name\" placeholder=\"姓名\" />\r\n </view>\r\n <view class=\"padding-zy20 margin-s20 business-box\">\r\n <input class=\"fon24 businessInput\" type=\"number\" v-model=\"phone\" maxlength=\"11\" placeholder=\"电话号码\" />\r\n </view>\r\n <view class=\"padding-zy20 margin-s20 business-box\">\r\n <input class=\"fon24 businessInput\" type=\"text\" v-model=\"company\" placeholder=\"公司名称\" />\r\n </view>\r\n <view class=\"disac padding-x40\">\r\n <view class=\" margin-s20 flexs\" style=\"\">\r\n <view @tap=\"chooseImg\" v-if=\"isChoose\" class=\"discc\" style=\"height: 159rpx;width: 159rpx;border: 1rpx dashed #9c9c9c;border-radius: 8rpx;\">\r\n <image style=\"width: 63rpx;height: 57rpx;\" src=\"/static/img/public/bussiness.png\" mode=\"\"></image>\r\n <view class=\"fon26 margin-s20\" style=\"color: #7d7b7e;\">添加图片</view>\r\n </view>\r\n <view v-else class=\"posir\" style=\"height: 159rpx;width: 159rpx;border: 1rpx dashed #FFFFFF;\">\r\n <image @tap=\"previewImg\" v-if=\"imgSrc!=''\" style=\"border-radius: 8rpx;height: 159rpx;width: 159rpx;\" :src=\"imgSrc\" mode=\"aspectFill\"></image>\r\n <image @tap=\"delimg\" class=\"posia\" style=\"width: 30rpx;height: 30rpx;right: 6rpx;top: 6rpx;\" src=\"/static/img/product/pclose.png\" mode=\"\"></image>\r\n </view>\r\n </view>\r\n <view class=\"fon24 padding-z20\" style=\"color: #727272;margin-top: -30rpx;\">请上传公司营业执照照片</view>\r\n </view>\r\n </view>\r\n <view class=\"disbc\">\r\n <button class=\"businessbtn\" :disabled=\"disabled\" @tap=\"submit\">{{btncon}}</button>\r\n </view>\r\n </view>\n</template>\n\n<script>\r\n export default {\r\n data() {\n return {\r\n\t\t\t\tbusinessCon:'',//商务合作描述\r\n isChoose:true,//是否显示照相机\r\n imgSrc:'',//选择后的图片路径\r\n name:'',\r\n phone:'',\r\n company:'',//公司名称\r\n disabled:false,\r\n btncon:'提交',//btn按钮文字\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH')\r\n }\n },\r\n\t\tonShow() {\r\n\t\t\tthis.$toolAll.tools.guoq()\r\n\t\t},\r\n onLoad() {\r\n this.businessConEv()\r\n },\r\n\t\twatch:{\r\n\t\t\timgSrc:function(newSrc,oldSrc){\r\n\t\t\t\t// console.log(newSrc);\r\n\t\t\t\tif(newSrc!=''){\r\n\t\t\t\t\tthis.uploadImg()\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n methods: {\r\n\t\t\tbusinessConEv(){//查询商务合作内容\r\n\t\t\t\tthis.$requst.post('user/business').then(res=>{\r\n\t\t\t\t\tthis.businessCon = this.$toolAll.tools.escape2Html(res.data.content)\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n submit(){//提交商务合作信息\r\n if(!this.name){\r\n this.$toolAll.tools.showToast('请输入姓名o(╥﹏╥)o')\r\n } else if(!this.phone){\r\n this.$toolAll.tools.showToast('请输入电话号码o(╥﹏╥)o')\r\n } else if(this.$toolAll.tools.isPhone(this.phone)){\r\n this.$toolAll.tools.showToast('请输入正确的电话号码o(╥﹏╥)o')\r\n } else if(!this.company){\r\n this.$toolAll.tools.showToast('请输入公司名称o(╥﹏╥)o')\r\n } else if(!this.imgSrc) {\r\n this.$toolAll.tools.showToast('请添加营业执照照片o(╥﹏╥)o')\r\n } else {\r\n this.disabled = true\r\n this.btncon = '正在提交...'\r\n\t\t\t\t\tlet paramBusiness = {\r\n\t\t\t\t\t\tcompany_name:this.company,//公司名称\r\n\t\t\t\t\t\tcontact_name:this.name,//姓名\r\n\t\t\t\t\t\tphone:this.phone,//联系电话\r\n\t\t\t\t\t\tlicense:this.imgSrc//营业执照\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// console.log(paramBusiness);\r\n\t\t\t\t\tthis.$requst.post('user/business-apply',paramBusiness).then(res=>{\r\n\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('信息提交成功(*^▽^*)')\r\n\t\t\t\t\t\t\tthis.name = ''\r\n\t\t\t\t\t\t\tthis.phone = ''\r\n\t\t\t\t\t\t\tthis.company = ''\r\n\t\t\t\t\t\t\tthis.imgSrc = ''\r\n\t\t\t\t\t\t\tthis.isChoose = true\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.setTime('','',2000)\r\n\t\t\t\t\t\t\tuni.login({\r\n\t\t\t\t\t\t\t\tprovider: 'weixin',\r\n\t\t\t\t\t\t\t\tsuccess: (res)=> {\r\n\t\t\t\t\t\t\t\t\tif (res.code) {\r\n\t\t\t\t\t\t\t\t\t\tvar params = {code:res.code}\r\n\t\t\t\t\t\t\t\t\t\tthis.$requst.post('user/wxAppletsLogin',params).then(res=>{\r\n\t\t\t\t\t\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\t\t\t\t\t\tif(res.data.token!=''){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('token',res.data.token)//缓存token\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('openid',res.data.openid)//缓存Openid\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('expire',res.data.expire)//缓存失效时间(时间戳格式)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('is_active',res.data.is_active)//是否第一次授权\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('user_type',res.data.user_type)//权限\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} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast(res.msg)\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},error=>{})\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\t\t},error=>{})\r\n }\r\n },\r\n\t\t\tuploadImg(){//获取压缩的图\r\n\t\t\t\tthis.$requst.upload('file/upload/image',{file:this.imgSrc}).then(res=>{\r\n\t\t\t\t\tthis.imgSrc = this.$http + res.data.src\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('图片上传成功(*^▽^*)')\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\n chooseImg(){\r\n uni.chooseImage({\r\n count:1,\r\n sizeType:['original'],\r\n success: (res) => {\r\n this.isChoose = false\r\n this.imgSrc = res.tempFilePaths[0]\r\n },\r\n complete: (res) => {\r\n // console.log(res);\r\n }\r\n })\r\n },\r\n previewImg(){\r\n uni.previewImage({\r\n urls:[this.imgSrc]\r\n })\r\n },\r\n delimg(){\r\n this.isChoose = true\r\n this.imgSrc = ''\r\n },\n }\n }\n</script>\n\n<style scoped>\r\n \n</style>\n"],"sourceRoot":""}