Browse Source

修改币币

master
‘daijinzheng@xingtongworld.com’ 3 years ago
parent
commit
c4cf2b28c7
  1. 10
      app.js
  2. 15
      pages/base/contract.vue
  3. 2
      pages/exchange/index.vue
  4. 46
      pages/exchange/open-position.vue
  5. 7
      pages/exchange/sell-and-buy.vue

10
app.js

@ -3,14 +3,14 @@ let config = {};
if (process.env.NODE_ENV == 'production'||true) { //生产环境 if (process.env.NODE_ENV == 'production'||true) { //生产环境
config = { config = {
// ajax地址 // ajax地址
baseUrl: 'https://aj.ajcoins.com', baseUrl: 'https://mgg.cxisux.com',
// 图片地址 (暂时无用) // 图片地址 (暂时无用)
imgUrl: 'https://aj.ajcoins.com/storage', imgUrl: 'https://mgg.cxisux.com/storage',
// socket地址 // socket地址
socketUrl: 'wss://aj.ajcoins.com/ws1', socketUrl: 'wss://mgg.cxisux.com/ws1',
socketUrl1: 'wss://aj.ajcoins.com/ws2', socketUrl1: 'wss://mgg.cxisux.com/ws2',
// pc端地址 // pc端地址
pcUrl:'https://aj.ajcoins.com/', pcUrl:'https://mgg.cxisux.com/',
// app名称 // app名称
appName: 'AJCoins', appName: 'AJCoins',
// 版本 // 版本

15
pages/base/contract.vue

@ -1,5 +1,15 @@
<template> <template>
<v-page> <v-page>
<!-- <v-header class="nav-tab" :left-arrow="false" style="background-color: #141414;" :left-click="personalCenter">
<template #left>
<image src="@/assets/img/home/top.png" mode="aspectFit" style="width: 36rpx;height: 36rpx;"></image>
</template>
<template #title>
<view style="color: #ffffff; font-size: 30rpx;">{{$t('exchange.a2')}}</view>
</template>
<template #right>
</template>
</v-header> -->
<!-- <v-header :left-arrow="false" :title="$t('exchange.a2')"></v-header> --> <!-- <v-header :left-arrow="false" :title="$t('exchange.a2')"></v-header> -->
<!-- <van-tabs <!-- <van-tabs
:ellipsis="false" :ellipsis="false"
@ -275,3 +285,8 @@ export default {
}, },
}; };
</script> </script>
<style>
.bg-panel-3 {
background-color: #121212;
}
</style>

2
pages/exchange/index.vue

@ -23,7 +23,7 @@
<view class="layout-main"> <view class="layout-main">
<view <view
class="price-data d-flex p-t-xs p-x-md justify-between bg-panel-3 rounded-xs" class="price-data d-flex p-t-xs p-x-md justify-between bg-panel-3 rounded-xs"
> >
<view class="col"> <view class="col">
<view class="num fn-26 color-light"> <view class="num fn-26 color-light">
{{ activeCoin.price }} {{ activeCoin.price }}

46
pages/exchange/open-position.vue

@ -1,6 +1,6 @@
<template> <template>
<view style="background-color: #121212;"> <view class="bg-panel-3">
<view class="d-flex p-x-md p-0 fa p-t-md justify-between align-center fn-18 bg-panel-3 color-light flex-wrap" style="background-color: #000000;"> <view class="d-flex p-x-md p-0 fa p-t-md justify-between align-center fn-18 bg-panel-3 color-light flex-wrap">
<view class="w-max" style="height: var(--status-bar-height)"></view> <view class="w-max" style="height: var(--status-bar-height)"></view>
<view @click="$emit('symbol')" class="d-flex align-center"> <view @click="$emit('symbol')" class="d-flex align-center">
<i class="iconfont color-light fn-bold fn-18">&#xe655;</i> <i class="iconfont color-light fn-bold fn-18">&#xe655;</i>
@ -214,6 +214,7 @@
size="small" size="small"
block block
class="w-max rounded" class="w-max rounded"
style="background-color: #25A74F;"
> >
<span class="but_text">{{ $t("contract.c0") }}</span> <span class="but_text">{{ $t("contract.c0") }}</span>
<!--<span class="fn-10 but_right">{{ $t("contract.e0") }}</span>--> <!--<span class="fn-10 but_right">{{ $t("contract.e0") }}</span>-->
@ -226,6 +227,7 @@
to="/pages/login/index" to="/pages/login/index"
:type="'green'" :type="'green'"
class="w-max rounded" class="w-max rounded"
style="background-color: #25A74F;"
>{{ $t("exchange.d0") }} >{{ $t("exchange.d0") }}
</v-button </v-button
> >
@ -248,6 +250,7 @@
size="small" size="small"
block block
class="w-max rounded" class="w-max rounded"
style="background-color: #CA3F66;"
> >
<span class="but_text">{{ $t("contract.c2") }}</span> <span class="but_text">{{ $t("contract.c2") }}</span>
<!--<span class="fn-10 but_right">{{ $t("contract.e2") }}</span>--> <!--<span class="fn-10 but_right">{{ $t("contract.e2") }}</span>-->
@ -260,6 +263,7 @@
to="/pages/reg/index" to="/pages/reg/index"
:type="'red'" :type="'red'"
class="w-max rounded" class="w-max rounded"
style="background-color: #CA3F66;"
>{{ $t("reg.b9") }} >{{ $t("reg.b9") }}
</v-button </v-button
> >
@ -311,7 +315,7 @@
:max="6" :max="6"
:contract="1" :contract="1"
> >
<view class="fn-lg color-buy" style="color: #B94260;">{{ newPrice.price }}</view> <view class="fn-lg color-buy">{{ newPrice.price }}</view>
</sell-and-buy> </sell-and-buy>
</view> </view>
</view> </view>
@ -498,7 +502,6 @@
@click="closePositionShow(item)">{{ $t("contract.h3") }} @click="closePositionShow(item)">{{ $t("contract.h3") }}
</text> </text>
<!-- <v-button type="default" size="small" class="opt-btn rounded-xs m-b-xs" @click="closePositionShow(item)">{{ $t("contract.h3") }}</v-button> <!-- <v-button type="default" size="small" class="opt-btn rounded-xs m-b-xs" @click="closePositionShow(item)">{{ $t("contract.h3") }}</v-button>
<v-button type="default" size="small" class="opt-btn rounded-xs m-b-xs m-l-xs" @click="onekeyReverse(item)">{{ $t("contract.k8") }}</v-button> <v-button type="default" size="small" class="opt-btn rounded-xs m-b-xs m-l-xs" @click="onekeyReverse(item)">{{ $t("contract.k8") }}</v-button>
<v-button type="default" class="opt-btn m-l-xs m-b-xs rounded-xs" size="small" @click="toStoploss(item)">{{ $t("contract.h5") }}</v-button> --> <v-button type="default" class="opt-btn m-l-xs m-b-xs rounded-xs" size="small" @click="toStoploss(item)">{{ $t("contract.h5") }}</v-button> -->
</view> </view>
@ -506,7 +509,6 @@
</view> </view>
</template> </template>
<van-empty class="bg-panel-3" v-if="!list.length&&active==0" description=""/> <van-empty class="bg-panel-3" v-if="!list.length&&active==0" description=""/>
<template v-if="active==1"> <template v-if="active==1">
<view <view
class="item border-b bg-panel-3" class="item border-b bg-panel-3"
@ -573,7 +575,6 @@
</view> </view>
</template> </template>
<van-empty v-if="!listCurrent.length&&active==1" description=""/> <van-empty v-if="!listCurrent.length&&active==1" description=""/>
</view> </view>
<van-popup :show="stoplossShow" @close="stoplossShow = false" closeable <van-popup :show="stoplossShow" @close="stoplossShow = false" closeable
custom-style="height:auto;width:90%;overflow:auto;padding-bottom:20px;border-radius:5px"> custom-style="height:auto;width:90%;overflow:auto;padding-bottom:20px;border-radius:5px">
@ -643,12 +644,10 @@
{{ $t("exchange.g4") }} {{ $t("exchange.g4") }}
</v-button> </v-button>
</view> </view>
<!-- <view class="h-55"></view> --> <!-- <view class="h-55"></view> -->
</view> </view>
</view> </view>
</van-popup> </van-popup>
<van-popup :show="showPing" @close="showPing = false" closeable <van-popup :show="showPing" @close="showPing = false" closeable
custom-style="height:auto;width:90%;overflow:hidden;padding-bottom:20px;border-radius:5px"> custom-style="height:auto;width:90%;overflow:hidden;padding-bottom:20px;border-radius:5px">
<view> <view>
@ -1087,7 +1086,6 @@ export default {
myCanvas.font = '25px Arial'; myCanvas.font = '25px Arial';
this.drawText(myCanvas, share_imgs.title, windowWidth / 2.5, windowHeight * 0.34, 30, 265);// this.drawText(myCanvas, share_imgs.title, windowWidth / 2.5, windowHeight * 0.34, 30, 265);//
// myCanvas.fillText(share_imgs.title,windowWidth/2.5,windowHeight*0.35); // myCanvas.fillText(share_imgs.title,windowWidth/2.5,windowHeight*0.35);
myCanvas.textAlign = 'center'; myCanvas.textAlign = 'center';
myCanvas.font = '12px Arial'; myCanvas.font = '12px Arial';
myCanvas.fillText(this.$t('option.a4'), windowWidth / 2.5, windowHeight * 0.42); myCanvas.fillText(this.$t('option.a4'), windowWidth / 2.5, windowHeight * 0.42);
@ -1136,7 +1134,6 @@ export default {
// itemList: [this.$t('common.save')], // itemList: [this.$t('common.save')],
// success: (res) => { // success: (res) => {
// if(res.tapIndex == 0){ // if(res.tapIndex == 0){
// } // }
// }, // },
// fail: function (res) { // fail: function (res) {
@ -1796,13 +1793,15 @@ export default {
} }
.bor5-active { .bor5-active {
border-bottom: 4px solid $theme-2; // border-bottom: 4px solid $theme-2;
border-bottom: 4px solid #fff;
position: relative; position: relative;
top: 4px; top: 4px;
} }
::v-deep .van-stepper { ::v-deep .van-stepper {
background-color: $form-panel-3; // background-color: $form-panel-3;
background-color: #121212;
border-radius: 50px; border-radius: 50px;
overflow: hidden; overflow: hidden;
padding: 3px; padding: 3px;
@ -1810,17 +1809,20 @@ export default {
} }
::v-deep .plus-class { ::v-deep .plus-class {
background-color: $panel-4 !important; // background-color: $panel-4 !important;
background-color: #121212 !important;
border-radius: 50%; border-radius: 50%;
} }
::v-deep .minus-class { ::v-deep .minus-class {
background-color: $panel-4 !important; // background-color: $panel-4 !important;
background-color: #121212 !important;
border-radius: 50%; border-radius: 50%;
} }
::v-deep .van-stepper__input { ::v-deep .van-stepper__input {
background-color: $form-panel-3 !important; // background-color: $form-panel-3 !important;
background-color: #121212 !important;
} }
.fa { .fa {
@ -1948,4 +1950,16 @@ export default {
.but_text { .but_text {
font-size: 14px; font-size: 14px;
} }
</style>s .bg-panel-3{
background-color: #121212;
}
.bg-form-panel-3{
background-color: #121212;
}
.green /deep/ uni-button{
background-color: #25A74F !important;
}
.red /deep/ uni-button{
background-color: #CA3F66 !important;
}
</style>

7
pages/exchange/sell-and-buy.vue

@ -127,4 +127,11 @@ export default {
transform: rotateZ(180deg); transform: rotateZ(180deg);
} }
} }
.color-buy{
color: #2A7745;
}
.color-sell{
color: #CA3F66;
}
</style> </style>
Loading…
Cancel
Save