Commit a213b4e6 authored by zhangyanni's avatar zhangyanni

aa

parent 0f6018db
...@@ -14,9 +14,11 @@ ...@@ -14,9 +14,11 @@
"babel-plugin-component": "^1.1.1", "babel-plugin-component": "^1.1.1",
"babel-polyfill": "^6.26.0", "babel-polyfill": "^6.26.0",
"core-js": "^2.6.5", "core-js": "^2.6.5",
"cropperjs": "^1.5.6",
"echarts": "^4.5.0", "echarts": "^4.5.0",
"element-ui": "^2.11.1", "element-ui": "^2.11.1",
"es6-promise": "^4.2.8", "es6-promise": "^4.2.8",
"exif-js": "^2.3.0",
"html2canvas": "^1.0.0-rc.3", "html2canvas": "^1.0.0-rc.3",
"image-conversion": "^1.1.9", "image-conversion": "^1.1.9",
"jquery": "^3.4.1", "jquery": "^3.4.1",
......
This diff is collapsed.
<template>
<div class="hello">
<img src="../../assets/img/uploadZh.png" alt="" id="img">
<input type="file" accept="image/png,image/jpg,image/jpeg" @change="change($event)">
</div>
</template>
<script>
export default {
data () {
return {
}
},
methods : {
change( event ) {
let image = document.getElementById('img'); //预览对象
this.clip(event , {
resultObj : image,
aspectRatio : 1
})
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
img{
display: block;
width: 120px;
height: 120px;
}
h3{
text-align: center;
}
h1, h2 {
font-weight: normal;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>
...@@ -129,31 +129,33 @@ ...@@ -129,31 +129,33 @@
<el-form-item :label="$t('workPlace.basicForm.companyLogo')+':'" class="businesscard" <el-form-item :label="$t('workPlace.basicForm.companyLogo')+':'" class="businesscard"
v-if="(isAddRequire&&(companyInfo.authenticationState=='AS01'||companyInfo.authenticationState=='AS04'))||!isAddRequire"> v-if="(isAddRequire&&(companyInfo.authenticationState=='AS01'||companyInfo.authenticationState=='AS04'))||!isAddRequire">
<div class="uploadImg" style="position: relative"> <div class="uploadImg" style="position: relative">
<el-upload <!--<el-upload-->
style="height: 2rem" <!--style="height: 2rem"-->
:class="{hide:imagesIf}" <!--:class="{hide:imagesIf}"-->
class="uploadImgCircle" <!--class="uploadImgCircle"-->
name="fileUpload" <!--name="fileUpload"-->
list-type="picture-card" <!--list-type="picture-card"-->
:action=uploadHostHeader <!--:action=uploadHostHeader-->
:multiple="false" <!--:multiple="false"-->
:limit="1" <!--:limit="1"-->
:file-list="fileList" <!--:file-list="fileList"-->
:on-success="uploadComplete" <!--:on-success="uploadComplete"-->
:before-upload="handleBeforeFile" <!--:before-upload="handleBeforeFile"-->
:on-remove="handleRemove" <!--:on-remove="handleRemove"-->
> <!--&gt;-->
<i class="iconfont icon-jiahao"></i> <!--<i class="iconfont icon-jiahao"></i>-->
<p class="uploadImgTitle">{{$t("personalAuth.businessCardimg")}}</p> <!--<p class="uploadImgTitle">{{$t("personalAuth.businessCardimg")}}</p>-->
</el-upload> <!--</el-upload>-->
<img v-if="isimages" src="../../../assets/img/bigBusiness@2x.png" <uploadCmpt></uploadCmpt>
style="width: 98px;height: 98px;position: absolute;left: 1px;top: 1px;border-radius: 6px;">
<div style="position: absolute;left: 2.3rem;top: 0px;width: 4rem;line-height: 0.3rem;text-align: left"> <!--<img v-if="isimages" src="../../../assets/img/bigBusiness@2x.png"-->
<p style="line-height: 0.4rem;font-size: 0.24rem;margin-bottom: 0.6rem"> <!--style="width: 98px;height: 98px;position: absolute;left: 1px;top: 1px;border-radius: 6px;">-->
{{$t("workPlace.basicForm.imgLogoTitle")}}</p> <!--<div style="position: absolute;left: 2.3rem;top: 0px;width: 4rem;line-height: 0.3rem;text-align: left">-->
<span style="border: 1px solid #5D78FF;color: #5D78FF;padding: 6px 20px;border-radius: 3px" <!--<p style="line-height: 0.4rem;font-size: 0.24rem;margin-bottom: 0.6rem">-->
@click="submitUpload">{{$t('releasejson.replaceLogoUrl')}}</span> <!--{{$t("workPlace.basicForm.imgLogoTitle")}}</p>-->
</div> <!--<span style="border: 1px solid #5D78FF;color: #5D78FF;padding: 6px 20px;border-radius: 3px"-->
<!--@click="submitUpload">{{$t('releasejson.replaceLogoUrl')}}</span>-->
<!--</div>-->
</div> </div>
<span class="errorText" v-if="isShowErrorText1">{{$t("workPlace.basicForm.emptyLogo")}}</span> <span class="errorText" v-if="isShowErrorText1">{{$t("workPlace.basicForm.emptyLogo")}}</span>
<span class="errorText" v-if="isShowErrorText2">{{$t("personalAuth.errorformatCard")}}</span> <span class="errorText" v-if="isShowErrorText2">{{$t("personalAuth.errorformatCard")}}</span>
...@@ -288,11 +290,12 @@ ...@@ -288,11 +290,12 @@
import publicFunc from '../../../common/public'; import publicFunc from '../../../common/public';
import {Toast, MessageBox} from 'mint-ui'; import {Toast, MessageBox} from 'mint-ui';
import userKnow from '../../../components/common/userKnow'; import userKnow from '../../../components/common/userKnow';
import uploadCmpt from '../../../components/common/phoneUploadCmpt';
export default { export default {
name: "add", name: "add",
components: { components: {
userKnow userKnow,
uploadCmpt
}, },
data() { data() {
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment