Ver Fonte

solve a small bug

StephenArk30 há 6 anos atrás
pai
commit
7c907ecd3b

BIN
sourcecode/h5app/vue/src/assets/camera.png


+ 27 - 27
sourcecode/h5app/vue/src/components/schoolCard.vue

@@ -5,7 +5,7 @@
                 <h3><strong>校卡审核</strong></h3>
             </van-col>
             <van-col span="8">
-               <p :style="{ color: statusColor }">{{statusString}}</p>
+                <p :style="{ color: statusColor }">{{statusString}}</p>
             </van-col>
         </van-row>
         <div v-if="status===30 || status === 500">
@@ -39,28 +39,28 @@
         },
         data() {
             return {
-                statusColor:'',
-                statusString:'-----',
+                statusColor: '',
+                statusString: '-----',
                 photo: null,
-                loading:false,
-                status:0,
+                loading: false,
+                status: 0,
                 imgage: null,
-                imgDo:{},
-                schoolpic:"",
-                IMGPREFIX:"http://gift.fogice.com"
+                imgDo: {},
+                schoolpic: "",
+                IMGPREFIX: "http://gift.fogice.com"
 
             }
         },
         methods: {
             schoolPresent() {
                 // 检验输入
-                this.loading=true;
+                this.loading = true;
                 if (this.photo === null) {
                     Toast.fail('请上传礼物照片');
-                    this.loading=false;
+                    this.loading = false;
                     return;
                 }
-                this.imgDo.userSchoolCardPic=this.imgUrl;
+                this.imgDo.userSchoolCardPic = this.imgUrl;
                 let that = this;
                 BasicFunction.get_data("smartIdentity/updateBatch", function (response) {
                     console.log("------ Data Rcvd in uploadphotoChange --------");
@@ -86,30 +86,29 @@
             BasicFunction.get_data('smartIdentity/list?userId=' + userid, function (res) {
                 console.log(res);
                 if (res.ret === '10000') {
-                    var t=res.model.list;
-                    that.status=t[0].userReviewStatus;
-                    that.imgDo=t[0];
+                    var t = res.model.list;
+                    that.status = t[0].userReviewStatus;
+                    that.imgDo = t[0];
                     console.log(that);
-                    if(that.status === 30){
-                        that.statusColor='#c5c5c5';
-                        that.statusString='未上传校卡';
+                    if (that.status === 30) {
+                        that.statusColor = '#c5c5c5';
+                        that.statusString = '未上传校卡';
                         that.$router.push('verify');
                         return;
-                    } else if (that.status === 0|| that.status === 1000) {
-                        that.schoolpic=that.IMGPREFIX+t[0].userSchoolCardPic;
-                        if(that.status === 0)
-                        {
-                            that.statusColor='#c5c530';
-                            that.statusString='审核中'
+                    } else if (that.status === 0 || that.status === 1000) {
+                        that.schoolpic = that.IMGPREFIX + t[0].userSchoolCardPic;
+                        if (that.status === 0) {
+                            that.statusColor = '#c5c530';
+                            that.statusString = '审核中'
                         }
 
-                        if(that.status === 1000) {
+                        if (that.status === 1000) {
                             that.statusColor = '#00ff00';
-                            that.statusString='审核通过'
+                            that.statusString = '审核通过'
                         }
                     } else {
-                        that.statusColor='#ff0000';
-                        that.statusString='审核未通过'
+                        that.statusColor = '#ff0000';
+                        that.statusString = '审核未通过'
                     }
                 }
             }, {});
@@ -135,6 +134,7 @@
         padding: 15px;
         text-align: left;
     }
+
     .submit_button {
         margin-bottom: 10px;
         margin-left: auto;

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

@@ -165,6 +165,7 @@
     .dec {
         float: left;
         width: 25%;
+        margin-bottom: 50px;
     }
 
     .dec img {