|
@@ -4,39 +4,39 @@
|
|
|
<view class="register-main" v-if="isRegisterStep">
|
|
|
<view class="main-form-item">
|
|
|
<view class="form-label">联系人</view>
|
|
|
- <input class="form-input" type="text" name="input" v-model="params.linkMan" placeholder="请输入联系姓名" maxlength="6"/>
|
|
|
+ <input class="form-input" type="text" name="input" v-model.trim="params.linkMan" placeholder="请输入联系姓名" maxlength="6"/>
|
|
|
</view>
|
|
|
<view class="main-form-item">
|
|
|
<view class="form-label">手机号</view>
|
|
|
- <input class="form-input phone" type="text" v-model="params.bindMobile" placeholder="请输入联系人手机号" maxlength="11"/>
|
|
|
+ <input class="form-input phone" type="text" v-model.trim="params.bindMobile" placeholder="请输入联系人手机号" maxlength="11"/>
|
|
|
<view class="form-btn" @click.stop="CheckMobile()">检测</view>
|
|
|
</view>
|
|
|
<view class="main-form-item">
|
|
|
<view class="form-label">邮箱</view>
|
|
|
- <input class="form-input" type="text" name="input" v-model="params.contractEmail" placeholder="请输入机构邮箱地址" maxlength="30"/>
|
|
|
+ <input class="form-input" type="text" name="input" v-model.trim="params.contractEmail" placeholder="请输入机构邮箱地址" maxlength="30"/>
|
|
|
</view>
|
|
|
<view class="main-form-item">
|
|
|
<view class="form-label">机构名称</view>
|
|
|
- <input class="form-input" type="text" name="input" v-model="params.name" placeholder="请输入机构名称" maxlength="30"/>
|
|
|
+ <input class="form-input" type="text" name="input" v-model.trim="params.name" placeholder="请输入机构名称" maxlength="30"/>
|
|
|
</view>
|
|
|
<view class="main-form-item">
|
|
|
<view class="form-label">机构简称</view>
|
|
|
- <input class="form-input" type="text" name="input" v-model="params.shortName" placeholder="请输入机构简称" maxlength="10"/>
|
|
|
+ <input class="form-input" type="text" name="input" v-model.trim="params.shortName" placeholder="请输入机构简称" maxlength="10"/>
|
|
|
</view>
|
|
|
<view class="main-form-item" @click="showMulLinkageThreePicker">
|
|
|
<view class="form-label">机构地址</view>
|
|
|
<view class="form-input"
|
|
|
- :class="params.address === '请选择机构所在地区' ? 'none' : ''">
|
|
|
- {{params.address}}
|
|
|
+ :class="addressText === '请选择机构所在地区' ? 'none' : ''">
|
|
|
+ {{addressText}}
|
|
|
</view>
|
|
|
<view class="iconfont icon-xiayibu"></view>
|
|
|
</view>
|
|
|
<view class="main-form-item textarea">
|
|
|
- <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus">{{params.addressDetail ? params.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
|
|
|
+ <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus">{{params.address ? params.address :'详细地址:如道路、门牌号、小区等'}}</view>
|
|
|
<textarea v-else
|
|
|
class="textarea"
|
|
|
type="text"
|
|
|
- v-model="params.addressDetail"
|
|
|
+ v-model="params.address"
|
|
|
placeholder="详细地址:如道路、门牌号、小区等"
|
|
|
placeholder-class="placeholder"
|
|
|
maxlength="35"
|
|
@@ -111,7 +111,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="main-form-item none" v-if="isDepartment">
|
|
|
+ <view class="main-form-item none" v-if="params.secondClubType == 2 || params.secondClubType == 3">
|
|
|
<view class="form-label none">科室</view>
|
|
|
<textarea class="textarea-ke" placeholder="请填写经营的科室,至少三个,用逗号隔开" placeholder-style="placeholder" v-model="params.department" maxlength="16"></textarea>
|
|
|
</view>
|
|
@@ -183,7 +183,7 @@
|
|
|
</view>
|
|
|
<view class="main-form-item">
|
|
|
<view class="form-label">机构地址</view>
|
|
|
- <view class="form-input">{{ clubInfo.addressDetail }}</view>
|
|
|
+ <view class="form-input">{{ clubInfo.provincialAddress }}</view>
|
|
|
</view>
|
|
|
<view class="main-form-item">
|
|
|
<view class="form-textarea">{{ clubInfo.address }}</view>
|
|
@@ -222,7 +222,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="main-form-item" v-if="clubInfo.secondClubType == 2">
|
|
|
+ <view class="main-form-item" v-if="clubInfo.secondClubType == 2 || clubInfo.secondClubType == 3">
|
|
|
<view class="form-label">科室</view>
|
|
|
<view class="form-text">{{ clubInfo.department }}</view>
|
|
|
</view>
|
|
@@ -236,23 +236,31 @@
|
|
|
</view>
|
|
|
<view class="register-fiexd clearfix" :style="{paddingBottom:isIphoneX ? '68rpx':''}">
|
|
|
<view class="register-row">
|
|
|
- <button open-type="share" class="register-btn sub" @tap="ShareRegister">分享</button>
|
|
|
+ <button class="register-btn sub" @tap="ShareRegister">分享</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!-- 地址Pciker -->
|
|
|
<city-Picker :themeColor="themeColor"
|
|
|
ref="CityPicker"
|
|
|
:pickerValueDefault="cityPickerValueDefault"
|
|
|
@onCancel="onCancel"
|
|
|
@onConfirm="onConfirm">
|
|
|
</city-Picker>
|
|
|
+ <!-- 分享弹窗 -->
|
|
|
+ <shareModel v-if="isShareModal" :orderID="clubInfo.userId" @shareConfirm ='onShareAppMessage'></shareModel>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+
|
|
|
import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
|
|
|
+ import shareModel from '@/components/cm-module/modelAlert/shareModel.vue' //分享弹窗
|
|
|
import { uploadFileImage } from "@/api/utils.js"
|
|
|
export default{
|
|
|
+ components:{
|
|
|
+ shareModel
|
|
|
+ },
|
|
|
data() {
|
|
|
return{
|
|
|
isRegisterStep:true,
|
|
@@ -260,11 +268,13 @@
|
|
|
isCheck:false,
|
|
|
clubUserId:0,
|
|
|
isShowInput:true,
|
|
|
+ isShareModal:false,
|
|
|
isDepartment:false,
|
|
|
textareaFocus:false,
|
|
|
beautyList:beautyList,
|
|
|
mentuzCampList:mentuzCampNullList,
|
|
|
medicaCampList:medicaCampNullList,
|
|
|
+ addressText:'请选择机构所在地区',
|
|
|
params:{
|
|
|
userId:0,
|
|
|
name:'',
|
|
@@ -274,7 +284,6 @@
|
|
|
contractEmail:'',
|
|
|
socialCreditCode:'',
|
|
|
isAgreed:0,
|
|
|
- address:'请选择机构所在地区',
|
|
|
townId:'', //区ID
|
|
|
cityId:'', //区ID
|
|
|
provinceId:'', //区ID
|
|
@@ -375,7 +384,7 @@
|
|
|
this.$util.msg('请选择机构地址',2000);
|
|
|
return
|
|
|
}
|
|
|
- if( this.params.addressDetail == ''){
|
|
|
+ if( this.params.address == ''){
|
|
|
this.$util.msg('请填写机构详细地址',2000);
|
|
|
return
|
|
|
}
|
|
@@ -432,14 +441,8 @@
|
|
|
this.$util.msg(error.msg,2000)
|
|
|
})
|
|
|
},
|
|
|
- ShareRegister(res){
|
|
|
- if (res.from === 'button') { // 来自页面内转发按钮
|
|
|
- }
|
|
|
- return {
|
|
|
- title: '您已注册采美365网,请点击登录',
|
|
|
- path: `/pages/login/binding?userId=${this.clubInfo.userId}`,
|
|
|
- imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
|
|
|
- }
|
|
|
+ ShareRegister(){//点击分享
|
|
|
+ this.isShareModal = true
|
|
|
},
|
|
|
agreeCheck() {//勾选协议
|
|
|
this.isCheck = !this.isCheck
|
|
@@ -462,11 +465,11 @@
|
|
|
this.textareaFocus = false
|
|
|
},
|
|
|
onTextareaInput(e){//地址详细信息
|
|
|
- this.params.addressDetail = e.detail.value;
|
|
|
+ this.params.address = e.detail.value;
|
|
|
},
|
|
|
onConfirm(e) {//获取选择的地址信息
|
|
|
console.log('地址',e);
|
|
|
- this.params.address = e.name;
|
|
|
+ this.addressText = e.name;
|
|
|
this.params.townId = e.townCode;
|
|
|
this.params.cityId = e.cityCode;
|
|
|
this.params.provinceId = e.provinceCode;
|
|
@@ -608,6 +611,7 @@
|
|
|
},
|
|
|
},
|
|
|
onShareAppMessage(res){//分享转发
|
|
|
+ this.isShareModal = false
|
|
|
if (res.from === 'button') { // 来自页面内转发按钮
|
|
|
}
|
|
|
return {
|