|
@@ -39,7 +39,7 @@ Page({
|
|
|
async onLoad(){
|
|
|
const res = await enrollDetail();
|
|
|
if (res.code == 200 && res.data) {
|
|
|
- let { phone, nickname, gender, race_number, competition_image } = res.data;
|
|
|
+ let { phone, nickname, gender, race_number, competition_image,competition_image_url } = res.data;
|
|
|
this.setData({
|
|
|
formData: {
|
|
|
phone,
|
|
@@ -48,7 +48,7 @@ Page({
|
|
|
competition_image,
|
|
|
gender: gender == 0 ? '女' : '男',
|
|
|
},
|
|
|
- filePath:BASE_URL + competition_image,
|
|
|
+ filePath:competition_image_url,
|
|
|
fileType:this.getFileType(competition_image),
|
|
|
isEdit: true
|
|
|
});
|
|
@@ -232,7 +232,7 @@ Page({
|
|
|
const res = await enroll(payload);
|
|
|
if (res.code === 200) {
|
|
|
await FETCH_AND_FORMAT_USER_INFO();
|
|
|
- if (!this.data.isEdit) {
|
|
|
+ if (!this.data.isEdit && res.data.length > 0) {
|
|
|
this.setData({
|
|
|
couponInfo: res.data[0],
|
|
|
couponList:res.data,
|