|
|
@@ -35,8 +35,10 @@
|
|
|
<view>上传图片:</view>
|
|
|
<view class="update_container card upload-parent-box">
|
|
|
<view class="update_button display-flex">
|
|
|
- <view class="display-flex upload-box" @click="getImage('album')">
|
|
|
- <img src="/static/appeal/photo.png" />
|
|
|
+ <view class="upload-box" @click="getImage('album')">
|
|
|
+ <view class="img">
|
|
|
+ <image src="/static/appeal/photo.png" class="photo"></image>
|
|
|
+ </view>
|
|
|
<view class="txt">上传</view>
|
|
|
</view>
|
|
|
<view
|
|
|
@@ -88,13 +90,13 @@ export default {
|
|
|
array: [{ name: "供需" }, { name: "需求" }],
|
|
|
index: 0,
|
|
|
supplyInfo: {
|
|
|
- title: uni.getStorageSync('supply_title') || '',
|
|
|
- msg: uni.getStorageSync('supply_msg') || '',
|
|
|
+ title: "",
|
|
|
+ msg: "",
|
|
|
},
|
|
|
company: {
|
|
|
- name: uni.getStorageSync('supply_name') || '',
|
|
|
- code: uni.getStorageSync('supply_code') || '',
|
|
|
- tel: uni.getStorageSync('supply_tel') || '',
|
|
|
+ name: uni.getStorageSync("supply_name") || "",
|
|
|
+ code: uni.getStorageSync("supply_code") || "",
|
|
|
+ tel: uni.getStorageSync("supply_tel") || "",
|
|
|
},
|
|
|
uploadList: [],
|
|
|
imgIdList: [],
|
|
|
@@ -107,13 +109,11 @@ export default {
|
|
|
this.company.code === "" ||
|
|
|
this.company.tel === ""
|
|
|
) {
|
|
|
- uni.showToast(
|
|
|
- {
|
|
|
- title: "企业信息不完善",
|
|
|
- icon:'error'
|
|
|
- }
|
|
|
- );
|
|
|
- return
|
|
|
+ uni.showToast({
|
|
|
+ title: "企业信息不完善",
|
|
|
+ icon: "error",
|
|
|
+ });
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
let md5Sign = md5(
|
|
|
@@ -155,11 +155,9 @@ export default {
|
|
|
icon: "none",
|
|
|
duration: 2500,
|
|
|
});
|
|
|
- uni.setStorageSync('supply_name',this.company.name);
|
|
|
- uni.setStorageSync('supply_code',this.company.code);
|
|
|
- uni.setStorageSync('supply_tel',this.company.tel);
|
|
|
- uni.setStorageSync('supply_title',this.supplyInfo.title);
|
|
|
- uni.setStorageSync('supply_msg',this.supplyInfo.msg);
|
|
|
+ uni.setStorageSync("supply_name", this.company.name);
|
|
|
+ uni.setStorageSync("supply_code", this.company.code);
|
|
|
+ uni.setStorageSync("supply_tel", this.company.tel);
|
|
|
setTimeout(() => {
|
|
|
uni.navigateBack({});
|
|
|
}, 2500);
|
|
|
@@ -267,14 +265,16 @@ export default {
|
|
|
padding-left: 20rpx;
|
|
|
}
|
|
|
.upload-box {
|
|
|
+ display: flex;
|
|
|
+ flex-flow: column;
|
|
|
width: 25%;
|
|
|
background-color: #e0e0e0;
|
|
|
- height: 110rpx;
|
|
|
+ height: 140rpx;
|
|
|
border-radius: 10rpx;
|
|
|
padding-top: 15rpx;
|
|
|
- img {
|
|
|
- width: 60rpx;
|
|
|
- height: 60rpx;
|
|
|
+ image {
|
|
|
+ width: 60rpx !important;
|
|
|
+ height: 60rpx !important;
|
|
|
}
|
|
|
}
|
|
|
.upload-box-photo {
|
|
|
@@ -363,12 +363,33 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .upload-box {
|
|
|
+ width: 25%;
|
|
|
+ background-color: #e0e0e0;
|
|
|
+ height: 110rpx;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ padding-top: 15rpx;
|
|
|
+ }
|
|
|
+ .upload-box-photo {
|
|
|
+ width: 25%;
|
|
|
+ height: 110rpx;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ padding-top: 15rpx;
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+ .del-icon {
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ width: 30rpx;
|
|
|
+ height: 30rpx;
|
|
|
+ }
|
|
|
image {
|
|
|
- width: 100rpx;
|
|
|
- height: 100rpx;
|
|
|
+ width: 60rpx;
|
|
|
+ height: 60rpx;
|
|
|
}
|
|
|
.update_button {
|
|
|
text-align: center;
|
|
|
+ display: flex;
|
|
|
}
|
|
|
}
|
|
|
.info {
|