当前位置:   article > 正文

易语言之超级列表框的使用及json解析_易语言超级列表框导出json

易语言超级列表框导出json

效果图

json数据:

{
    "message": "获取数据信息成功",
    "totalNum": 38,
    "couponList": [
        {
            "position": 0,
            "riskLevel": "A",

            "labelColor": "-1",
            "ynTop": 1,
            "ynLabel": "0",
            "remindPeople": "20345",
            "batchId": "46927266",
            "endTime": "2018-01-24 23:59:59",
            "ynPlus": false,
            "todayEnd": null,
            "startTime": "2018-01-24 20:00:00",
            "id": 409018,
            "jumpFlag": 10,
            "quota": "200",
            "rate": 0,
            "todayStart": null,
            "totalBean": null,
            "ruleKey": "f2d8a181cc5797dd240149d1b25743d1b90e9ad46280cee6e6a1e70db9ec73b70edb16d51404e4cbea1f93b702f84ea8",
            "dongOverlapText": "",
            "shopId": "",
            "operateWord": "",
            "successLabel": null,
            "denomination": "10",
            "key": "6eda272c819d41e1b4041240b842c51e",
            "roleId": "10220357",
            "couponSortId": 0,
            "limitStr": "全品类(除特殊商品)【20点限量抢】",
            "couponImg": "jfs/t16963/353/179390262/21708/c3bd92b9/5a6198b2N083edc38.jpg",
            "leftTime": "5437",
            "extendInfo": {},
            "discount": false,
            "overlying": false,
            "couponTag": 4,
            "receiveFlag": 0,
            "labelText": "",
            "discountDetailText": "",
            "sortType": 1,
            "needBean": "",
            "beanGet": 0,
            "batchCount": 375000
        },
        {
            "position": 50,
            "riskLevel": "A",

            "labelColor": "-1",
            "ynTop": 1,
            "ynLabel": "0",
            "remindPeople": null,
            "batchId": "55729693",
            "endTime": "2018-01-24 23:58:00",
            "ynPlus": false,
            "todayEnd": "23:59:59",
            "startTime": "2018-01-22 00:00:00",
            "id": 409293,
            "jumpFlag": 1,

            "quota": "199",
            "rate": 59,
            "todayStart": "00:00:00",
            "totalBean": null,
            "ruleKey": "6699964c263c6c7be38448d4a7a10a324236d6ffea02a6b01687a3f747dd0fd3238662d869f6e9648900793eccf36950",
            "dongOverlapText": "",
            "shopId": "",
            "operateWord": "",
            "successLabel": "满199减120",
            "denomination": "120",
            "key": "740b5675e1d846cab0219cd50765bc95",
            "roleId": "10228307",
            "couponSortId": 3,
            "limitStr": "【年货节】三只松鼠旗舰店",
            "couponImg": "jfs/t14656/34/1939890355/26079/d1973fd5/5a61d3fbN35b186c7.jpg",
            "leftTime": null,
            "extendInfo": {
                "18": "[6]"
            },
            "discount": false,
            "overlying": false,
            "couponTag": 3,
            "receiveFlag": 0,
            "labelText": "",
            "discountDetailText": "",
            "sortType": 1,
            "needBean": "",
            "beanGet": 0,
            "batchCount": 3000000
        },
        {
            "position": 999,
            "riskLevel": "A",

            "labelColor": "-1",
            "ynTop": 0,
            "ynLabel": "0",
            "remindPeople": null,
            "batchId": "47096526",
            "endTime": "2018-01-25 23:59:59",
            "ynPlus": false,
            "todayEnd": null,
            "startTime": "2018-01-24 00:00:00",
            "id": 414479,
            "jumpFlag": 9,

            "quota": "4000",
            "rate": 35,
            "todayStart": null,
            "totalBean": null,
            "ruleKey": "dbaac303aa0e1a8f8549f7cf74d75296f226c9cd8bded101f9f76a16bca8ba6704bfcd07f387e54a00cfd797c2086d00",
            "dongOverlapText": "",
            "shopId": "",
            "operateWord": "",
            "successLabel": "满4000减600",
            "denomination": "600",
            "key": "8c873cc896e24ad8a1e2205cb546578b",
            "roleId": "10225785",
            "couponSortId": 1,
            "limitStr": "【自营】冰洗冷部分商品",
            "couponImg": "jfs/t2680/300/3085318076/201501/bbee60ec/577dd103N67caec65.jpg",
            "leftTime": null,
            "extendInfo": {},
            "discount": false,
            "overlying": false,
            "couponTag": 3,
            "receiveFlag": 0,
            "labelText": "",
            "discountDetailText": "",
            "sortType": 1,
            "needBean": "",
            "beanGet": 0,
            "batchCount": 1000000
        },
        {
            "position": 999,
            "riskLevel": "A",

            "labelColor": "-1",
            "ynTop": 0,
            "ynLabel": "0",
            "remindPeople": null,
            "batchId": "46928746",
            "endTime": "2018-01-25 23:59:59",
            "ynPlus": false,
            "todayEnd": null,
            "startTime": "2018-01-24 00:00:00",
            "id": 414480,
            "jumpFlag": 9,

            "quota": "10000",
            "rate": 28,
            "todayStart": null,
            "totalBean": null,
            "ruleKey": "2cf977c744d0e97d0b56b60427e17899e5012c6c952cf437c243ae62df55d0e693c6d477c62344d9bb12c21a68156faa",
            "dongOverlapText": "",
            "shopId": "",
            "operateWord": "",
            "successLabel": "满10000减1500",
            "denomination": "1500",
            "key": "8173893e0ded4af4939147d033760fcf",
            "roleId": "10225809",
            "couponSortId": 1,
            "limitStr": "【自营】冰洗冷部分商品",
            "couponImg": "jfs/t2680/300/3085318076/201501/bbee60ec/577dd103N67caec65.jpg",
            "leftTime": null,
            "extendInfo": {},
            "discount": false,
            "overlying": false,
            "couponTag": 3,
            "receiveFlag": 0,
            "labelText": "",
            "discountDetailText": "",
            "sortType": 1,
            "needBean": "",
            "beanGet": 0,
            "batchCount": 1000000
        },
        {
            "position": 999,
            "riskLevel": "A",

            "labelColor": "-1",
            "ynTop": 0,
            "ynLabel": "0",
            "remindPeople": null,
            "batchId": "55554341",
            "endTime": "2018-01-24 23:58:59",
            "ynPlus": false,
            "todayEnd": "23:59:59",
            "startTime": "2018-01-24 00:00:00",
            "id": 411443,
            "jumpFlag": 1,

            "quota": "100",
            "rate": 14,
            "todayStart": "00:00:00",
            "totalBean": null,
            "ruleKey": "9859e7f6a2f369aa4f25fb532d281c9b69471eece297ee717ed42e5ad7d647f1d80dfa8b9660f21d284eb3c05a106ac3",
            "dongOverlapText": "",
            "shopId": "",
            "operateWord": "",
            "successLabel": "满100减50",
            "denomination": "50",
            "key": "997803192d3840449dc71bbae2de86ae",
            "roleId": "10172978",
            "couponSortId": 2,
            "limitStr": "颜域旗舰店",
            "couponImg": "jfs/t8815/33/2101930384/278395/c4d0def/59c32e26N3053670a.jpg",
            "leftTime": null,
            "extendInfo": {
                "18": "[6]"
            },
            "discount": false,
            "overlying": false,
            "couponTag": 3,
            "receiveFlag": 0,
            "labelText": "",
            "discountDetailText": "",
            "sortType": 1,
            "needBean": "",
            "beanGet": 0,
            "batchCount": 1000000
        },
        {
            "position": 999,
            "riskLevel": "A",

            "labelColor": "-1",
            "ynTop": 0,
            "ynLabel": "0",
            "remindPeople": null,
            "batchId": "55660497",
            "endTime": "2018-01-24 23:59:59",
            "ynPlus": false,
            "todayEnd": "23:59:59",
            "startTime": "2018-01-24 00:00:00",
            "id": 404554,
            "jumpFlag": 1,

            "quota": "39",
            "rate": 74,
            "todayStart": "00:00:00",
            "totalBean": null,
            "ruleKey": "1c7d44978b43a68c063db1eb9653fb38a395383c435902a8db7329608871e285df3a7fad1654b5ae02f2af785ae5f8d5",
            "dongOverlapText": "",
            "shopId": "",
            "operateWord": "",
            "successLabel": "满39减30",
            "denomination": "30",
            "key": "120d330a4ee5401e92bf2a0df65b4b6a",
            "roleId": "10170758",
            "couponSortId": 3,
            "limitStr": "顺祥超级神券【多种色土马克杯券后仅需9.9元】",
            "couponImg": "jfs/t16000/362/1742526524/30699/1c41cbbb/5a5dd43aN655492f4.jpg",
            "leftTime": null,
            "extendInfo": {
                "18": "[6]"
            },
            "discount": false,
            "overlying": false,
            "couponTag": 3,
            "receiveFlag": 0,
            "labelText": "",
            "discountDetailText": "",
            "sortType": 1,
            "needBean": "",
            "beanGet": 0,
            "batchCount": 100000
        },
        {
            "position": 999,
            "riskLevel": "A",

            "labelColor": "-1",
            "ynTop": 0,
            "ynLabel": "0",
            "remindPeople": null,
            "batchId": "46804886",
            "endTime": "2018-01-31 23:59:59",
            "ynPlus": false,
            "todayEnd": null,
            "startTime": "2018-01-13 00:00:00",
            "id": 397650,
            "jumpFlag": 1,

            "rate": 74,
            "todayStart": null,
            "totalBean": null,
            "ruleKey": "2b176b6575491da4fc65735fcc78101a2f3f43936e58d3399b0fd423ed5c57349a664890729cf68d6a7b3722ed62d055",
            "dongOverlapText": "",
            "shopId": "",
            "operateWord": "",
            "successLabel": null,
            "denomination": "10",
            "key": "1596f75182f34614961426835f2bca1c",
            "roleId": "10082646",
            "couponSortId": 1,
            "limitStr": "火车票",
            "couponImg": "jfs/t15307/25/1709779943/11637/8e046a5b/5a55c9bdNd3a1c67f.png",
            "leftTime": null,
            "extendInfo": {},
            "discount": false,
            "overlying": false,
            "couponTag": 3,
            "receiveFlag": 0,
            "labelText": "",
            "discountDetailText": "",
            "sortType": 1,
            "needBean": "",
            "beanGet": 0,
            "batchCount": 2100000
        },
        {
            "position": 999,
            "riskLevel": "A",

            "labelColor": "-1",
            "ynTop": 0,
            "ynLabel": "0",
            "remindPeople": null,
            "batchId": "55588379",
            "endTime": "2018-01-24 23:59:59",
            "ynPlus": false,
            "todayEnd": "23:59:59",
            "startTime": "2018-01-24 00:00:00",
            "id": 414297,
            "jumpFlag": 1,

            "rate": 51,
            "todayStart": "00:00:00",
            "totalBean": null,
            "ruleKey": "ae52fd77d5195647fdb57e79d89f178d34fa66925f32e568c624f6fcd5767488e76e80f0d78fc95b8383e55a4f7a0b74",
            "dongOverlapText": "",
            "shopId": "",
            "operateWord": "",
            "successLabel": "满40减30",
            "denomination": "30",
            "key": "013ca0111ed4414391994cbd3700e4b4",
            "roleId": "10183498",
            "couponSortId": 3,
            "limitStr": "恒源祥暴力券满40减30",
            "couponImg": "jfs/t14869/42/2032218256/83517/de34d1b0/5a67546eN277006bc.jpg",
            "leftTime": null,
            "extendInfo": {
                "18": "[6]"
            },
            "discount": false,
            "overlying": false,
            "couponTag": 3,
            "receiveFlag": 0,
            "labelText": "",
            "discountDetailText": "",
            "sortType": 1,
            "needBean": "",
            "beanGet": 0,
            "batchCount": 300000
        },
        {
            "position": 999,
            "riskLevel": "A",

            "labelColor": "-1",
            "ynTop": 0,
            "ynLabel": "0",
            "remindPeople": null,
            "batchId": "46792534",
            "endTime": "2018-01-31 23:59:59",
            "ynPlus": false,
            "todayEnd": null,
            "startTime": "2018-01-13 00:00:00",
            "id": 394853,
            "jumpFlag": 9,

            "quota": "1000",
            "rate": 26,
            "todayStart": null,
            "totalBean": null,
            "ruleKey": "ee65c77a75982a954ef53649c0009de8de69a8e6624d41d78f32e6f007653334476e0faa6e852d22f53c483ce587e439",
            "dongOverlapText": "",
            "shopId": "",
            "operateWord": "",
            "successLabel": "满1000减300",
            "denomination": "300",
            "key": "b318e71ce75949099a6f3ee9420f5515",
            "roleId": "10064540",
            "couponSortId": 1,

            "couponImg": "jfs/t2905/300/3847999660/312900/a9fb3e68/579b201cNed7566f1.jpg",
            "leftTime": null,
            "extendInfo": {},
            "discount": false,
            "overlying": false,
            "couponTag": 3,
            "receiveFlag": 0,
            "labelText": "",
            "discountDetailText": "",
            "sortType": 1,
            "needBean": "",
            "beanGet": 0,
            "batchCount": 11500000
        }
    ],
    "resultCode": "200",
    "success": true
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
.版本 2
.支持库 spec
.支持库 iext

优惠券数据 = #拼接JSON + 优惠券数据 + “}”
' 调试输出 (优惠券数据)
json.解析 (优惠券数据)
.计次循环首 (json.成员数 (“couponList”), i)
    i = i - 1
    ' 开抢时间
    startTime = json.取通用属性 (“couponList[” + 到文本 (i) + “].startTime”)
    调试输出 (startTime)
    ' 结束时间
    endTime = json.取通用属性 (“couponList[” + 到文本 (i) + “].endTime”)
    ' 订阅提醒人数
    remindPeople = json.取通用属性 (“couponList[” + 到文本 (i) + “].remindPeople”)
    ' 优化券名称
    limitStr = json.取通用属性 (“couponList[” + 到文本 (i) + “].limitStr”)
    ' 总量
    batchCount = json.取通用属性 (“couponList[” + 到文本 (i) + “].batchCount”)

    索引 = 超级列表框2.插入表项 (, , , , , )
    超级列表框2.置标题 (索引, 0, 到文本 (i + 1))
    超级列表框2.置标题 (索引, 1, startTime)
    超级列表框2.置标题 (索引, 2, endTime)
    超级列表框2.置标题 (索引, 3, remindPeople)
    超级列表框2.置标题 (索引, 4, limitStr)
    超级列表框2.置标题 (索引, 5, batchCount)

    ' 超级列表框2.置标题 (i, 4, 局_json.四舍五 (jdPrice, miaoShaPrice, ShaPrice) + “%”)
    ' 超级列表框2.置标题 (i, 5, wareId)
    ' 超级列表框2.置标题 (i, 6, “http:” + 子文本替换 (imageurl, “\/”, “/”, , , 真))

.计次循环尾 ()
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35

首先要将超级列表框配置好,然后加入文本数据

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/238856
推荐阅读
相关标签
  

闽ICP备14008679号