1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/taBbar/Contact/Contact"],{"0c0a":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o("76ec"),a={data:function(){return{pageData:[],banner1:"",cooperation1:[],selectPerson:!0,firstPerson:"请选择合作意向",selectArea:!1,color:"#000",showView:!1,hideView:!0,forminfo:"",name:"",phone:"",address:"",cooper:[],plan:"default",height:"700",viewButton:!0,placeholder1:"请输入姓名",placeholder2:"请输入联系方式",placeholder3:"请输入所在地",toppic:"",showhide:!1,scrollTop:0,effectPic:"",index:"",iSshow:!1,jump:"",telephone:""}},onLoad:function(){this.getap(),this.getaps()},methods:{getap:function(){var t=this,o=new Object;o.appid=e.getStorageSync("appid"),e.showLoading({title:"加载中"}),e.request({url:"https://cm.5dev.cn/applet_on/content/v1/contact.view_news",data:o,method:"GET",header:{"content-type":"application/json"},success:function(o){e.hideLoading();var n=o.data.data.cooperation,a=[];for(var i in n)a[i]=n[i]["name"];console.log(222,o.data.data.contact.tel.phone),t.cooperation1=o.data.data.cooperation,t.cooper=a,t.telephone=o.data.data.contact.tel.phone}})},getaps:function(){var t=this,o=new Object;e.request({url:"https://trade.5dev.cn/dudaowenlv/content/?api.config_news",data:o,method:"GET",header:{"content-type":"application/json"},success:function(o){console.log(3333333,o),t.toppic=o.data.data.top,t.effectPic=n.format(o.data.data.content),e.hideLoading()}})},mySelect:function(e){console.log(9999,e),this.firstPerson="",this.cooperations=this.cooperation1[e.detail.value]["id"],this.index=e.detail.value},formBindsubmit:function(t){var o=this;console.log(7777,t),console.log(8888,o.cooperations);if(o.cooperations)if(0!=t.detail.value.name.length)if(0!=t.detail.value.phone.length)if(/^1[34578]\d{9}$/.test(t.detail.value.phone)||/^(0[0-9]{2,3}\-)([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/.test(t.detail.value.phone))if(0!=t.detail.value.address.length){o.iSshow=!0;var n=new Object;n.appid=e.getStorageSync("appid"),n.name=t.detail.value.name,n.phone=t.detail.value.phone,n.address=t.detail.value.address,n.cooperation=o.cooperations,console.log(1111,o.forminfo),console.log(3333,o.name=t.detail.value.name),console.log(4444,o.phone=t.detail.value.phone),console.log(5555,o.address=t.detail.value.address),o.name=t.detail.value.name,o.phone=t.detail.value.phone,o.address=t.detail.value.address,e.request({url:"https://cm.5dev.cn/applet_on/content/v1/contact.submit",data:n,method:"GET",header:{"content-type":"application/json"},success:function(e){console.log(99999,o.forminfo),o.name="",o.phone="",o.address="",o.firstPerson="请选择合作意向",o.index="",o.cooperations="",setTimeout((function(){o.iSshow=!1}),3e3)}})}else e.showToast({title:"提示:请输入所在地!",icon:"none",duration:1e3});else e.showToast({title:"*电话格式有误,请重新输入",icon:"none",duration:1e3});else e.showToast({title:"提示:请输入电话或者手机号!",icon:"none",duration:1e3});else e.showToast({title:"提示:请输入姓名!",icon:"none",duration:1e3});else e.showToast({title:"提示:请选择合作意向!",icon:"none",duration:1e3})},dial:function(){e.makePhoneCall({phoneNumber:this.telephone})},jump1:function(){this.jump="wengao"},scrollTopFun:function(e){console.log(22222,e);console.log(9999,e.detail.scrollTop+700);e.detail.scrollTop+700>=e.detail.scrollHeight?1==this.viewButton&&(this.viewButton=!1,this.jump=""):0==this.viewButton&&(this.jump="",this.viewButton=!0)}}};t.default=a}).call(this,o("543d")["default"])},"23af":function(e,t,o){"use strict";var n=o("d0a9"),a=o.n(n);a.a},3132:function(e,t,o){"use strict";(function(e,t){var n=o("4ea4");o("a2e1");n(o("66fd"));var a=n(o("7a3e"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(a.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},"5bbb":function(e,t,o){"use strict";o.r(t);var n=o("0c0a"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},"7a3e":function(e,t,o){"use strict";o.r(t);var n=o("9c7e"),a=o("5bbb");for(var i in a)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return a[e]}))}(i);o("23af");var c=o("f0c5"),l=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=l.exports},"9c7e":function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){}));var n=function(){var e=this.$createElement;this._self._c},a=[]},d0a9:function(e,t,o){}},[["3132","common/runtime","common/vendor"]]]);
|