Browse Source

更新

master
luyisha 3 years ago
parent
commit
0c23d5c746
  1. 1
      api/serve/index.js
  2. BIN
      assets/img/bg/1-1.png
  3. BIN
      assets/img/bg/1.png
  4. BIN
      assets/img/bg/2-1.png
  5. BIN
      assets/img/bg/2.png
  6. BIN
      assets/img/bg/3-1.png
  7. BIN
      assets/img/bg/3.png
  8. BIN
      assets/img/bg/4-1.png
  9. BIN
      assets/img/bg/home_recharge.png
  10. 19
      layout/vDropdwon.vue
  11. 108
      pages/auth/primary.vue
  12. 257
      pages/base/home.vue
  13. 49
      pages/exchange/open-position.vue

1
api/serve/index.js

@ -86,6 +86,7 @@ x.fn = x.prototype = {
if(Cache.get(newMsg).data){ if(Cache.get(newMsg).data){
if(newMsg!='_user_walletImage'&& newMsg!='_user_getAuthInfo' && newMsg!='_user_withdrawalBalance' if(newMsg!='_user_walletImage'&& newMsg!='_user_getAuthInfo' && newMsg!='_user_withdrawalBalance'
&& newMsg!='_wallet_getBalance' && newMsg!='_contract_getMarketInfo'&& newMsg!='_contract_openNum' && newMsg!='_wallet_getBalance' && newMsg!='_contract_getMarketInfo'&& newMsg!='_contract_openNum'
&& newMsg!='_article_detail'
&& newMsg!='_indexList'&& newMsg!='_user_subscribe'&& newMsg!='_contract_getSymbolDetail' && newMsg!='_user_withdrawalRecord'){ && newMsg!='_indexList'&& newMsg!='_user_subscribe'&& newMsg!='_contract_getSymbolDetail' && newMsg!='_user_withdrawalRecord'){
resolve(Cache.get(newMsg).data); resolve(Cache.get(newMsg).data);

BIN
assets/img/bg/1-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
assets/img/bg/1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/img/bg/2-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
assets/img/bg/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/img/bg/3-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
assets/img/bg/3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/img/bg/4-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
assets/img/bg/home_recharge.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

19
layout/vDropdwon.vue

@ -58,11 +58,26 @@ export default {
leverShow:{ leverShow:{
deep: true, deep: true,
handler:function(newVal,oldVal) { handler:function(newVal,oldVal) {
console.log(newVal, '下拉组件leverShow更新');
this.$nextTick(() => { this.$nextTick(() => {
this.text=this.list[newVal].label this.text=this.list[newVal].label;
}) })
} }
}, },
list:{
deep: true,
handler:function(newVal,oldVal) {
console.log(newVal, '下拉组件list更新');
if(this.contract==1&&this.list){
this.text=this.list[1].label
}else if(this.contract==0&&this.list){
this.text=this.list[0].label
}
if(this.leverShow){
this.text=this.list[this.leverShow].label
}
}
}
}, },
methods: { methods: {
handlerItem(value,index) { handlerItem(value,index) {
@ -85,8 +100,10 @@ export default {
}else if(this.contract==0&&this.list){ }else if(this.contract==0&&this.list){
this.text=this.list[0].label this.text=this.list[0].label
} }
if(this.leverShow){
this.text=this.list[this.leverShow].label this.text=this.list[this.leverShow].label
} }
}
}; };
</script> </script>

108
pages/auth/primary.vue

@ -2,30 +2,21 @@
<v-page style="height:auto!important;min-height: 100%!important;"> <v-page style="height:auto!important;min-height: 100%!important;">
<v-header :title="$t('auth.a1')"></v-header> <v-header :title="$t('auth.a1')"></v-header>
<main class=" m-lg bg-panel-3 rounded-md p-x-md box-shadow"> <main class=" m-lg bg-panel-3 rounded-md p-x-md box-shadow">
<view class="form-item border-b p-md m-b-md"> <!-- 姓名 -->
<view class="label m-b-xs">{{$t('auth.a7')}}</view>
<view class="input color-light" >
<v-picker :value="form.country_id" @change="selectCountry" :list="countryList" range-value="id" range-label="name">
<v-input disabled :value="activeCountry.name" :placeholder="$t('auth.a8')">
<template #right>
<van-icon class="color-default" name="arrow" />
</template>
</v-input>
</v-picker>
</view>
</view>
<view class="form-item border-b p-md m-b-md"> <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.a9')}}</view> <view class="label m-b-xs">{{$t('auth.a9')}}</view>
<view class="input color-light"> <view class="input color-light">
<v-input v-model="form.realname" :placeholder="$t('auth.b0')"></v-input> <v-input v-model="form.realname" :placeholder="$t('auth.b0')"></v-input>
</view> </view>
</view> </view>
<!-- 出生日期 -->
<view class="form-item border-b p-md m-b-md"> <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.c5')}}</view> <view class="label m-b-xs">{{$t('auth.c5')}}</view>
<view class="input color-light"> <view class="input color-light">
<uni-datetime-picker type="date" :placeholder="$t('auth.d4')" :clear-icon="false" v-model="form.birthday" @maskClick="maskClick" /> <uni-datetime-picker type="date" :placeholder="$t('auth.d4')" :clear-icon="false" v-model="form.birthday" @maskClick="maskClick" />
</view> </view>
</view> </view>
<!-- 证件号类型 -->
<view class="form-item border-b p-md m-b-md"> <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.c6')}}</view> <view class="label m-b-xs">{{$t('auth.c6')}}</view>
<view class="input color-light"> <view class="input color-light">
@ -37,18 +28,48 @@
></uni-data-select> ></uni-data-select>
</view> </view>
</view> </view>
<!-- 证件号 -->
<view class="form-item border-b p-md m-b-md"> <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.b1')}}</view> <view class="label m-b-xs">{{$t('auth.b1')}}</view>
<view class="input color-light"> <view class="input color-light">
<v-input v-model="form.id_card" :placeholder="$t('auth.b2')"></v-input> <v-input v-model="form.id_card" :placeholder="$t('auth.b2')"></v-input>
</view> </view>
</view> </view>
<!-- 居住地址 -->
<view class="form-item border-b p-md m-b-md"> <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.c7')}}</view> <view class="label m-b-xs">{{$t('auth.c7')}}</view>
<view class="input color-light"> <view class="input color-light">
<v-input v-model="form.address" :placeholder="$t('auth.c8')"></v-input> <v-input v-model="form.address" :placeholder="$t('auth.c8')"></v-input>
</view> </view>
</view> </view>
<!-- 城市 -->
<!-- <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.d7')}}</view>
<view class="input color-light">
<v-input v-model="form.city" :placeholder="$t('auth.d8')"></v-input>
</view>
</view> -->
<!-- 邮政区号 -->
<!-- <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.d9')}}</view>
<view class="input color-light">
<v-input v-model="form.postal_code" :placeholder="$t('auth.d10')"></v-input>
</view>
</view> -->
<!-- 国籍区号 -->
<view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.a7')}}</view>
<view class="input color-light" >
<v-picker :value="form.country_id" @change="selectCountry" :list="countryList" range-value="id" range-label="name2">
<v-input disabled :value="activeCountry.name2" :placeholder="$t('auth.a8')">
<template #right>
<van-icon class="color-default" name="arrow" />
</template>
</v-input>
</v-picker>
</view>
</view>
<!-- 电话 -->
<view class="form-item border-b p-md m-b-md"> <view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.c9')}}</view> <view class="label m-b-xs">{{$t('auth.c9')}}</view>
<view class="input color-light"> <view class="input color-light">
@ -74,14 +95,16 @@ export default {
detail: {}, detail: {},
countryList: [], countryList: [],
form: { form: {
id_card: "", area_code: "",
realname: "", realname: "",
birthday: "", birthday: "",
identification_type: "", identification_type: "",
id_card: "",
address: "",
// city: "",
// postal_code: "",
country_id: "", country_id: "",
country_code: "", country_code: "",
area_code: "",
address: "",
phone: "" phone: ""
}, },
id_range: [{ value: 0, text: this.$t('auth.d1') },{ value: 1, text: this.$t('auth.d2') },{ value: 2, text: this.$t('auth.d3') }], id_range: [{ value: 0, text: this.$t('auth.d1') },{ value: 1, text: this.$t('auth.d2') },{ value: 2, text: this.$t('auth.d3') }],
@ -108,7 +131,13 @@ export default {
Member.getCountryCode() Member.getCountryCode()
.then((res) => { .then((res) => {
console.info(res) console.info(res)
this.countryList = res.data; // this.countryList = res.data;
this.countryList = res.data.map(item=>{
return {
...item,
name2: '+'+item.country_code+'('+item.name+')'
}
});
this.form.country_id = this.countryList[res.data.length-1].id; this.form.country_id = this.countryList[res.data.length-1].id;
}) })
.catch(() => {}); .catch(() => {});
@ -120,6 +149,50 @@ export default {
primaryAuth() { primaryAuth() {
let data = this.form; let data = this.form;
data.country_code = this.activeCountry.country_code; data.country_code = this.activeCountry.country_code;
console.log(data);
if(!data.realname){
uni.showToast({
title: this.$t('auth.b0'),
icon: 'none'
})
return;
}
if(!data.birthday){
uni.showToast({
title: this.$t('auth.d4'),
icon: 'none'
})
return;
}
if(data.identification_type===""){
uni.showToast({
title: this.$t('auth.d5')+this.$t('auth.c6'),
icon: 'none'
})
return;
}
if(!data.id_card){
uni.showToast({
title: this.$t('auth.b2'),
icon: 'none'
})
return;
}
if(!data.address){
uni.showToast({
title: this.$t('auth.c8'),
icon: 'none'
})
return;
}
if(!data.phone){
uni.showToast({
title: this.$t('auth.d0'),
icon: 'none'
})
return;
}
Profile.primaryAuth(data,{btn:this.$refs.btn}).then(() => { Profile.primaryAuth(data,{btn:this.$refs.btn}).then(() => {
this.$toast.success(this.$t('auth.b4')); this.$toast.success(this.$t('auth.b4'));
setTimeout(()=>{ setTimeout(()=>{
@ -128,7 +201,8 @@ export default {
}).catch(()=>{}); }).catch(()=>{});
}, },
changeID(e){ changeID(e){
this.form.identification = this.id_range[e].text; console.log(e);
this.form.identification_type = this.id_range[e].text;
} }
}, },
created() { created() {

257
pages/base/home.vue

@ -75,7 +75,8 @@
<img width="100%" height="100%" class="rounded-sm" fit="cover" :src="item.imgurl"/> <img width="100%" height="100%" class="rounded-sm" fit="cover" :src="item.imgurl"/>
</swiper-item> </swiper-item>
</swiper> --> </swiper> -->
<div class="swiper-imgbox" style="text-align: center;"> <!-- 立即注册 -->
<div class="swiper-imgbox" style="text-align: center;" v-if="!isLogin">
<img style="display: block;width: 60%;height: 14rem;margin: 0 auto;margin-top: 2rem;" <img style="display: block;width: 60%;height: 14rem;margin: 0 auto;margin-top: 2rem;"
src="../../assets/img/bg/weidengl.png" alt="" /> src="../../assets/img/bg/weidengl.png" alt="" />
<div style="color:#fff;font-size: 18px;margin-top: 1rem;"> <div style="color:#fff;font-size: 18px;margin-top: 1rem;">
@ -89,6 +90,21 @@
{{ $t("shou.a6") }} {{ $t("shou.a6") }}
</div> </div>
</div> </div>
<!-- 立即充值 -->
<div class="swiper-imgbox" style="text-align: center;" v-if="isLogin">
<img style="display: block;width: 60%;height: 14rem;margin: 0 auto;margin-top: 2rem;"
src="../../assets/img/bg/home_recharge.png" alt="" />
<div style="color:#fff;font-size: 18px;margin-top: 1rem;">
{{ $t("shou.a0") }}
</div>
<div style="margin: 0.4rem 0;color: gray;font-size: 15px;">
{{ $t("shou.a1") }}
</div>
<div @click="toRecharge"
style="color:#fff;width: 10rem;height: 2.5rem;background-color: #0B0FCC;line-height: 2.5rem;border-radius: 20px;margin: 0 auto;">
{{ $t("shou.a3") }}
</div>
</div>
<!-- num count --> <!-- num count -->
<div class="num-count"> <div class="num-count">
@ -108,7 +124,7 @@
</div> </div>
<div class="num num2">{{ item.pair }}</div> <div class="num num2">{{ item.pair }}</div>
<div class="title title2">0.032935 USD</div> <div class="title title2">0.032935 USD</div>
<div class="title title3">{{ item.increaseStr }}</div> <div class="title title3" :class="item.increase>0?'increase_t':item.increase<0?'decrease_t':''">{{ item.increaseStr }}</div>
<!-- <div class="num-center" style="border-left: 1px solid gray;"></div> --> <!-- <div class="num-center" style="border-left: 1px solid gray;"></div> -->
</swiper-item> </swiper-item>
</swiper> </swiper>
@ -157,21 +173,19 @@
</div> --> </div> -->
</div> </div>
<div style="margin-top: 5rem;"> <div>
<scroll-view @refresherrefresh="onRefresh" :refresher-enabled="refresherEnabled && scrollTop < 50" <scroll-view scroll-x="true" class="scor-box">
:refresher-triggered="refreshing" refresher-background="transparent" :refresher-threshold="50"> <!-- 公告轮播 -->
<!-- 轮播 --> <v-link class="scor-item" v-for="(item, idx) in notice" :key="idx"
<swiper class="my-swipe m-x-md p-b-xs" indicator-dots indicator-color="white"> :to="'/pages/help/detail?id='+item.id">
<swiper-item class="my_swipe_item" v-for="(item, idx) in home" :key="idx"> <!-- <view class="scor-item-title">{{item.title}}</view> -->
<img width="90%" height="100%" class="rounded-sm" fit="cover" :src="item.imgurl" /> </v-link>
</swiper-item>
</swiper>
</scroll-view> </scroll-view>
</div> </div>
<!-- 市场趋势 -->
<div class="scqs-list" style="margin-top: 3rem;margin-left: 1rem;"> <div class="scqs-list" style="margin-top: 2rem;margin-left: 1rem;">
<div class="dzdzc-bottom-list-top"> <div class="dzdzc-bottom-list-top">
<div class="dzdzc-bottom-list-title" style="font-size: 24px;"> <div class="dzdzc-bottom-list-title" style="font-size: 24px;">
{{ $t("shou.a8") }} {{ $t("shou.a8") }}
@ -189,15 +203,15 @@
<div style="width: 32%;text-align: right;">{{ $t("shou.a10") }}</div> <div style="width: 32%;text-align: right;">{{ $t("shou.a10") }}</div>
<div style="width: 25%;text-align: center;">{{ $t("shou.a11") }}</div> <div style="width: 25%;text-align: center;">{{ $t("shou.a11") }}</div>
</div> </div>
<div class="scqs-list-li-content" v-for="item in indexList" :key="item.id" <div class="scqs-list-li-content" v-for="item in homeList2" :key="item.id"
style="display: flex;justify-content: space-between;margin-bottom: 1.5rem;"> style="display: flex;justify-content: space-between;margin-bottom: 1.5rem;">
<div style="width: 40%;"> <div style="width: 40%;">
<img style="width: 25px;height: 25px;vertical-align: middle;margin-right: 0.4rem;" <img style="width: 25px;height: 25px;vertical-align: middle;margin-right: 0.4rem;"
:src="item.coin_icon" alt=""> :src="item.coin_icon" alt="">
{{ item.coin_name }} {{ item.coin_name }}
</div> </div>
<div style="width: 25%;text-align: right;">{{ item.high }}</div> <div style="width: 25%;text-align: right;">{{ item.close }}</div>
<div style="width: 25%;text-align: center;">{{ item.increase }}</div> <div style="width: 25%;text-align: center;" :class="item.increase>0?'increase_t':item.increase<0?'decrease_t':''">{{ item.increaseStr }}</div>
</div> </div>
</div> </div>
@ -244,6 +258,7 @@
</div> </div>
<!-- 多终端支持 -->
<div class="dzdzc-img"> <div class="dzdzc-img">
<div class="dzdzc-img-top"> <div class="dzdzc-img-top">
<div class="dzdzc-img-top-title"> <div class="dzdzc-img-top-title">
@ -274,6 +289,7 @@
</div> </div>
<!-- 在NVRcoin交易安全稳定 -->
<div class="dzdzc-bottom-list"> <div class="dzdzc-bottom-list">
<div class="dzdzc-bottom-list-top"> <div class="dzdzc-bottom-list-top">
<div class="dzdzc-bottom-list-title"> <div class="dzdzc-bottom-list-title">
@ -297,7 +313,7 @@
</div> </div>
</div> </div>
<img class="rightImg" src="../../assets/img/bg/1-1.png" alt="">
</div> </div>
<div class="dzdzc-bottom-lists dzdzc-bottom-lists2"> <div class="dzdzc-bottom-lists dzdzc-bottom-lists2">
@ -312,6 +328,7 @@
</div> </div>
</div> </div>
<img class="rightImg" src="../../assets/img/bg/2-1.png" alt="">
</div> </div>
@ -327,6 +344,7 @@
</div> </div>
</div> </div>
<img class="rightImg" src="../../assets/img/bg/3-1.png" alt="">
</div> </div>
@ -342,10 +360,12 @@
</div> </div>
</div> </div>
<img class="rightImg" src="../../assets/img/bg/4-1.png" alt="">
</div> </div>
</div> </div>
<!-- 新手指引 -->
<div class="dzdzc-bottom-list"> <div class="dzdzc-bottom-list">
<div class="dzdzc-bottom-list-top"> <div class="dzdzc-bottom-list-top">
<div class="dzdzc-bottom-list-title"> <div class="dzdzc-bottom-list-title">
@ -357,17 +377,12 @@
</div> </div>
<div class="dzdzc-bottom-lists dzdzc-bottom-lists5"> <v-link class="dzdzc-bottom-lists dzdzc-bottom-lists5" v-for="(articleItem, articleIndex) in articleList" :key="articleIndex"
:to="'/pages/help/detail?id='+articleItem.id">
</div> <!-- <view class="list-box m-b-md m-t-lg" :style="{backgroundImage: bgUrl(articleItem.full_cover)}"></view> -->
<!-- <view class="list-box m-b-md m-t-lg" :style="{backgroundImage: `url('${articleItem.full_cover} ');`}"></view> -->
<div class="dzdzc-bottom-lists dzdzc-bottom-lists6"> <!-- <view class="">{{ articleItem.title }}</view> -->
</v-link>
</div>
<div class="dzdzc-bottom-lists dzdzc-bottom-lists7">
</div>
</div> </div>
<div class="ljzqsy-box"> <div class="ljzqsy-box">
@ -375,7 +390,10 @@
<div class="ljzqsy-box-content-title"> <div class="ljzqsy-box-content-title">
{{ $t("shou.a40") }} {{ $t("shou.a40") }}
</div> </div>
<div @click="login_in()" class="ljzqsy-box-content-btn"> <div @click="login_in()" class="ljzqsy-box-content-btn" v-if="!isLogin">
{{ $t("shou.a41") }}
</div>
<div @click="toTrad()" class="ljzqsy-box-content-btn" v-else>
{{ $t("shou.a41") }} {{ $t("shou.a41") }}
</div> </div>
</div> </div>
@ -1042,6 +1060,7 @@ export default {
marketList: [], marketList: [],
marketListHe: [], marketListHe: [],
homeList: [], homeList: [],
homeList2: [],
home: {}, home: {},
notice: [], notice: [],
wap: "", wap: "",
@ -1074,6 +1093,9 @@ export default {
num: 0, num: 0,
scrollTop: 0, scrollTop: 0,
refreshing: false, refreshing: false,
guideId: '',// ID
guideList: [],//
articleList: []
} }
}, },
computed: { computed: {
@ -1117,8 +1139,32 @@ export default {
// //
getCollegeList() { getCollegeList() {
College.getCategoryList().then(res => { College.getCategoryList().then(res => {
this.college = res.data let college = res.data;
console.log(res.data); console.log(res.data);
college.forEach(item => {
if (this.guideId === '') {
this.guideId = item.id;
}
this.guideList.push({
url : `/college/list/${item.id}`,
label : item.name,
value : item.name,
id : item.id
})
})
this.getArticleList();
})
},
getArticleList() {
College.getArticleList({
id:this.guideId
}).then(res => {
let data = res.data;
this.articleList = data.slice(0,3);
console.log(this.articleList, 222222);
setTimeout(() => {
// this.skroll();
}, 100);
}) })
}, },
goMine() { goMine() {
@ -1177,9 +1223,10 @@ export default {
console.log(ajax); console.log(ajax);
ajax.then((res) => { ajax.then((res) => {
this.home = res.data.bannerList this.home = res.data.bannerList
this.notice = res.data.noticeList // this.notice = res.data.noticeList
this.indexList = res.data.brokenLine this.indexList = res.data.brokenLine
this.homeList = res.data.homeList this.homeList = res.data.homeList
this.homeList2 = res.data.marketList[0].marketInfoList.slice(0,5)
this.marketList = res.data.marketList this.marketList = res.data.marketList
// this.infoActive = 1; // this.infoActive = 1;
this.dunshift() this.dunshift()
@ -1189,6 +1236,18 @@ export default {
}, 600) }, 600)
}).catch(() => { }) }).catch(() => { })
}, },
getNotice(){
Member.article({type:'notice'}).then((res)=>{
console.log(res.data.data, 1111222);
let arr = res.data.data;
arr.map(item=>{
if(item.id == 163 || item.id == 157 || item.id == 158){
this.notice.push(item)
}
})
// this.notice = res.data.data.slice(0,3);
}).catch((err) => { })
},
dunshift() { dunshift() {
if (this.marketList.filter((item) => item.collect).length) return if (this.marketList.filter((item) => item.collect).length) return
this.marketList.unshift({ this.marketList.unshift({
@ -1254,7 +1313,7 @@ export default {
sub sub
} = res } = res
if (sub == "indexMarketList") { if (sub == "indexMarketList") {
this.marketList = data this.marketList = data;
this.marketList.forEach((item, index) => { this.marketList.forEach((item, index) => {
item.marketInfoList.forEach((iitem, iindex) => { item.marketInfoList.forEach((iitem, iindex) => {
iitem.kline = { iitem.kline = {
@ -1264,6 +1323,9 @@ export default {
}) })
this.dunshift() this.dunshift()
this.replaceOptional() this.replaceOptional()
// this.homeList2 = data[0].marketInfoList.slice(0,5);
console.log(this.homeList2, '----------市场趋势获取动态');
} }
}) })
let msg = "swapMarketList" let msg = "swapMarketList"
@ -1278,6 +1340,11 @@ export default {
sub sub
} = res } = res
if (sub == msg) { if (sub == msg) {
if (sub == "swapMarketList") {
//
// this.homeList = data[0].marketInfoList;
}
this.marketListHe = data[0].marketInfoList this.marketListHe = data[0].marketInfoList
this.marketListHe.forEach((item, index) => { this.marketListHe.forEach((item, index) => {
// item.kline=item.series // item.kline=item.series
@ -1394,12 +1461,24 @@ export default {
login_in() { login_in() {
this.$router.push({ path: '/pages/login/index' }) this.$router.push({ path: '/pages/login/index' })
},
toTrad(){
// this.$router.push({ path: '/pages/login/index' })
this.tabChange("exchange-operation")
},
toRecharge(){
if(this.detail.primary_status){
this.$router.push({ path: '/pages/assets/recharge' })
}else{
this.$router.push({ path: '/pages/auth/primary' })
}
} }
}, },
// created() { // created() {
// this.indexList(); // this.indexList();
// }, // },
mounted() { mounted() {
this.getNotice();
this.getCollegeList() this.getCollegeList()
this.onRefresh() this.onRefresh()
this.indexData() this.indexData()
@ -1499,6 +1578,7 @@ export default {
padding: 2.6667rem padding: 2.6667rem
/* 100px -> 2.6667rem */ /* 100px -> 2.6667rem */
0; 0;
box-sizing: content-box;
.num-top { .num-top {
// justify-content: space-around; // justify-content: space-around;
@ -1540,12 +1620,17 @@ export default {
} }
.title3 { .title3 {
color: #4EAA83;
font-size: 14px; font-size: 14px;
} }
} }
} }
.increase_t{
color: #4EAA97 !important;
}
.decrease_t{
color: #CF6A57 !important;
}
.scqs-list-bottom-box { .scqs-list-bottom-box {
width: 40%; width: 40%;
margin-top: 1rem; margin-top: 1rem;
@ -1563,14 +1648,16 @@ export default {
} }
.dzdzc-img { .dzdzc-img {
margin-top: 80px; margin-top: 40px;
width: 100%; width: 100%;
height: 100%; height: 1370upx;
background-image: url('../../assets/img/bg/app.png'); background-image: url('../../assets/img/bg/app.png');
background-size: 100% 100%; background-size: 100% 100%;
background-position: 100% 100%; background-position: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
position: relative; display: flex;
flex-direction: column;
justify-content: space-between;
.dzdzc-img-top { .dzdzc-img-top {
padding: 2rem 0 0 1rem; padding: 2rem 0 0 1rem;
@ -1590,10 +1677,7 @@ export default {
.dzdzc-img-bottom { .dzdzc-img-bottom {
width: 100%; width: 100%;
position: absolute; padding: 0.5rem 1rem 1rem;
bottom: 2rem;
left: 1rem;
padding-right: 2rem;
.dzdzc-img-bottom-title { .dzdzc-img-bottom-title {
color: #fff; color: #fff;
@ -1647,15 +1731,22 @@ export default {
.dzdzc-bottom-lists { .dzdzc-bottom-lists {
width: 100%; width: 100%;
height: 170px; min-height: 170px;
margin-top: 1rem; margin-top: 1rem;
background-image: url('../../assets/img/bg/1.png'); background-image: url('../../assets/img/bg/1.png');
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
display: flex;
align-items: center;
img.rightImg{
width: 260upx;
height: 170upx;
}
.dzdzc-bottom-lists-text { .dzdzc-bottom-lists-text {
width: 66%; width: 66%;
padding-top: 0.9rem; padding: 0.9rem 0px;
margin-left: 1rem; margin-left: 1rem;
.dzdzc-bottom-lists-text-title { .dzdzc-bottom-lists-text-title {
@ -1677,32 +1768,61 @@ export default {
.dzdzc-bottom-lists2 { .dzdzc-bottom-lists2 {
width: 100%; width: 100%;
height: 170px; min-height: 170px;
margin-top: 1rem; margin-top: 1rem;
background-image: url('../../assets/img/bg/2.png'); background-image: url('../../assets/img/bg/2.png');
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
.dzdzc-bottom-lists-text {
width: 78%;
padding: 0.9rem 0px;
margin-left: 1rem;
.dzdzc-bottom-lists-text-title {
font-size: 18px;
color: #fff;
}
.dzdzc-bottom-lists-text-t {
font-size: 12px;
color: gray;
margin-top: 0.5rem;
}
}
img.rightImg{
width: 250upx;
height: 250upx;
}
} }
.dzdzc-bottom-lists3 { .dzdzc-bottom-lists3 {
width: 100%; width: 100%;
height: 170px; min-height: 170px;
margin-top: 1rem; margin-top: 1rem;
background-image: url('../../assets/img/bg/3.png'); background-image: url('../../assets/img/bg/3.png');
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
img.rightImg{
width: 180upx;
height: 180upx;
}
} }
.dzdzc-bottom-lists4 { .dzdzc-bottom-lists4 {
width: 100%; width: 100%;
height: 170px; min-height: 170px;
margin-top: 1rem; margin-top: 1rem;
background-image: url('../../assets/img/bg/4.png'); background-image: url('../../assets/img/bg/2.png');
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
img.rightImg{
width: 220upx;
height: 220upx;
}
} }
.dzdzc-bottom-lists5 { .dzdzc-bottom-lists5:nth-of-type(1) {
width: 100%; width: 100%;
height: 170px; height: 170px;
margin-top: 1rem; margin-top: 1rem;
@ -1711,7 +1831,7 @@ export default {
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.dzdzc-bottom-lists6 { .dzdzc-bottom-lists5:nth-of-type(2) {
width: 100%; width: 100%;
height: 170px; height: 170px;
margin-top: 1rem; margin-top: 1rem;
@ -1720,7 +1840,7 @@ export default {
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.dzdzc-bottom-lists7 { .dzdzc-bottom-lists5:nth-of-type(3) {
width: 100%; width: 100%;
height: 170px; height: 170px;
margin-top: 1rem; margin-top: 1rem;
@ -2069,11 +2189,12 @@ export default {
} }
.my-swipe { .my-swipe {
height: 150px; width: 100vw;
height: 170px;
.my_swipe_item { .my_swipe_item {
display: inline !important; display: inline !important;
width: 60% !important; // width: 60% !important;
// height: 90% !important; // height: 90% !important;
} }
@ -2087,6 +2208,40 @@ export default {
} }
} }
//
.scor-box{
width: 100vw;
height: 110px;
white-space: nowrap;
padding: 0px 15px;
::-webkit-scrollbar { display:none !important; }
.scor-item{
width: 414upx !important;
height: 220upx !important;
margin-right: 15px;
display: inline-block;
}
.scor-item:nth-of-type(1){
background-image: url("../../assets/img/bg/图片 7@1x.png");
background-size: 100% 100%;
}
.scor-item:nth-of-type(2){
background-image: url("../../assets/img/bg/图片 9@1x.png");
background-size: 100% 100%;
}
.scor-item:nth-last-child(1){
margin-right: 0px;
background-image: url("../../assets/img/bg/图片 10@1x.png");
background-size: 100% 100%;
}
.scor-item-title{
font-size: 12px;
display: -webkit-box;//将盒子转换为弹性盒子 -webkit-box-orient: vertical;//文本显示方式,默认水平 -webkit-line-clamp: 1;//
word-wrap: break-word;
word-break:break-all;// 英文换行 overflow: hidden;
padding: 20px;
}
}
// //
.swiper-imgbox { .swiper-imgbox {
width: 375px; width: 375px;

49
pages/exchange/open-position.vue

@ -1331,52 +1331,41 @@ export default {
symbol: this.symbolLeft, symbol: this.symbolLeft,
}; };
Contract.getSymbolDetail(data).then((res) => { Contract.getSymbolDetail(data).then((res) => {
console.log(3333333333333); console.info('res.data', res.data.default_lever, res.data.lever_rage)
console.info(res)
this.unit_amount = res.data.unit_amount; this.unit_amount = res.data.unit_amount;
// if (!this.lever_rage.length) {
this.lever_rage = res.data.lever_rage.map((item) => ({ this.lever_rage = res.data.lever_rage.map((item) => ({
label: item, label: item,
value: item, value: item,
})); }));
console.log(444444444444);
// let index = res.data.lever_rage.indexOf(res.data.default_lever); let e={value:res.data.default_lever, label: res.data.default_lever}
// this.dropdwonText = this.lever_rage[index].label
// this.dropdwonText = res.data.default_lever
// console.log('dropdwonText',this.dropdwonText);
// lever v-dropdwontext
console.log("45454545454",res.data.lever_rage.indexOf(res.data.default_lever));
this.leverShow = (res.data.lever_rage.indexOf(res.data.default_lever)).toString();
// this.form.lever_rate = this.lever_rage[2].value;
this.form.lever_rate = res.data.default_lever;
// this.lever_rage.length =0;
// console.info(this.form.lever_rate)
console.info(res.data.default_lever);
// let e=this.lever_rage[2]
// let e = res.data.default_lever
let e={value:res.data.default_lever}
console.log('111111111111111', this.leverShow);
this.openNum(e); this.openNum(e);
// }
this.$emit("getSymbolDetail", res.data); this.$emit("getSymbolDetail", res.data);
console.log(5555555555);
if (!this.form.lever_rate) {
// this.form.lever_rate = this.lever_rage[2].value;
this.form.lever_rate = res.data.default_lever;
this.openNum(e);
}
}); });
}, },
// //
openNum(e) { openNum(e) {
if (e) { // console.log(e, '', this.lever_rage);
this.form.lever_rate = e.value
}
if (!this.isLogin) return; if (!this.isLogin) return;
let data = { let data = {
symbol: this.symbolLeft, //ETH symbol: this.symbolLeft, //ETH
lever_rate: this.form.lever_rate, //10 lever_rate: this.form.lever_rate, //10
}; };
if (e) {
this.form.lever_rate = e.value;
data.lever_rate = e.value;
for(let item =0;item<this.lever_rage.length;item++){
if(e.value==this.lever_rage[item].value){
// leverShow v-dropdwontext
// indexof-1
this.leverShow = item.toString();
}
}
// console.log('111111111111', this.leverShow, this.form.lever_rate);
}
Contract.openNum(data, {toast: false}).then((res) => { Contract.openNum(data, {toast: false}).then((res) => {
this.maxNum = res.data; this.maxNum = res.data;
}); });

Loading…
Cancel
Save