Browse Source

修改币币

master
‘daijinzheng@xingtongworld.com’ 2 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) { //生产环境
config = {
// ajax地址
baseUrl: 'https://aj.ajcoins.com',
baseUrl: 'https://mgg.cxisux.com',
// 图片地址 (暂时无用)
imgUrl: 'https://aj.ajcoins.com/storage',
imgUrl: 'https://mgg.cxisux.com/storage',
// socket地址
socketUrl: 'wss://aj.ajcoins.com/ws1',
socketUrl1: 'wss://aj.ajcoins.com/ws2',
socketUrl: 'wss://mgg.cxisux.com/ws1',
socketUrl1: 'wss://mgg.cxisux.com/ws2',
// pc端地址
pcUrl:'https://aj.ajcoins.com/',
pcUrl:'https://mgg.cxisux.com/',
// app名称
appName: 'AJCoins',
// 版本

15
pages/base/contract.vue

@ -1,5 +1,15 @@
<template>
<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> -->
<!-- <van-tabs
:ellipsis="false"
@ -275,3 +285,8 @@ export default {
},
};
</script>
<style>
.bg-panel-3 {
background-color: #121212;
}
</style>

2
pages/exchange/index.vue

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

46
pages/exchange/open-position.vue

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