Przeglądaj źródła

更改提示展示

谢杰标 2 lat temu
rodzic
commit
71795d5086
3 zmienionych plików z 6 dodań i 4 usunięć
  1. 2 2
      common/config.js
  2. 3 1
      pages2/order/confirm_pay.vue
  3. 1 1
      pages2/wd/class.vue

+ 2 - 2
common/config.js

@@ -11,8 +11,8 @@ const test = {
     TOP_LOGO: '/static/logo2.png',
     SCAN_LOGO: '/static/me/logo.png',
 }
-const index = 0 // 测试环境
-// const index = 1 // 祥粤云学堂
+// const index = 0 // 测试环境
+const index = 1 // 祥粤云学堂
 // const index = 2 // 祥粤学堂
 // const index = 3 // 勘设云学堂
 // const index = 4 // 中正云学堂

+ 3 - 1
pages2/order/confirm_pay.vue

@@ -34,7 +34,7 @@
               </view>
               <view class="priceTag"> ¥ {{ item.standPrice }} </view>
               <Class-time-tip
-                v-if="item.gradObj.gradeId"
+                v-if="item.gradObj&&item.gradObj.gradeId"
                 :classInfo="item.gradObj"
               ></Class-time-tip>
             </view>
@@ -148,6 +148,7 @@ export default {
     this.fromCart = option.fromCart;
     console.log(self.shoppingCartList, 6);
     let list = self.shoppingCartList;
+    console.log(list,66)
     this.isBK = option.isBK;
     for (let i = 0; i < list.length; i++) {
       this.totalPrice += Number(list[i].standPrice);
@@ -157,6 +158,7 @@ export default {
   onShow() {},
   methods: {
     postOrder() {
+      console.log(12312312321)
       let list = this.shoppingCartList;
       for (let i = 0; i < list.length; i++) {
         let item = list[i];

+ 1 - 1
pages2/wd/class.vue

@@ -779,7 +779,7 @@ export default {
       if (item.interfaceAccountId > 0) {
         //学习账号已开通
 
-        if (item.learnStatus == 1) {
+        if (item.learnStatus > 0) {
           //跳转第三方h5
           // this.showMark = true;
           uni.navigateTo({