diff --git a/api/global.js b/api/global.js
deleted file mode 100644
index 02d7320..0000000
--- a/api/global.js
+++ /dev/null
@@ -1,9 +0,0 @@
-const baseURL = 'https://www.51xingka.net/LSMOIL/'
-const token = '123456'
-const userSite = '林花落了春红,太匆匆'
-
-export default {
- baseURL,
- token,
- userSite
-}
\ No newline at end of file
diff --git a/api/login.js b/api/login.js
new file mode 100644
index 0000000..7db37aa
--- /dev/null
+++ b/api/login.js
@@ -0,0 +1,14 @@
+import request from '@/utils/request'
+const service_name = "identity-service"
+const group_name = "oilUser"
+export default {
+ loginWeixin (code) {
+ return request({
+ url: `/${service_name}/${group_name}/loginWeixin`,
+ method: 'post',
+ data: {
+ code
+ }
+ })
+ }
+}
diff --git a/api/unite.js b/api/unite.js
deleted file mode 100644
index dc2abfc..0000000
--- a/api/unite.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import request from '@/utils/request'
-export default {
- api (data) {
- return request({
- url: '/lsm/api',
- method: 'post',
- data: data
- })
- }
-}
diff --git a/api/weixin.js b/api/weixin.js
deleted file mode 100644
index dbc86ba..0000000
--- a/api/weixin.js
+++ /dev/null
@@ -1,63 +0,0 @@
-import request from '@/utils/request'
-const baseUrl = 'https://api.weixin.qq.com/sns/oauth2/authorize'
-let scope = 'snsapi_base '
-const appId = '10037e6f6a4e6da4016a62a47e51000c'
-let redirectUri = 'www.51xingka.net'
-export default {
- getmyCode () {
- return request({
- url: `${baseUrl}?appid=${appId}&redirect_uri=${redirectUri}&response_type=code&scope=${scope}#wechat_redirect `,
- method: 'get'
-
- })
- },
- getWeixinLocation (accessToken) {
- return request({
- url: `https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=${accessToken}&type=jsapi`,
- method: 'get'
- })
- },
- // 获取微信accessToken
- getToken (code, accountSource) {
- return request({
- url: `/driver/loginWeixinOil`,
- method: 'post',
- data: {
- code,
- accountSource
- }
- })
- },
- login (data) {
- return request({
- url: `/driver/loginAccount`,
- method: 'post',
- data: data
- })
- },
- logout (data) {
- return request({
- url: `/driver/logout`,
- method: 'post',
- data: data
- })
- },
- loginAccountBySms (data) {
- return request({
- url: `/driver/loginAccountBySms`,
- method: 'post',
- data: data
- })
- },
- unifiedOrder (data) {
- return request({
- url: `/pay/unifiedorder`,
- method: 'post',
- data: data,
- headers: {
- 'Content-Type': 'application/xml'
- }
- })
- }
-
-}
diff --git a/main.js b/main.js
index 562cbfe..4f5401a 100644
--- a/main.js
+++ b/main.js
@@ -2,7 +2,6 @@ import Vue from 'vue'
import App from './App'
import cuCustom from './colorui/components/cu-custom.vue'
import encode from '@/utils/encode'
-import global from '@/api/global.js'
Vue.component('cu-custom',cuCustom)
Vue.config.productionTip = false
diff --git a/package-lock.json b/package-lock.json
index 1a3d64d..53e2839 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,65 +1,57 @@
{
- "requires": true,
- "lockfileVersion": 1,
- "dependencies": {
- "axios": {
- "version": "0.19.2",
- "resolved": "https://registry.npm.taobao.org/axios/download/axios-0.19.2.tgz",
- "integrity": "sha1-PqNsXYgY0NX4qKl6bTa4bNwAyyc=",
- "requires": {
- "follow-redirects": "1.5.10"
- }
- },
- "crypto-js": {
- "version": "4.0.0",
- "resolved": "https://registry.npm.taobao.org/crypto-js/download/crypto-js-4.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcrypto-js%2Fdownload%2Fcrypto-js-4.0.0.tgz",
- "integrity": "sha1-KQSrJnep0EKFai6i74DekuSjbcw="
- },
- "debug": {
- "version": "3.1.0",
- "resolved": "https://registry.npm.taobao.org/debug/download/debug-3.1.0.tgz",
- "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=",
- "requires": {
- "ms": "2.0.0"
- }
- },
- "follow-redirects": {
- "version": "1.5.10",
- "resolved": "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.5.10.tgz?cache=0&sync_timestamp=1592518530318&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.5.10.tgz",
- "integrity": "sha1-e3qfmuov3/NnhqlP9kPtB/T/Xio=",
- "requires": {
- "debug": "=3.1.0"
- }
- },
- "js-base64": {
- "version": "2.6.1",
- "resolved": "https://registry.npm.taobao.org/js-base64/download/js-base64-2.6.1.tgz?cache=0&sync_timestamp=1592639177349&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjs-base64%2Fdownload%2Fjs-base64-2.6.1.tgz",
- "integrity": "sha1-wyg3QiXS5lVpeR3tc8JY4sWTNMc="
- },
- "js-cookie": {
- "version": "2.2.1",
- "resolved": "https://registry.npm.taobao.org/js-cookie/download/js-cookie-2.2.1.tgz",
- "integrity": "sha1-aeEG3F1YBolFYpAqpbrsN0Tpsrg="
- },
- "js-md5": {
- "version": "0.7.3",
- "resolved": "https://registry.npm.taobao.org/js-md5/download/js-md5-0.7.3.tgz",
- "integrity": "sha1-tPL7sLMnRV9ZjWcn447Ccs0Jw/I="
- },
- "ms": {
- "version": "2.0.0",
- "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
- },
- "qs": {
- "version": "6.9.4",
- "resolved": "https://registry.npm.taobao.org/qs/download/qs-6.9.4.tgz",
- "integrity": "sha1-kJCykNH5FyjTwi5UhDykSupatoc="
- },
- "vee-validate": {
- "version": "3.3.6",
- "resolved": "https://registry.npm.taobao.org/vee-validate/download/vee-validate-3.3.6.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvee-validate%2Fdownload%2Fvee-validate-3.3.6.tgz",
- "integrity": "sha1-WswjNynfoFNW9MGX+y+nxpQzJGQ="
- }
- }
+ "name": "lsm_oil_site",
+ "version": "1.0.0",
+ "lockfileVersion": 1,
+ "requires": true,
+ "dependencies": {
+ "axios": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npm.taobao.org/axios/download/axios-0.19.2.tgz?cache=0&sync_timestamp=1594827603723&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Faxios%2Fdownload%2Faxios-0.19.2.tgz",
+ "integrity": "sha1-PqNsXYgY0NX4qKl6bTa4bNwAyyc=",
+ "requires": {
+ "follow-redirects": "1.5.10"
+ }
+ },
+ "crypto-js": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npm.taobao.org/crypto-js/download/crypto-js-4.0.0.tgz",
+ "integrity": "sha1-KQSrJnep0EKFai6i74DekuSjbcw="
+ },
+ "debug": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npm.taobao.org/debug/download/debug-3.1.0.tgz",
+ "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=",
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "follow-redirects": {
+ "version": "1.5.10",
+ "resolved": "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.5.10.tgz?cache=0&sync_timestamp=1597057976909&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.5.10.tgz",
+ "integrity": "sha1-e3qfmuov3/NnhqlP9kPtB/T/Xio=",
+ "requires": {
+ "debug": "=3.1.0"
+ }
+ },
+ "js-base64": {
+ "version": "2.6.1",
+ "resolved": "https://registry.npm.taobao.org/js-base64/download/js-base64-2.6.1.tgz?cache=0&sync_timestamp=1596920188035&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjs-base64%2Fdownload%2Fjs-base64-2.6.1.tgz",
+ "integrity": "sha1-wyg3QiXS5lVpeR3tc8JY4sWTNMc="
+ },
+ "js-cookie": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npm.taobao.org/js-cookie/download/js-cookie-2.2.1.tgz",
+ "integrity": "sha1-aeEG3F1YBolFYpAqpbrsN0Tpsrg="
+ },
+ "js-md5": {
+ "version": "0.7.3",
+ "resolved": "https://registry.npm.taobao.org/js-md5/download/js-md5-0.7.3.tgz",
+ "integrity": "sha1-tPL7sLMnRV9ZjWcn447Ccs0Jw/I="
+ },
+ "ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz",
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
+ }
+ }
}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..911e93c
--- /dev/null
+++ b/package.json
@@ -0,0 +1,22 @@
+{
+ "name": "lsm_oil_site",
+ "version": "1.0.0",
+ "description": "",
+ "main": "main.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "http://192.168.0.140:3000/xkhl/LSM_OIL_SITE.git"
+ },
+ "author": "",
+ "license": "ISC",
+ "dependencies": {
+ "axios": "0.19.2",
+ "crypto-js": "4.0.0",
+ "js-base64": "2.6.1",
+ "js-cookie": "2.2.1",
+ "js-md5": "0.7.3"
+ }
+}
diff --git a/pages.json b/pages.json
index f1a868a..9099d01 100644
--- a/pages.json
+++ b/pages.json
@@ -1,66 +1,16 @@
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
- "path": "pages/station-info/station-info",
- "style": {}
- }, {
+ "path" : "pages/login/login",
+ "style" : {}
+ },
+ {
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "星油"
}
- }, {
- "path": "pages/qrcode/qrcodeList/qrcodeList",
- "style": {}
- }, {
- "path": "pages/qrcode/QrCode_xy/QrCode_xy",
- "style": {}
- }, {
- "path": "pages/authentication/authForm/authForm",
- "style": {}
- }, {
- "path": "pages/stationList/stationDetail/stationDetail",
- "style": {
- "navigationBarTitleText": "中石化(紫云路)"
- }
- }, {
- "path": "pages/stationList/stationList",
- "style": {
- "navigationBarTitleText": "附近油站"
- }
- },
- {
- "path": "pages/login/login",
- "style": {}
}
-
-
-
- , {
- "path": "pages/qrcode/QrCode-wjy/QrCode-wjy",
- "style": {}
- }, {
- "path": "pages/authentication/facial/facial",
- "style": {}
- }, {
- "path": "pages/authentication/fingerPrint/fingerPrint",
- "style": {}
- }
-
- , {
- "path": "pages/userPage/userPage",
- "style": {}
- }, {
- "path": "pages/wallet/record/record",
- "style": {}
- }, {
- "path": "pages/order/orderList/orderList",
- "style": {}
- }, {
- "path": "pages/orderList/orderList",
- "style": {}
- }
-
- ],
+ ],
"globalStyle": {
"mp-alipay": {
/* 支付宝小程序特有相关 */
diff --git a/pages/authentication/authForm/authForm.vue b/pages/authentication/authForm/authForm.vue
deleted file mode 100644
index 66f8fbb..0000000
--- a/pages/authentication/authForm/authForm.vue
+++ /dev/null
@@ -1,197 +0,0 @@
-
-
-
- 返回
- 认证
-
-
-
- 身份证
-
-
-
-
-
-
-
-
-
-
-
-
-
- 身份证人像面
-
-
-
-
-
-
-
-
-
-
-
- 身份证国徽面
-
-
-
-
-
- 车牌号
-
- {{plateText}}
-
-
-
- 姓名
-
-
-
- 性别
-
-
-
- 身份证号
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/authentication/facial/facial.vue b/pages/authentication/facial/facial.vue
deleted file mode 100644
index 7812c4d..0000000
--- a/pages/authentication/facial/facial.vue
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
- 返回
- 人脸识别
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/authentication/fingerPrint/fingerPrint.vue b/pages/authentication/fingerPrint/fingerPrint.vue
deleted file mode 100644
index 5630f80..0000000
--- a/pages/authentication/fingerPrint/fingerPrint.vue
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- 返回
- 指纹识别
-
-
-
-
-
-
-
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 5b6d76c..a7593df 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -24,7 +24,7 @@
89
-