Bläddra i källkod

修改方法名

lex-xin 5 år sedan
förälder
incheckning
e3437b1875
4 ändrade filer med 5 tillägg och 26 borttagningar
  1. 1 1
      src/views/Home.vue
  2. 1 1
      src/views/payment.vue
  3. 2 23
      src/views/protocol.vue
  4. 1 1
      src/views/smallProtocol.vue

+ 1 - 1
src/views/Home.vue

@@ -178,7 +178,7 @@
         </div>
 
         <van-popup id="protocolPopup" v-model="popupStatus" position="bottom">
-            <protocol :proto="protocolData" @popupClose="onPopupClose"></protocol>
+            <protocol :proto="protocolData" @popupclose="onPopupClose"></protocol>
         </van-popup>
 
         <van-popup v-model="loadingOrderStatus" :close-on-click-overlay='false' class="loadingOrder">

+ 1 - 1
src/views/payment.vue

@@ -73,7 +73,7 @@
         </div>
 
         <van-popup id="protocolPopup" v-model="popupStatus" position="bottom">
-            <small-protocol :proto="protocolData" @popupClose="onPopupClose"></small-protocol>
+            <small-protocol :proto="protocolData" @popupclose="onPopupClose"></small-protocol>
         </van-popup>
 
     </div>

+ 2 - 23
src/views/protocol.vue

@@ -30,10 +30,6 @@
                 <span>授课内容:乐团课</span>
                 <span>缴费金额:¥{{ proto.classAmount }}</span>
             </div>
-            <!-- <div class="iInfo">
-                <span>课次数量:{{ proto.buyCount }}次</span>
-                <span>缴费金额:¥{{ proto.buyCount * proto.price }}</span>
-            </div> -->
 
             <h2>二、行为规范</h2>
             乙方在选择甲方各类提高课程并签署本协议时视为乙方已经仔细阅读并同意遵守如下事项:
@@ -179,36 +175,19 @@ export default {
     props: ['proto'],
     data() {
         return {
-            // protocol: {
-            //     patriarchName: '',
-            //     patriarchPhone: '',
-            //     stuName: '',
-            //     grade: '',
-            //     subName: '',
-            //     voicyPart: '',
-            //     payMethod: '', // 缴费类型
-            //     isCopperPipe: '', // 是否为铜管
-            //     name: '',
-            //     referencePrice: '',
-            //     marketPrice: ''
-            // }
             params: this.proto,
             dataList: {},
             nowDate: ''
         }
     },
     mounted() {
-        // window.scroll(0,0)
         let tempDate = new Date()
-        console.log(this.params)
         this.nowDate = tempDate.getFullYear() + '年' + (tempDate.getMonth() + 1) + '月' + tempDate.getDate() + '日'
-        // axios.post('/user/findMecUser', qs.stringify({userId: this.params.userId})).then(res => {
-        //     this.dataList = res.data.data
-        // })
+
     },
     methods: {
         goBack() {
-            this.$emit('popupClose', false)
+            this.$emit('popupclose', false)
         },
         classForm(number) {
             let resultStr

+ 1 - 1
src/views/smallProtocol.vue

@@ -133,7 +133,7 @@ export default {
     },
     methods: {
         goBack() {
-            this.$emit('popupClose', false)
+            this.$emit('popupclose', false)
         },
         classForm(number) {
             let resultStr