diff --git a/app.js b/app.js index 3bb97aa..e8899e2 100644 --- a/app.js +++ b/app.js @@ -42,6 +42,7 @@ App({ }) }, globalData: { + from:"",// 是否是从其他小程序跳转过来的 如果是从其他小程序跳转的话 会记录 uuid:null,// 设备唯一uuid // 苏州市政府的经纬度 latitude:"31.297401",//纬度 diff --git a/pages/index/index.js b/pages/index/index.js index d91b9db..ce4fbda 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -24,7 +24,10 @@ Page({ listMore:true, isTest:false }, - onLoad: function () { + onLoad: function (options) { + if(options.from){ + app.globalData.from = options.from; + } let systemInfo = wx.getSystemInfoSync(),rect = wx.getMenuButtonBoundingClientRect(); let height = (rect.top - systemInfo.statusBarHeight) * 2 + rect.height; this.getList() @@ -186,7 +189,7 @@ Page({ audioGuide:function(){ wx.navigateToMiniProgram({ appId: 'wx74f380bc721a0379', - path:'/pages/listen/listen' + path:'/pages/listen/listen?title=君到苏州' }) }, // 热门推荐 diff --git a/pages/info/sceneProductInfo/index.js b/pages/info/sceneProductInfo/index.js index a3c70b1..aca3ee6 100644 --- a/pages/info/sceneProductInfo/index.js +++ b/pages/info/sceneProductInfo/index.js @@ -141,7 +141,7 @@ Page({ audioGuide:function(){ wx.navigateToMiniProgram({ appId: 'wx74f380bc721a0379', - path:'/pages/listen/listen' + path:'/pages/listen/listen?title=君到苏州' }) }, showBookingInfo:function(e){ diff --git a/pages/map/index.js b/pages/map/index.js index 0bdc406..b83beac 100644 --- a/pages/map/index.js +++ b/pages/map/index.js @@ -203,6 +203,12 @@ Page({ lon:this.data.longitude, lat:this.data.latitude },service="product/get_product_by_type"; + if(!menu){ + this.setData({ + productTotal:0 + }) + return; + } switch(menu){ case "购票": break; @@ -378,6 +384,8 @@ Page({ * 页面上拉触底事件的处理函数 */ onReachBottom: function () { + }, + preventTouchMove:function(){ }, diff --git a/pages/map/index.wxml b/pages/map/index.wxml index 27d4194..fd164c5 100644 --- a/pages/map/index.wxml +++ b/pages/map/index.wxml @@ -99,8 +99,11 @@ + + 查看更多 + - + \ No newline at end of file diff --git a/pages/map/index.wxss b/pages/map/index.wxss index c1a2733..c6bed8c 100644 --- a/pages/map/index.wxss +++ b/pages/map/index.wxss @@ -193,7 +193,6 @@ margin-top: 20rpx; display: flex; align-items: center; - justify-content: space-between; height: 84rpx; line-height: 84rpx; border-bottom: 1rpx solid #ccc; diff --git a/pages/order/coupon/index.wxml b/pages/order/coupon/index.wxml index f29fbe0..704ff1e 100644 --- a/pages/order/coupon/index.wxml +++ b/pages/order/coupon/index.wxml @@ -1,11 +1,17 @@ - - {{item.activity.money/100}} - - 满{{item.activity.mini_money/100}}元可用 - {{item.activity.end_time}}到期 + + + {{item.activity.money/100}} + + 满{{item.activity.mini_money/100}}元可用 + {{item.activity.end_time}}到期 + + - + 确定 -确定 \ No newline at end of file + + + 暂无优惠券 + \ No newline at end of file diff --git a/pages/pbService/appreciate/index.js b/pages/pbService/appreciate/index.js index 4e64978..8a45494 100644 --- a/pages/pbService/appreciate/index.js +++ b/pages/pbService/appreciate/index.js @@ -44,7 +44,7 @@ Page({ // 获取图片的标签 commonApi._post("pbservice/Artpopulate/imgTags").then(res=>{ res.data.unshift({ - Name:"全部", + Name:"全城", TagId:null }) this.setData({ @@ -103,9 +103,14 @@ Page({ gotoDetail:function(e){ let info = e.currentTarget.dataset.info; if(this.data.type==2) { - wx.previewImage({ - urls: [info.Pic], - current:info.Pic + commonApi.user_post("pbservice/Other/autoupload",{ + url:info.Pic + }).then(res=>{ + console.log(res) + wx.previewImage({ + urls: [res.data.url], + current:res.data.url + }) }) return; } diff --git a/utils/https.js b/utils/https.js index 7d95ce3..8ab4c80 100644 --- a/utils/https.js +++ b/utils/https.js @@ -146,7 +146,7 @@ function user_post(url,data={}){ } else if (res.data.code != 1 && res.data.msg) { wx.showToast({ - title: res.data.msg, + title: res.data.msg==='身份证号码错误'?'身份证和姓名不匹配':res.data.msg, icon: "none", duration:2000 })