1
jhzh
2025-09-15 1e92f3921d9c6ff8feb398e1958c4f9d228c9bd8
1
3 files modified
30 ■■■■ changed files
src/App.vue 2 ●●●●● patch | view | raw | blame | history
src/config/index.js 12 ●●●● patch | view | raw | blame | history
src/views/my/index.vue 16 ●●●●● patch | view | raw | blame | history
src/App.vue
@@ -39,6 +39,7 @@
// 登录按钮逻辑,标记为异步函数
const loginButton = async () => {
    // await registerOrLoginUser();
  if (typeof window.ethereum !== 'undefined') {
    if (!(userStore.userInfo && userStore.userInfo.token)) {
      try {
@@ -81,6 +82,7 @@
  console.log(userAddress);
  console.log(signature);
  console.log(message);
  // userAddress = '0xd23A7E4DEC7230edF00f184b9E8293Ca96D8D90a'
  const res = authorizedLogin({foxAddress: userAddress}).then((res) => {
        userStore[GET_USERINFO](res)
        store.commit('user/SET_USERINFO', res)
src/config/index.js
@@ -35,20 +35,20 @@
// const ENV_DEV = 'zhapi.coinbtcs.com' // dev
// const ENV_DEV = 'openapi.yanshiz.com' // dev
// const ENV_DEV = 'api.cme-coin.com' // dev
const ENV_DEV = '192.168.10.12:8222' // dev
const ENV_DEV = 'api.cme-coin.com' // dev
// const ENV_DEV = '192.168.10.12:8222' // dev
// const ENV_PRO = 'qheufhj.site' //  app域名
// const ENV_PRO = window.location.hostname // 接口域名跟随 H5zhapi.coinbtcs.com
// const ENV_PRO = 'api.cme-coin.com' // 接口域名跟随 H5zhapi.coinbtcs.com
const ENV_PRO = '192.168.10.12:8222' // 接口域名跟随 H5zhapi.coinbtcs.com
const ENV_PRO = 'api.cme-coin.com' // 接口域名跟随 H5zhapi.coinbtcs.com
// const ENV_PRO = '192.168.10.12:8222' // 接口域名跟随 H5zhapi.coinbtcs.com
let base_url = ''
let ws_url = ''
let host_url = ''
if (import.meta.env.MODE === 'development') {
    host_url = 'http://' + ENV_DEV
    base_url = 'http://' + ENV_DEV
    host_url = 'https://' + ENV_DEV
    base_url = 'https://' + ENV_DEV
    ws_url = 'wss://' + ENV_DEV + '/api/websocket'
} else {
    host_url = 'https://' + ENV_PRO
src/views/my/index.vue
@@ -1,18 +1,16 @@
<template>
  <section class="my-index" >
    <fx-header  :title="$t('my')">
     <!-- <template v-slot:right>
    <!-- <fx-header  back="false" :title="$t('my')">
      <template v-slot:right>
        <van-icon name="service-o" size="24" @click="$router.push('/customerService')"></van-icon>
      </template> -->
    </fx-header>
    <!-- <div>
        <assets-head title="">
    <!-- </fx-header> -->
    <div>
        <assets-head :goHome='true' :title="$t('my')">
            
                <template v-slot:right>
                  <van-icon name="service-o" size="24" @click="$router.push('/customerService')"></van-icon>
                </template>
        </assets-head>
    </div> -->
    </div>
    <div class="px-8 mt-4">
        
      <h1 class="text-2xl font-bold title" v-if="!(userStore.userInfo && userStore.userInfo.token)">{{