Prechádzať zdrojové kódy

完成用户提现申请bug

wzy 1 rok pred
rodič
commit
0ad8774c1d

+ 2 - 1
.env.development

@@ -5,7 +5,8 @@ ENV = 'development'
 VUE_APP_BASE_API = '/dev-api'
 
 # 开发环境
-VUE_APP_DOMAIN_PREFIX = 'http://192.168.0.91:9003'
+# VUE_APP_DOMAIN_PREFIX = 'http://192.168.0.91:9003'
+VUE_APP_DOMAIN_PREFIX = 'https://nsadminapi.tuanfengkeji.cn'
 # 演示环境
 # VUE_APP_DOMAIN_PREFIX = 'http://192.168.0.91:9003'
 VUE_APP_DOMAIN_PREFIX = '/api'

+ 4 - 1
src/views/finance/application/index.vue

@@ -51,7 +51,8 @@
             <el-table-column label="操作" show-overflow-tooltip>
               <template slot-scope="scope">
                 <div class="btnList">
-                  <el-button v-if="scope.row.state !== 0" type="text" @click="seeMore(scope.row)">查看</el-button>
+                  <el-button v-if="scope.row.state == 1" type="text" @click="del(scope.row)">处理</el-button>
+                  <el-button v-else-if="scope.row.state !== 0" type="text" @click="seeMore(scope.row)">查看</el-button>
                   <el-button v-else type="text" @click="del(scope.row)">处理</el-button>
                 </div>
               </template>
@@ -181,6 +182,7 @@ export default {
     },
     // 确认
     async agreeEn(index) {
+      console.log(index)
       if (index === 1 && this.confirmInfo == "确认信息") {
         const res = await applicationHandle({
           withdrawalId: this.dioObj.arr.withdrawalId,
@@ -252,6 +254,7 @@ export default {
       this.dioObj.show = false
       this.rejectReason = "";
       this.confirmInfo = "确认信息";
+      console.log(this.dioObj);
       this.infoList = this.infoList.filter(item => item.fields != 'rejectReason');
     }
   }

+ 2 - 2
vue.config.js

@@ -41,8 +41,8 @@ module.exports = {
     // before: require('./mock/mock-server.js'),
     proxy: {
       '/api': {
-        // target: 'https://nsadminapi.tuanfengkeji.cn', // 测试
-        target: 'http://192.168.0.91:9103', // 平台端
+        target: 'https://nsadminapi.tuanfengkeji.cn', // 测试
+        // target: 'http://192.168.0.91:9103', // 平台端
         // target: 'http://192.168.0.91:9003', // 商家端
         changeOrigin: true,
         pathRewrite: {