1 files renamed
14 files modified
| | |
| | | } |
| | | |
| | | // 获取币种的实时数据,比如价格和涨跌幅 |
| | | // 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); |
| | | } |
| | |
| | | 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); |
| | | } |
| | |
| | | } |
| | | // 申请实名认证 |
| | | function apply(data) { |
| | | return Axios.postFormData("wap/api/realNameAuth/apply", data); |
| | | return Axios.fetch("wap/api/kyc!apply.action", data); |
| | | } |
| | | |
| | | // 获取高级认证信息,如家庭住址等 |
| | |
| | | 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> |
| | | <!-- 盈亏 --> |
| | |
| | | </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> |
| | |
| | | </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> --> |
| | |
| | | dialogVisible: { |
| | | type: Boolean, |
| | | default: false, // 弹窗是否展示 |
| | | }, |
| | | showDetail: { |
| | | type: Object, |
| | | default: {}, |
| | | }, |
| | | // pageData: { |
| | | // type: Object, |
| | |
| | | // nowPrice: "", //现价 |
| | | symbol: "", //币种 |
| | | showBtn: false, //显示按钮 |
| | | setIntervalId: null |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | }, |
| | | }, |
| | | }, |
| | | 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) { |
| | |
| | | :dialogVisible="detailVisible" |
| | | :pageData="currencyData" |
| | | @closeDialog="handleCloseDetailDialog" |
| | | :showDetail = "showDetail" |
| | | ></detail-dialog> |
| | | <!-- 确认弹窗 --> |
| | | <dialog-confirm |
| | |
| | | deliveryType: "buy", |
| | | buyAndSellData: {}, |
| | | canOpen: true, //能否开仓,false表示处于休市状态 |
| | | showDetail: {} |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | 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; //交易时段 |
| | |
| | | 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", |
| | |
| | | :typeValue="2" |
| | | :dialogVisible="dialogVisible" |
| | | @closeDialog="handleCloseDetailDialog" |
| | | :showDetail="showDetail" |
| | | ></delivery-detail-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | orderNumber: 0, |
| | | isNext: false, |
| | | isTop: false, |
| | | showDetail: {} |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | order_no: item.order_no, |
| | | symbol: item.symbol, |
| | | }; |
| | | bus.emit("showDetail", obj); |
| | | // bus.emit("showDetail", obj); |
| | | this.showDetail = obj |
| | | this.dialogVisible = true; |
| | | }, |
| | | //分页 |
| | |
| | | <!-- 合约金额=保证金--> |
| | | <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"> |
| | |
| | | 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; |
| | | } |
| | |
| | | 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); |
| | | } |
| | | } |
| | | }, |
| | |
| | | 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( |
| | |
| | | // 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; |
| | | }); |
| | |
| | | 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 |
| | |
| | | ); |
| | | } |
| | | |
| | | console.log(this.allListData,'this.allListData'); |
| | | // console.log(this.allListData,'this.allListData'); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | chengjiaoe: "Total", |
| | | zuoduomairu: "Buy long", |
| | | zuokongmaichu: "Sell short", |
| | | zuokongmairu: "Short buy", |
| | | zuokongmairu: "Buy Short", |
| | | jiaoyizican: "Trading Assets", |
| | | keyongjine: "Amount Avbl", |
| | | keyongshuliang: "Avbl Amount", |
| | |
| | | </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"> |
| | |
| | | <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"> |
| | |
| | | <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"> |
| | |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.nowUrl = "https://enjdhdg.site"; |
| | | this.nowUrl = "https://www.coinzne.com"; |
| | | let interimToken = localStorage.getItem("spToken"); |
| | | if (interimToken) { |
| | | this.getIdentify(); |
| | |
| | | |
| | | //上传正面 |
| | | 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; |
| | | }, |
| | | |
| | |
| | | } |
| | | 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")); |
| | |
| | | <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"> |
| | |
| | | <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" --> |
| | |
| | | <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=" |
| | |
| | | }, |
| | | mounted() { |
| | | //获取域名 |
| | | this.nowUrl = "https://enjdhdg.site"; |
| | | this.nowUrl = "https://www.coinzne.com"; |
| | | //调用身份认证信息方法 |
| | | this.spToken = localStorage.getItem("spToken"); |
| | | if (this.spToken) { |
| | |
| | | }, |
| | | //上传正面 |
| | | 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")); |
| | |
| | | } |
| | | 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") { |
| | | // 出来一个弹窗,显示已经提交成功 |
| | |
| | | <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" |
| | |
| | | <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" |
| | |
| | | <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" |
| | |
| | | }, |
| | | mounted() { |
| | | //获取域名 |
| | | this.nowUrl = "https://enjdhdg.site"; |
| | | this.nowUrl = "https://www.coinzne.com"; |
| | | }, |
| | | methods: { |
| | | beforeAvatarUpload(file) { |
| | |
| | | }, |
| | | //上传正面 |
| | | 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() { |