Ui
yfx
2026-03-13 1a7c12ee93822c7d9fd50b4c9be699bc30ca5628
pages/quanyi/add.vue
@@ -95,8 +95,8 @@
    uni.request({
      url: _this.$webHost+'/api/v2/customer/getCstAddress',
      data:{
        customerId: uni.getStorageSync('ygxLogin').customerId,
        sourceId: uni.getStorageSync('ygxLogin').appId
        customerId: uni.getStorageSync('qxgLogin').customerId,
        sourceId: uni.getStorageSync('qxgLogin').appId
      },
      success: function (res) {
        _this.addressDetail = res.data.data;
@@ -105,7 +105,7 @@
    uni.request({
      url: _this.$webHost+'/api/v2/xinheyuan/bank/list/fake/'+uni.getStorageSync('ygxLogin').customerId,
      url: _this.$webHost+'/api/v2/xinheyuan/bank/list/fake/'+uni.getStorageSync('qxgLogin').customerId,
      success(res){
        console.log(res.data.data);
        this.bankList = res.data.data;
@@ -116,7 +116,7 @@
    uni.setStorageSync('windowHeight',uni.getSystemInfoSync().windowHeight)
    uni.request({
      url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('ygxLogin').customerId}`,
      url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('qxgLogin').customerId}`,
      method:'get',
      success:function(res){
        const dy = res.data.data[0];
@@ -162,7 +162,7 @@
      uni.request({
        url: _this.$webHost+'/api/v2/sign/signed/'+uni.getStorageSync('ygxLogin').customerId,
        url: _this.$webHost+'/api/v2/sign/signed/'+uni.getStorageSync('qxgLogin').customerId,
        method:'POST',
      })
@@ -170,7 +170,7 @@
        url: _this.$webHost+'/api/v2/pay/memberPurchaseBenefitsPays',
        method:'POST',
        data:{
          customerId: uni.getStorageSync('ygxLogin').customerId,
          customerId: uni.getStorageSync('qxgLogin').customerId,
          memberPeriodConfigId: uni.getStorageSync('memberPeriodConfigInfo').id
        },
        success(){
@@ -285,7 +285,7 @@
      uni.request({
        url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('ygxLogin').customerId}`,
        url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('qxgLogin').customerId}`,
        method:'get',
        success:function(res){
          _this.getPayBindCardInfo = res.data.data;
@@ -299,7 +299,7 @@
        data:{
          ..._this.bindCardId,
          "customerId": uni.getStorageSync('ygxLogin').customerId,
          "customerId": uni.getStorageSync('qxgLogin').customerId,
          "cardPhone" : _this.cardPhone,  //手机号
          "cardNumber": _this.cardNumber, //卡号
@@ -313,15 +313,12 @@
        },
        success(e){
          if(e.data.code!==200){
            uni.showToast({
              title: e.data.data,
              icon: "none",
            _this.$util.Tips({
              title: e.data.data
            });
            return
          }
          uni.request({
            url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('ygxLogin').customerId}`,
            url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('qxgLogin').customerId}`,
            method:'get',
            success:function(res){
              const  ls =  res.data.data;
@@ -330,13 +327,13 @@
              if(ls.length && !ls[1].bindStatus){
              if(ls.length>1 && !ls[1].bindStatus){
                _this.$refs.codeUi.open()
                _this.isCounting = false;
                _this.countText = '';
                return;
              }
              if(ls.length && !ls[2].bindStatus){
              if(ls.length>2 && !ls[2].bindStatus){
                _this.$refs.setUi.open();
                _this.isCounting = false;
                _this.countText = '';
@@ -345,8 +342,6 @@
              if(!ls || !ls.some(item => item.bindStatus == 0)) {_this.kk();return;}
              _this.kk()
@@ -375,7 +370,9 @@
          return
        }
        if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.cardPhone)) return uni.showToast({title: '请输入正确的手机号码', icon: 'none'});
      if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.cardPhone)) return that.$util.Tips({
        title: '请输入正确的手机号码'
      });
        that.isCounting = true;
@@ -386,7 +383,7 @@
          url: that.$webHost+'/api/v2/xinheyuan/bankcard/save',
          method:'POST',
          data:{
            "customerId": uni.getStorageSync('ygxLogin').customerId,
          "customerId": uni.getStorageSync('qxgLogin').customerId,
            "nameReal": that.cardName, // 名字
            "cardNo":that.cardNumber,
            "idCard": that.idCardNo,
@@ -407,7 +404,7 @@
              url: that.$webHost+'/api/v2/pay/bindCardToCodes',
              method:'POST',
              data:{
                "customerId": uni.getStorageSync('ygxLogin').customerId,
              "customerId": uni.getStorageSync('qxgLogin').customerId,
                "cardName": that.cardName, // 名字
                "cardIdNo": that.idCardNo,
@@ -510,7 +507,7 @@
        }
        const paymentMethod = this.getPayBindCardInfo[1]['paymentMethod'];
        const _this = this;
        const pro = uni.getStorageSync('ygxLogin')
      const pro = uni.getStorageSync('qxgLogin')
        pro['userName'] = _this.cardName;
        uni.request({
          url: _this.$webHost+'/api/v2/pay/bindCardToCodes',
@@ -581,7 +578,7 @@
          data:{
            ...callbackData,
            "customerId": uni.getStorageSync('ygxLogin').customerId,
          "customerId": uni.getStorageSync('qxgLogin').customerId,
            "cardPhone" : _this.cardPhone,  //手机号
            "cardNumber": _this.cardNumber, //卡号
@@ -595,15 +592,11 @@
          },
          success(dts){
            if(dts.data.code!==200){
              uni.showTips({
                title: dts.data.data
              });
              return
            }
            uni.request({
              url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('ygxLogin').customerId}`,
            url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('qxgLogin').customerId}`,
              method:'get',
              success:function(res){
                const  ls =  res.data.data;
@@ -613,13 +606,10 @@
                  _this.countText_A = '';
                  _this.$refs.codeUi.close()
                  _this.$refs.setUi.open()
                return;
                }
                if(!ls || !ls.some(item => item.bindStatus == 0)) {_this.kk();return;}
              }
@@ -635,7 +625,7 @@
        }
        const paymentMethod = this.getPayBindCardInfo[2]['paymentMethod'];
        const _this = this;
        const pro = uni.getStorageSync('ygxLogin')
      const pro = uni.getStorageSync('qxgLogin')
        pro['userName'] = _this.cardName;
        uni.request({
          url: _this.$webHost+'/api/v2/pay/bindCardToCodes',
@@ -715,7 +705,7 @@
          data:{
            ...callbackData,
            "customerId": uni.getStorageSync('ygxLogin').customerId,
          "customerId": uni.getStorageSync('qxgLogin').customerId,
            "cardPhone" : _this.cardPhone,  //手机号
            "cardNumber": _this.cardNumber, //卡号
@@ -729,14 +719,13 @@
          },
          success(dts){
            if(dts.data.code!==200){
              uni.showTitle({
            _this.showToast({
                title: dts.data.data
              });
            }
            uni.request({
              url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('ygxLogin').customerId}`,
            url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('qxgLogin').customerId}`,
              method:'get',
              success:function(res){
                const ls = res.data.data;
@@ -760,17 +749,7 @@
      getUserInfo() {
        const data =   uni.getStorageSync('LOGING_DATA')
        console.log(data);
        this.$store.commit("LOGIN", {
          'token': data.token
        });
        this.$store.commit('UPDATE_USERINFO', {
          avatar: data.avatar,
          nickname: data.nickname,
          phone: data.phone
        });
        this.$store.commit("SETUID", data.id)
        uni.reLaunch({
          url: '/pages/index/index'