diff --git a/App.vue b/App.vue index 9ed7e68..c04481a 100644 --- a/App.vue +++ b/App.vue @@ -38,10 +38,6 @@ }) this.onShareAppMessage(option.query.scene); - }, - onLoad(e) { - console.log(e,'666666666666666666666666666666') - }, methods: { @@ -131,28 +127,9 @@ onShow: function(option) { const token = uni.getStorageSync('Authorization') const openid = uni.getStorageSync('openid') - let key = '' if (token && openid) { this.getAmount() - key = '真在线' - } else { - key = '离线' - } - if (key == '在线') { - } - setTimeout(() => { - console.log(key) - if (key == '在线') { - - } else { - // uni.redirectTo({ - // url: '/BagAuth/pages/login/login' - // }) - } - }, 2000) - // uni.showShareMenu() - // console.log('App Show') uni.getLocation({ type: 'wgs84', success: function(res) { @@ -163,9 +140,6 @@ } }); }, - onHide: function() { - // console.log('App Hide') - } } diff --git a/BagSetup/setup/setup.vue b/BagSetup/setup/setup.vue index ded31b0..2873340 100644 --- a/BagSetup/setup/setup.vue +++ b/BagSetup/setup/setup.vue @@ -23,14 +23,6 @@ - 订单状态通知 @@ -39,14 +31,6 @@ 订阅 - @@ -65,6 +49,14 @@ {{userInfo.userPayPwdState?'已':'未'}}设置 + + + 收油码 + + + + + @@ -103,12 +95,17 @@ userInfo: { } - } + } }, onShow() { this.getUserInfo() }, methods: { + jumpQRcode() { + uni.navigateTo({ + url:'/BagStation/pages/oilQRcode/index' + }) + }, resMsg() { wx.requestSubscribeMessage({ tmplIds: ['ZXdtqtVmzbJY0_A2Va6MBHDrRIKN99o5lSg8fU7f77c'], @@ -162,4 +159,11 @@ .value { color: #777; } + + .qrcode { + position: relative; + top: 4rpx; + width: 42rpx; + height: 42rpx; + } diff --git a/BagStation/pages/oilQRcode/index.vue b/BagStation/pages/oilQRcode/index.vue new file mode 100644 index 0000000..54f2905 --- /dev/null +++ b/BagStation/pages/oilQRcode/index.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/pages.json b/pages.json index 60f70d6..95c93ec 100644 --- a/pages.json +++ b/pages.json @@ -322,6 +322,13 @@ "enablePullDownRefresh": false } + }, + { + "path": "pages/oilQRcode/index", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } } ] }, @@ -333,7 +340,6 @@ "navigationBarTitleText": "", "enablePullDownRefresh": false } - } ] diff --git a/pages/tabbar/user/user.vue b/pages/tabbar/user/user.vue index 6702f75..2e32550 100644 --- a/pages/tabbar/user/user.vue +++ b/pages/tabbar/user/user.vue @@ -26,6 +26,7 @@ + @@ -40,7 +41,10 @@ {{companyCard.name}} - {{companyCard.companyNature===1?'自营':'外请'}} + + {{companyCard.companyNature===1?'自营':'外请'}} + @@ -128,7 +132,8 @@ - + + @@ -167,7 +172,7 @@ this.upadteCompanyCard() }, methods: { - logout(){ + logout() { this.isSwitchEnterprises = false }, upadteCompanyCard() { @@ -305,6 +310,19 @@ \ No newline at end of file + diff --git a/static/img/back.png b/static/img/back.png new file mode 100644 index 0000000..f9f7151 Binary files /dev/null and b/static/img/back.png differ diff --git a/static/img/erweima-grey.png b/static/img/erweima-grey.png new file mode 100644 index 0000000..100dd9a Binary files /dev/null and b/static/img/erweima-grey.png differ diff --git a/static/img/erweima-white.png b/static/img/erweima-white.png new file mode 100644 index 0000000..10436e6 Binary files /dev/null and b/static/img/erweima-white.png differ