|
@@ -63,7 +63,7 @@
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
|
|
|
- <view class="inputbox" style="display: flex;width: 70vw;height: 90upx;position: absolute;bottom:500upx;">
|
|
|
+ <view class="inputbox" style="display: flex;width: 70vw;height: 90upx;position: absolute;bottom:250upx;">
|
|
|
<view style="display: flex;align-items: center;justify-content: center;width: 5%;position: relative;">
|
|
|
<image @click="onclickchooseImg()" src="../../static/img_upload.png" style="width: 65upx;height: 65upx;"></image>
|
|
|
</view>
|
|
@@ -94,10 +94,8 @@
|
|
|
<view style="color: white;margin-right: 10upx;">导入图片</view>
|
|
|
<image src="../../static/import-img.png" style="width: 60upx;height: 60upx;"></image>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
- // v-if="is_show_import_img_view==true"
|
|
|
- <view v-if="false" style=" display: flex; height: 100vh; position: absolute;top: 0;width: 500upx;background-color:#24BF74;">
|
|
|
+
|
|
|
+ <view v-if="is_show_import_img_view==true" style=" display: flex; height: 100vh; position: absolute;top: 0;width: 500upx;background-color:#24BF74;">
|
|
|
<view style="width: 100%;;">
|
|
|
<view @click="onFileInput" style="display: flex;align-items: center;justify-content: center;margin-top: 5%;center;margin-bottom: 5%;">
|
|
|
<image :src="cur_select_img" style="width: 100upx;height: 100upx;"></image>
|
|
@@ -129,9 +127,9 @@
|
|
|
|
|
|
</view>
|
|
|
|
|
|
- <view v-if="choose_img_tempFilePath != ''" style="position: fixed; top: 480px; left: 20%; width: 130px; height: 90px;">
|
|
|
+ <view v-if="choose_img_tempFilePath != ''" style="position: fixed; top: 525px; left: 20%; width: 130px; height: 90px;">
|
|
|
<view style="position: absolute; top: 10px; width: 120px; height: 80px; background-color: #111111;">
|
|
|
- <image style="width: 100%; height: 100%;" :src="choose_img_tempFilePath" mode="aspectFill"></image>
|
|
|
+ <image style="width: 100%; height: 100%;" :src="choose_img_tempFilePath" mode="aspectFill" @click="onclickPreviewChooseImg"></image>
|
|
|
</view>
|
|
|
<view style="position: absolute; right: 0; width: 30px; height: 30px;" @click="onclickDeleteChooseImg">
|
|
|
<image style="margin-left: 10px; width: 20px; height: 20px;" src="../../static/img_jian.png" mode="aspectFit"></image>
|
|
@@ -629,6 +627,20 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ onclickPreviewChooseImg() {
|
|
|
+ let img_url = this.choose_img_tempFilePath
|
|
|
+ if(img_url) {
|
|
|
+ uni.previewImage({
|
|
|
+ urls:[img_url]
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ icon:'error',
|
|
|
+ title:'预览图片失败',
|
|
|
+ duration:2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
onclickDeleteChooseImg() {
|
|
|
let self = this
|
|
|
uni.showModal({
|