Browse Source

添加memo的default选项

lex-xin 5 years ago
parent
commit
6a220db392

File diff suppressed because it is too large
+ 0 - 0
dist/css/chunk-5c6430be.1ecedf64.css


File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.15c6ca1c.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.15c6ca1c.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-5c6430be.dce7047b.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-5c6430be.dce7047b.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-a106f9c0.c72f6711.js


File diff suppressed because it is too large
+ 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]
                 })
             }
+            console.log(tempClassForm)
             /**
              * 过滤数据
              * 乐团课同一个乐团只需要显示一个乐团(价格高的)
@@ -143,7 +144,14 @@ export default {
                 el.status = false // 状态
                 el.inputNumber = null // 输入的内容
                 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]
 

+ 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 = {
     devServer: {
         open: process.platform === 'darwin',

Some files were not shown because too many files changed in this diff