浏览代码

推送消息

liuzhenxing1118 1 年之前
父节点
当前提交
1b362daa7a
共有 23 个文件被更改,包括 156 次插入2 次删除
  1. 1 1
      artimenring-iOS/Artimenring/Classes/Model/EModel.h
  2. 1 1
      artimenring-iOS/Artimenring/Classes/ViewController/Record/PushAllMessageViewController.m
  3. 22 0
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_10.imageset/Contents.json
  4. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_10.imageset/pm_10@2x.png
  5. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_10.imageset/pm_10@3x.png
  6. 22 0
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_20.imageset/Contents.json
  7. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_20.imageset/pm_20@2x.png
  8. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_20.imageset/pm_20@3x.png
  9. 22 0
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_30.imageset/Contents.json
  10. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_30.imageset/pm_30@2x.png
  11. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_30.imageset/pm_30@3x.png
  12. 22 0
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_40.imageset/Contents.json
  13. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_40.imageset/pm_40@2x.png
  14. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_40.imageset/pm_40@3x.png
  15. 22 0
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_50.imageset/Contents.json
  16. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_50.imageset/pm_50@2x.png
  17. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_50.imageset/pm_50@3x.png
  18. 22 0
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_60.imageset/Contents.json
  19. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_60.imageset/pm_60@2x.png
  20. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_60.imageset/pm_60@3x.png
  21. 22 0
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_70.imageset/Contents.json
  22. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_70.imageset/pm_70@2x.png
  23. 二进制
      artimenring-iOS/Artimenring/Images.xcassets/Record/pm_70.imageset/pm_70@3x.png

+ 1 - 1
artimenring-iOS/Artimenring/Classes/Model/EModel.h

@@ -230,7 +230,7 @@
 @interface PushMessageModel : BaseModel
 @property(nonatomic, copy) NSString* cid;
 @property(nonatomic, copy) NSString* childName;
-@property(nonatomic, assign) NSInteger type;
+@property(nonatomic, assign) NSInteger type; //10:低电 20:电子围栏 30:通讯录 40:开关机 50:系统升级 60:手表高温 70:天气预警
 @property(nonatomic, assign) NSInteger create_time;
 @property(nonatomic, strong) PushMessageParamsModel* params;
 - (NSString*)getMessage;

+ 1 - 1
artimenring-iOS/Artimenring/Classes/ViewController/Record/PushAllMessageViewController.m

@@ -48,7 +48,7 @@
     PushMessageModel* model = self.mDataArray[indexPath.row];
     NSString* key = [NSString stringWithFormat:@"%@%ld", @"PAM.Type.", model.type];
     cell.mTypeNameLabel.text = NSLocalizedString(key, nil);
-    [cell.mTypeImage setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@%ld", @"push_message_", (long)model.type]]];
+    [cell.mTypeImage setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@%ld", @"push_", (long)model.type]]];
     cell.mContentLabel.text = [model getMessage];
     
     NSDate *date = [NSDate dateWithTimeIntervalSince1970:model.create_time];

+ 22 - 0
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_10.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "pm_10@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "pm_10@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_10.imageset/pm_10@2x.png


二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_10.imageset/pm_10@3x.png


+ 22 - 0
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_20.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "pm_20@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "pm_20@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_20.imageset/pm_20@2x.png


二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_20.imageset/pm_20@3x.png


+ 22 - 0
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_30.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "pm_30@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "pm_30@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_30.imageset/pm_30@2x.png


二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_30.imageset/pm_30@3x.png


+ 22 - 0
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_40.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "pm_40@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "pm_40@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_40.imageset/pm_40@2x.png


二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_40.imageset/pm_40@3x.png


+ 22 - 0
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_50.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "pm_50@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "pm_50@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_50.imageset/pm_50@2x.png


二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_50.imageset/pm_50@3x.png


+ 22 - 0
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_60.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "pm_60@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "pm_60@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_60.imageset/pm_60@2x.png


二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_60.imageset/pm_60@3x.png


+ 22 - 0
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_70.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "pm_70@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "pm_70@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_70.imageset/pm_70@2x.png


二进制
artimenring-iOS/Artimenring/Images.xcassets/Record/pm_70.imageset/pm_70@3x.png