@@ -1,6 +1,6 @@ | |||
<script> | |||
import { request } from "@/utils/network/request.js"; | |||
import { etcQYAction, queryKey,getGlobalParam } from "@/utils/network/api.js"; | |||
import { etcQYAction, queryKey,getGlobalParam,wechatAppID,wechatSecret } from "@/utils/network/api.js"; | |||
import { msg } from "./utils/utils"; | |||
import { getItem,setItem } from "./utils/storage"; | |||
import { stringToJson } from "@/utils/network/encryption"; | |||
@@ -15,7 +15,41 @@ export default { | |||
// } | |||
// }, | |||
onLaunch: function (option) { | |||
uni.getSystemInfo({ | |||
success: (res) => { | |||
console.log("sadsd",res) | |||
if (res.uniPlatform === 'mp-weixin') { | |||
console.log('当前为微信小程序',res,1111); | |||
setItem("loginSource","69af303ba2eb4608a099163f0d2a5dbd"); | |||
} else if (res.uniPlatform === 'mp-alipay') { | |||
console.log('当前为支付宝小程序'); | |||
setItem("loginSource","601052a249c04155831710b577cb796d"); | |||
} | |||
} | |||
}); | |||
//获取微信小程序openid | |||
uni.login({ | |||
provider: "weixin", | |||
success: function (e) { | |||
console.log(e); | |||
uni.request({ | |||
url: `https://api.weixin.qq.com/sns/jscode2session?appid=${wechatAppID}&secret=${wechatSecret}&js_code=${e.code}&grant_type=authorization_code`, | |||
success: (res) => { | |||
// state.openid = res.data.openid; | |||
setItem("QYorder", res.data.openid); | |||
console.log(res); | |||
}, | |||
fail: (err) => { | |||
uni.showToast({ | |||
title: "网络异常,请重试!" + err.errcode, | |||
icon: "error", | |||
duration: 500, | |||
}); | |||
return; | |||
}, | |||
}); | |||
}, | |||
}); | |||
uni.setStorageSync("extraData", option.referrerInfo.extraData); | |||
// #ifdef MP-WEIXIN | |||
//获取小程序更新机制兼容 | |||
@@ -112,7 +146,7 @@ export default { | |||
console.log(option); | |||
}, | |||
onLoad: function (option) { | |||
}, | |||
onHide: function () { | |||
console.log("App Hide"); | |||
@@ -122,7 +156,7 @@ export default { | |||
const options = { | |||
type: 2, | |||
data: { | |||
"loginSource":"69af303ba2eb4608a099163f0d2a5dbd" | |||
"loginSource":getItem("loginSource") | |||
}, | |||
method: "POST", | |||
showLoading: true, |
@@ -97,6 +97,7 @@ const nextStep = () => { | |||
.input { | |||
flex: 1; | |||
padding-right: 48rpx; | |||
background: transparent; | |||
} | |||
.arror { | |||
width: 28rpx; |
@@ -158,6 +158,7 @@ const doResetPwd = () => { | |||
flex: 1; | |||
padding-right: 48rpx; | |||
font-size: 26rpx; | |||
background: transparent; | |||
} | |||
.eye { | |||
width: 48rpx; |
@@ -269,6 +269,7 @@ const subscribeMessages=()=>{ | |||
padding-right: 48rpx; | |||
font-size: 28rpx; | |||
font-family: Microsoft YaHei; | |||
background-color: transparent; | |||
} | |||
.arror { |
@@ -120,6 +120,7 @@ | |||
.input { | |||
flex: 1; | |||
padding-right: 48rpx; | |||
background: transparent; | |||
} | |||
.arror { |
@@ -120,6 +120,7 @@ const doRegister = () => { | |||
flex: 1; | |||
padding-right: 48rpx; | |||
font-size: 26rpx; | |||
background: transparent; | |||
} | |||
.eye { | |||
width: 48rpx; |
@@ -17,8 +17,9 @@ | |||
{ | |||
"path": "pages/user/user", | |||
"style": { | |||
"navigationBarTitleText": "个人中心", | |||
"navigationStyle": "custom" | |||
"navigationBarTitleText": "九州ETC", | |||
"navigationBarBackgroundColor": "#22dbc8" | |||
// "navigationStyle": "custom" | |||
} | |||
}, | |||
@@ -1,6 +1,6 @@ | |||
<template> | |||
<filter> | |||
<view class="statusBar" :style="{height:statusBarHeight+'px'}" v-show="isShowBar"></view> | |||
<!-- <view class="statusBar" :style="{height:statusBarHeight+'px'}" v-show="isShowBar"></view> --> | |||
<view class="wrapper"> | |||
<!-- Banner --> | |||
<view class="banner"> |
@@ -81,7 +81,7 @@ | |||
var data = { | |||
openId: getItem(StorageKeys.OpenId), | |||
systemType: '6', | |||
loginSource: '69af303ba2eb4608a099163f0d2a5dbd' | |||
loginSource: getItem("loginSource") | |||
}; | |||
const options = { | |||
type: 2, |
@@ -1,10 +1,11 @@ | |||
<template> | |||
<navBar title="九州ETC" :scrollTop="scrollTop" :isBack="isBack"></navBar> | |||
<!-- <navBar title="九州ETC" :scrollTop="scrollTop" :isBack="isBack"></navBar> --> | |||
<filter> | |||
<view class="wrapper"> | |||
<image :src="`${$imgUrl}user/bg-user-2.png`" class="bg-head" mode="widthFix"></image> | |||
<!-- <view class="bar" :style="{ top: top, height: height, lineHeight: height }">我的-九州ETC</view> --> | |||
<view class="content" :style="{ top: margin + 'px' }"> | |||
<!-- <view class="content" :style="{ top: margin + 'px' }"> --> | |||
<view class="content"> | |||
<view class="head" :style="{ marinTop: margin + 'px' }"> | |||
<view class="avatar"> | |||
<image :src="`${$imgUrl}user/icon-avatar.png`" :class="!state.data.opId ? 'unlogin' : ''"> |
@@ -55,8 +55,8 @@ export const useUserStore = defineStore("userStore", { | |||
data: { | |||
deviceId: "", | |||
code: code, | |||
loginSource: "69af303ba2eb4608a099163f0d2a5dbd", | |||
'wxOpenid':getItem("QYorder")["openid"], | |||
loginSource: getItem("loginSource"), | |||
'wxOpenid':getItem("QYorder"), | |||
}, | |||
method: "POST", | |||
showLoading: false, |
@@ -319,7 +319,7 @@ | |||
::v-deep .input { | |||
text-align: left; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: left; | |||
} |
@@ -169,7 +169,7 @@ | |||
::v-deep .input { | |||
text-align: left; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: left; | |||
} |
@@ -483,7 +483,7 @@ | |||
::v-deep .input { | |||
text-align: left; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: left; | |||
} |
@@ -230,7 +230,7 @@ | |||
::v-deep .input { | |||
text-align: left; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: left; | |||
} |
@@ -288,7 +288,7 @@ | |||
::v-deep .input { | |||
text-align: right; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: right; | |||
} |
@@ -229,7 +229,7 @@ page { | |||
::v-deep .input { | |||
text-align: right; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: right; | |||
} |
@@ -540,7 +540,7 @@ | |||
::v-deep .input { | |||
text-align: right; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: right; | |||
} |
@@ -221,7 +221,7 @@ | |||
::v-deep .input { | |||
text-align: left; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: left; | |||
} |
@@ -532,7 +532,7 @@ | |||
::v-deep .input { | |||
text-align: left; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: left; | |||
} |
@@ -274,7 +274,7 @@ | |||
::v-deep .input { | |||
text-align: right; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: right; | |||
} |
@@ -208,7 +208,7 @@ page { | |||
::v-deep .input { | |||
text-align: left; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: left; | |||
} |
@@ -291,7 +291,7 @@ | |||
::v-deep .input { | |||
text-align: left; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: left; | |||
} |
@@ -285,7 +285,7 @@ | |||
::v-deep .input { | |||
text-align: left; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: left; | |||
} |
@@ -256,7 +256,7 @@ | |||
::v-deep .input { | |||
text-align: right; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: right; | |||
} |
@@ -837,4 +837,7 @@ | |||
font-size: 30rpx; | |||
margin-bottom: 10rpx; | |||
} | |||
::v-deep .u-input__input{ | |||
background: transparent; | |||
} | |||
</style> |
@@ -90,7 +90,7 @@ | |||
::v-deep .input { | |||
text-align: right; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: right; | |||
} |
@@ -134,7 +134,7 @@ | |||
::v-deep .input { | |||
text-align: right; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: right; | |||
} |
@@ -93,7 +93,7 @@ | |||
::v-deep .input { | |||
text-align: right; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: right; | |||
} |
@@ -92,7 +92,7 @@ | |||
::v-deep .input { | |||
text-align: right; | |||
flex: 1; | |||
background: transparent; | |||
input { | |||
text-align: right; | |||
} |
@@ -153,6 +153,7 @@ | |||
padding-right: 48rpx; | |||
font-size: 28rpx; | |||
font-family: Microsoft YaHei; | |||
background: transparent; | |||
} | |||
.arror { |
@@ -95,6 +95,7 @@ | |||
margin: 30rpx 30rpx; | |||
padding: 0rpx 30rpx; | |||
border-radius: 8rpx; | |||
background: transparent; | |||
} | |||
.input-card .input-enter-btn { |
@@ -135,6 +135,7 @@ | |||
.input { | |||
flex: 1; | |||
padding-right: 48rpx; | |||
background: transparent; | |||
} | |||
.arror { |
@@ -111,9 +111,9 @@ | |||
getVehicleMsg(); | |||
} | |||
const see=()=>{ | |||
const aa="41,51" | |||
// const aa="41,51" | |||
uni.navigateTo({ | |||
url:`/subpackage/service/trajectory-map?data=${aa}` | |||
url:`/subpackage/service/trajectory-map?data=${state.msg.provinces}&&mileages=${state.msg.mileages}&&ranking=${state.msg.ranking}` | |||
}) | |||
} | |||
const seeMonth=()=>{ |
@@ -10,8 +10,8 @@ | |||
</view> | |||
<view class="describe"> | |||
<view> | |||
<view class="all">您共到访过<text class="num">5</text>个城市</view> | |||
<view>您的足迹已踏遍1500%的国土超过了99%的九州ETC用户</view> | |||
<view class="all">您共到访过<text class="num">{{state.mapArr.length}}</text>个城市</view> | |||
<view>您的足迹已踏遍{{state.mileages}}的国土超过了{{state.ranking}}%的九州ETC用户</view> | |||
</view> | |||
<image class="car" src="../../../static/image/home-on.png" mode="aspectFit"></image> | |||
</view> | |||
@@ -58,6 +58,8 @@ | |||
onLoad((option : any) => { | |||
getServerData(); | |||
state.mapArr=option.data.split(","); | |||
state.mileages=option.mileages; | |||
state.ranking=option.ranking; | |||
console.log("option",option.data.split(",")) | |||
dealData(); | |||
}) |
@@ -26,7 +26,7 @@ export function request(code, options = {}) { | |||
channelType: "1", | |||
staffId: "54623263cb4d4a289dccbc983b22a4af", | |||
terminalId: "999999999999", | |||
loginSource: "69af303ba2eb4608a099163f0d2a5dbd", | |||
loginSource: getItem("loginSource"), | |||
rbacSource: 'MINI_PROGRAM' | |||
} | |||
//Url 地址 /api/interfaceMidGroundIn |