YY před 2 roky
rodič
revize
c24ca08098

+ 1 - 0
app.wxss

@@ -14,6 +14,7 @@
 }
 
 @import "/icon/icon.wxss";
+@import "/icon/icon-editor.wxss";
 
 /* 系统颜色字体配置 */
 page {

+ 40 - 37
commpents/hg-editor/hg-editor.wxml

@@ -1,40 +1,43 @@
 <view class="editor-box">
-  <view class="editor-box-header" wx:if="{{showTabBar}}">
-    <view class="operate-box" data-uploadImageURL="{{uploadImageURL}}" bind:tap="_addImage">
-      <text class="iconfont icon-image"></text>
+    <view class="editor-box-header" wx:if="{{showTabBar}}">
+        <view class="operate-box" data-uploadImageURL="{{uploadImageURL}}" bind:tap="_addImage">
+            <text class="iconfont icon-tupian"></text>
+        </view>
+        <view class="operate-box" bind:tap="_addItalic">
+            <text class="iconfont icon-zitixieti"></text>
+        </view>
+        <view class="operate-box" bind:tap="_addBold">
+            <text class="iconfont icon-bold"></text>
+        </view>
+        <view class="operate-box" data-header="h1" bind:tap="_addHeader">
+            <text class="iconfont icon-h1"></text>
+        </view>
+        <view class="operate-box" data-header="h2" bind:tap="_addHeader">
+            <text class="iconfont icon-h2"></text>
+        </view>
+        <view class="operate-box" data-header="h3" bind:tap="_addHeader">
+            <text class="iconfont icon-h3"></text>
+        </view>
+        <view class="operate-box" data-align="left" bind:tap="_addAlign">
+            <text class="iconfont icon-alignLeft"></text>
+        </view>
+        <view class="operate-box" data-align="center" bind:tap="_addAlign">
+            <text class="iconfont icon-center"></text>
+        </view>
+        <view class="operate-box" data-align="right" bind:tap="_addAlign">
+            <text class="iconfont icon-alignRight"></text>
+        </view>
+        <view class="operate-box" data-list="ordered" bind:tap="_addList">
+            <text class="iconfont icon-orderedList"></text>
+        </view>
+        <view class="operate-box" data-list="bullet" bind:tap="_addList">
+            <text class="iconfont icon-unorderedList"></text>
+        </view>
+        <view class="operate-box" bind:tap="_undo">
+            <text class="iconfont icon-undo"></text>
+        </view>
+    </view>
+    <view class="editor-box-content">
+        <editor id="editor" name="{{name}}" placeholder="{{placeholder}}" bind:ready="_onEditorReady" bind:input="_onInputting" show-img-resize="{{true}}"></editor>
     </view>
-    <view class="operate-box" bind:tap="_addItalic">
-      <text class="iconfont icon-italic"></text>
-    </view>
-    <view class="operate-box" bind:tap="_addBold">
-      <text class="iconfont icon-bold"></text>
-    </view>
-    <view class="operate-box" data-header="h1" bind:tap="_addHeader">
-      <text class="iconfont icon-h1"></text>
-    </view>
-    <view class="operate-box" data-header="h2" bind:tap="_addHeader">
-      <text class="iconfont icon-h2"></text>
-    </view>
-    <view class="operate-box" data-header="h3" bind:tap="_addHeader">
-      <text class="iconfont icon-h3"></text>
-    </view>
-    <view class="operate-box" data-align="left" bind:tap="_addAlign">
-      <text class="iconfont icon-alignLeft"></text>
-    </view>
-    <view class="operate-box" data-align="right" bind:tap="_addAlign">
-      <text class="iconfont icon-alignRight"></text>
-    </view>
-    <view class="operate-box" data-list="ordered" bind:tap="_addList">
-      <text class="iconfont icon-orderedList"></text>
-    </view>
-    <view class="operate-box" data-list="bullet" bind:tap="_addList">
-      <text class="iconfont icon-unorderedList"></text>
-    </view>
-    <view class="operate-box" bind:tap="_undo">
-      <text class="iconfont icon-undo"></text>
-    </view>
-  </view>
-  <view class="editor-box-content">
-    <editor id="editor" name="{{name}}" placeholder="{{placeholder}}" bind:ready="_onEditorReady" bind:input="_onInputting" show-img-resize="{{true}}"></editor>
-  </view>
 </view>

+ 1 - 1
commpents/hg-editor/hg-editor.wxss

@@ -1,5 +1,5 @@
 /* components/hg-editor/hg-editor.wxss */
-@import "iconfont.wxss";
+@import "/icon/icon-editor.wxss";
 
 .editor-box {
   width: 100%;

+ 0 - 67
commpents/hg-editor/iconfont.wxss

@@ -1,67 +0,0 @@
-@font-face {
-  font-family: 'iconfont';  /* Project id 2549449 */
-  src: url('//at.alicdn.com/t/font_2549449_hxmflg4qsr6.woff2?t=1621002720450') format('woff2'),
-       url('//at.alicdn.com/t/font_2549449_hxmflg4qsr6.woff?t=1621002720450') format('woff'),
-       url('//at.alicdn.com/t/font_2549449_hxmflg4qsr6.ttf?t=1621002720450') format('truetype');
-}
-
-.iconfont {
-  font-family: "iconfont" !important;
-  font-size: 38rpx;
-  font-style: normal;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-.icon-undo:before {
-  content: "\e609";
-}
-
-.icon-hr:before {
-  content: "\e60a";
-}
-
-.icon-h3:before {
-  content: "\e60b";
-}
-
-.icon-quote:before {
-  content: "\e60c";
-}
-
-.icon-bold:before {
-  content: "\e60e";
-}
-
-.icon-orderedList:before {
-  content: "\e612";
-}
-
-.icon-h2:before {
-  content: "\e61a";
-}
-
-.icon-italic:before {
-  content: "\e61c";
-}
-
-.icon-unorderedList:before {
-  content: "\e620";
-}
-
-.icon-alignLeft:before {
-  content: "\e621";
-}
-
-.icon-alignRight:before {
-  content: "\e622";
-}
-
-.icon-h1:before {
-  content: "\e623";
-}
-
-.icon-image:before {
-  content: "\e629";
-}
-

+ 63 - 0
icon/icon-editor.wxss

@@ -0,0 +1,63 @@
+@font-face {
+    font-family: "iconfont"; /* Project id 3618777 */
+    src: url('//at.alicdn.com/t/c/font_3618777_jt1c9kwnge.woff2?t=1661840869173') format('woff2'),
+         url('//at.alicdn.com/t/c/font_3618777_jt1c9kwnge.woff?t=1661840869173') format('woff'),
+         url('//at.alicdn.com/t/c/font_3618777_jt1c9kwnge.ttf?t=1661840869173') format('truetype');
+  }
+  
+  .iconfont {
+    font-family: "iconfont" !important;
+    font-size: 16px;
+    font-style: normal;
+    -webkit-font-smoothing: antialiased;
+    -moz-osx-font-smoothing: grayscale;
+  }
+  
+  .icon-unorderedList:before {
+    content: "\e620";
+  }
+  
+  .icon-h1:before {
+    content: "\e623";
+  }
+  
+  .icon-undo:before {
+    content: "\e609";
+  }
+  
+  .icon-orderedList:before {
+    content: "\e612";
+  }
+  
+  .icon-alignLeft:before {
+    content: "\e621";
+  }
+  
+  .icon-alignRight:before {
+    content: "\e622";
+  }
+  
+  .icon-center:before {
+    content: "\e62e";
+  }
+  
+  .icon-zitixieti:before {
+    content: "\ec85";
+  }
+  
+  .icon-tupian:before {
+    content: "\e730";
+  }
+  
+  .icon-h3:before {
+    content: "\e60b";
+  }
+  
+  .icon-h2:before {
+    content: "\e61b";
+  }
+  
+  .icon-bold:before {
+    content: "\eaef";
+  }
+  

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 5 - 17
pagesMatch/matchAdmin/match/add.js


+ 3 - 2
pagesMatch/matchAdmin/match/list.js

@@ -12,6 +12,7 @@ Page({
     },
     // 返回
     back: function () { wx.navigateBack({ delta: 1 }) },
+    // 添加
     toCommon: function (e) {
         const that = this;
         that.setData({ skip: 0, page: 0, list: [] })
@@ -34,7 +35,7 @@ Page({
             content: '是否确认删除该条数据?',
             async success(res) {
                 if (res.confirm) {
-                    const arr = await app.$delete(`/match/${item._id}`);
+                    const arr = await app.$get(`/match/${item._id}`, 'race');
                     if (arr.errcode == '0') {
                         wx.showToast({ title: `删除信息成功`, icon: 'success', duration: 2000 })
                         that.setData({ skip: 0, page: 0, list: [] })
@@ -86,7 +87,7 @@ Page({
                 const aee = await app.$get(`/dict`, { code: "match_status" });
                 if (aee.errcode == '0' && aee.total > 0) that.setData({ statusList: aee.data[0].list });
                 let info = { skip: that.data.skip, limit: that.data.limit };
-                const arr = await app.$get(`/match`, { ...info });
+                const arr = await app.$get(`/match`, { ...info }, 'race');
                 if (arr.errcode == '0') {
                     for (const val of arr.data) {
                         let status = that.data.statusList.find(i => i.value == val.status)