From de25112d4020ccb216fcd9e99ec8d3e145c978b3 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Mon, 22 Jul 2024 16:37:04 +0800
Subject: [PATCH] 7.22更改
---
src/api/my.js | 2
src/components/constract/PerpetualContract/positionCom/currentPosition.vue | 2
src/views/my/components/identityAuthenty.vue | 42 ++++---
src/views/my/components/manualReset.vue | 28 +++--
jysPc6.8.zip | 0
src/api/currency.js | 2
src/views/login/step2/idSet.vue | 38 ++++---
src/components/constract/DeliveryContract/DetailDialog.vue | 136 ++++++++++++++++++--------
src/components/constract/DeliveryContract/createOrder.vue | 7 +
src/components/constract/index.vue | 4
src/i18n/en/jiaoyi.js | 2
src/components/constract/DeliveryContract/position.vue | 5
src/api/etf.js | 4
src/components/constract/PerpetualContract/createOrder.vue | 12 +-
src/components/constract/PerpetualContract/positionCom/historyOrder.vue | 2
15 files changed, 181 insertions(+), 105 deletions(-)
diff --git a/pc6.8.zip b/jysPc6.8.zip
similarity index 79%
rename from pc6.8.zip
rename to jysPc6.8.zip
index e589b5d..f3f4710 100644
--- a/pc6.8.zip
+++ b/jysPc6.8.zip
Binary files differ
diff --git a/src/api/currency.js b/src/api/currency.js
index 1b5a1c5..c9575ef 100644
--- a/src/api/currency.js
+++ b/src/api/currency.js
@@ -6,7 +6,7 @@
}
// 获取币种的实时数据,比如价格和涨跌幅
-// https://enjdhdg.site/wap/api/doc.html#/%E5%A4%96%E6%B1%87%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0/%E5%AE%9E%E6%97%B6%E8%A1%8C%E6%83%85%E6%95%B0%E6%8D%AE/getRealtimeUsingGET
+// https://www.coinzne.com/wap/api/doc.html#/%E5%A4%96%E6%B1%87%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0/%E5%AE%9E%E6%97%B6%E8%A1%8C%E6%83%85%E6%95%B0%E6%8D%AE/getRealtimeUsingGET
function getRealtime(data) {
return Axios.fetch("/wap/api/hobi!getRealtime.action", data);
}
diff --git a/src/api/etf.js b/src/api/etf.js
index d730343..bb30aaa 100644
--- a/src/api/etf.js
+++ b/src/api/etf.js
@@ -1,10 +1,10 @@
import Axios from "@/utils/http";
-//简况 https://enjdhdg.site/api/doc.html#/%E5%A4%96%E6%B1%87%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0/h5%E7%AE%80%E5%86%B5/queryByIdUsingGET_13
+//简况 https://www.coinzne.com/api/doc.html#/%E5%A4%96%E6%B1%87%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0/h5%E7%AE%80%E5%86%B5/queryByIdUsingGET_13
function getSummary(data) {
return Axios.fetch("wap/api/item/itemSummary/get", data);
}
-//获取成分股币对名称 https://enjdhdg.site/api/doc.html#/%E5%A4%96%E6%B1%87%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0/ETF%E6%80%BB%E7%B1%BB-api/getConstituentStockListUsingGET
+//获取成分股币对名称 https://www.coinzne.com/api/doc.html#/%E5%A4%96%E6%B1%87%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0/ETF%E6%80%BB%E7%B1%BB-api/getConstituentStockListUsingGET
function getStock(data) {
return Axios.fetch("wap/api/projectBreed/getConstituentStockList", data);
}
diff --git a/src/api/my.js b/src/api/my.js
index e71d931..094b123 100644
--- a/src/api/my.js
+++ b/src/api/my.js
@@ -6,7 +6,7 @@
}
// 申请实名认证
function apply(data) {
- return Axios.postFormData("wap/api/realNameAuth/apply", data);
+ return Axios.fetch("wap/api/kyc!apply.action", data);
}
// 获取高级认证信息,如家庭住址等
diff --git a/src/components/constract/DeliveryContract/DetailDialog.vue b/src/components/constract/DeliveryContract/DetailDialog.vue
index ddcbcb3..11ee926 100644
--- a/src/components/constract/DeliveryContract/DetailDialog.vue
+++ b/src/components/constract/DeliveryContract/DetailDialog.vue
@@ -14,23 +14,25 @@
class="detailWrapper"
:modal-append-to-body="true"
:append-to-body="true"
+ @close="jixuxiadanClick"
+ @open="jixuxiadanOpen"
>
<div class="dialog-box">
<!-- 交割倒计时 -->
<div class="circleBox" v-show="showProgress">
<div class="countdown">
- <div v-if="day" class="time-div">{{ day ? day + " d " : "" }}</div>
+ <!-- <div v-if="day" class="time-div">{{ day ? day + " d " : "" }}</div>
<div v-if="day" class="dot">ꔷ</div>
<div v-if="hour" class="time-div">
{{ hour ? hour + " h " : "" }}
</div>
<div v-if="hour" class="dot">ꔷ</div>
- <!-- <div v-if="minute" class="time-div">
- {{ minute ? minute + " m " : "" }}
- </div> -->
- <!-- <div v-if="minute" class="dot">ꔷ</div> -->
- <div v-if="minute" class="time-div">{{ (secound * minute) + " s" }}</div>
- <div v-if="secound&&!minute" class="time-div">{{ secound + " s" }}</div>
+ <div v-if="minute" class="time-div">
+ {{ minute ? minute + " m " : "" }}
+ </div>
+ <div v-if="minute" class="dot">ꔷ</div>
+ <div v-if="secound" class="time-div">{{ secound + " s" }}</div> -->
+ <div class="time-div">{{ daojishi + " s" }}</div>
</div>
</div>
<!-- 盈亏 -->
@@ -69,6 +71,12 @@
</div>
<div class="delivery-text">
<div class="delivery-text-left">
+ {{ $t("message.home.jiesuanjia") }}
+ </div>
+ <div>{{ detailData.close_price }}</div>
+ </div>
+ <div class="delivery-text">
+ <div class="delivery-text-left">
{{ $t("message.home.shuliang") }}
</div>
<div>{{ detailData.volume }}</div>
@@ -90,7 +98,7 @@
</div>
<span slot="footer" class="dialog-footer">
<!-- <el-button v-if="typeValue == 1" @click="visible = false">{{ '取消'}}</el-button> -->
- <el-button type="info" @click="visible = false" class="continueOrder">{{
+ <el-button type="info" @click="jixuxiadanClick" class="continueOrder">{{
$t("message.home.jixuxiadan")
}}</el-button>
<!-- <el-button v-if="typeValue == 1" type="info" @click="visible = false">{{$t('message.home.jixuxiadan')}}</el-button> -->
@@ -110,6 +118,10 @@
dialogVisible: {
type: Boolean,
default: false, // 弹窗是否展示
+ },
+ showDetail: {
+ type: Object,
+ default: {},
},
// pageData: {
// type: Object,
@@ -138,6 +150,7 @@
// nowPrice: "", //现价
symbol: "", //币种
showBtn: false, //显示按钮
+ setIntervalId: null
};
},
watch: {
@@ -164,50 +177,87 @@
},
},
},
- mounted() {
- bus.on("showDetail", (obj) => {
- this.symbol = obj.symbol;
- if (obj.order_no) {
- if (this.existToken) {
- this.futuresOrder(obj.order_no);
- }
- }
- });
+ // mounted() {
+ // bus.on("showDetail", (obj) => {
+ // console.log('showDetailq2222');
+ // this.symbol = obj.symbol;
+ // if (obj.order_no) {
+ // if (this.existToken) {
+ // this.futuresOrder(obj.order_no);
+ // this.setIntervalId = setInterval(() => {
+ // // console.log(this.setIntervalId);
+ // // this.futuresOrder1(obj.order_no);
+ // },1000)
+ // }
+ // }
+ // });
+ // },
+ unmounted(){
+ clearInterval(this.setIntervalId)
},
methods: {
+ jixuxiadanOpen(){
+ this.symbol = this.showDetail.symbol;
+ if (this.showDetail.order_no) {
+ if (this.existToken) {
+ this.futuresOrder(this.showDetail.order_no);
+ this.setIntervalId = setInterval(() => {
+ this.futuresOrder1(this.showDetail.order_no);
+ },1000)
+ }
+ }
+ },
+ jixuxiadanClick(){
+ this.visible = false
+ clearInterval(this.setIntervalId)
+ },
//倒计时 天时分秒
countTime() {
const t = this;
+ // if (t.daojishi > 0) {
+ // t.deliveryTime = t.daojishi;
+ // t.percentValue = t.percentValue - t.daojishi_baifenbi;
+ // }
+ // if (t.daojishi == 0) {
+ // t.deliveryTime = 0;
+ // t.percentValue = 0;
+ // clearTimeout(t.daojishi_status);
+ // t.daojishi_status = undefined;
+ // //倒计时结束,关闭进度条显示盈亏数据
+ // this.showProgress = false;
+ // this.showProfit = true;
+ // this.showBtn = true;
+ // return 1111;
+ // }
+ // let sub = t.daojishi;
+
+ // let day = parseInt(sub / 86400);
+ // let hour = parseInt((sub % 86400) / 3600);
+ // let min = parseInt(((sub % 86400) % 3600) / 60);
+ // let sec = parseInt(((sub % 86400) % 3600) % 60);
+ // t.secound = sec;
+ // t.day = day;
+ // t.hour = hour;
+ // t.minute = min;
+ // t.daojishi--;
if (t.daojishi > 0) {
- t.deliveryTime = t.daojishi;
- t.percentValue = t.percentValue - t.daojishi_baifenbi;
- }
- if (t.daojishi == 0) {
- t.deliveryTime = 0;
- t.percentValue = 0;
- clearTimeout(t.daojishi_status);
- t.daojishi_status = undefined;
- //倒计时结束,关闭进度条显示盈亏数据
- this.showProgress = false;
+ t.daojishi_status = setTimeout(() => {
+ t.daojishi--;
+ t.countTime();
+ }, 1000);
+ } else {
this.showProfit = true;
+ this.showProgress = false;
this.showBtn = true;
- return 1111;
}
- let sub = t.daojishi;
-
- let day = parseInt(sub / 86400);
- let hour = parseInt((sub % 86400) / 3600);
- let min = parseInt(((sub % 86400) % 3600) / 60);
- let sec = parseInt(((sub % 86400) % 3600) % 60);
- t.secound = sec;
- t.day = day;
- t.hour = hour;
- t.minute = min;
- t.daojishi--;
-
- t.daojishi_status = setTimeout(() => {
- t.countTime();
- }, 1000);
+ },
+ futuresOrder1(order_no){
+ const t = this;
+ Axios.futuresDetail({
+ order_no: order_no,
+ }).then((res) => {
+ this.detailData.close_price = res.data.close_price;
+ });
},
// ??
futuresOrder(order_no) {
diff --git a/src/components/constract/DeliveryContract/createOrder.vue b/src/components/constract/DeliveryContract/createOrder.vue
index 8c52953..cb21229 100644
--- a/src/components/constract/DeliveryContract/createOrder.vue
+++ b/src/components/constract/DeliveryContract/createOrder.vue
@@ -167,6 +167,7 @@
:dialogVisible="detailVisible"
:pageData="currencyData"
@closeDialog="handleCloseDetailDialog"
+ :showDetail = "showDetail"
></detail-dialog>
<!-- 确认弹窗 -->
<dialog-confirm
@@ -229,6 +230,7 @@
deliveryType: "buy",
buyAndSellData: {},
canOpen: true, //能否开仓,false表示处于休市状态
+ showDetail: {}
};
},
watch: {
@@ -257,7 +259,7 @@
symbol: 'btc',
// token: this.userInfo.token,
}).then((res) => {
- console.log(res.data)
+ // console.log(res.data)
this.volume = res.data.amount;
this.sessionToken = res.data.session_token;
this.list = res.data.para; //交易时段
@@ -343,7 +345,8 @@
order_no: res.data.order_no,
symbol: this.currencyData.symbol,
};
- bus.emit("showDetail", obj);
+ this.showDetail = obj
+ // bus.emit("showDetail", obj);
ElMessage({
message: this.$t("message.jiaoyi.kaicangchenggong"),
type: "success",
diff --git a/src/components/constract/DeliveryContract/position.vue b/src/components/constract/DeliveryContract/position.vue
index e9cb015..8245942 100644
--- a/src/components/constract/DeliveryContract/position.vue
+++ b/src/components/constract/DeliveryContract/position.vue
@@ -234,6 +234,7 @@
:typeValue="2"
:dialogVisible="dialogVisible"
@closeDialog="handleCloseDetailDialog"
+ :showDetail="showDetail"
></delivery-detail-dialog>
</div>
</template>
@@ -292,6 +293,7 @@
orderNumber: 0,
isNext: false,
isTop: false,
+ showDetail: {}
};
},
mounted() {
@@ -397,7 +399,8 @@
order_no: item.order_no,
symbol: item.symbol,
};
- bus.emit("showDetail", obj);
+ // bus.emit("showDetail", obj);
+ this.showDetail = obj
this.dialogVisible = true;
},
//分页
diff --git a/src/components/constract/PerpetualContract/createOrder.vue b/src/components/constract/PerpetualContract/createOrder.vue
index abeb8f8..8e79a6f 100644
--- a/src/components/constract/PerpetualContract/createOrder.vue
+++ b/src/components/constract/PerpetualContract/createOrder.vue
@@ -139,12 +139,13 @@
<!-- 合约金额=保证金-->
<div class="submit-info-item">
<div>{{ $t("message.home.heyuejine") }}:</div>
- <div>{{ getMargin }} {{ unit }}</div>
+ <div>{{ (getMargin * parseInt(current_lever_rate)).toFixed(2) }} {{ unit }}</div>
</div>
<!-- 保证金 -->
<div class="submit-info-item">
<div>{{ $t("message.home.baozhengjin") }}:</div>
- <div>{{ (getMargin/parseInt(current_lever_rate)).toFixed(2) }} {{ unit }}</div>
+ <div>{{ getMargin }} {{ unit }}</div>
+ <!-- <div>{{ (getMargin/parseInt(current_lever_rate)).toFixed(2) }} {{ unit }}</div> -->
</div>
<!-- 手续费 -->
<div class="submit-info-item">
@@ -324,7 +325,7 @@
this.sessionObj.amount
) {
if (this.lever_rate.length > 0) {
- data = this.sessionObj.amount * amount * this.current_lever_rate_num;
+ data = this.sessionObj.amount * amount * 1;
} else if (this.lever_rate.length == 0) {
data = this.sessionObj.amount * amount * 1;
}
@@ -399,9 +400,10 @@
return 0;
} else {
if (this.lever_rate.length > 0) {
- return parseInt(amount / this.current_lever_rate_num);
+ // return parseInt(amount / this.current_lever_rate_num);
+ return parseInt(amount * 1);
} else if (this.lever_rate.length == 0) {
- return parseInt(amount / 1);
+ return parseInt(amount * 1);
}
}
},
diff --git a/src/components/constract/PerpetualContract/positionCom/currentPosition.vue b/src/components/constract/PerpetualContract/positionCom/currentPosition.vue
index 7ea204f..2ad405c 100644
--- a/src/components/constract/PerpetualContract/positionCom/currentPosition.vue
+++ b/src/components/constract/PerpetualContract/positionCom/currentPosition.vue
@@ -232,7 +232,7 @@
let shuliang = item.deposit*item.lever_rate/item.trade_avg_price
item.shuliang = shuliang.toFixed(4)
})
- console.log(this.tableData,'this.tableData');
+ // console.log(this.tableData,'this.tableData');
this.$emit("getPositionNum", res.data.length);
// 未实现盈亏
const profitLoss = res.data.reduce(
diff --git a/src/components/constract/PerpetualContract/positionCom/historyOrder.vue b/src/components/constract/PerpetualContract/positionCom/historyOrder.vue
index 33cb22e..1f68660 100644
--- a/src/components/constract/PerpetualContract/positionCom/historyOrder.vue
+++ b/src/components/constract/PerpetualContract/positionCom/historyOrder.vue
@@ -189,7 +189,7 @@
// item.close_time = item.close_time.split(' ')[0] + ' ' + initDate(item.close_time.split(' ')[1])
// })
this.tableData = res.data;
- console.log(this.tableData,'this.tableData');
+ // console.log(this.tableData,'this.tableData');
const noNext = res.data.length == 0 || res.data.length < 10;
this.noNext = noNext;
});
diff --git a/src/components/constract/index.vue b/src/components/constract/index.vue
index 879e9fd..35a1cb8 100644
--- a/src/components/constract/index.vue
+++ b/src/components/constract/index.vue
@@ -1091,7 +1091,7 @@
Axios.getRealtime({ symbol,order: 'desc' }).then((res) => {
if (res.code == "0") {
var data = res.data;
- console.log(data);
+ // console.log(data);
// console.log(this.$route.params.id,'this.$route.params.id')
var filtersVal = data.filter(
(val) => val.symbol == this.$route.params.id
@@ -1157,7 +1157,7 @@
);
}
- console.log(this.allListData,'this.allListData');
+ // console.log(this.allListData,'this.allListData');
}
});
},
diff --git a/src/i18n/en/jiaoyi.js b/src/i18n/en/jiaoyi.js
index b22af4a..2bbc904 100644
--- a/src/i18n/en/jiaoyi.js
+++ b/src/i18n/en/jiaoyi.js
@@ -80,7 +80,7 @@
chengjiaoe: "Total",
zuoduomairu: "Buy long",
zuokongmaichu: "Sell short",
- zuokongmairu: "Short buy",
+ zuokongmairu: "Buy Short",
jiaoyizican: "Trading Assets",
keyongjine: "Amount Avbl",
keyongshuliang: "Avbl Amount",
diff --git a/src/views/login/step2/idSet.vue b/src/views/login/step2/idSet.vue
index 98582c1..768950c 100644
--- a/src/views/login/step2/idSet.vue
+++ b/src/views/login/step2/idSet.vue
@@ -44,7 +44,7 @@
</div>
<div class="image_upload">
<div class="text-center">
- <el-upload class="avatar-uploader" :action="`${nowUrl}/api/api/uploadFile`"
+ <el-upload class="avatar-uploader" :action="`${nowUrl}/wap/public/uploadimg!execute.action`"
:headers="uploadHeader" accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF"
:show-file-list="false" :on-success="handelDoucumentsFront" :on-error="onErrorUpload"
:before-upload="beforeAvatarUpload">
@@ -56,7 +56,7 @@
<p>{{ $t("message.user.zhengjianzhengmian") }}</p>
</div>
<div class="text-center" style="margin: 0 10px">
- <el-upload class="avatar-uploader" :action="`${nowUrl}/api/api/uploadFile`"
+ <el-upload class="avatar-uploader" :action="`${nowUrl}/wap/public/uploadimg!execute.action`"
:headers="uploadHeader" accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF"
:show-file-list="false" :on-success="handelDoucumentsBack" :on-error="onErrorUpload"
:before-upload="beforeAvatarUpload">
@@ -68,7 +68,7 @@
<p>{{ $t("message.user.zhengjianfanmian") }}</p>
</div>
<div class="text-center">
- <el-upload class="avatar-uploader" :action="`${nowUrl}/api/api/uploadFile`"
+ <el-upload class="avatar-uploader" :action="`${nowUrl}/wap/public/uploadimg!execute.action`"
:headers="uploadHeader" accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF"
:show-file-list="false" :on-success="holdIdCardSuccess" :on-error="onErrorUpload"
:before-upload="beforeAvatarUpload">
@@ -141,7 +141,7 @@
};
},
mounted() {
- this.nowUrl = "https://enjdhdg.site";
+ this.nowUrl = "https://www.coinzne.com";
let interimToken = localStorage.getItem("spToken");
if (interimToken) {
this.getIdentify();
@@ -173,20 +173,26 @@
//上传正面
handelDoucumentsFront(res, file) {
- const { path, httpUrl } = res.data;
- this.oneImg = httpUrl;
- this.idFrontImg = path;
+ // const { path, httpUrl } = res.data;
+ // this.oneImg = httpUrl;
+ const data = res.data;
+ this.oneImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`;
+ this.idFrontImg = data;
},
//上传背面
handelDoucumentsBack(res, file) {
- const { path, httpUrl } = res.data;
- this.twoImg = httpUrl;
+ // const { path, httpUrl } = res.data;
+ // this.twoImg = httpUrl;
+ const path = res.data;
+ this.twoImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`;
this.idBackImg = path;
},
//手持身份证
holdIdCardSuccess(res, file) {
- const { path, httpUrl } = res.data;
- this.threeImg = httpUrl;
+ // const { path, httpUrl } = res.data;
+ // this.threeImg = httpUrl;
+ const path = res.data;
+ this.threeImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`;
this.handheldPhoto = path;
},
@@ -235,12 +241,12 @@
}
Axios.apply({
nationality: this.nationality,
- idNumber: this.idNumber,
- idName: "id/passpost",
+ idnumber: this.idNumber,
+ idname: "id/passpost",
name: this.name,
- idFrontImg: this.idFrontImg,
- idBackImg: this.idBackImg,
- handheldPhoto: this.handheldPhoto,
+ idimg_1: this.idFrontImg,
+ idimg_2: this.idBackImg,
+ idimg_3: this.handheldPhoto,
}).then((res) => {
if (res.code == "0") {
this.$message.success(this.$t("message.user.bangdingchenggong"));
diff --git a/src/views/my/components/identityAuthenty.vue b/src/views/my/components/identityAuthenty.vue
index 430e0c5..cd883c8 100644
--- a/src/views/my/components/identityAuthenty.vue
+++ b/src/views/my/components/identityAuthenty.vue
@@ -47,7 +47,7 @@
<div class="image_upload">
<!-- 正面 -->
<div class="text-center">
- <el-upload class="avatar-uploader" :action="`${nowUrl}/api/api/uploadFile`"
+ <el-upload class="avatar-uploader" :action="`${nowUrl}/wap/public/uploadimg!execute.action`"
accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF" :show-file-list="false"
:on-success="handelDoucumentsFront" :on-error="onErrorUpload" :before-upload="beforeAvatarUpload"
:disabled="identifyStatus == 1">
@@ -59,7 +59,7 @@
<p>{{ $t("message.user.zhengjianzhengmian") }}</p>
</div>
<div class="text-center" style="margin: 0 10px">
- <el-upload class="avatar-uploader" :action="`${nowUrl}/api/api/uploadFile`"
+ <el-upload class="avatar-uploader" :action="`${nowUrl}/wap/public/uploadimg!execute.action`"
accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF" :show-file-list="false" :on-success="handelDoucumentsBack"
:on-error="onErrorUpload" :before-upload="beforeAvatarUpload" :disabled="identifyStatus == 1">
<!-- v-if="idBackImg || identifyStatus == 2 || identifyStatus == 3" -->
@@ -71,7 +71,7 @@
<p>{{ $t("message.user.zhengjianfanmian") }}</p>
</div>
<div class="text-center">
- <el-upload class="avatar-uploader" :action="`${nowUrl}/api/api/uploadFile`"
+ <el-upload class="avatar-uploader" :action="`${nowUrl}/wap/public/uploadimg!execute.action`"
accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF" :show-file-list="false" :on-success="holdIdCardSuccess"
:on-error="onErrorUpload" :before-upload="beforeAvatarUpload" :disabled="identifyStatus == 1">
<!-- v-if="
@@ -176,7 +176,7 @@
},
mounted() {
//获取域名
- this.nowUrl = "https://enjdhdg.site";
+ this.nowUrl = "https://www.coinzne.com";
//调用身份认证信息方法
this.spToken = localStorage.getItem("spToken");
if (this.spToken) {
@@ -206,21 +206,27 @@
},
//上传正面
handelDoucumentsFront(res, file) {
- const { path, httpUrl } = res.data;
- this.oneImg = httpUrl;
- this.idFrontImg = path;
+ // const { path, httpUrl } = res.data;
+ // this.oneImg = httpUrl;
+ const data = res.data;
+ this.oneImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`;
+ this.idFrontImg = data;
},
//上传背面
handelDoucumentsBack(res, file) {
- const { path, httpUrl } = res.data;
- this.twoImg = httpUrl;
- this.idBackImg = path;
+ // const { path, httpUrl } = res.data;
+ // this.twoImg = httpUrl;
+ const data = res.data;
+ this.twoImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`;
+ this.idBackImg = data;
},
//手持身份证
holdIdCardSuccess(res, file) {
- const { path, httpUrl } = res.data;
- this.threeImg = httpUrl;
- this.handheldPhoto = path;
+ // const { path, httpUrl } = res.data;
+ // this.threeImg = httpUrl;
+ const data = res.data;
+ this.threeImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`;
+ this.handheldPhoto = data;
},
onErrorUpload() {
ElMessage.warning(this.$t("message.user.shangchuan3"));
@@ -271,12 +277,12 @@
}
Axios.apply({
nationality: this.nationality,
- idNumber: this.idNumber,
- idName: "id/passpost",
+ idnumber: this.idNumber,
+ idname: "id/passpost",
name: this.name,
- idFrontImg: this.idFrontImg,
- idBackImg: this.idBackImg,
- handheldPhoto: this.handheldPhoto,
+ idimg_1: this.idFrontImg,
+ idimg_2: this.idBackImg,
+ idimg_3: this.handheldPhoto,
}).then((res) => {
if (res.code == "0") {
// 出来一个弹窗,显示已经提交成功
diff --git a/src/views/my/components/manualReset.vue b/src/views/my/components/manualReset.vue
index 5a8ea1a..2bf3964 100644
--- a/src/views/my/components/manualReset.vue
+++ b/src/views/my/components/manualReset.vue
@@ -18,7 +18,7 @@
<div class="text-center">
<el-upload
class="avatar-uploader"
- :action="`${nowUrl}/api/api/uploadFile`"
+ :action="`${nowUrl}/wap/public/uploadimg!execute.action`"
accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF"
:show-file-list="false"
:on-success="handelDoucumentsFront"
@@ -33,7 +33,7 @@
<div class="text-center" style="margin: 0 10px">
<el-upload
class="avatar-uploader"
- :action="`${nowUrl}/api/api/uploadFile`"
+ :action="`${nowUrl}/wap/public/uploadimg!execute.action`"
accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF"
:show-file-list="false"
:on-success="handelDoucumentsBack"
@@ -48,7 +48,7 @@
<div class="text-center">
<el-upload
class="avatar-uploader"
- :action="`${nowUrl}/api/api/uploadFile`"
+ :action="`${nowUrl}/wap/public/uploadimg!execute.action`"
accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF"
:show-file-list="false"
:on-success="holdIdCardSuccess"
@@ -196,7 +196,7 @@
},
mounted() {
//获取域名
- this.nowUrl = "https://enjdhdg.site";
+ this.nowUrl = "https://www.coinzne.com";
},
methods: {
beforeAvatarUpload(file) {
@@ -220,20 +220,26 @@
},
//上传正面
handelDoucumentsFront(res, file) {
- const { path, httpUrl } = res.data;
- this.oneImg = httpUrl;
- this.idFrontImg = path;
+ // const { path, httpUrl } = res.data;
+ // this.oneImg = httpUrl;
+ const data = res.data;
+ this.oneImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`;
+ this.idFrontImg = data;
},
//上传背面
handelDoucumentsBack(res, file) {
- const { path, httpUrl } = res.data;
- this.twoImg = httpUrl;
+ // const { path, httpUrl } = res.data;
+ // this.twoImg = httpUrl;
+ const path = res.data;
+ this.twoImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`;
this.idBackImg = path;
},
//手持身份证
holdIdCardSuccess(res, file) {
- const { path, httpUrl } = res.data;
- this.threeImg = httpUrl;
+ // const { path, httpUrl } = res.data;
+ // this.threeImg = httpUrl;
+ const path = res.data;
+ this.threeImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`;
this.handheldPhoto = path;
},
onErrorUpload() {
--
Gitblit v1.9.3