Преглед изворни кода

add router for index description

StephenArk30 пре 6 година
родитељ
комит
0389c136ea

+ 5 - 1
sourcecode/h5app/vue/src/components/giftCard.vue

@@ -22,7 +22,8 @@
                 <van-row type="flex" justify="space-between">
                     <van-col class="c"><p>微信</p></van-col>
                     <van-col class="c">
-                            <p style="float: left">{{wechat}}</p>
+                        <p :style="owner ? 'color: #778899' : 'color: #191970' + '; float: left'" @click="toMe">
+                            {{wechat}}</p>
                             <van-button round size="mini"
                                         v-if="owner" style="margin-left: 5px"
                                         v-clipboard:copy="wechat"
@@ -95,6 +96,9 @@
             },
             onError: function (e) {
                 alert('Failed to copy texts')
+            },
+            toMe: function () {
+                if (this.owner === 0) this.$router.push('me');
             }
         }
     }

+ 2 - 2
sourcecode/h5app/vue/src/connector/simple-demo.js

@@ -247,8 +247,8 @@ smartIdentity/saveBatch
 "userSchoolCard":20123333222,
 "userReviewStatus":1000, // 校卡审核状态 30: 默认; 100: 审核中; 1000: 审核通过; 500: 审核失败
 "reviewerId":1,
-"reviewerNote":"nmo",
-"reviewerNoteToUser":"noo"
+"reviewerNote":"nmo", // 审核内部备注
+"reviewerNoteToUser":"noo" // 公开备注
 }]
 
 

+ 2 - 2
sourcecode/h5app/vue/src/views/PresentRegister.vue

@@ -99,7 +99,7 @@
                 descError: false,
                 tags: [
                     "情怀","复古", "有趣", "学霸",  "实用",
-                    "同年", "吃货", "佛系",  "土味", "活力",
+                    "童年", "吃货", "佛系", "土味", "活力",
                     "洋气", "精致",  "轻奢",  "其它",
                 ],
                 tag: 0,
@@ -168,7 +168,7 @@
                             console.log("------ Data Rcvd in PresentReg --------");
                             console.log(response);
                             if (response.ret === "10000") {
-                                that.$router.push('index');
+                                that.$router.push('share');
                             } else {
                                 Toast.fail("上传失败,请检查网络");
                                 that.loading = false;

+ 5 - 1
sourcecode/h5app/vue/src/views/index.vue

@@ -31,7 +31,11 @@
         </ul>
         <div style="margin: 50px 10px;">
             <p style="text-align: left; margin-left: 5px"><strong>简单四步,轻松互赠圣诞礼物</strong></p>
-            <img src="../assets/declare_icons/declare.jpg" style="margin-bottom: 40px"/>
+            <img
+                    src="../assets/declare_icons/declare.jpg"
+                    style="margin-bottom: 40px"
+                    @click="$router.push('verify')"
+            />
         </div>
         <add-present-button :can_add="button_active"/>
     </div>