Commit f356272c1043f3770c0cd548da8d2425cf131dbc

Authored by DESKTOP-QHAFKU5\iceling
1 parent 545aaa8d

标签js选择标签

Showing 1 changed file with 12 additions and 12 deletions
pages/user/labels/labels.js
... ... @@ -8,42 +8,42 @@ Page({
8 8 interest_lables: [{
9 9 lable: "学生"
10 10 }, {
11   - lable: "学生",
  11 + lable: "白领",
12 12 check: 0
13 13 }, {
14   - lable: "学生",
  14 + lable: "高级蓝领",
15 15 check: 0
16 16 }, {
17   - lable: "学生",
  17 + lable: "工程师",
18 18 check: 0
19 19 }, {
20   - lable: "学生",
  20 + lable: "军人",
21 21 check: 0
22 22 }, {
23   - lable: "学生",
  23 + lable: "公务员",
24 24 check: 0
25 25 }, {
26   - lable: "学生",
  26 + lable: "网红",
27 27 check: 0
28 28 }, {
29   - lable: "学生",
  29 + lable: "网红主播",
30 30 check: 0
31 31 }, {
32   - lable: "学生"
  32 + lable: "辣妈",
33 33 }, {
34 34 lable: "学生",
35 35 check: 0
36 36 }, {
37   - lable: "学生",
  37 + lable: "博主",
38 38 check: 0
39 39 }, {
40 40 lable: "学生",
41 41 check: 0
42 42 }, {
43   - lable: "学生",
  43 + lable: "学生",
44 44 check: 0
45 45 }, {
46   - lable: "学生",
  46 + lable: "网红主播",
47 47 check: 0
48 48 }, {
49 49 lable: "学生",
... ... @@ -60,8 +60,8 @@ Page({
60 60 var labels_cid = th.data.interest_lables[index].check; //当前标签是否选中
61 61 var labels_check = 'interest_lables[' + index + '].check'; //用于点击标签把点击状态赋值进去
62 62 if (labels_cid) {
  63 + check_label = [];
63 64 labels_cid = 0;
64   -
65 65 } else {
66 66 labels_cid = 1;
67 67 }
... ...