|
@@ -20,7 +20,12 @@ var registerPage = new Vue({
|
|
|
firstShopType:'',
|
|
|
secondShopType: '',
|
|
|
mainProduct:'',
|
|
|
- isAgreed:1
|
|
|
+ isAgreed:1,
|
|
|
+ website:'', //公司网址
|
|
|
+ wxOfficialAccount:'',//微信公众号
|
|
|
+ wxApplets:'',//微信小程序
|
|
|
+ mainProductDesc:'',
|
|
|
+ shopDesc:'',
|
|
|
},
|
|
|
isAgree:true,
|
|
|
isShowAgree:false,
|
|
@@ -69,6 +74,11 @@ var registerPage = new Vue({
|
|
|
_this.supplierUser.cityId = shop.cityId;
|
|
|
_this.supplierUser.townId= shop.townId;
|
|
|
_this.supplierUser.address = shop.address;
|
|
|
+ _this.supplierUser.website = shop.website;
|
|
|
+ _this.supplierUser.wxOfficialAccount = shop.wxOfficialAccount;
|
|
|
+ _this.supplierUser.wxApplets = shop.wxApplets;
|
|
|
+ _this.supplierUser.mainProductDesc = shop.mainProductDesc;
|
|
|
+ _this.supplierUser.shopDesc = shop.shopDesc;
|
|
|
_this.supplierUser.socialCreditCode = shop.socialCreditCode;
|
|
|
_this.supplierUser.businessLicense = shop.businessLicense;
|
|
|
_this.supplierUser.firstShopType = shop.firstShopType;
|
|
@@ -99,10 +109,6 @@ var registerPage = new Vue({
|
|
|
if (_self.loginLoading) { return false; }
|
|
|
this.$nextTick(function() {
|
|
|
if (!pass) {return false;}
|
|
|
- if (!_self.isAgree){
|
|
|
- _self.isShowAgree = true;
|
|
|
- return;
|
|
|
- }
|
|
|
if(_self.supplierUser.townId == 0 || _self.supplierUser.address==''){
|
|
|
_self.flagshow = true;
|
|
|
setTimeout(function () {
|
|
@@ -125,6 +131,18 @@ var registerPage = new Vue({
|
|
|
$('#secondShopType').siblings('.errTips').text('请选择主营内容').addClass("show");
|
|
|
return false;
|
|
|
}
|
|
|
+ if(_self.supplierUser.website!=''){
|
|
|
+ var WebRegExp = new RegExp(/^((http|ftp|https):\/\/[a-zA-Z0-9]|[a-zA-Z0-9])[-a-zA-Z0-9]{0,62}(.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+.?$/);
|
|
|
+ if (!WebRegExp.test(_self.supplierUser.website)) {
|
|
|
+ $('#website').parent().addClass("error");
|
|
|
+ $('#website').siblings('.errTips').text('请填写正确的网址').addClass("show");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!_self.isAgree){
|
|
|
+ _self.isShowAgree = true;
|
|
|
+ return;
|
|
|
+ }
|
|
|
_self.loginLoading = true;
|
|
|
_self.supplierUser.mainProduct = _self.shopMainPros.join("/");
|
|
|
UserApi.UpdateCompanyInfo(_self.supplierUser,function (response) {
|