From 04b1d62a3186dcb21e18e087d4fedd3b375572e3 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Fri, 26 Apr 2019 00:03:02 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=A6=96=E9=A1=B5=EF=BC=8C=E7=A7=AF=E5=88=86]?= =?UTF-8?q?[=E4=BF=AE=E6=94=B9]:[=E5=A2=9E=E5=8A=A0=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E7=9A=84=E8=B7=AF=E5=BE=84]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext.json | 2 +- pages/getuserinfo/index.js | 13 ++++++++++++- pages/index/index.js | 12 ++++++++++++ pages/integralmall/index.js | 6 ++++++ pages/integralmall/index.wxml | 1 + pages/integralmall/index.wxss | 24 +++++++++++++++++++++++- project.config.json | 2 +- 7 files changed, 56 insertions(+), 4 deletions(-) diff --git a/ext.json b/ext.json index fb955ed..417e619 100644 --- a/ext.json +++ b/ext.json @@ -8,7 +8,7 @@ "attr": { "configUrl": "https://ciformall.youlane.cn/C/api", "socketUrl": "wss://mp.youlane.cn/W/ws", - "ifHaveWebSocket": "1", + "ifHaveWebSocket": "0", "etcpVersion": "release", "etcpAppId": "wx192b7d2e8dcbefd0", "etcpCallbackUrl": "https://ciformall.youlane.cn/api/carCallback/etcpPaidCallback" diff --git a/pages/getuserinfo/index.js b/pages/getuserinfo/index.js index b237e40..d0be1b9 100755 --- a/pages/getuserinfo/index.js +++ b/pages/getuserinfo/index.js @@ -134,7 +134,18 @@ Page({ wx.switchTab({ url: '/pages/user/index' }); - } else if (app.globalData.type == 'pc') { + } else if (app.globalData.type == 'in') { + // 首页 + wx.switchTab({ + url: '/pages/main/index' + }); + } + // 积分 + else if (app.globalData.type == 'jf') { + wx.redirectTo({ + url: '/pages/integralmall/index' + }); + }else if (app.globalData.type == 'pc') { // 停车 wx.switchTab({ url: '/pages/passCar/passCar' diff --git a/pages/index/index.js b/pages/index/index.js index 2fa9446..b4176dc 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -162,6 +162,18 @@ Page({ url: '/pages/user/index' }); } + // 积分 + else if (app.globalData.type == 'jf') { + wx.redirectTo({ + url: '/pages/integralmall/index' + }); + } + // 首页 + else if (app.globalData.type == 'in') { + wx.switchTab({ + url: '/pages/main/index' + }); + } // 停车 else if (app.globalData.type == 'pc') { // 停车 diff --git a/pages/integralmall/index.js b/pages/integralmall/index.js index 50aaaf8..fd93b76 100644 --- a/pages/integralmall/index.js +++ b/pages/integralmall/index.js @@ -9,6 +9,7 @@ Page({ bannerUrl: imgurl.banner.url, loadingUrl: imgurl.loading.url, nodata: imgurl.nodata.url, + wmhome: imgurl.wmhome.url, wangmeimeicredit: imgurl.wangmeimeicredit.url, list: [], lists: [], @@ -24,6 +25,11 @@ Page({ reloadIf: false, creditAmount: 0 }, + goback: function () { + wx.switchTab({ + url: '/pages/main/index', + }) + }, onLoad: function (options) { let that = this; var todayDate = new Date().getTime(); diff --git a/pages/integralmall/index.wxml b/pages/integralmall/index.wxml index ee06c5f..611a66a 100644 --- a/pages/integralmall/index.wxml +++ b/pages/integralmall/index.wxml @@ -1,3 +1,4 @@ + diff --git a/pages/integralmall/index.wxss b/pages/integralmall/index.wxss index 625ed66..e2f92b6 100644 --- a/pages/integralmall/index.wxss +++ b/pages/integralmall/index.wxss @@ -321,4 +321,26 @@ image{ font-weight: bold; font-size: 36rpx; padding-left: 30rpx; -} \ No newline at end of file +} +button::after{ border: none; } +.goback{ + position: fixed; + right: 50rpx; + bottom: 60rpx; + width:100rpx!important; + height:100rpx; + z-index: 100; + background:rgba(255,255,255,1); + line-height: 95rpx; + border:1rpx solid rgba(227,227,227,1); + border-radius:50%; +} +.goback image{ + position: absolute; + width: 60rpx; + left: 0; + right: 0; + top: 0; + bottom: 0; + margin: auto; +} diff --git a/project.config.json b/project.config.json index 646f2c6..913c7d5 100644 --- a/project.config.json +++ b/project.config.json @@ -13,7 +13,7 @@ }, "compileType": "miniprogram", "libVersion": "2.2.0", - "appid": "wxfa336cad86ed598d", + "appid": "wxb11603577a84a86d", "projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F", "isGameTourist": false, "simulatorType": "wechat",