正在显示
4 个修改的文件
包含
56 行增加
和
24 行删除
@@ -85,7 +85,7 @@ | @@ -85,7 +85,7 @@ | ||
85 | }, | 85 | }, |
86 | globalData: { | 86 | globalData: { |
87 | userInfo: null, | 87 | userInfo: null, |
88 | - //baseUrl: 'http://icrgangjuren.w.brotop.cn/' | 88 | + // baseUrl: 'http://icrgangjuren.w.brotop.cn/' |
89 | baseUrl:'https://icr.gangjuren.com/' | 89 | baseUrl:'https://icr.gangjuren.com/' |
90 | } | 90 | } |
91 | } | 91 | } |
@@ -134,7 +134,7 @@ | @@ -134,7 +134,7 @@ | ||
134 | 134 | ||
135 | <view class="subshuju" @click="edifenxiangor?set_number:''" v-if="edifenxiangor">提交数据</view> | 135 | <view class="subshuju" @click="edifenxiangor?set_number:''" v-if="edifenxiangor">提交数据</view> |
136 | <!-- <view class="subshuju" v-else>提交数据</view> --> | 136 | <!-- <view class="subshuju" v-else>提交数据</view> --> |
137 | - | 137 | + <view class="tupianshangchuan" v-if="picshangchuan">图片上传中</view> |
138 | 138 | ||
139 | 139 | ||
140 | 140 | ||
@@ -163,7 +163,8 @@ | @@ -163,7 +163,8 @@ | ||
163 | id:'', | 163 | id:'', |
164 | is_share:0, | 164 | is_share:0, |
165 | fenxiangor:true, | 165 | fenxiangor:true, |
166 | - edifenxiangor:true | 166 | + edifenxiangor:true, |
167 | + picshangchuan:false | ||
167 | } | 168 | } |
168 | }, | 169 | }, |
169 | methods: { | 170 | methods: { |
@@ -178,7 +179,7 @@ | @@ -178,7 +179,7 @@ | ||
178 | // sourceType: ['camera'],//拍摄照片 | 179 | // sourceType: ['camera'],//拍摄照片 |
179 | // sourceType: '', | 180 | // sourceType: '', |
180 | success: (chooseImageRes) => { | 181 | success: (chooseImageRes) => { |
181 | - console.log(909090808080) | 182 | + this.picshangchuan=true |
182 | const tempFilePaths = chooseImageRes.tempFilePaths; | 183 | const tempFilePaths = chooseImageRes.tempFilePaths; |
183 | 184 | ||
184 | let images = tempFilePaths[0] | 185 | let images = tempFilePaths[0] |
@@ -197,11 +198,9 @@ | @@ -197,11 +198,9 @@ | ||
197 | header: head, | 198 | header: head, |
198 | // images:images | 199 | // images:images |
199 | success: (uploadFileRes) => { | 200 | success: (uploadFileRes) => { |
200 | - console.log(uploadFileRes); | ||
201 | - let data = JSON.parse(uploadFileRes.data) | ||
202 | - console.log(data) | 201 | + this.picshangchuan=false |
203 | 202 | ||
204 | - console.log('000999888',this.imglist) | 203 | + let data = JSON.parse(uploadFileRes.data) |
205 | this.imglist.push(data.data.src) | 204 | this.imglist.push(data.data.src) |
206 | } | 205 | } |
207 | }); | 206 | }); |
@@ -226,11 +225,11 @@ | @@ -226,11 +225,11 @@ | ||
226 | sourceType: ['camera'],//拍摄照片 | 225 | sourceType: ['camera'],//拍摄照片 |
227 | // sourceType: '', | 226 | // sourceType: '', |
228 | success: (chooseImageRes) => { | 227 | success: (chooseImageRes) => { |
229 | - console.log(909090808080) | 228 | + this.picshangchuan=true |
230 | const tempFilePaths = chooseImageRes.tempFilePaths; | 229 | const tempFilePaths = chooseImageRes.tempFilePaths; |
231 | 230 | ||
232 | let images = tempFilePaths[0] | 231 | let images = tempFilePaths[0] |
233 | - console.log(images) | 232 | + |
234 | let head = { | 233 | let head = { |
235 | 'token': uni.getStorageSync('token'), | 234 | 'token': uni.getStorageSync('token'), |
236 | 235 | ||
@@ -245,9 +244,9 @@ | @@ -245,9 +244,9 @@ | ||
245 | header: head, | 244 | header: head, |
246 | // images:images | 245 | // images:images |
247 | success: (uploadFileRes) => { | 246 | success: (uploadFileRes) => { |
248 | - console.log(uploadFileRes); | 247 | + this.picshangchuan=false |
249 | let data = JSON.parse(uploadFileRes.data) | 248 | let data = JSON.parse(uploadFileRes.data) |
250 | - console.log(data) | 249 | + |
251 | this.imglist.push(data.data.src) | 250 | this.imglist.push(data.data.src) |
252 | } | 251 | } |
253 | }); | 252 | }); |
@@ -568,4 +567,19 @@ | @@ -568,4 +567,19 @@ | ||
568 | line-height: 100rpx; | 567 | line-height: 100rpx; |
569 | margin: 42rpx auto; | 568 | margin: 42rpx auto; |
570 | } | 569 | } |
570 | + .tupianshangchuan{ | ||
571 | + width:200rpx; | ||
572 | + height:50rpx; | ||
573 | + background: #3E3A39; | ||
574 | + color:#fff; | ||
575 | + font-size: 24rpx; | ||
576 | + text-align: center; | ||
577 | + line-height: 50rpx; | ||
578 | + opacity: 0.5; | ||
579 | + position: absolute; | ||
580 | + border-radius: 20rpx; | ||
581 | + top:45%; | ||
582 | + left:50%; | ||
583 | + transform: translate(-50%,-50%) | ||
584 | + } | ||
571 | </style> | 585 | </style> |
@@ -53,12 +53,12 @@ | @@ -53,12 +53,12 @@ | ||
53 | <view class="yangli"> | 53 | <view class="yangli"> |
54 | <view class="yangliword">样例展示</view> | 54 | <view class="yangliword">样例展示</view> |
55 | <view class='yangliimg'> | 55 | <view class='yangliimg'> |
56 | - <view class='yitemimg'> | ||
57 | - <image src="/static/img/yangli.png"></image> | 56 | + <view class='yitemimg' v-for="(item,index) in examplearr" :key="index" @click="viewimg(index)"> |
57 | + <image :src="item"></image> | ||
58 | </view> | 58 | </view> |
59 | - <view class='yitemimg'> | 59 | + <!-- <view class='yitemimg'> |
60 | <image src="/static/img/yangli1.png"></image> | 60 | <image src="/static/img/yangli1.png"></image> |
61 | - </view> | 61 | + </view> --> |
62 | </view> | 62 | </view> |
63 | </view> | 63 | </view> |
64 | 64 | ||
@@ -108,7 +108,8 @@ | @@ -108,7 +108,8 @@ | ||
108 | upload_word: '上传图片', | 108 | upload_word: '上传图片', |
109 | upimg: '', | 109 | upimg: '', |
110 | qudingshow: true, | 110 | qudingshow: true, |
111 | - picshangchuan:false | 111 | + picshangchuan:false, |
112 | + examplearr:['https://icr.gangjuren.com/assets/img/shili1.png','https://icr.gangjuren.com/assets/img/shili2.png'] | ||
112 | } | 113 | } |
113 | }, | 114 | }, |
114 | methods: { | 115 | methods: { |
@@ -128,7 +129,9 @@ | @@ -128,7 +129,9 @@ | ||
128 | success: (chooseImageRes) => { | 129 | success: (chooseImageRes) => { |
129 | 130 | ||
130 | 131 | ||
131 | - this.picshangchuan=true | 132 | + this.picshangchuan=true; |
133 | + this.qudingshow = false; | ||
134 | + console.log('888777666555',this.qudingshow) | ||
132 | 135 | ||
133 | 136 | ||
134 | // uni.showToast({ | 137 | // uni.showToast({ |
@@ -154,7 +157,9 @@ | @@ -154,7 +157,9 @@ | ||
154 | header: head, | 157 | header: head, |
155 | // images:images | 158 | // images:images |
156 | success: (uploadFileRes) => { | 159 | success: (uploadFileRes) => { |
157 | - this.picshangchuan=false | 160 | + this.picshangchuan=false; |
161 | + this.qudingshow = true; | ||
162 | + console.log('888777666555',this.qudingshow) | ||
158 | 163 | ||
159 | // uni.hideLoading(); | 164 | // uni.hideLoading(); |
160 | 165 | ||
@@ -215,7 +220,8 @@ | @@ -215,7 +220,8 @@ | ||
215 | sourceType: ['camera'], //拍摄照片 | 220 | sourceType: ['camera'], //拍摄照片 |
216 | // sourceType: '', | 221 | // sourceType: '', |
217 | success: (chooseImageRes) => { | 222 | success: (chooseImageRes) => { |
218 | - this.picshangchuan=true | 223 | + this.picshangchuan=true; |
224 | + this.qudingshow = false | ||
219 | const tempFilePaths = chooseImageRes.tempFilePaths; | 225 | const tempFilePaths = chooseImageRes.tempFilePaths; |
220 | 226 | ||
221 | let images = tempFilePaths[0]; | 227 | let images = tempFilePaths[0]; |
@@ -234,7 +240,8 @@ | @@ -234,7 +240,8 @@ | ||
234 | header: head, | 240 | header: head, |
235 | // images:images | 241 | // images:images |
236 | success: (uploadFileRes) => { | 242 | success: (uploadFileRes) => { |
237 | - this.picshangchuan=false | 243 | + this.picshangchuan=false; |
244 | + this.qudingshow = true | ||
238 | let data = JSON.parse(uploadFileRes.data) | 245 | let data = JSON.parse(uploadFileRes.data) |
239 | console.log(data) | 246 | console.log(data) |
240 | this.upimg = data.data.src | 247 | this.upimg = data.data.src |
@@ -242,14 +249,25 @@ | @@ -242,14 +249,25 @@ | ||
242 | }); | 249 | }); |
243 | }, | 250 | }, |
244 | fail: function(err) { | 251 | fail: function(err) { |
245 | - console.log('76543221') | ||
246 | - console.log(err, "失败的回调") | 252 | + |
247 | } | 253 | } |
248 | }); | 254 | }); |
249 | 255 | ||
250 | 256 | ||
251 | 257 | ||
252 | }, | 258 | }, |
259 | + | ||
260 | + //图片预览 | ||
261 | + viewimg(index) { | ||
262 | + | ||
263 | + uni.previewImage({ | ||
264 | + current: this.examplearr[index], | ||
265 | + urls: this.examplearr, | ||
266 | + success: function(res) {}, | ||
267 | + fail: function(res) {}, | ||
268 | + complete: function(res) {}, | ||
269 | + }) | ||
270 | + }, | ||
253 | 271 | ||
254 | // 获取数管剩余时间次数 | 272 | // 获取数管剩余时间次数 |
255 | get_surplus() { | 273 | get_surplus() { |
@@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
59 | <view class="shugaunimg"> | 59 | <view class="shugaunimg"> |
60 | <image src="/static/img/suo.png"></image> | 60 | <image src="/static/img/suo.png"></image> |
61 | <view class="keshijian">剩余可用时间:{{guanshowshengyuqixian}}</view> | 61 | <view class="keshijian">剩余可用时间:{{guanshowshengyuqixian}}</view> |
62 | - <view class="remaincishu">剩余使用次数:{{shenyu.times}}次</view> | 62 | + <view class="remaincishu">剩余使用次数:{{shenyu.times}}</view> |
63 | </view> | 63 | </view> |
64 | 64 | ||
65 | <view class="shubanlist"> | 65 | <view class="shubanlist"> |
-
请 注册 或 登录 后发表评论