diff --git a/api/user.js b/api/user.js index a520d81..ef7d32a 100644 --- a/api/user.js +++ b/api/user.js @@ -403,6 +403,13 @@ export function wxappBindingPhone(data) { return request.post('wxapp/binding', data) } +/** + * 小程序上传用户头像 + */ +export function wxappGetUserInfo (data) { + return request.post('/wxapp/loginAuth', data) +} + /* * h5切换公众号登陆 * */ diff --git a/components/CountDown.vue b/components/CountDown.vue index 7bb8037..c616d0a 100644 --- a/components/CountDown.vue +++ b/components/CountDown.vue @@ -85,7 +85,6 @@ export default { runTime() { //时间函数 let intDiff = this.time - Date.parse(new Date()) / 1000 //获取数据中的时间戳的时间差 - console.log(intDiff) let day = 0, hour = 0, minute = 0, diff --git a/manifest.json b/manifest.json index deaf0b9..48e8e2c 100644 --- a/manifest.json +++ b/manifest.json @@ -135,7 +135,9 @@ "mp-weixin" : { "appid" : "wx604d2ea4702620d2", "setting" : { - "urlCheck" : false + "urlCheck" : true, + "postcss" : true, + "minified" : false }, "usingComponents" : true, "permission" : { @@ -165,17 +167,17 @@ "title" : "yshop", "devServer" : { "disableHostCheck" : true, - "proxy": { - "/h5api": { - // 需要被代理的后台地址 - "target": "http://itxzz.top", - "changeOrigin": true, - "secure": false, - "pathRewrite": { - "^/h5api": "/api" - } - } - } + "proxy" : { + "/h5api" : { + // 需要被代理的后台地址 + "target" : "http://itxzz.51vip.biz/", + "changeOrigin" : true, + "secure" : false, + "pathRewrite" : { + "^/h5api" : "/api" + } + } + } }, "router" : { "mode" : "history" diff --git a/pages/activity/DargainDetails/index.vue b/pages/activity/DargainDetails/index.vue index c1930d0..7928690 100644 --- a/pages/activity/DargainDetails/index.vue +++ b/pages/activity/DargainDetails/index.vue @@ -38,8 +38,8 @@ - - + + @@ -51,9 +51,9 @@ - + 砍价成功 - + diff --git a/pages/activity/GoodsSeckill/index.vue b/pages/activity/GoodsSeckill/index.vue index 8a3360b..3923b37 100644 --- a/pages/activity/GoodsSeckill/index.vue +++ b/pages/activity/GoodsSeckill/index.vue @@ -213,7 +213,10 @@ export default { height: 210rpx; position: fixed; left: 0; + top: 0; + /* #ifdef H5 */ top: 80rpx; + /* #endif */ z-index: 1; } @@ -222,7 +225,10 @@ export default { height: 120rpx; position: fixed; left: 0; + top: 0; + /* #ifdef H5 */ top: 80rpx; + /* #endif */ z-index: 3; overflow: hidden; } diff --git a/pages/activity/GroupRule/index.vue b/pages/activity/GroupRule/index.vue index 3c3aea4..27e5346 100644 --- a/pages/activity/GroupRule/index.vue +++ b/pages/activity/GroupRule/index.vue @@ -7,11 +7,11 @@ - {{ storeCombination.price.split('.')[0] }} - .{{ storeCombination.price.split('.')[1] }} + {{ storeCombination.price.split('.')[0] || 0 }} + .{{ storeCombination.price.split('.')[1] || 0 }} - {{ storeCombination.people }}人团 + {{ storeCombination.people || 0 }}人团 @@ -96,15 +96,14 @@ export default { } }, }, - mounted: function() { - var that = this + mounted() { let url = handleQrCode() if (url) { - that.pinkId = url.pinkId + this.pinkId = url.pinkId } else { - that.pinkId = that.$yroute.query.id + this.pinkId = this.$yroute.query.id } - that.getCombinationPink() + this.getCombinationPink() }, methods: { pay: function() { diff --git a/pages/activity/Poster/index.vue b/pages/activity/Poster/index.vue index 88874cb..4b9cda3 100644 --- a/pages/activity/Poster/index.vue +++ b/pages/activity/Poster/index.vue @@ -18,22 +18,21 @@ name: "Poster", components: {}, props: {}, - data: function () { + data () { return { status: true, id: 0, image: "" }; }, - mounted: function () { - var that = this; - var id = that.$yroute.query.id; - var type = that.$yroute.query.type; - that.id = id; + mounted () { + var id = this.$yroute.query.id; + var type = this.$yroute.query.type; + this.id = id; if (type == 2) { - that.getBargainPoster(); + this.getBargainPoster(); } else { - that.getCombinationPoster(); + this.getCombinationPoster(); } }, methods: { diff --git a/pages/authorization/index.vue b/pages/authorization/index.vue index 6e509ca..596f5d1 100644 --- a/pages/authorization/index.vue +++ b/pages/authorization/index.vue @@ -6,10 +6,12 @@ - 为了提供更优质的服务,需要获取您的头像昵称 - - - + 为了提供更优质的服务,请先登录 + + @@ -27,10 +29,11 @@ diff --git a/pages/user/PersonalData/index.vue b/pages/user/PersonalData/index.vue index 1ab834d..9444bb1 100644 --- a/pages/user/PersonalData/index.vue +++ b/pages/user/PersonalData/index.vue @@ -39,7 +39,8 @@ 手机号 - + + @@ -156,7 +157,6 @@ export default { }, chooseImage() { chooseImage((img) => { - console.log(img); this.avatar = img; }); }, diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue index 31e5112..d3e9eb4 100644 --- a/pages/user/User/index.vue +++ b/pages/user/User/index.vue @@ -1,7 +1,11 @@