2.1.0 正式版本
Showing
4 changed files
with
35 additions
and
10 deletions
| ... | @@ -257,6 +257,26 @@ export function uploadImgCorp(tempFilePath) { | ... | @@ -257,6 +257,26 @@ export function uploadImgCorp(tempFilePath) { |
| 257 | uni.hideLoading(); | 257 | uni.hideLoading(); |
| 258 | }); | 258 | }); |
| 259 | } | 259 | } |
| 260 | //only for addVip photoUp | ||
| 261 | export function uploadImgCorpPhoto(tempFilePath) { | ||
| 262 | const imgUrl = tempFilePath | ||
| 263 | uni.showLoading({ | ||
| 264 | title: '加载中' | ||
| 265 | }); | ||
| 266 | return uni.uploadFile({ | ||
| 267 | url: config.baseUrl_api + '/upload/uploadImgToLocalServerCaiJian', | ||
| 268 | header: { | ||
| 269 | 'Authorization': uni.getStorageSync('token'), | ||
| 270 | }, | ||
| 271 | filePath: imgUrl, | ||
| 272 | name: 'image' | ||
| 273 | }).then(res => { | ||
| 274 | let data = JSON.parse(res.data); | ||
| 275 | return data | ||
| 276 | }).finally(() => { | ||
| 277 | uni.hideLoading(); | ||
| 278 | }); | ||
| 279 | } | ||
| 260 | 280 | ||
| 261 | export function getInfo(perId) { | 281 | export function getInfo(perId) { |
| 262 | return request({ | 282 | return request({ |
| ... | @@ -1182,7 +1202,8 @@ export function mentDocList(data) { | ... | @@ -1182,7 +1202,8 @@ export function mentDocList(data) { |
| 1182 | } | 1202 | } |
| 1183 | export function wdBack(yjIds) { | 1203 | export function wdBack(yjIds) { |
| 1184 | return request({ | 1204 | return request({ |
| 1185 | url: `/person/paymentDocYj/wd/${yjIds}` | 1205 | url: `/person/paymentDocYj/wd/${yjIds}`, |
| 1206 | method: 'get' | ||
| 1186 | }) | 1207 | }) |
| 1187 | } | 1208 | } |
| 1188 | // 个人会员月结缴费单 | 1209 | // 个人会员月结缴费单 | ... | ... |
| ... | @@ -5,11 +5,11 @@ | ... | @@ -5,11 +5,11 @@ |
| 5 | // staging 会员系统 | 5 | // staging 会员系统 |
| 6 | // const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/"; | 6 | // const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/"; |
| 7 | // const baseUrl_api = "http://36.153.235.222:7899/stage-api"; | 7 | // const baseUrl_api = "http://36.153.235.222:7899/stage-api"; |
| 8 | // const baseUrl_api = 'http://192.168.1.130:8787' | 8 | // const baseUrl_api = 'http://192.168.1.132:8787' |
| 9 | // const baseUrl_api = 'https://ztx.itechtop.cn/stage-api' | 9 | // const baseUrl_api = 'https://ztx.itechtop.cn/stage-api' |
| 10 | const baseUrl_api = 'https://tkcn.19wk.cn:8443/stage-api' | 10 | // const baseUrl_api = 'https://tkcn.19wk.cn:8443/stage-api' |
| 11 | 11 | ||
| 12 | // const baseUrl_api = 'https://system.taekwondo.org.cn/stage-api' | 12 | const baseUrl_api = 'https://system.taekwondo.org.cn/stage-api' |
| 13 | export default { | 13 | export default { |
| 14 | baseUrl_api | 14 | baseUrl_api |
| 15 | } | 15 | } | ... | ... |
| ... | @@ -63,7 +63,8 @@ | ... | @@ -63,7 +63,8 @@ |
| 63 | 63 | ||
| 64 | <uni-forms-item label="头像" required> | 64 | <uni-forms-item label="头像" required> |
| 65 | <uni-file-picker v-model="photoArr" @delete="delPhoto" return-type="object" limit="1" | 65 | <uni-file-picker v-model="photoArr" @delete="delPhoto" return-type="object" limit="1" |
| 66 | @select="upPhoto" :del-ico="false" :image-styles="imageStylesTx"></uni-file-picker> | 66 | @select="upPhoto" :del-ico="false" :image-styles="imageStylesTx"></uni-file-picker> |
| 67 | <image mode="aspectFill" v-if="baseFormData.photo2" style="height:200rpx;width:200rpx;" :src="config.baseUrl_api + baseFormData.photo2"/> | ||
| 67 | </uni-forms-item> | 68 | </uni-forms-item> |
| 68 | </view> | 69 | </view> |
| 69 | 70 | ||
| ... | @@ -294,8 +295,10 @@ | ... | @@ -294,8 +295,10 @@ |
| 294 | uni.showLoading({ | 295 | uni.showLoading({ |
| 295 | title: '加载中' | 296 | title: '加载中' |
| 296 | }); | 297 | }); |
| 297 | api.uploadImgCorp(resp.tempFilePath).then(data => { | 298 | api.uploadImgCorpPhoto(resp.tempFilePath).then(data => { |
| 298 | baseFormData.value.photo = data.msg; | 299 | console.log(data) |
| 300 | baseFormData.value.photo = data.data.fang; | ||
| 301 | baseFormData.value.photo2 = data.data.yuan; | ||
| 299 | photoArr.value = { | 302 | photoArr.value = { |
| 300 | url: config.baseUrl_api+baseFormData.value.photo, | 303 | url: config.baseUrl_api+baseFormData.value.photo, |
| 301 | name: '头像', | 304 | name: '头像', |
| ... | @@ -326,7 +329,8 @@ | ... | @@ -326,7 +329,8 @@ |
| 326 | 329 | ||
| 327 | function delPhoto(n) { | 330 | function delPhoto(n) { |
| 328 | photoArr.value = {}; | 331 | photoArr.value = {}; |
| 329 | baseFormData.value.photo = ''; | 332 | baseFormData.value.photo = ''; |
| 333 | baseFormData.value.photo2 = ''; | ||
| 330 | } | 334 | } |
| 331 | 335 | ||
| 332 | 336 | ... | ... |
| ... | @@ -43,9 +43,9 @@ | ... | @@ -43,9 +43,9 @@ |
| 43 | </view> | 43 | </view> |
| 44 | <view class="func"> | 44 | <view class="func"> |
| 45 | <button | 45 | <button |
| 46 | @click="handleUpdate(item)" class="miniBtn" v-if="item.settleFlag != 0">确认并上传 | 46 | @click="handleUpdate(item)" class="miniBtn" v-if="!(item.settleFlag == 0||item.payFlag == 2)">确认并上传 |
| 47 | </button> | 47 | </button> |
| 48 | <button @click="handleDownload(item)" class="miniBtn">下载缴费通知单</button> | 48 | <button v-if="item.sendFlag != 0" @click="handleDownload(item)" class="miniBtn">下载缴费通知单</button> |
| 49 | <button class="miniBtn" v-if="!(item.settleFlag==0||item.payFlag==0||item.payFlag==2)" @click="handleBack(item)">撤回</button> | 49 | <button class="miniBtn" v-if="!(item.settleFlag==0||item.payFlag==0||item.payFlag==2)" @click="handleBack(item)">撤回</button> |
| 50 | </view> | 50 | </view> |
| 51 | </view> | 51 | </view> | ... | ... |
-
Please register or sign in to post a comment