ソースを参照

添加memo的default选项

lex-xin 5 年 前
コミット
6a220db392

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/css/chunk-5c6430be.1ecedf64.css


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.html


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/js/app.15c6ca1c.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/js/app.15c6ca1c.js.map


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/js/chunk-5c6430be.dce7047b.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/js/chunk-5c6430be.dce7047b.js.map


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/js/chunk-a106f9c0.c72f6711.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/js/chunk-a106f9c0.c72f6711.js.map


+ 9 - 1
src/views/payment.vue

@@ -127,6 +127,7 @@ export default {
                     tempClassForm[memoItem[0]] = memoItem[1]
                     tempClassForm[memoItem[0]] = memoItem[1]
                 })
                 })
             }
             }
+            console.log(tempClassForm)
             /**
             /**
              * 过滤数据
              * 过滤数据
              * 乐团课同一个乐团只需要显示一个乐团(价格高的)
              * 乐团课同一个乐团只需要显示一个乐团(价格高的)
@@ -143,7 +144,14 @@ export default {
                 el.status = false // 状态
                 el.status = false // 状态
                 el.inputNumber = null // 输入的内容
                 el.inputNumber = null // 输入的内容
                 el.smallAmount = 0 // 小课金额
                 el.smallAmount = 0 // 小课金额
-                el.memo = this.memo ? tempClassForm[this.classFormToCN(el.classForm)] : ''
+                if(tempClassForm[this.classFormToCN(el.classForm)]) {
+                    el.memo = tempClassForm[this.classFormToCN(el.classForm)]
+                } else if(tempClassForm['default']) {
+                    el.memo = tempClassForm['default']
+                } else {
+                    el.memo = ''
+                }
+                // el.memo = this.memo ? tempClassForm[this.classFormToCN(el.classForm)] : ''
                 // 开课周期
                 // 开课周期
                 el.startCycel = this.weekSelect(5) + ' ' + el.planBegin.split(' ')[1]
                 el.startCycel = this.weekSelect(5) + ' ' + el.planBegin.split(' ')[1]
 
 

+ 2 - 2
vue.config.js

@@ -1,5 +1,5 @@
-// let targetUrl = 'http://testpay.dayaedu.com'
-let targetUrl = 'http://192.168.3.27:9000'
+let targetUrl = 'http://testpay.dayaedu.com'
+// let targetUrl = 'http://192.168.3.27:9000'
 module.exports = {
 module.exports = {
     devServer: {
     devServer: {
         open: process.platform === 'darwin',
         open: process.platform === 'darwin',

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません