1
PC-20250623MANY\Administrator
2025-07-06 013e32fd5a7fe59fbe4e41e51e3084a45718348c
src/pages/newindex/components/chongzhi.vue
@@ -20,16 +20,28 @@
                </el-select>
              </div>
            </div>
            <div class="buysellmain">
          </div>
          <div style="display: flex;flex-direction: column;">
            <div >
              <el-upload :with-credentials="true" class="avatar-uploader" list-type="picture-card"
                  name="upload_file" :action="admin + '/user/upload.do'" :show-file-list="false"
                  :on-success="handleAvatarSuccess2" :before-upload="beforeAvatarUpload2">
                  <img v-if="form.img2key" :src="form.img2key" class="avatar" />
                  <i v-else class="el-icon-plus avatar-uploader-icon"></i>
              </el-upload>
            </div>
            <div class="buysellmain" style="height: 35px;">
              <div class="btns" @click="getrecharge">
                {{$t('hj172')}}
              </div>
            </div>
          </div>
          <div class="notice_every_box_right" v-if="payType==10">
          <!-- <div class="notice_every_box_right" v-if="payType==10">
            <div class="qrcode" ref="qrCodeUrl"></div>
            <div class="notice_every_box_right_price">{{optionsPay[3].channelDesc}}</div>
          </div>
          </div> -->
        </div>
        <div class="tixianliet">
          <el-table :data="tixianlist" style="width: 100%" border :highlight-current-row="false"
@@ -83,10 +95,18 @@
        amount: '',
        pageNum: 1,
        pageSize: 10,
        form: {
            name: "",
            idCard: "",
            img1key: "",
            img2key: "",
            img3key: "",
        },
        tixianlist: [],
        total: 0,
        optionsPay: [],
        payType: '',
        admin: process.env.VUE_APP_ADMIN ? process.env.VUE_APP_ADMIN : "https://brac.barcblays.com/",
      }
    },
    // components:{
@@ -123,9 +143,17 @@
      this.pageNum = page
      this.rechargeList()
    },
    beforeAvatarUpload2(file) {
        const isJPG = file.type === "image/jpeg" || file.type === "image/png";
        const isLt2M = file.size / 1024 / 1024 < 2;
        return isJPG && isLt2M;
    },
    handleAvatarSuccess2(res, file) {
        this.form.img2key = res.data.url;
    },
    async getPayInfo() {
        // 获取支付渠道
        let data = await api.queryPayChnnel();
        let data = await api.getPayInfo();
        if (data.status == 0) {
          this.optionsPay = data.data;
        } else {
@@ -147,8 +175,8 @@
        async getrecharge() {
          let opts = {
            payAmt: this.amount,
            payType: this.payType,
            currency: '',
            payTypeId: this.payType,
            img: '',
          };
          let data = await api.flyPay(opts);
          if (data.status == 0) {
@@ -162,6 +190,11 @@
  }
</script>
<style lang="less" scoped>
 /deep/ .el-upload {
    img{
      width: 100px !important;
    }
  }
  .notice_every_box_right_price {
    color: #fff;
  }