xiaojincai 4 gadi atpakaļ
vecāks
revīzija
d5c2170325
3 mainītis faili ar 8 papildinājumiem un 5 dzēšanām
  1. 2 2
      app.js
  2. 5 2
      pages/apply/apply.wxml
  3. 1 1
      project.config.json

+ 2 - 2
app.js

@@ -46,7 +46,7 @@ App({
             console.log(res)
             // 发送 res.code 到后台换取 openId, sessionKey, unionId
             wx.request({
-              url: 'https://www.scxjc.club/api/wx/openid',
+              url: 'https://wxapi.yifeng2016.com/api/wx/openid',
               method: 'GET',
               data: {
                 code: res.code
@@ -68,7 +68,7 @@ App({
   },
   globalData: {
     userInfo: null,
-    host:'https://www.scxjc.club',
+    host:'https://wxapi.yifeng2016.com',
     categoryArray:[],
     openid:''
   }

+ 5 - 2
pages/apply/apply.wxml

@@ -13,7 +13,7 @@
         <text style="color:green;">{{item.train_type}}</text></view>
         <view class="title">{{item.name}}   {{item.phone}}  
           <text wx:if="{{item.class_name}}">{{item.class_name}}</text>
-          <text class="signup_count" wx:if="{{item.signup_limit}}">计划{{item.signup_limit}}人/已报名{{item.signup_count}}人</text>
+          <text class="signup_count" wx:if="{{item.class_name}}">计划{{item.signup_limit}}人/已报名{{item.signup_count}}人</text>
         </view>
         <view class="info">
             <text>{{item.subject_item_1[0]}}</text>
@@ -37,7 +37,10 @@
         <text wx:if="{{item.order_status == 7}}">考试完成</text> 
         <text wx:if="{{item.order_status == 3}}">已培训,待考试</text> 
         <text style="color:green;">{{item.train_type}}</text></view>
-        <view class="title">{{item.name}}   {{item.phone}}  <text>{{item.class_name}}</text></view>
+        <view class="title">{{item.name}}   {{item.phone}}  
+          <text>{{item.class_name}}</text>
+          <text class="signup_count" wx:if="{{item.class_name}}">计划{{item.signup_limit}}人/已报名{{item.signup_count}}人</text>
+        </view>
         <view class="info">
             <text>{{item.subject_item_1[0]}}</text>
             <text decode="{{true}}">作业类别  &nbsp;&nbsp; {{item.subject_item_1[1]}}</text>

+ 1 - 1
project.config.json

@@ -14,7 +14,7 @@
 	},
 	"compileType": "miniprogram",
 	"libVersion": "2.11.0",
-	"appid": "wx2938132b773c7b5a",
+	"appid": "wxd417822087cf4573",
 	"projectname": "yifeng",
 	"debugOptions": {
 		"hidedInDevtools": []