1
jhzh
2025-04-11 b36b1198a08006afa41b69b60b378597caacf8ad
1
4 files modified
137 ■■■■■ changed files
app.js 26 ●●●● patch | view | raw | blame | history
components/kline-charts/index.vue 4 ●●●● patch | view | raw | blame | history
pages/assets/recharge.vue 90 ●●●●● patch | view | raw | blame | history
pages/base/home.vue 17 ●●●●● patch | view | raw | blame | history
app.js
@@ -4,13 +4,13 @@
if (true) { //生产环境
    config = {
        // ajax地址
        baseUrl: 'https://www.h0l9a4v.top',
        baseUrl: 'https://app.kyccorp.com',
        // 图片地址 (暂时无用)
        imgUrl: 'https://www.h0l9a4v.top/storage',
        imgUrl: 'https://app.kyccorp.com/storage',
        // socket地址
        socketUrl: 'wss://www.h0l9a4v.top/ws1',
        socketUrl1: 'wss://www.h0l9a4v.top/ws2',
        socketUrl3: 'wss://www.h0l9a4v.top:8001/ws',
        socketUrl: 'wss://app.kyccorp.com/ws1',
        socketUrl1: 'wss://app.kyccorp.com/ws2',
        socketUrl3: 'wss://app.kyccorp.com:8001/ws',
        // pc端地址
        pcUrl: 'https://vip-WmagiBIT.org',
        // app名称
@@ -19,18 +19,18 @@
        version: '1.0.0',
        // 移动端地址
        mobile: 'https://vip-WmagiBIT.org',
        down: "https://www.h0l9a4v.top/download"
        down: "https://app.kyccorp.com/download"
    };
} else { //开发环境
    config = {
        baseUrl: 'https://www.h0l9a4v.top',
        imgUrl: 'https://www.h0l9a4v.top/upload',
        // socketUrl: 'ws://www.h0l9a4v.top:2346/',
        // socketUrl1: 'ws://www.h0l9a4v.top:2348/',
        socketUrl: 'wss://www.h0l9a4v.top/ws1',
        socketUrl1: 'wss://www.h0l9a4v.top/ws2',
        baseUrl: 'https://app.kyccorp.com',
        imgUrl: 'https://app.kyccorp.com/upload',
        // socketUrl: 'ws://app.kyccorp.com:2346/',
        // socketUrl1: 'ws://app.kyccorp.com:2348/',
        socketUrl: 'wss://app.kyccorp.com/ws1',
        socketUrl1: 'wss://app.kyccorp.com/ws2',
        // pc端地址
        pcUrl: 'https://www.h0l9a4v.top',
        pcUrl: 'https://app.kyccorp.com',
        // app名称
        appName: '本地开发',
        // 版本
components/kline-charts/index.vue
@@ -308,9 +308,9 @@
                    this.newwebsockt.close()
                }
                if (this.contract == 1) {
                    this.newwebsockt = new WebSocket('wss://www.h0l9a4v.top/ws2');
                    this.newwebsockt = new WebSocket('wss://app.kyccorp.com/ws2');
                } else {
                    this.newwebsockt = new WebSocket('wss://www.h0l9a4v.top/ws1');
                    this.newwebsockt = new WebSocket('wss://app.kyccorp.com/ws1');
                }
                // 监听 WebSocket 连接打开事件
pages/assets/recharge.vue
@@ -14,7 +14,9 @@
    </view>
    <view class="layout-main">
        <view style="margin: 20px; margin-bottom: 0px;">{{$t('common.select')}}</view>
      <view class="coin border-b p-x-lg  d-flex justify-between m-t-md" style="border: 2px solid #f3f3f3;margin: 20px;padding:10px; border-radius: 4px;" @click="coinListShow=true">
            <view class="coin border-b p-x-lg  d-flex justify-between m-t-md"
                style="border: 2px solid #f3f3f3;margin: 20px;padding:10px; border-radius: 4px;"
                @click="coinListShow=true">
        <view class=" color-light" style="color: #000;
font-size: 16px;
font-style: normal;
@@ -32,10 +34,8 @@
      <view class="bg-panel-3">
            <view class="rounded-md">
                <view style="margin: 20px; margin-bottom: 0px;">{{$t('assets.b7')}}</view>
              <view
                class="d-flex flex-wrap justify-between align-center p-x-lg p-y-md color-light"
                v-if="coin=='USDT'"
              >
                    <view class="d-flex flex-wrap justify-between align-center p-x-lg p-y-md color-light"
                        v-if="coin=='USDT'">
                <!-- <span>{{$t('assets.b7')}}</span> -->
                <view class="group d-flex fn-12 color-light">
               <!--  <view class="rounded-xs p-x-lg p-y-ms m-r-md"
@@ -43,16 +43,10 @@
                    size="mini"
                    @click="changeRechargeType(1)"
                  >OMNI</view> -->
                  <view class="rounded-xs p-x-lg p-y-ms m-r-md"
                    size="mini"
                    @click="changeRechargeType(2)"
                    :class="rechargeType==2?'bor-active':'bg-panel-3 border'"
                  >ERC20</view>
                  <view class="rounded-xs p-x-lg p-y-ms"
                    size="mini"
                    @click="changeRechargeType(3)"
                    :class="rechargeType==3?'bor-active':'bg-panel-3 border'"
                  >TRC20</view>
                            <view class="rounded-xs p-x-lg p-y-ms m-r-md" size="mini" @click="changeRechargeType(2)"
                                :class="rechargeType==2?'bor-active':'bg-panel-3 border'">ERC20</view>
                            <view class="rounded-xs p-x-lg p-y-ms" size="mini" @click="changeRechargeType(3)"
                                :class="rechargeType==3?'bor-active':'bg-panel-3 border'">TRC20</view>
                </view>
              </view>
              <!-- <view class="color-sell fn-12 p-x-lg"  style="color: #DB7A20;
@@ -75,33 +69,40 @@
            <view class="info p-b-md rounded-md">
              <view class="address p-t-xs">
                <!-- <view class="label w-100">{{$t('assets.e7')}}</view> -->
                <view class="border-r w-10/12 autowidth p-x-md p-y-ms address-txt p-x-xs flex-fill color-light fn-center bg-form-panel-3 rounded-xs">{{form.address}}</view>
                        <view
                            class="border-r w-10/12 autowidth p-x-md p-y-ms address-txt p-x-xs flex-fill color-light fn-center bg-form-panel-3 rounded-xs">
                            {{form.address}}</view>
                <!-- #ifndef H5 -->
                <view style="border-radius: 10px;
background: linear-gradient(180deg, #ED493B 0%, #FA6D4A 100%);
box-shadow: 0px 4px 9px 0px rgba(239, 78, 61, 0.40);" class="w-9/12 bg-lin p-y-ms rounded-xs m-t-md autowidth color-white p-x-xs fn-16 fn-center" @click="$copy(form.address)">
box-shadow: 0px 4px 9px 0px rgba(239, 78, 61, 0.40);"
                            class="w-9/12 bg-lin p-y-ms rounded-xs m-t-md autowidth color-white p-x-xs fn-16 fn-center"
                            @click="$copy(form.address)">
                  {{$t('recharge.a4')}}<i class="iconfont color-white m-l-xs">&#xe706;</i>
                </view>
                <!-- #endif -->
                <!-- #ifdef H5 -->
                <view style="border-radius: 10px;" class="w-9/12 bg-lin p-y-ms rounded-xs m-t-md autowidth color-white p-x-xs fn-16 fn-center" @click="copy(form.address)">
                        <view style="border-radius: 10px;"
                            class="w-9/12 bg-lin p-y-ms rounded-xs m-t-md autowidth color-white p-x-xs fn-16 fn-center"
                            @click="copy(form.address)">
                  {{$t('recharge.a4')}}<i class="iconfont color-white m-l-xs">&#xe706;</i>
                </view>
                <!-- #endif -->
              </view>
             <!-- <view class="address d-flex align-center justify-between p-t-xs m-b-md" style="    width: 70%;
                    <view class="address d-flex align-center justify-between p-t-xs m-b-md" style="    width: 90%;
    margin: auto;
    text-align: center;">
                <view class="label w-30">
    text-align: center;margin-top: 20px;">
                <view class="label w-30" style="background-color: #fff;">
                                    <img src="static/img/icon/num.png" alt="" class="h-20" /></view>
                <v-input
                  type="number"
                  :placeholder="$t('assets.e8')"
                  class="border-b flex-fill p-y-xs color-light"
                  v-model="form.amount"
                />
              </view>
              <view class="address d-flex align-center justify-between p-t-xs m-b-md" style="    width: 70%;
              <view class="address d-flex align-center justify-between p-t-xs m-b-md" style="    width: 90%;
              margin: auto;
              text-align: center;">
                <view class="label w-30">
@@ -113,16 +114,14 @@
                          <view v-if="!form.images">{{$t('common.a8')}}</view>
                            <img v-else :src="form.images" alt style="max-width:100%" />
                          </div>
                        </view> -->
                        </view>
              
            <!-- <view @click="recharge" style="width: 80% !important;border-radius: 10px;
border: 1px solid #EA4338;color: #EE4A3C;line-height: 38px;height: 38px;
font-size: 16px;
font-style: normal;
font-weight: 400;
box-shadow: 0px 4px 9px 0px rgba(23, 138, 255, 0.20);    text-align: center;    border-radius: 6px;margin: auto;">
                    <view @click="recharge" style="border-radius: 10px;
background: linear-gradient(to right, #f6c769, #f3b644);
box-shadow: 0px 4px 9px 0px rgba(239, 78, 61, 0.40);"
                        class="w-9/12 bg-lin p-y-ms rounded-xs m-t-md autowidth color-white p-x-xs fn-16 fn-center">
                {{$t('common.confirm')}}
            </view> -->
                    </view>
              
            </view>
            <view class="m-y-md rounded-md">
@@ -167,7 +166,8 @@
                    </td>
                  </tr>
                  <tr v-if="loadMore">
                    <td colspan="3" class="fn-center p-xs link-active" @click="more">{{$t('assets.d4')}}</td>
                                <td colspan="3" class="fn-center p-xs link-active" @click="more">{{$t('assets.d4')}}
                                </td>
                  </tr>
                </tbody>
              </table>
@@ -183,8 +183,12 @@
import Wallet from "@/api/wallet";
import formData from "@/utils/class/date";
import Member from "@/api/member";
import {mapGetters} from 'vuex'
import {handleClipboard} from '../../utils/class/copy.js'
    import {
        mapGetters
    } from 'vuex'
    import {
        handleClipboard
    } from '../../utils/class/copy.js'
export default {
  components: {
    coinList,
@@ -270,7 +274,9 @@
        })
      },
      getFile(name) {
        this.$getFile({count:9}).then((res) => {
                this.$getFile({
                    count: 9
                }).then((res) => {
          this.upLoadImg(res, name);
        })
      },
@@ -348,7 +354,9 @@
      if(this.form.images == ""){
                return
      }
      Wallet.recharge(this.form, { btn: this.$refs.btn })
                Wallet.recharge(this.form, {
                        btn: this.$refs.btn
                    })
        .then(() => {
          this.$back();
          this.$toast.success(this.$t('assets.d5')+"!");
@@ -408,31 +416,37 @@
  .label {
    white-space: nowrap;
  }
  .address-txt {
    word-break: break-all;
  }
}
.qr-box {
  height: 150px;
  width: 150px;
  margin: 0 auto;
  border: 4px solid $white;
}
.trChange:nth-child(2n-1){
   box-shadow: $shadow;
    border-radius: $border-radius-xs;
    td{
        background: $panel-3;
        padding-top: $padding-sm;
        padding-bottom: $padding-sm;
    }
}
.bor-active{
    border: 1px solid $theme-1;
    position: relative;
    overflow: hidden;
    color: $theme-1;
}
.bor-active::before{
    content: '';
    position: absolute;
@@ -444,6 +458,7 @@
    border-color:transparent $theme-1 $theme-1 transparent;
    text-align: center;
}
.bor-active::after{
    content: '√';
    position: absolute;
@@ -456,18 +471,23 @@
    text-align: center;
    color: white;
}
.border-b{
    border-bottom: 5px solid $panel-3;
}
.autowidth{
    margin: 0 auto;
}
.bg-lin{
    background: linear-gradient(to right,#f6c769,#f3b644);
}
.color-black{
    color: black;
}
button{
    width: 80%;
}
pages/base/home.vue
@@ -545,14 +545,13 @@
          </view>
          <van-icon name="arrow" class="fn-18" />
        </v-link> -->
                <v-link to="/pages/service/service?id=33" tag="div"
                    class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
                    <view class="d-flex align-center">
                <a href="https://app.kyccorp.com/Kucoin-whitepaper.pdf" target="_blank" class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
                  <div class="d-flex align-center">
                        <img :src="$localImgUrl('Page10.png')" alt="" class="h-20 m-r-xs" />
                        <span class="color-light">{{$t('first.a1')}}</span>
                    </view>
                  </div>
                    <van-icon name="arrow" class="fn-18" />
                </v-link>
                </a>
                <v-link to="/pages/accountSettings/accountSettings" tag="div"
                    class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
                    <view class="d-flex align-center">
@@ -672,9 +671,9 @@
                        url: '/pages/mining/mining'
                    },
                    {
                        name: 'P2P',
                        name: 'KYC',
                        img: '/static/img/icon-P2P.png',
                        url: '/pages/notice/detail?id=383'
                        url: '/pages/auth/index'
                    },
                    {
                        name: this.$t("base.a4"),
@@ -1030,6 +1029,10 @@
    };
</script>
<style lang="scss" scoped>
    a {
      text-decoration: none;  /* 去掉下划线 */
      color: black;           /* 改变文字颜色 */
    }
    // .colbg {
    //   background-color: $bg;
    // }