浏览代码

修改详情页 上传比分

zs 3 年之前
父节点
当前提交
5614c52a0e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pages/match/detail.js

+ 3 - 3
pages/match/detail.js

@@ -28,6 +28,9 @@ Page({
     const messages = { blue_branch: { required: '请输入蓝方比分', }, red_branch: { required: '请输入红方比分', } };
     const messages = { blue_branch: { required: '请输入蓝方比分', }, red_branch: { required: '请输入红方比分', } };
     this.WxValidate = new WxValidate(rules, messages)
     this.WxValidate = new WxValidate(rules, messages)
   },
   },
+  back: function () {
+    wx.navigateBack({ url: '/pages/home/index' })
+  },
   //显示对话框
   //显示对话框
   clickme: function () {
   clickme: function () {
     this.setData({
     this.setData({
@@ -54,9 +57,6 @@ Page({
     let arr = data.filter((i, index) => index != e.detail.index)
     let arr = data.filter((i, index) => index != e.detail.index)
     that.setData({ fileList: arr })
     that.setData({ fileList: arr })
   },
   },
-  back: function () {
-    wx.navigateBack({ url: '/pages/home/index' })
-  },
   // 提交登录
   // 提交登录
   formSubmit: function (e) {
   formSubmit: function (e) {
     const that = this;
     const that = this;