Bläddra i källkod

annotate console log

StephenArk30 6 år sedan
förälder
incheckning
33d0ab974a

+ 3 - 3
sourcecode/h5app/vue/src/components/addPhoto.vue

@@ -16,19 +16,19 @@
         name: "addPhoto",
         props: {
             photoURL: {
-                default: require('../assets/camera.png')
+                default: "http://pjczv6ygf.bkt.clouddn.com/camera.png"
             }
         },
         methods: {
             onRead: function (e) {
                 let f = e.target.files[0];
-                console.log(f);
+                // console.log(f);
 
                 let reads = new FileReader();
                 reads.readAsDataURL(f);
                 let that = this;
                 reads.onload = function (e) {
-                    console.log(this.result);
+                    // console.log(this.result);
                     that.photoURL = this.result;
                 };
                 this.$emit('onRead', f);

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

@@ -51,7 +51,7 @@
         },
         data() {
             return {
-                place: ['南区', '斋区', '西南', '桂庙', '西丽'],
+                place: ['斋区', '西南', '南区', '桂庙', '西丽'],
                 statusString: ['审核中', '匹配中', '匹配成功', '交换成功', '审核失败'],
                 statusColor: ['#fd6740', '#00ff00', '#00bfff', '#00fa9a', '#ff0000'],
                 genders: ['未知', '男', '女']

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

@@ -2,7 +2,7 @@
     <div class="guide_background" v-if="seen" @click="seen=false">
         <div class="tips">
             <p>点击这里<br/>发布礼物</p>
-            <img src="../assets/arrow.png"/>
+            <img src="http://pjczv6ygf.bkt.clouddn.com/arrow.png"/>
         </div>
         <add-present-button :can_add="true" :disabled="false"/>
     </div>

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

@@ -60,13 +60,13 @@
                     return;
                 }
                 let that=this;
-                console.log('------- photo -------');
-                console.log(this.photo);
+                // console.log('------- photo -------');
+                // console.log(this.photo);
                 let formData = new FormData();
                 formData.append('file', this.photo);
                 BasicFunction.get_data("smartIdentity/updateBatch", function (response) {
-                    console.log("------ Data Rcvd in uploadphotoChange --------");
-                    console.log(response);
+                    // console.log("------ Data Rcvd in uploadphotoChange --------");
+                    // console.log(response);
                     if (response.ret === "10000") {
                         Toast.success("上传成功");
                         this.$router.push('index');
@@ -88,14 +88,14 @@
             let userid = localStorage.getItem('frontend-userid');
             let that = this;
             BasicFunction.get_data('smartIdentity/list?userId=' + userid, function (res) {
-                console.log('----- User Identity -----');
-                console.log(res);
+                // console.log('----- User Identity -----');
+                // console.log(res);
                 if (res.ret === '10000') {
                     var t=res.model.list;
                     that.status=t[0].userReviewStatus;
                     that.imgDo=t[0];
-                    console.log(that);
-                    if(that.status === 30){
+                    // console.log(that);
+                    if (res.model.list.length === 0 || that.status === 30) {
                         that.statusColor='#c5c5c5';
                         that.statusString='未上传校卡';
                         that.$router.push('verify');

+ 8 - 8
sourcecode/h5app/vue/src/components/schoolidCard.vue

@@ -91,8 +91,8 @@
             uploadNameChange: function () {
                 let that = this;
                 BasicFunction.get_data("smartUsers/updateBatch", function (response) {
-                    console.log("------ Data Rcvd in uploadNameChange --------");
-                    console.log(response);
+                    // console.log("------ Data Rcvd in uploadNameChange --------");
+                    // console.log(response);
                     if (response.ret === "10000") {
                         that.isReadonly = true;
                         Toast.success("上传成功")
@@ -104,8 +104,8 @@
             uploadReviewChange: function () {
                 let that = this;
                 BasicFunction.get_data("smartIdentity/updateBatch", function (response) {
-                    console.log("------ Data Rcvd in uploadReviewChange --------");
-                    console.log(response);
+                    // console.log("------ Data Rcvd in uploadReviewChange --------");
+                    // console.log(response);
                     if (response.ret === "10000") {
                         //history.go(0);
                         that.isReadonly = true;
@@ -149,8 +149,8 @@
                 let userId = localStorage.getItem("frontend-userid");
                 let that = this;
                 BasicFunction.get_data("smartUsers/list?uid=" + userId, function (response) {
-                    console.log("------ Data Rcvd in getIdentityInfo --------");
-                    console.log(response);
+                    // console.log("------ Data Rcvd in getIdentityInfo --------");
+                    // console.log(response);
                     if (response.ret === "10000") {
                         let t = response.model.list;
                         that.personName = t[0].name; // 左侧是vue页面内的变量名字, 右侧是后台数据里的变量名称
@@ -169,8 +169,8 @@
                 let userId = localStorage.getItem("frontend-userid");
                 let that = this;
                 BasicFunction.get_data("smartIdentity/list?userId=" + userId, function (response) {
-                    console.log("------ Data Rcvd in getReviewInfo --------");
-                    console.log(response);
+                    // console.log("------ Data Rcvd in getReviewInfo --------");
+                    // console.log(response);
                     if (response.ret === "10000") {
                         var t = response.model.list;
                         that.gender = ""+t[0].userSex; // 左侧是vue页面内的变量名字, 右侧是后台数据里的变量名称

+ 9 - 6
sourcecode/h5app/vue/src/views/Assess.vue

@@ -1,5 +1,6 @@
 <template>
     <div>
+        <nav-bar path="index" title="礼物评论"/>
         <div class="card">
             <h3 > 交换成功!写一封感谢信送给ta吧~
             </h3>
@@ -41,11 +42,13 @@
         Toast
     } from 'vant'
     import {BasicFunction} from "../connector/basic-service";
+    import NavBar from "../components/navBar";
     // import { wx } from "http://res2.wx.qq.com/open/js/jweixin-1.4.0.js";
 
     export default {
         name: "Assess",
         components: {
+            NavBar,
             [CellGroup.name]: CellGroup, [Field.name]: Field,
             [Rate.name]: Rate, [Button.name]: Button,
         },
@@ -56,7 +59,7 @@
                 assessError: false,
                 assessDo:{},
                 active: 0,
-                Assessimage: require('../assets/thanks.png'),
+                Assessimage: "http://pjczv6ygf.bkt.clouddn.com/thanks.png",
 
             }
         },
@@ -81,10 +84,10 @@
                 this.assessDo.ratingMajor=this.value;
                 let orderId=BasicFunction.utils_get_param("orderId");
                 // assess_present()
-                console.log(present);
+                // console.log(present);
                 BasicFunction.get_data("smartOrderFeedback/saveBatch?orderId="+orderId, function (response) {
-                    console.log("------ Data Rcvd in assessPersent --------");
-                    console.log(response);
+                        // console.log("------ Data Rcvd in assessPersent --------");
+                        // console.log(response);
                     if(response.ret === "10000"){
                         Toast.success("上传成功");
                     } else {
@@ -108,8 +111,8 @@
             let that=this;
             let orderId=BasicFunction.utils_get_param("orderId");
             BasicFunction.get_data("smartOrderFeedback/list?orderId="+orderId, function (response) {
-                    console.log("------ Data Rcvd in assessPersent --------");
-                    console.log(response);
+                // console.log("------ Data Rcvd in assessPersent --------");
+                // console.log(response);
                     if(response.ret === "10000"){
                         var t=response.model.list;
                         that.assessDo=t[0];

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

@@ -138,8 +138,8 @@
                 let tag = this.tag;
                 let gender = this.gender;
 
-                console.log('------- photo -------');
-                console.log(this.photo);
+                // console.log('------- photo -------');
+                // console.log(this.photo);
 
                 let that = this;
                 // 如果没有改变图片,直接上传
@@ -163,12 +163,12 @@
                         visit: "0", favorite: "0", sort: "0", listImg: "xx.jpg",
                         smallImg: "xx.jpg", specArray: "{}", exp: "0"
                     }];
-                    console.log(present);
+                    // console.log(present);
                     let url = "updateBatch";
                     if (that.presentId === '') url = "saveBatch";
                     BasicFunction.get_data("smartGoods/" + url, function (response) {
-                        console.log("------ Data Rcvd in PresentReg --------");
-                        console.log(response);
+                        // console.log("------ Data Rcvd in PresentReg --------");
+                        // console.log(response);
                         if (response.ret === "10000") {
                             that.$router.push('share');
                         } else {
@@ -183,11 +183,11 @@
                     let imgURL = '';
                     // 先上传图片
                     BasicFunction.get_data("fileserver/upload?sign=abcdefg", function (res) {
-                        console.log('----- upload photo result -----');
-                        console.log(res);
+                        // console.log('----- upload photo result -----');
+                        // console.log(res);
                         if (res.ret === '10000') {
                             imgURL = res.model;
-                            console.log('img:' + imgURL);
+                            // console.log('img:' + imgURL);
                             let present = [{
                                 goodid: that.presentId,
                                 name: that.presentName,
@@ -221,12 +221,12 @@
                                 specArray: "{}",
                                 exp: "0"
                             }];
-                            console.log(present);
+                            // console.log(present);
                             let url = "updateBatch";
                             if (that.presentId === '') url = "saveBatch";
                             BasicFunction.get_data("smartGoods/" + url, function (response) {
-                                console.log("------ Data Rcvd in PresentReg --------");
-                                console.log(response);
+                                // console.log("------ Data Rcvd in PresentReg --------");
+                                // console.log(response);
                                 if (response.ret === "10000") {
                                     that.$router.push('share');
                                 } else {
@@ -252,8 +252,8 @@
             }
             if(this.$route.query.present) {
                 let present = this.$route.query.present;
-                console.log('----- Present Info -----');
-                console.log(present);
+                // console.log('----- Present Info -----');
+                // console.log(present);
                 this.presentId = present.id;
                 this.gender = present.gender.toString();
                 this.presentName = present.name;

+ 45 - 44
sourcecode/h5app/vue/src/views/SecurityVerify.vue

@@ -159,63 +159,64 @@
                 }
 
                 let that = this;
-                console.log('------- photo -------');
-                console.log(this.photo);
+                // console.log('------- photo -------');
+                // console.log(this.photo);
                 let formData = new FormData();
                 formData.append('file', this.photo);
                 BasicFunction.get_data("fileserver/upload?sign=abcdefg", function (res) {
-                    console.log('----- upload photo result -----');
-                    console.log(res);
+                    // console.log('----- upload photo result -----');
+                    // console.log(res);
                     if (res.ret === '10000') {
                         let imgURL = res.model; // TODO: 把imgurl也加入用户信息
                         let userId = localStorage.getItem('frontend-userid');
-                        let useridentity = {
-                            reviewId: "",
-                            userId: userId,
-                            userWxAccount: that.wechat,
-                            dormDistrict: that.dorId,
-                            userSex: parseInt(that.radio),
-                            userSchoolCard: 111111,
-                            userSchoolCardPic: imgURL,
-                            userReviewStatus: 100,
-                            reviewerId: 1,
-                            reviewerNote: "未审核",
-                            reviewerNoteToUser: "未审核"
-                        };
-                        console.log('----- User Identity -----');
-                        BasicFunction.get_data("smartIdentity/saveBatch", function (response) {
-                            console.log(useridentity);
-                            console.log(response);
-                            if (response.ret === "10000") {
-                                console.log('----- User Info -----');
-                                BasicFunction.get_data('smartUsers/list?uid=' + userId, function (res) {
-                                    console.log(res);
-                                    if (res.ret === '10000') {
-                                        let user = res.model.list[0];
-                                        user.name = that.username;
-                                        user.phone = that.phone;
-                                        console.log('----- Update User Info -----');
-                                        console.log(user);
-                                        BasicFunction.get_data('smartUsers/updateBatch', function (res) {
-                                            console.log(res);
+                        // console.log('----- User Identity -----');
+                        BasicFunction.get_data("smartIdentity/list?userId=" + userId, function (res) {
+                            if (res.ret === '10000') {
+                                let useridentity = res.model.list[0];
+                                useridentity.userWxAccount = that.wechat;
+                                useridentity.dormDistrict = that.dorId;
+                                useridentity.userSex = parseInt(that.radio);
+                                useridentity.userSchoolCardPic = imgURL;
+                                useridentity.userReviewStatus = 100;
+                                useridentity.reviewerNote = "未审核";
+                                useridentity.reviewerNoteToUser = "未审核";
+                                BasicFunction.get_data("smartIdentity/updateBatch", function (response) {
+                                    // console.log(useridentity);
+                                    // console.log(response);
+                                    if (response.ret === "10000") {
+                                        // console.log('----- User Info -----');
+                                        BasicFunction.get_data('smartUsers/list?uid=' + userId, function (res) {
+                                            // console.log(res);
                                             if (res.ret === '10000') {
-                                                Toast.success("注册成功");
-                                                that.$router.push('presentRegister');
+                                                let user = res.model.list[0];
+                                                user.name = that.username;
+                                                user.phone = that.phone;
+                                                // console.log('----- Update User Info -----');
+                                                // console.log(user);
+                                                BasicFunction.get_data('smartUsers/updateBatch', function (res) {
+                                                    // console.log(res);
+                                                    if (res.ret === '10000') {
+                                                        Toast.success("注册成功");
+                                                        that.$router.push('presentRegister');
+                                                    } else {
+                                                        Toast.fail('注册失败');
+                                                        that.loading = false;
+                                                    }
+                                                }, [user]);
                                             } else {
-                                                Toast.fail('注册失败');
+                                                Toast.fail('获取用户信息失败');
                                                 that.loading = false;
                                             }
-                                        }, [user]);
+                                        }, {});
                                     } else {
-                                        Toast.fail('获取用户信息失败');
+                                        Toast.fail("注册失败,请检查网络");
                                         that.loading = false;
                                     }
-                                }, {});
+                                }, [useridentity]);
                             } else {
-                                Toast.fail("注册失败,请检查网络");
-                                that.loading = false;
+                                Toast.fail('获取信息失败');
                             }
-                        }, [useridentity]);
+                        }, {});
                     } else {
                         Toast.fail('上传图片失败,请检查网络');
                         that.loading = false;
@@ -236,8 +237,8 @@
             let userid = localStorage.getItem('frontend-userid');
             let that = this;
             BasicFunction.get_data('smartUsers/list?uid=' + userid, function (res) {
-                console.log('----- User Info ----- ' + userid);
-                console.log(res);
+                // console.log('----- User Info ----- ' + userid);
+                // console.log(res);
                 if (res.ret === '10000') {
                     if (res.model.list[0].phone.length !== 0) that.$router.push('presentRegister');
                 }

+ 5 - 5
sourcecode/h5app/vue/src/views/beTest.vue

@@ -37,7 +37,7 @@
             testSaveGoods(){
                 window.testvuepage = this;
                 BasicFunction.get_data("smartGoods/save", function(response){
-                    console.log(response);
+                    // console.log(response);
                     if(response.ret !== "10000"){
                         if(response.model.list.length > 0 && response.model === "1"){
                             this.testSuccess();
@@ -53,7 +53,7 @@
             testReadGoods(){
                 window.testvuepage = this;
                 BasicFunction.get_data("smartGoods/list", function(response){
-                    console.log(response);
+                    // console.log(response);
                     if(response.ret !== "10000"){
                         if(response.model.list.length > 0 && response.model.list[0]["goodId"] != undefined){
                             this.testSuccess();
@@ -70,7 +70,7 @@
             testSaveReview(){
                 window.testvuepage = this;
                 BasicFunction.get_data("/list", function(response){
-                    console.log(response);
+                    // console.log(response);
                     if(response.ret !== "10000"){
                         this.testSuccess();
                         return;
@@ -84,7 +84,7 @@
             testSaveWxid(){
                 window.testvuepage = this;
                 BasicFunction.get_data("/list", function(response){
-                    console.log(response);
+                    // console.log(response);
                     if(response.ret !== "10000"){
                         this.testSuccess();
                         return;
@@ -99,7 +99,7 @@
 
                 window.testvuepage = this;
                 BasicFunction.get_data("/list", function(response){
-                    console.log(response);
+                    // console.log(response);
                     if(response.ret !== "10000"){
                         this.testSuccess();
                         return;

+ 12 - 12
sourcecode/h5app/vue/src/views/giftDetail.vue

@@ -118,15 +118,15 @@
                     });
                     let that = this;
                     BasicFunction.get_data("smartGoods/list?goodid=" + this.myPresent.id, function (response) {
-                        console.log("------ Data Rcvd in detail --------");
-                        console.log(response);
+                        // console.log("------ Data Rcvd in detail --------");
+                        // console.log(response);
                         if (response.ret === "10000") {
                             let list = response.model.list;
-                            if (list !== undefined || list.length > 0) console.warn(list);
+                            // if (list !== undefined || list.length > 0) console.warn(list);
                             list[0].isDel = 1;
-                            console.log(list);
+                            // console.log(list);
                             BasicFunction.get_data("smartGoods/updateBatch", function (response) {
-                                console.log(response);
+                                // console.log(response);
                                 if (response.ret === '10000') {
                                     Toast.success('删除成功');
                                     that.$router.push('index');
@@ -135,7 +135,7 @@
                                 }
                             }, list)
                         } else {
-                            console.warn("获取资源失败");
+                            // console.warn("获取资源失败");
                         }
                     }, {});
                 }).catch(() => {
@@ -156,28 +156,28 @@
             let that = this;
             present.comment = '';
             BasicFunction.get_data('smartIdentity/list?userId=' + userid, function (res) {
-                console.log(res);
+                // console.log(res);
                 if (res.ret === '10000') {
                     present.placeId = res.model.list[0].dormDistrict;
                     present.wechat = res.model.list[0].userWxAccount;
                     that.myPresent = present;
-                    console.log(that.myPresent);
+                    // console.log(that.myPresent);
                     if (present.status === 3) BasicFunction.get_data('smartOrderFeedback/list?goodId=' + present.id, function (res) {
-                        console.log(res);
+                        // console.log(res);
                         if (res.ret === '10000') {
                             if (res.model.list.length === 0) that.myPresent.comment = '暂未收到';
                             else that.myPresent.comment = res.model.list[0].content;
-                            console.log(that.myPresent);
+                            // console.log(that.myPresent);
                         }
                     }, {});
 
                     if (present.status === 4) BasicFunction.get_data('smartGoodReview/list?goodId=' + present.id, function (res) {
-                        console.log(res);
+                        // console.log(res);
                         if (res.ret === '10000') {
                             if (res.model.list.length !== 0) that.reason = res.model.list[0].displayNote;
                         }
                     }, {});
-                    console.log(that.myPresent);
+                    // console.log(that.myPresent);
                 }
             }, {});
         }

+ 20 - 18
sourcecode/h5app/vue/src/views/index.vue

@@ -7,7 +7,7 @@
             </van-swipe-item>
         </van-swipe>
         <van-notice-bar
-                text="上传礼物截止时间是24号21:00,25号0点开始将陆续放出配对结果,请留意"
+                text="上传礼物需要被审核,请经常来看看审核是否通过,截止时间是24号21:00,25号0点开始将陆续放出配对结果"
                 left-icon="//img.yzcdn.cn/vant/volume.png"
         />
 
@@ -33,13 +33,8 @@
                     @to-detail="toDetail(index)"
             ></li>
         </ul>
-        <div style="margin: 50px 10px;">
+        <div style="margin: 20px 10px 0;">
             <p style="text-align: left; margin-left: 5px"><strong>简单四步,轻松互赠圣诞礼物</strong></p>
-            <!--<img-->
-            <!--src="../assets/declare_icons/declare.jpg"-->
-            <!--style="margin-bottom: 40px"-->
-            <!--@click="$router.push('verify')"-->
-            <!--/>-->
             <div
                     class="dec"
                     v-for="(pic, index) in dec_icons"
@@ -50,6 +45,9 @@
                 <p>{{dec_words[index]}}</p>
             </div>
         </div>
+        <div style="margin: 20px 10px 80px; font-size: 15px">
+            <p>如果您发现礼物图片不正确或无法加载,请点击礼物-修改礼物重新上传图片</p>
+        </div>
         <add-present-button :can_add="button_active"/>
     </div>
 </template>
@@ -79,9 +77,9 @@
         data() {
             return {
                 images: [
-                    require('../assets/banners/banner1.jpg'),
-                    require('../assets/banners/banner2.jpg'),
-                    require('../assets/banners/banner3.jpg'),
+                    "http://pjczv6ygf.bkt.clouddn.com/banner/banner1.jpg",
+                    "http://pjczv6ygf.bkt.clouddn.com/banner/banner2.jpg",
+                    "http://pjczv6ygf.bkt.clouddn.com/banner/banner3.jpg"
                 ],
                 active: 0,
                 button_active: false,
@@ -137,7 +135,11 @@
                             message: '加载中...',
                             duration: 500
                         });
-                        this.$router.push('verify');
+                        if (this.button_active) this.$router.push('verify');
+                        else Dialog.alert({
+                            message: '只能上传一次礼物哦'
+                        }).then(() => {
+                        });
                         break;
                     case 2:
                         Dialog.alert({
@@ -162,15 +164,15 @@
                 return;
             }
             let userid = localStorage.getItem('frontend-userid');
-            console.log(userid);
+            // console.log(userid);
 
             let presentList = [];
             let b_a = true;
             let h_p = false;
             let that = this;
             BasicFunction.get_data("smartGoods/list?isDel=0&ownerId=" + userid, function (response) {
-                console.log("------ Data Rcvd in Index --------");
-                console.log(response);
+                // console.log("------ Data Rcvd in Index --------");
+                // console.log(response);
                 if (response.ret === "10000") {
                     let list = response.model.list;
                     if (list.length !== 0) h_p = true;
@@ -196,12 +198,12 @@
                     that.button_active = b_a;
                 } else {
                     // 失败的处理
-                    console.warn("获取资源失败");
+                    // console.warn("获取资源失败");
                 }
             }, {});
 
-            console.log("presents:");
-            console.log(presentList);
+            // console.log("presents:");
+            // console.log(presentList);
             this.presents = presentList;
         },
         mounted: function () {
@@ -215,7 +217,7 @@
     .dec {
         float: left;
         width: 25%;
-        margin-bottom: 70px;
+        margin-bottom: 10px;
     }
 
     .dec img {

+ 7 - 7
sourcecode/h5app/vue/src/views/login.vue

@@ -25,13 +25,13 @@
                 return;
             }
             let otp = this.$route.query.o;
-            console.log('otp: ');
-            console.log(otp);
+            // console.log('otp: ');
+            // console.log(otp);
             if (otp === undefined) {
                 otp = BasicFunction.utils_get_param("o");
             }
-            console.log('otp: ');
-            console.log(otp);
+            // console.log('otp: ');
+            // console.log(otp);
             let userid = '';
 
             if (otp === null) {
@@ -41,8 +41,8 @@
             }
             let that = this;
             BasicFunction.get_data("ajaxotplogin?otp=" + otp.toString(), function (response) {
-                console.log("------ User Info login --------");
-                console.log(response);
+                // console.log("------ User Info login --------");
+                // console.log(response);
                 if (response.ret === "10000") {
                     let user = response.model;
                     userid = user.userId;
@@ -51,7 +51,7 @@
                     that.$router.push('index');
                 } else {
                     // 失败的处理
-                    console.warn("获取用户信息失败");
+                    // console.warn("获取用户信息失败");
                     Toast.fail('链接失效!请回到公众号重新获取链接');
                     that.$router.push('warning');
                 }

+ 3 - 3
sourcecode/h5app/vue/src/views/me.vue

@@ -37,8 +37,8 @@
             let userid = localStorage.getItem("frontend-userid");
             let that = this;
             BasicFunction.get_data("smartGoods/list?isDel=0&ownerId=" + userid, function (response) {
-                console.log("------ Data Rcvd in me --------");
-                console.log(response);
+                // console.log("------ Data Rcvd in me --------");
+                // console.log(response);
                 if (response.ret === "10000") {
                     let list = response.model.list;
                     list.forEach(gift => {
@@ -46,7 +46,7 @@
                     });
                     that.button_active = b_a;
                 } else {
-                    console.warn("获取资源失败");
+                    // console.warn("获取资源失败");
                 }
             }, {});
         },

+ 12 - 3
sourcecode/h5app/vue/src/views/share.vue

@@ -9,7 +9,7 @@
                 <van-row>3.将截图发送至<span style="color: #F4A460"> 深大换换 </span>公众号后台,即可获得本次活动的【匹配资格】和【抽奖机会】</van-row>
             </div>
             <div style="position: relative;">
-                <img :src="share[i]" style="max-width: 80%; position: relative;"/>
+                <img :src="isWX ? share_http[i] : share[i]" style="max-width: 80%; position: relative;"/>
             </div>
             <a :href="share[i]" download="post">
                 <van-button size="large" type="primary" @click="savePic" style="background-color: #00FF00;
@@ -60,7 +60,7 @@
         data() {
             return {
                 note: {
-                    backgroundImage: "url(" + require("../assets/prize_background.jpg") + ")",
+                    backgroundImage: "url('http://pjczv6ygf.bkt.clouddn.com/share_background.jpg')",
                 },
                 transparent: {
                     backgroundColor: "rgba(50,50,50,0.7)",
@@ -72,6 +72,13 @@
                     require('../assets/posts/3.png'),
                     require('../assets/posts/4.png'),
                 ],
+                share_http: [
+                    "http://pjczv6ygf.bkt.clouddn.com/1.png",
+                    "http://pjczv6ygf.bkt.clouddn.com/2.png",
+                    "http://pjczv6ygf.bkt.clouddn.com/3.png",
+                    "http://pjczv6ygf.bkt.clouddn.com/4.png",
+                ],
+                isWX: false,
                 i: 0
             }
         },
@@ -95,7 +102,9 @@
                 return;
             }
             this.i = Math.ceil(Math.random() * 4) - 1;
-            console.log(this.i);
+            // console.log(this.i);
+            if (isWeiXin()) this.isWX = true;
+            // console.log(this.isWX);
 
             BasicFunction.getSigned(['onMenuShareTimeline', 'onMenuShareAppMessage',], function () {
                 wx.ready(function () {      //需在用户可能点击分享按钮前就先调用