sunzhilei 6 jaren geleden
bovenliggende
commit
c15185c5a2

+ 2 - 2
compontents/chat/chat.wxml

@@ -20,8 +20,8 @@
                     <view wx:if="{{type == 1 && (item.currentReplyCount > 0)}}" class="message"></view>
                 </view>
                 <view class="picture" wx:if="{{type == 2}}">
-                    <block wx:for="{{item.imagesList}}" wx:for-item="items" wx:key="{{items.id}}">
-                        <image mode="aspectFill" src="{{items.path}}" catchtap="listenerButtonPreviewImage" data-img="{{items.path}}"></image>
+                    <block wx:for="{{item.imagesList}}" wx:for-item="items" wx:key="{{items}}">
+                        <image mode="aspectFill" src="{{items}}" catchtap="listenerButtonPreviewImage" data-img="{{items}}"></image>
                     </block>
                 </view>
                 <view class="icon" wx:if="{{type == 2}}">

+ 2 - 2
compontents/one/one.wxml

@@ -16,8 +16,8 @@
             </view>
         </view>
         <view class="picture" wx:if="{{type == 2}}">
-            <block wx:for="{{productionData.imagesList}}" wx:for-item="items" wx:key="{{items.id}}">
-                <image src="{{items.path}}" bindtap="listenerButtonPreviewImage" data-img="{{items.path}}"></image>
+            <block wx:for="{{productionData.imagesList}}" wx:for-item="items" wx:key="{{items}}">
+                <image src="{{items}}" bindtap="listenerButtonPreviewImage" data-img="{{items}}"></image>
             </block>
         </view>
         <view class="icon">

+ 1 - 1
pages/art/art.js

@@ -44,7 +44,7 @@ Page({
         uid: res.data.data.uid
       }, {
         "type": type,
-        "columnId": columnId,
+        "category": columnId,
         "pageNo": pageNo,
         "pageSize": pageSize
       }).success(success)

+ 1 - 1
pages/chinese/chinese.js

@@ -27,7 +27,7 @@ Page({
         uid: res.data.data.uid
       }, {
         "type": type,
-        "columnId": columnId,
+        "category": columnId,
         "pageNo": pageNo,
         "pageSize": pageSize
       }).success(success)

+ 1 - 1
pages/english/english.js

@@ -27,7 +27,7 @@ Page({
         uid: res.data.data.uid
       }, {
         "type": type,
-        "columnId": columnId,
+        "category": columnId,
         "pageNo": pageNo,
         "pageSize": pageSize
       }).success(success)

+ 2 - 4
pages/input_content/input_content.js

@@ -71,7 +71,7 @@ Page({
               success: function (res) {  
                 uploadImgCount++;  
                 let data = JSON.parse(res.data);
-                that.data.imgId.push(data.data.id)
+                that.data.imgId.push(data.data)
                 that.setData({
                   imgId: that.data.imgId,
                 })
@@ -124,9 +124,7 @@ Page({
     let data = {
       "title": this.data.textValue,
       "type": type,
-      "columnId": columnId,
-      "columnType": columnType,
-      "columnNames": columnName,
+      "category": columnId
     }; 
     if(type == 2){
       data.imagesStrList = this.data.imgId

+ 1 - 1
pages/language/language.js

@@ -27,7 +27,7 @@ Page({
         uid: res.data.data.uid
       }, {
         "type": type,
-        "columnId": columnId,
+        "category": columnId,
         "pageNo": pageNo,
         "pageSize": pageSize
       }).success(success)

+ 1 - 1
pages/mathematics/mathematics.js

@@ -27,7 +27,7 @@ Page({
         uid: res.data.data.uid
       }, {
         "type": type,
-        "columnId": columnId,
+        "category": columnId,
         "pageNo": pageNo,
         "pageSize": pageSize
       }).success(success)

+ 3 - 3
pages/particulars/particulars.wxml

@@ -14,8 +14,8 @@
                     </view>
                 </view>
                 <view class="picture" wx:if="{{type == 2}}">
-                    <block wx:for="{{productionData.imagesList}}" wx:for-item="items" wx:key="{{items.id}}">
-                        <image mode="aspectFill" src="{{items.path}}" bindtap="listenerButtonPreviewImage" data-img="{{items.path}}"></image>
+                    <block wx:for="{{productionData.imagesList}}" wx:for-item="items" wx:key="{{items}}">
+                        <image mode="aspectFill" src="{{items}}" bindtap="listenerButtonPreviewImage" data-img="{{items}}"></image>
                     </block>
                 </view>
                 <view class="icon" wx:if="{{type == 2}}">
@@ -46,7 +46,7 @@
 <view class="text">
     <image src="../../pages/image/input.png" class="input-img"></image>
     <view class="input-text">
-        <input placeholder="Enter You My Essage" value="{{text}}" bindinput="bindKeyInput" type="text" />
+        <input placeholder="请输入评论内容" value="{{text}}" bindinput="bindKeyInput" type="text" />
         <view bindtap="sendText" data-id="{{productionData.id}}"></view>
     </view>
 </view>

+ 1 - 1
pages/science/science.js

@@ -29,7 +29,7 @@ Page({
         uid: res.data.data.uid
       }, {
         "type": type,
-        "columnId": columnId,
+        "category": columnId,
         "pageNo": pageNo,
         "pageSize": pageSize
       }).success(success)

+ 2 - 2
pages/transmit/transmit.wxml

@@ -24,8 +24,8 @@
                         </view>
                     </view>
                     <view class="picture">
-                        <block wx:for="{{productionData.imagesList}}" wx:for-item="items" wx:key="{{items.id}}">
-                            <image src="{{items.path}}" catchtap="listenerButtonPreviewImage" data-img="{{items.path}}"></image>
+                        <block wx:for="{{productionData.imagesList}}" wx:for-item="items" wx:key="{{items}}">
+                            <image src="{{items}}" catchtap="listenerButtonPreviewImage" data-img="{{items}}"></image>
                         </block>
                     </view>
                     <view class="icon">

+ 1 - 1
project.config.json

@@ -29,7 +29,7 @@
 			"list": []
 		},
 		"miniprogram": {
-			"current": -1,
+			"current": 5,
 			"list": [
 				{
 					"id": 0,

+ 6 - 6
utils/util.js

@@ -131,27 +131,27 @@ function column(columnNum) {
   let column = {};
   switch(columnNum) {
     case '1':
-      column.columnId = '3564feb8-05ba-11e8-9771-080027fcfc4b'
+      column.columnId = '1'
       column.columnName = '语文'
     break;
     case '2':
-      column.columnId = '2b52f52e-05ba-11e8-9771-080027fcfc4b'
+      column.columnId = '2'
       column.columnName = '数学'
     break;
     case '3':
-      column.columnId = '3561f024-05ba-11e8-9771-080027fcfc4b'
+      column.columnId = '3'
       column.columnName = '中文'
     break;   
     case '4':
-      column.columnId = '2b5a24ca-05ba-11e8-9771-080027fcfc4b'
+      column.columnId = '4'
       column.columnName = '英语'
     break;
     case '5':
-      column.columnId = '23598e64-05ba-11e8-9771-080027fcfc4b'
+      column.columnId = '5'
       column.columnName = '科学'
     break;
     case '6':
-      column.columnId = '41209f14-05ba-11e8-9771-080027fcfc4b'
+      column.columnId = '6'
       column.columnName = '艺术'
     break; 
   }