d1a46e30 by 杨炀

2.1.0 正式版本

1 parent 66b52cf9
......@@ -257,6 +257,26 @@ export function uploadImgCorp(tempFilePath) {
uni.hideLoading();
});
}
//only for addVip photoUp
export function uploadImgCorpPhoto(tempFilePath) {
const imgUrl = tempFilePath
uni.showLoading({
title: '加载中'
});
return uni.uploadFile({
url: config.baseUrl_api + '/upload/uploadImgToLocalServerCaiJian',
header: {
'Authorization': uni.getStorageSync('token'),
},
filePath: imgUrl,
name: 'image'
}).then(res => {
let data = JSON.parse(res.data);
return data
}).finally(() => {
uni.hideLoading();
});
}
export function getInfo(perId) {
return request({
......@@ -1182,7 +1202,8 @@ export function mentDocList(data) {
}
export function wdBack(yjIds) {
return request({
url: `/person/paymentDocYj/wd/${yjIds}`
url: `/person/paymentDocYj/wd/${yjIds}`,
method: 'get'
})
}
// 个人会员月结缴费单
......
......@@ -5,11 +5,11 @@
// staging 会员系统
// const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/";
// const baseUrl_api = "http://36.153.235.222:7899/stage-api";
// const baseUrl_api = 'http://192.168.1.130:8787'
// const baseUrl_api = 'http://192.168.1.132:8787'
// const baseUrl_api = 'https://ztx.itechtop.cn/stage-api'
const baseUrl_api = 'https://tkcn.19wk.cn:8443/stage-api'
// const baseUrl_api = 'https://tkcn.19wk.cn:8443/stage-api'
// const baseUrl_api = 'https://system.taekwondo.org.cn/stage-api'
const baseUrl_api = 'https://system.taekwondo.org.cn/stage-api'
export default {
baseUrl_api
}
......
......@@ -63,7 +63,8 @@
<uni-forms-item label="头像" required>
<uni-file-picker v-model="photoArr" @delete="delPhoto" return-type="object" limit="1"
@select="upPhoto" :del-ico="false" :image-styles="imageStylesTx"></uni-file-picker>
@select="upPhoto" :del-ico="false" :image-styles="imageStylesTx"></uni-file-picker>
<image mode="aspectFill" v-if="baseFormData.photo2" style="height:200rpx;width:200rpx;" :src="config.baseUrl_api + baseFormData.photo2"/>
</uni-forms-item>
</view>
......@@ -294,8 +295,10 @@
uni.showLoading({
title: '加载中'
});
api.uploadImgCorp(resp.tempFilePath).then(data => {
baseFormData.value.photo = data.msg;
api.uploadImgCorpPhoto(resp.tempFilePath).then(data => {
console.log(data)
baseFormData.value.photo = data.data.fang;
baseFormData.value.photo2 = data.data.yuan;
photoArr.value = {
url: config.baseUrl_api+baseFormData.value.photo,
name: '头像',
......@@ -326,7 +329,8 @@
function delPhoto(n) {
photoArr.value = {};
baseFormData.value.photo = '';
baseFormData.value.photo = '';
baseFormData.value.photo2 = '';
}
......
......@@ -43,9 +43,9 @@
</view>
<view class="func">
<button
@click="handleUpdate(item)" class="miniBtn" v-if="item.settleFlag != 0">确认并上传
@click="handleUpdate(item)" class="miniBtn" v-if="!(item.settleFlag == 0||item.payFlag == 2)">确认并上传
</button>
<button @click="handleDownload(item)" class="miniBtn">下载缴费通知单</button>
<button v-if="item.sendFlag != 0" @click="handleDownload(item)" class="miniBtn">下载缴费通知单</button>
<button class="miniBtn" v-if="!(item.settleFlag==0||item.payFlag==0||item.payFlag==2)" @click="handleBack(item)">撤回</button>
</view>
</view>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!