|
|
@@ -1,139 +1,140 @@
|
|
|
<template>
|
|
|
- <div class="user-content">
|
|
|
- <!-- 账户管理 -->
|
|
|
- <div class="topinfo clearfix" v-if="enterpriseInfo.enName">
|
|
|
- <div class="pull-left">
|
|
|
- 企业信息
|
|
|
- </div>
|
|
|
- <div class="pull-right" @click="updateInfo()" v-show="storeState === 'look'">
|
|
|
- <img src="/images/vendor/updateinfo.png"/>
|
|
|
- 编辑
|
|
|
- </div>
|
|
|
+ <div>
|
|
|
+ <div class="com-mobile-header">
|
|
|
+ <a @click="goLastPage"><i class="iconfont icon-fanhui"></i></a>
|
|
|
+ <p>企业信息
|
|
|
+ <span @click="updateInfo()" v-show="storeState === 'look'"><i class="iconfont icon-edit"></i>编辑</span>
|
|
|
+ </p>
|
|
|
</div>
|
|
|
- <ul class="infoul infoul2" v-if="enterpriseInfo.enName">
|
|
|
- <li class="clearfix" :class="{noupdate: storeState !== 'look'}">
|
|
|
- <div class="name pull-left" :class="{update: storeState !== 'look'}" >企业名称:</div>
|
|
|
- <div class="text pull-left" :class="{update: storeState !== 'look'}">
|
|
|
- {{enterpriseInfo.enName || '-'}}
|
|
|
- </div>
|
|
|
- </li>
|
|
|
+ <div class="user-content mobile-fix-content">
|
|
|
+ <!-- 账户管理 -->
|
|
|
+ <div class="si-wrap">
|
|
|
+ <ul class="infoul infoul2" v-if="enterpriseInfo.enName">
|
|
|
+ <li class="clearfix" :class="{noupdate: storeState !== 'look'}">
|
|
|
+ <div class="name pull-left" :class="{update: storeState !== 'look'}" >企业名称:</div>
|
|
|
+ <div class="text pull-left" :class="{update: storeState !== 'look'}">
|
|
|
+ {{enterpriseInfo.enName || '-'}}
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
|
|
|
- <li class="clearfix" :class="{noupdate: storeState !== 'look', border: storeState !== 'look'}">
|
|
|
- <div class="name pull-left" :class="{update: storeState !== 'look'}">营业执照号:</div>
|
|
|
- <div class="text pull-left" :class="{update: storeState !== 'look'}">
|
|
|
- {{enterpriseInfo.enBussinessCode || '-'}}
|
|
|
- </div>
|
|
|
- </li>
|
|
|
+ <li class="clearfix" :class="{noupdate: storeState !== 'look', border: storeState !== 'look'}">
|
|
|
+ <div class="name pull-left" :class="{update: storeState !== 'look'}">营业执照号:</div>
|
|
|
+ <div class="text pull-left" :class="{update: storeState !== 'look'}">
|
|
|
+ {{enterpriseInfo.enBussinessCode || '-'}}
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
|
|
|
- <li class="clearfix" :class="{border: storeState !== 'look'}" >
|
|
|
- <div class="name pull-left" :class="{update: storeState !== 'look'}">注册地址:</div>
|
|
|
- <div class="text pull-left" v-if="storeState === 'look'">
|
|
|
- {{enterpriseInfo.enAddress || '-'}}
|
|
|
- </div>
|
|
|
- <div v-else class="text pull-left">
|
|
|
- <input v-model="enterpriseInfo.enAddress" type="text" :disabled="enterpriseInfo.enValidCode === 2"/>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
+ <li class="clearfix" :class="{border: storeState !== 'look'}" >
|
|
|
+ <div class="name pull-left" :class="{update: storeState !== 'look'}">注册地址:</div>
|
|
|
+ <div class="text pull-left" v-if="storeState === 'look'">
|
|
|
+ {{enterpriseInfo.enAddress || '-'}}
|
|
|
+ </div>
|
|
|
+ <div v-else class="text pull-left">
|
|
|
+ <input v-model="enterpriseInfo.enAddress" type="text" :disabled="enterpriseInfo.enValidCode === 2"/>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
|
|
|
- <li class="clearfix" :class="{border: storeState !== 'look'}">
|
|
|
- <div class="name pull-left" :class="{update: storeState !== 'look'}">官网地址:</div>
|
|
|
- <div class="text pull-left" v-if="storeState === 'look'">
|
|
|
- {{enterpriseInfo.enUrl || '-'}}
|
|
|
- </div>
|
|
|
- <div v-else class="text pull-left">
|
|
|
- <input v-model="enterpriseInfo.enUrl" type="text"/>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
+ <li class="clearfix" :class="{border: storeState !== 'look'}">
|
|
|
+ <div class="name pull-left" :class="{update: storeState !== 'look'}">官网地址:</div>
|
|
|
+ <div class="text pull-left" v-if="storeState === 'look'">
|
|
|
+ {{enterpriseInfo.enUrl || '-'}}
|
|
|
+ </div>
|
|
|
+ <div v-else class="text pull-left">
|
|
|
+ <input v-model="enterpriseInfo.enUrl" type="text"/>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
|
|
|
- <li class="clearfix" :class="{border: storeState !== 'look'}">
|
|
|
- <div class="name pull-left" :class="{update: storeState !== 'look'}">所属行业:</div>
|
|
|
- <div class="text pull-left" v-if="storeState === 'look'">
|
|
|
- {{enterpriseInfo.enIndustry || '-'}}
|
|
|
- </div>
|
|
|
- <div v-else class="text pull-left clearfix" @click="isShowTypeAlert = true">
|
|
|
- <div class="text pull-left update" style="width: 4.5rem">
|
|
|
- {{enterpriseInfo.enIndustry || '-'}}
|
|
|
- </div>
|
|
|
- <div class="moreIcon pull-right">
|
|
|
- <img src="/images/store/default/moreicon.png" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
+ <li class="clearfix" :class="{border: storeState !== 'look'}">
|
|
|
+ <div class="name pull-left" :class="{update: storeState !== 'look'}">所属行业:</div>
|
|
|
+ <div class="text pull-left" v-if="storeState === 'look'">
|
|
|
+ {{enterpriseInfo.enIndustry || '-'}}
|
|
|
+ </div>
|
|
|
+ <div v-else class="text pull-left clearfix" @click="isShowTypeAlert = true">
|
|
|
+ <div class="text pull-left update" style="width: 4rem">
|
|
|
+ {{enterpriseInfo.enIndustry || '-'}}
|
|
|
+ </div>
|
|
|
+ <div class="moreIcon pull-right">
|
|
|
+ <img src="/images/store/default/moreicon.png" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
|
|
|
- <li class="clearfix" :class="{border: storeState !== 'look'}">
|
|
|
- <div class="name pull-left" :class="{update: storeState !== 'look'}" style="margin-top: 0.04rem;">经营范围:</div>
|
|
|
- <div class="text pull-left" v-if="storeState === 'look'" >
|
|
|
+ <li class="clearfix" :class="{border: storeState !== 'look'}">
|
|
|
+ <div class="name pull-left" :class="{update: storeState !== 'look'}" style="margin-top: 0.04rem;">经营范围:</div>
|
|
|
+ <div class="text pull-left" v-if="storeState === 'look'" >
|
|
|
<span v-for="item in scopeLabel" class="label">
|
|
|
{{item}}
|
|
|
</span>
|
|
|
- <span class="text pull-left nolabel" v-if="scopeLabel.length == 0">
|
|
|
+ <span class="text pull-left nolabel" v-if="scopeLabel.length == 0">
|
|
|
无标签信息
|
|
|
</span>
|
|
|
- </div>
|
|
|
- <div v-else class="text pull-left">
|
|
|
- <label v-for="item in scopeLabel" class="labelKuang" v-show="AddBtnShow">
|
|
|
+ </div>
|
|
|
+ <div v-else class="text pull-left">
|
|
|
+ <label v-for="item in scopeLabel" class="labelKuang" v-show="AddBtnShow">
|
|
|
<span class="Updatelabel">
|
|
|
{{item}}
|
|
|
</span>
|
|
|
- <span class="updatespan"@click="addBtn(item)">删除</span>
|
|
|
- </label>
|
|
|
- <span class="addBtn" v-show="AddBtnShow" @click="addBtn()"></span>
|
|
|
- <div class="commit" v-show="!AddBtnShow">
|
|
|
- <input type="text" placeholder="请输入不大于10个字符" maxlength="10" class="inputText" v-model="labelText"/>
|
|
|
- <button @click="saveLabel()">确定</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <div class="control clearfix" v-if="storeState !== 'look'">
|
|
|
- <div class="cancel" @click="storeInfosave('cancel')">取消</div>
|
|
|
- <div class="save" @click="storeInfosave()">保存</div>
|
|
|
- </div>
|
|
|
- <!-- 选择行业弹窗 -->
|
|
|
- <div class="mobile-modal" v-show="isShowTypeAlert">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="content-title">
|
|
|
- 所属行业
|
|
|
- <i class="el-icon-close" @click="isShowTypeAlert = false"></i>
|
|
|
+ <span class="updatespan"@click="addBtn(item)">删除</span>
|
|
|
+ </label>
|
|
|
+ <span class="addBtn" v-show="AddBtnShow" @click="addBtn()"></span>
|
|
|
+ <div class="commit" v-show="!AddBtnShow">
|
|
|
+ <input type="text" placeholder="请输入不大于10个字符" maxlength="10" class="inputText" v-model="labelText"/>
|
|
|
+ <button @click="saveLabel()">确定</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <div class="control clearfix" v-if="storeState !== 'look'">
|
|
|
+ <div class="cancel" @click="storeInfosave('cancel')">取消</div>
|
|
|
+ <div class="save" @click="storeInfosave()">保存</div>
|
|
|
</div>
|
|
|
- <div class="content-title-label clearfix" >
|
|
|
- <div v-for="(item, index) in ContentTitleArray" @click="chooseTitle(index)" v-if="item !== ''">
|
|
|
- <a :class="{active: index === titleActive}">{{item}}</a>
|
|
|
+ </div>
|
|
|
+ <!-- 选择行业弹窗 -->
|
|
|
+ <div class="mobile-modal" v-show="isShowTypeAlert">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="content-title">
|
|
|
+ 所属行业
|
|
|
+ <i class="el-icon-close" @click="isShowTypeAlert = false"></i>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="content-info" v-if="TypeListShow.firstListShow">
|
|
|
- <div v-for="(item, index) in TypeList.firstList" class="content-info-item" :class="{active: index === TypeListActive.firstListActive}" @click="chooseItem('firstList', item, index)" >
|
|
|
- {{item}}<img src="/images/mobile/@2x/getlabel_icon.png" v-show="index === TypeListActive.firstListActive"/>
|
|
|
+ <div class="content-title-label clearfix" >
|
|
|
+ <div v-for="(item, index) in ContentTitleArray" @click="chooseTitle(index)" v-if="item !== ''">
|
|
|
+ <a :class="{active: index === titleActive}">{{item}}</a>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="content-info" v-if="TypeListShow.secondsListShow">
|
|
|
- <div v-for="(item, index) in TypeList.secondsList" class="content-info-item" :class="{active: index === TypeListActive.secondsListActive}" @click="chooseItem('secondsList', item, index)" >
|
|
|
- {{item}}
|
|
|
- <img src="/images/mobile/@2x/getlabel_icon.png" v-show="index === TypeListActive.secondsListActive"/>
|
|
|
+ <div class="content-info" v-if="TypeListShow.firstListShow">
|
|
|
+ <div v-for="(item, index) in TypeList.firstList" class="content-info-item" :class="{active: index === TypeListActive.firstListActive}" @click="chooseItem('firstList', item, index)" >
|
|
|
+ {{item}}<img src="/images/mobile/@2x/getlabel_icon.png" v-show="index === TypeListActive.firstListActive"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="content-info" v-if="TypeListShow.threetListShow">
|
|
|
- <div v-for="(item, index) in TypeList.threetList" class="content-info-item" :class="{active: index === TypeListActive.threetListActive}" @click="chooseItem('threetList', item, index)" >
|
|
|
- {{item}}
|
|
|
- <img src="/images/mobile/@2x/getlabel_icon.png" v-show="index === TypeListActive.threetListActive"/>
|
|
|
+ <div class="content-info" v-if="TypeListShow.secondsListShow">
|
|
|
+ <div v-for="(item, index) in TypeList.secondsList" class="content-info-item" :class="{active: index === TypeListActive.secondsListActive}" @click="chooseItem('secondsList', item, index)" >
|
|
|
+ {{item}}
|
|
|
+ <img src="/images/mobile/@2x/getlabel_icon.png" v-show="index === TypeListActive.secondsListActive"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ <div class="content-info" v-if="TypeListShow.threetListShow">
|
|
|
+ <div v-for="(item, index) in TypeList.threetList" class="content-info-item" :class="{active: index === TypeListActive.threetListActive}" @click="chooseItem('threetList', item, index)" >
|
|
|
+ {{item}}
|
|
|
+ <img src="/images/mobile/@2x/getlabel_icon.png" v-show="index === TypeListActive.threetListActive"/>
|
|
|
+ </div>
|
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- /end 选择行业弹窗 -->
|
|
|
+ <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
|
|
|
+ <!--<loading v-show="isSearchSearchingMore"></loading>-->
|
|
|
+ <div v-if="enterprise && false"></div>
|
|
|
+ <div v-if="storeI && false"></div>
|
|
|
</div>
|
|
|
- <!-- /end 选择行业弹窗 -->
|
|
|
- <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
|
|
|
- <!--<loading v-show="isSearchSearchingMore"></loading>-->
|
|
|
- <div v-if="enterprise && false"></div>
|
|
|
- <div v-if="storeI && false"></div>
|
|
|
+ <!-- /end 账户管理 -->
|
|
|
</div>
|
|
|
- <!-- /end 账户管理 -->
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { RemindBox } from '~components/mobile/common'
|
|
|
export default {
|
|
|
- layout: 'mobile',
|
|
|
+ layout: 'mobileNoHeader',
|
|
|
middleware: 'authenticated',
|
|
|
fetch({store}) {
|
|
|
return Promise.all([
|
|
|
@@ -395,9 +396,21 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
+ .com-mobile-header {
|
|
|
+ i {
|
|
|
+ font-size: .36rem;
|
|
|
+ position: relative;
|
|
|
+ top: .04rem;
|
|
|
+ right: .02rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
.user-content{
|
|
|
- margin-top: 1.4rem;
|
|
|
- padding-bottom: 0.98rem;
|
|
|
+ background: #f1f3f6;
|
|
|
+ .si-wrap {
|
|
|
+ width: 7.1rem;
|
|
|
+ margin: .3rem auto;
|
|
|
+ background: #fff;
|
|
|
+ }
|
|
|
.topinfo {
|
|
|
color: #333;
|
|
|
font-size: 0.28rem;
|
|
|
@@ -415,6 +428,9 @@
|
|
|
}
|
|
|
}
|
|
|
.infoul {
|
|
|
+ color: #666;
|
|
|
+ font-size: 0.28rem;
|
|
|
+ padding: 0 .24rem;
|
|
|
.upload {
|
|
|
img {
|
|
|
transform: rotate(180deg);
|
|
|
@@ -423,8 +439,10 @@
|
|
|
color: #666;
|
|
|
font-size: 0.28rem;
|
|
|
li {
|
|
|
- padding: 0.15rem 0.05rem;
|
|
|
- line-height: 1.3;
|
|
|
+ border-bottom: 1px solid #d3d3d3;
|
|
|
+ min-height: 1.16rem;
|
|
|
+ line-height: normal;
|
|
|
+ padding: .4rem .28rem;
|
|
|
&.border {
|
|
|
border-bottom: 0.01rem solid #d9d9d9;
|
|
|
}
|
|
|
@@ -436,20 +454,21 @@
|
|
|
.name {
|
|
|
width: 1.6rem;
|
|
|
text-align: right;
|
|
|
+ color: #226ce7;
|
|
|
}
|
|
|
.text {
|
|
|
- width: 5.4rem;
|
|
|
+ width: 4.4rem;
|
|
|
}
|
|
|
.update {
|
|
|
padding: 0.06rem 0 0.06rem 0rem;
|
|
|
}
|
|
|
input {
|
|
|
- width: 5.4rem;
|
|
|
+ width: 4.4rem;
|
|
|
border: 0px solid #b4b4b4;
|
|
|
padding: 0.06rem 0 0.06rem 0.12rem;
|
|
|
}
|
|
|
textarea{
|
|
|
- width: 5.4rem;
|
|
|
+ width: 4.4rem;
|
|
|
padding: 0.06rem 0 0.06rem 0.12rem;
|
|
|
min-height: 5rem;
|
|
|
resize: none;
|
|
|
@@ -487,10 +506,10 @@
|
|
|
width: 1.7rem;
|
|
|
}
|
|
|
.text {
|
|
|
- width: 5.3rem;
|
|
|
+ width: 4.3rem;
|
|
|
}
|
|
|
input {
|
|
|
- width: 5.3rem;
|
|
|
+ width: 4.3rem;
|
|
|
}
|
|
|
.nolabel {
|
|
|
position: relative;
|