|
|
@@ -4,8 +4,11 @@
|
|
|
请提供相关截图及描述,以便上级审核(最多两张)
|
|
|
</view>
|
|
|
<view class="upload-box">
|
|
|
- <view class="upload-img">
|
|
|
- <image src="../../static/img/upload.png" mode=""></image>
|
|
|
+ <view class="upload-img flex">
|
|
|
+ <image src="../../static/img/upload.png" mode="" v-if="!imgone" @click="upimg('imgone')"></image>
|
|
|
+ <image :src="imgone" mode="" v-if="imgone" @click="upimg('imgone')"></image>
|
|
|
+ <image src="../../static/img/upload.png" mode="" v-if="!imgtow" @click="upimg('imgtow')"></image>
|
|
|
+ <image :src="imgtow" mode="" v-if="imgtow" @click="upimg('imgtow')"></image>
|
|
|
</view>
|
|
|
<view class="fenge"></view>
|
|
|
<view class="upload-content">
|
|
|
@@ -17,23 +20,33 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="submit">
|
|
|
+ <view class="submit" @click="sub">
|
|
|
提交
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
- import {
|
|
|
- upload
|
|
|
- } from '@/api/user.js'
|
|
|
+
|
|
|
+ import { uploads } from '@/api/user.js';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ imgone: '',
|
|
|
+ imgtow: '',
|
|
|
}
|
|
|
},
|
|
|
- mrthods: {
|
|
|
-
|
|
|
+ methods: {
|
|
|
+ upimg(name) {
|
|
|
+ uploads({
|
|
|
+ filename: ''
|
|
|
+ }).then(res => {
|
|
|
+ console.log(res,'++++++++++++++++')
|
|
|
+ this.$set(this,name,res[0].fullurl)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ sub() {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
@@ -61,15 +74,15 @@
|
|
|
height: 450rpx;
|
|
|
background-color: #15130F;
|
|
|
|
|
|
- .upload-img {
|
|
|
+ .upload-img {
|
|
|
+ justify-content: flex-start;
|
|
|
margin: 30rpx;
|
|
|
padding-top: 30rpx;
|
|
|
- width: 160rpx;
|
|
|
height: 190rpx;
|
|
|
-
|
|
|
image {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
+ width: 160rpx;
|
|
|
+ height: 100%;
|
|
|
+ margin-right: 15rpx;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -81,9 +94,10 @@
|
|
|
.describe {
|
|
|
display: flex;
|
|
|
|
|
|
- margin: 20rpx 30rpx;
|
|
|
+ padding: 20rpx 30rpx;
|
|
|
|
|
|
- .title {
|
|
|
+ .title {
|
|
|
+ width: 150rpx;
|
|
|
font-size: 28rpx;
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: 500;
|