新版交易所前段管理后台
1
admin
2026-03-02 e9fe78c63955119c615e0d185a2d9db737dbb11c
1
4 files modified
190 ■■■■■ changed files
.env.development 4 ●●●● patch | view | raw | blame | history
.env.production 4 ●●●● patch | view | raw | blame | history
src/crud/user-relation/basics.js 8 ●●●● patch | view | raw | blame | history
src/views/modules/user-relation/basics-variety-add-or-update.vue 174 ●●●●● patch | view | raw | blame | history
.env.development
@@ -4,8 +4,8 @@
# api接口请求地址
# VUE_APP_BASE_API = 'https://zhapi.coinbtcs.com'
# VUE_APP_BASE_API = 'http://192.168.10.7:8085'
VUE_APP_BASE_API = 'https://ddapi.fractionx-ex.com'
VUE_APP_BASE_API = 'https://blueapi.shenliankeji.top'
 # VUE_APP_BASE_API = 'http://192.168.10.6:8086'
# 静态资源文件url
VUE_APP_RESOURCES_URL = 'https://ddimg.fractionx-ex.com/'
VUE_APP_RESOURCES_URL = 'https://blueimg.shenliankeji.top/'
.env.production
@@ -5,10 +5,10 @@
# VUE_APP_BASE_API = 'https://mini-admin.mall4j.com/apis'
# VUE_APP_BASE_API = 'https://zhapi.coinbtcs.com/aip'
VUE_APP_BASE_API = 'https://ddapi.fractionx-ex.com'
VUE_APP_BASE_API = 'https://blueapi.shenliankeji.top'
# 静态资源文件url   app端的前端打開下
VUE_APP_RESOURCES_URL = 'https://ddimg.fractionx-ex.com/'
VUE_APP_RESOURCES_URL = 'https://blueimg.shenliankeji.top/'
src/crud/user-relation/basics.js
@@ -56,9 +56,15 @@
      value:'TEST'
    }]
  }, {
    label: '实名姓名',
    label: 'last name',
    prop: 'name'
  }, {
    label: 'first Name',
    prop: 'firstName'
  }, {
    label: '生日',
    prop: 'birth'
  }, {
    label: '绑定手机',
    prop: 'userMobile'
  }, {
src/views/modules/user-relation/basics-variety-add-or-update.vue
@@ -19,9 +19,27 @@
      <span>详细信息</span>
      <el-divider></el-divider>
      <el-form-item label="实名姓名" prop="userName" style="width: auto">
      <el-form-item label="last name" prop="userName" style="width: auto">
        <el-input
          v-model="dataForm.userName"
          placeholder=""
          disabled
          style="width: 510px"
        ></el-input>
      </el-form-item>
      <el-form-item label="first Name" prop="firstName" style="width: auto">
        <el-input
          v-model="dataForm.firstName"
          placeholder=""
          disabled
          style="width: 510px"
        ></el-input>
      </el-form-item>
      <el-form-item label="生日" prop="birth" style="width: auto">
        <el-input
          v-model="dataForm.birth"
          placeholder=""
          disabled
          style="width: 510px"
@@ -55,7 +73,7 @@
        ></el-input>
      </el-form-item>
      <span>证件照</span>
      <!-- <span>证件照</span>
      <el-divider></el-divider>
      <el-row>
        <el-col :span="8">
@@ -103,7 +121,7 @@
            </el-upload>
          </el-form-item>
        </el-col>
      </el-row>
      </el-row> -->
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false">关闭</el-button>
@@ -205,75 +223,75 @@
    dataFormSubmit: Debounce(function () {
      this.UpdateProjectBreed();
    }),
    handleAvatarSuccess0(res, file) {
      if (res.code == 0) {
        this.dataForm.idFrontImg = URL.createObjectURL(file.raw); //显示地址
        this.dataForm.imgUrl = res.data.path; //接口传递
        this.idFrontImg = this.dataForm.idFrontImg;
        this.idFrontImg1 = this.dataForm.imgUrl;
      } else {
        this.$message({
          message: res.msg,
          type: "error",
          duration: 1500,
          onClose: () => {},
        });
      }
    },
    beforeAvatarUpload0(file) {
      // const isJPG = file.type === 'image/jpeg';
      const isLt2M = file.size / 1024 / 1024 < 10;
      if (!isLt2M) {
        this.$message.error("上传图片大小不能超过 10MB!");
      }
      return isLt2M;
    },
    handleAvatarSuccess1(res, file) {
      if (res.code == 0) {
        this.dataForm.idBackImg = URL.createObjectURL(file.raw); //显示地址
        this.dataForm.imgUrl = res.data.path; //接口传递
        this.idBackImg = this.dataForm.idBackImg || "";
        this.idBackImg1 = this.dataForm.imgUrl;
      } else {
        this.$message({
          message: res.msg,
          type: "error",
          duration: 1500,
          onClose: () => {},
        });
      }
    },
    beforeAvatarUpload1(file) {
      // const isJPG = file.type === 'image/jpeg';
      const isLt2M = file.size / 1024 / 1024 < 10;
      if (!isLt2M) {
        this.$message.error("上传图片大小不能超过 10MB!");
      }
      return isLt2M;
    },
    handleAvatarSuccess2(res, file) {
      if (res.code == 0) {
        this.dataForm.handheldPhoto = URL.createObjectURL(file.raw); //显示地址
        this.dataForm.imgUrl = res.data.path; //接口传递
        this.handheldPhoto = this.dataForm.handheldPhoto || "";
        this.handheldPhoto1 = this.dataForm.imgUrl;
      } else {
        this.$message({
          message: res.msg,
          type: "error",
          duration: 1500,
          onClose: () => {},
        });
      }
    },
    beforeAvatarUpload2(file) {
      // const isJPG = file.type === 'image/jpeg';
      const isLt2M = file.size / 1024 / 1024 < 10;
      if (!isLt2M) {
        this.$message.error("上传图片大小不能超过 10MB!");
      }
      return isLt2M;
    },
    // handleAvatarSuccess0(res, file) {
    //   if (res.code == 0) {
    //     this.dataForm.idFrontImg = URL.createObjectURL(file.raw); //显示地址
    //     this.dataForm.imgUrl = res.data.path; //接口传递
    //     this.idFrontImg = this.dataForm.idFrontImg;
    //     this.idFrontImg1 = this.dataForm.imgUrl;
    //   } else {
    //     this.$message({
    //       message: res.msg,
    //       type: "error",
    //       duration: 1500,
    //       onClose: () => {},
    //     });
    //   }
    // },
    // beforeAvatarUpload0(file) {
    //   // const isJPG = file.type === 'image/jpeg';
    //   const isLt2M = file.size / 1024 / 1024 < 10;
    //   if (!isLt2M) {
    //     this.$message.error("上传图片大小不能超过 10MB!");
    //   }
    //   return isLt2M;
    // },
    // handleAvatarSuccess1(res, file) {
    //   if (res.code == 0) {
    //     this.dataForm.idBackImg = URL.createObjectURL(file.raw); //显示地址
    //     this.dataForm.imgUrl = res.data.path; //接口传递
    //     this.idBackImg = this.dataForm.idBackImg || "";
    //     this.idBackImg1 = this.dataForm.imgUrl;
    //   } else {
    //     this.$message({
    //       message: res.msg,
    //       type: "error",
    //       duration: 1500,
    //       onClose: () => {},
    //     });
    //   }
    // },
    // beforeAvatarUpload1(file) {
    //   // const isJPG = file.type === 'image/jpeg';
    //   const isLt2M = file.size / 1024 / 1024 < 10;
    //   if (!isLt2M) {
    //     this.$message.error("上传图片大小不能超过 10MB!");
    //   }
    //   return isLt2M;
    // },
    // handleAvatarSuccess2(res, file) {
    //   if (res.code == 0) {
    //     this.dataForm.handheldPhoto = URL.createObjectURL(file.raw); //显示地址
    //     this.dataForm.imgUrl = res.data.path; //接口传递
    //     this.handheldPhoto = this.dataForm.handheldPhoto || "";
    //     this.handheldPhoto1 = this.dataForm.imgUrl;
    //   } else {
    //     this.$message({
    //       message: res.msg,
    //       type: "error",
    //       duration: 1500,
    //       onClose: () => {},
    //     });
    //   }
    // },
    // beforeAvatarUpload2(file) {
    //   // const isJPG = file.type === 'image/jpeg';
    //   const isLt2M = file.size / 1024 / 1024 < 10;
    //   if (!isLt2M) {
    //     this.$message.error("上传图片大小不能超过 10MB!");
    //   }
    //   return isLt2M;
    // },
    UpdateProjectBreed() {
      //start
      this.$refs["dataForm"].validate((valid) => {
@@ -284,9 +302,9 @@
            method: "put",
            data: this.$http.adornData({
              uuid: this.dataForm.uuid,
              idFrontImg: this.idFrontImg1,
              idBackImg: this.idBackImg1,
              handheldPhoto: this.handheldPhoto1,
              // idFrontImg: this.idFrontImg1,
              // idBackImg: this.idBackImg1,
              // handheldPhoto: this.handheldPhoto1,
            }),
          }).then(({ data }) => {
            if (data.code == 0) {
@@ -325,9 +343,9 @@
        if (data.code == 0) {
          this.dataForm = data.data;
          this.idFrontImg = this.dataForm.idFrontImg || "";
          this.idBackImg = this.dataForm.idBackImg || "";
          this.handheldPhoto = this.dataForm.handheldPhoto || "";
          // this.idFrontImg = this.dataForm.idFrontImg || "";
          // this.idBackImg = this.dataForm.idBackImg || "";
          // this.handheldPhoto = this.dataForm.handheldPhoto || "";
        } else {
          this.$message({
            message: data.msg,