master
xiaozhiyong 1 year ago
parent 83d0c894b2
commit e416e23f09
  1. 2
      components/stationItem/stationItem.vue
  2. 8
      pages/index/index.vue
  3. 5
      pages/startPage/index.vue
  4. BIN
      static/Scan.png
  5. BIN
      static/logo.png
  6. BIN
      static/select-ChargingStation.png
  7. BIN
      static/select-Personal.png
  8. BIN
      static/select-home.png
  9. BIN
      static/select-order.png
  10. 7
      utils/tool.js

@ -57,7 +57,7 @@
}; };
}, },
created() { created() {
console.log(this.data.tags, 'data.tags') // console.log(this.data.tags, 'data.tags')
}, },
methods: { methods: {
goDetails() { goDetails() {

@ -64,7 +64,10 @@
this.showInit() this.showInit()
}, },
methods: { methods: {
readyScanCode({success,fail}){ readyScanCode({
success,
fail
}) {
if (!this.user) { if (!this.user) {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
@ -89,9 +92,8 @@
} }
}, },
async scanCode() { async scanCode() {
let res = await this.tool.scanCode().catch(err => { let res = await this.tool.scanCode().catch(err => {
console.log('取消'); // console.log('');
this.tabBarIndex = 0 this.tabBarIndex = 0
}); });
if (res?.result) { if (res?.result) {

@ -16,12 +16,12 @@
this.init(e) this.init(e)
}, },
created() { created() {
this.imgURL = `${this.baseImgURL}/start.png` this.imgURL = `${this.baseImgURL}/start-color.png`
}, },
methods: { methods: {
Interceptor(id) { Interceptor(id) {
let taht = this let taht = this
console.log(`%c 检测到参数拦截器启动`, 'color:red;font-size:50px'); // console.log(`%c `, 'color:red;font-size:50px');
wxCode.getQrCodeType({ wxCode.getQrCodeType({
qrCode: id qrCode: id
}).then(res => { }).then(res => {
@ -46,6 +46,7 @@
uni.redirectTo({ uni.redirectTo({
url:'/pages/index/index' url:'/pages/index/index'
}) })
// uni.redirectTo({ // uni.redirectTo({
// url:'/pages/login/index' // url:'/pages/login/index'
// }) // })

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 899 B

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 855 B

After

Width:  |  Height:  |  Size: 2.1 KiB

@ -220,7 +220,8 @@ export default {
return new Promise((re, rj) => { return new Promise((re, rj) => {
wx.getSetting({ wx.getSetting({
success(res) { success(res) {
if (typeof(res.authSetting['scope.userLocation']) != 'undefined' && !res.authSetting[ if (typeof(res.authSetting['scope.userLocation']) != 'undefined' && !res
.authSetting[
'scope.userLocation']) { 'scope.userLocation']) {
// 用户没有授权 // 用户没有授权
uni.showModal({ uni.showModal({
@ -333,8 +334,8 @@ export default {
let splitItem = item.split('=') let splitItem = item.split('=')
obj[splitItem[0]] = splitItem[1] obj[splitItem[0]] = splitItem[1]
} else { } else {
console.warn("error"); console.warn("routingParameterGeneration error", item);
console.log(item) // console.log(item)
} }
}) })
return obj return obj

Loading…
Cancel
Save