...
|
...
|
@@ -53,12 +53,12 @@ |
|
|
<view class="yangli">
|
|
|
<view class="yangliword">样例展示</view>
|
|
|
<view class='yangliimg'>
|
|
|
<view class='yitemimg'>
|
|
|
<image src="/static/img/yangli.png"></image>
|
|
|
<view class='yitemimg' v-for="(item,index) in examplearr" :key="index" @click="viewimg(index)">
|
|
|
<image :src="item"></image>
|
|
|
</view>
|
|
|
<view class='yitemimg'>
|
|
|
<!-- <view class='yitemimg'>
|
|
|
<image src="/static/img/yangli1.png"></image>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
|
...
|
...
|
@@ -108,7 +108,8 @@ |
|
|
upload_word: '上传图片',
|
|
|
upimg: '',
|
|
|
qudingshow: true,
|
|
|
picshangchuan:false
|
|
|
picshangchuan:false,
|
|
|
examplearr:['https://icr.gangjuren.com/assets/img/shili1.png','https://icr.gangjuren.com/assets/img/shili2.png']
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
...
|
...
|
@@ -128,7 +129,9 @@ |
|
|
success: (chooseImageRes) => {
|
|
|
|
|
|
|
|
|
this.picshangchuan=true
|
|
|
this.picshangchuan=true;
|
|
|
this.qudingshow = false;
|
|
|
console.log('888777666555',this.qudingshow)
|
|
|
|
|
|
|
|
|
// uni.showToast({
|
...
|
...
|
@@ -154,7 +157,9 @@ |
|
|
header: head,
|
|
|
// images:images
|
|
|
success: (uploadFileRes) => {
|
|
|
this.picshangchuan=false
|
|
|
this.picshangchuan=false;
|
|
|
this.qudingshow = true;
|
|
|
console.log('888777666555',this.qudingshow)
|
|
|
|
|
|
// uni.hideLoading();
|
|
|
|
...
|
...
|
@@ -215,7 +220,8 @@ |
|
|
sourceType: ['camera'], //拍摄照片
|
|
|
// sourceType: '',
|
|
|
success: (chooseImageRes) => {
|
|
|
this.picshangchuan=true
|
|
|
this.picshangchuan=true;
|
|
|
this.qudingshow = false
|
|
|
const tempFilePaths = chooseImageRes.tempFilePaths;
|
|
|
|
|
|
let images = tempFilePaths[0];
|
...
|
...
|
@@ -234,7 +240,8 @@ |
|
|
header: head,
|
|
|
// images:images
|
|
|
success: (uploadFileRes) => {
|
|
|
this.picshangchuan=false
|
|
|
this.picshangchuan=false;
|
|
|
this.qudingshow = true
|
|
|
let data = JSON.parse(uploadFileRes.data)
|
|
|
console.log(data)
|
|
|
this.upimg = data.data.src
|
...
|
...
|
@@ -242,8 +249,7 @@ |
|
|
});
|
|
|
},
|
|
|
fail: function(err) {
|
|
|
console.log('76543221')
|
|
|
console.log(err, "失败的回调")
|
|
|
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -251,6 +257,18 @@ |
|
|
|
|
|
},
|
|
|
|
|
|
//图片预览
|
|
|
viewimg(index) {
|
|
|
|
|
|
uni.previewImage({
|
|
|
current: this.examplearr[index],
|
|
|
urls: this.examplearr,
|
|
|
success: function(res) {},
|
|
|
fail: function(res) {},
|
|
|
complete: function(res) {},
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// 获取数管剩余时间次数
|
|
|
get_surplus() {
|
|
|
let t = this;
|
...
|
...
|
|