YY 3 年 前
コミット
086cd9f0f3
2 ファイル変更24 行追加25 行削除
  1. 6 6
      pages/me/index.wxml
  2. 18 19
      pages/score/index.js

+ 6 - 6
pages/me/index.wxml

@@ -59,17 +59,17 @@
           </view>
           <view class="right1_2">
             <view class="right1_2o">
-              <image class="head1" src="{{item.red_logo[0].url}}"></image>
+              <image class="head1" src="{{item.blue_logo[0].url}}"></image>
             </view>
-            <view class="right1_2t"><text>{{item.red_name}}</text></view>
+            <view class="right1_2t"><text>{{item.blue_name}}</text></view>
             <view class="right1_2i">
-              <text class="text6-1">{{item.red_branch||0}}</text>
+              <text class="text6-1">{{item.blue_branch||0}}</text>
               <text class="text8-1">:</text>
-              <text class="text7-1">{{item.blue_branch||0}}</text>
+              <text class="text7-1">{{item.red_branch||0}}</text>
             </view>
-            <view class="right1_2t"><text>{{item.blue_name}}</text></view>
+            <view class="right1_2t"><text>{{item.red_name}}</text></view>
             <view class="right1_2o">
-              <image class="head2" src="{{item.blue_logo[0].url}}"></image>
+              <image class="head2" src="{{item.red_logo[0].url}}"></image>
             </view>
           </view>
         </view>

+ 18 - 19
pages/score/index.js

@@ -13,6 +13,23 @@ Page({
     form: {},
     id: ''
   },
+  back: function () {
+    wx.navigateBack({ url: '/pages/me/index' })
+  },
+  //显示对话框
+  clickme: function () {
+    this.setData({
+      showModal: true
+    })
+  },
+  preventTouchMove: function () {
+  },
+  //关闭弹窗
+  go: function () {
+    this.setData({
+      showModal: false
+    })
+  },
   //提交
   formSubmit: function (e) {
     let value = e.detail.value;
@@ -23,35 +40,17 @@ Page({
       data: value,
       header: {},
       success: res => {
-        console.log(res);
         wx.showToast({
           title: '上传比分成功',
           icon: 'success',
           duration: 2000
         })
-        this.setData({showModal: false})
+        this.setData({ showModal: false })
       },
       error: err => {
       }
     })
   },
-  back: function () {
-    wx.navigateBack({ url: '/pages/me/index' })
-  },
-  //显示对话框
-  clickme: function () {
-    this.setData({
-      showModal: true
-    })
-  },
-  preventTouchMove: function () {
-  },
-  //关闭弹窗
-  go: function () {
-    this.setData({
-      showModal: false
-    })
-  },
   /**
    * 生命周期函数--监听页面加载
    */