Browse Source

添加缴费连接

lex-xin 4 years ago
parent
commit
7629c0fd58
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/reaplceMusicPlayer/index.vue

+ 7 - 1
src/views/reaplceMusicPlayer/index.vue

@@ -124,7 +124,7 @@
               <div>{{ scope.row.openPay ? "是" : "否" }}</div>
             </template>
           </el-table-column>
-          <el-table-column align="center" prop="studentId" label="操作">
+          <el-table-column align="center" width="180px" label="操作">
             <template slot-scope="scope">
               <div>
                 <el-button type="text" @click="lookDetail(scope.row)" v-if="permission('replacementInstrumentActivity/queryPage')"
@@ -149,6 +149,10 @@
                   "
                   >开启缴费</el-button
                 >
+                <el-button
+                  type="text"
+                  @click="onCreateQRCode(scope.row, '缴费连接')"
+                  v-if="scope.row.openPay">缴费连接</el-button>
               </div>
             </template>
           </el-table-column>
@@ -347,6 +351,8 @@ export default {
           str =
             vaildTeachingUrl() +
             `/#/questionStatistics?o=${row.organId}&c=${row.cooperationOrganId}`;
+        } else if(name == '缴费连接') {
+          str = vaildStudentUrl() + `/#/questionGoodsSale?` + encodeURIComponent(encode(`cid=${row.cooperationOrganId}`));
         }
         // vaildTeachingUrl
         // this.qrcode.makeCode(