XMTT 7 years ago
parent
commit
aa5f6d6f34
2 changed files with 6 additions and 6 deletions
  1. 2 2
      html/model/sys/answer/index.html
  2. 4 4
      js/model/sys/answer/index.js

+ 2 - 2
html/model/sys/answer/index.html

@ -73,9 +73,9 @@
73 73
            </thead>
74 74
            <tbody>
75 75
            <tr ch-dir="list">
76
                <td class="opt-check" ><i class="icon icon-st-check" aId="{{id}}" pId="{{pId}}"></i></td>
76
                <td class="opt-check" ><i class="icon icon-st-check" aId="{{id}}" qId="{{qid}}"></i></td>
77 77
                <td>{{pi}}</td>
78
                <td class="table-opt" aId="{{id}}" pId="{{pid}}"><a class="name">{{questionTitle}}</a></td>
78
                <td class="table-opt" aId="{{id}}" qId="{{qid}}"><a class="name">{{questionTitle}}</a></td>
79 79
                <td class="elip">{{cnt}}</td>
80 80
                <td professorId="{{uid}}"><a class="author">{{respondent}}</a></td>
81 81
                <td>{{createTime-showDay}}</td>

+ 4 - 4
js/model/sys/answer/index.js

@ -37,9 +37,9 @@ spa_define(function () {
37 37
                    });
38 38
                    root.find(".table-opt a.name").on("click",function () {
39 39
                        var aId = $(this).parent().attr("aId");
40
                        var pId = $(this).parent().attr("pId");
40
                        var qId = $(this).parent().attr("qId");
41 41
                        // window.open('http://www.ekexiu.com/articalShow.html?articleId=' + articleId);
42
                        window.open('http://www.ekexiu.com/qa-show.html?id='+aId+'&topid=' + pId);
42
                        window.open('http://www.ekexiu.com/qa-show.html?id='+aId+'&topid=' + qId);
43 43
                    });
44 44
                    root.find("a.author").on("click",function () {
45 45
                        var professorId = $(this).parent().attr("professorId");
@ -113,8 +113,8 @@ spa_define(function () {
113 113
                            util.alert("只能选择一篇回答");
114 114
                        } else {
115 115
                            var aId = $answer.attr("aId");
116
                            var pId = $answer.attr("pId");
117
                            window.open('http://www.ekexiu.com/qa-show.html?id='+aId+'&topid=' + pId);
116
                            var qId = $answer.attr("qId");
117
                            window.open('http://www.ekexiu.com/qa-show.html?id='+aId+'&topid=' + qId);
118 118
                        }
119 119
                    } else {
120 120
                        util.alert("请选择一篇回答");