Browse Source

solve small bugs

StephenArk30 6 years ago
parent
commit
68c4757727

+ 7 - 2
sourcecode/h5app/vue/src/components/addPhoto.vue

@@ -1,6 +1,6 @@
 <template>
     <div class='add_photo'>
-        <img :src="photoURL" class="photo" name="photo"/>
+        <img :src="photo ? photo : photoURL" class="photo" name="photo"/>
         <input
                 type="file"
                 name="file"
@@ -14,6 +14,11 @@
 <script>
     export default {
         name: "addPhoto",
+        data() {
+            return {
+                photo: null
+            }
+        },
         props: {
             photoURL: {
                 default: "http://pjczv6ygf.bkt.clouddn.com/camera.png"
@@ -29,7 +34,7 @@
                 let that = this;
                 reads.onload = function (e) {
                     // console.log(this.result);
-                    that.photoURL = this.result;
+                    that.photo = this.result;
                 };
                 this.$emit('onRead', f);
             }

+ 1 - 1
sourcecode/h5app/vue/src/components/guide.vue

@@ -24,7 +24,7 @@
 
 <style scoped>
     .guide_background {
-        position: absolute;
+        position: fixed;
         top: 0;
         left: 0;
         background-color: #313131;

+ 2 - 3
sourcecode/h5app/vue/src/views/index.vue

@@ -1,6 +1,6 @@
 <template>
     <div>
-        <guide style="z-index: 3" v-if="hasPresent === false"/>
+        <guide style="z-index: 99" v-if="hasPresent === false"/>
         <van-swipe :autoplay="3000" style="margin: 10px 10px;" :initial-swipe="1">
             <van-swipe-item v-for="(image, index) in images" :key="index">
                 <img v-lazy="image" style="width: 100%"/>
@@ -118,7 +118,6 @@
                         confirmButtonText: '查看校卡信息',
                         cancelButtonText: '查看礼物'
                     }).then(() => {
-
                         Toast.loading({
                             mask: true,
                             message: '加载中...',
@@ -133,7 +132,7 @@
                         });
                         let present = this.presents[i];
                         this.$router.push({
-                            path: 'giftDetail', query: {presentId: present.goodid}
+                            path: 'giftDetail', query: {presentId: present.id}
                         });
                     });
                 } else {