Commit 108a0a0a authored by ly's avatar ly

1

parent 977e0000
No preview for this file type
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.history
......@@ -3,6 +3,29 @@
"lockfileVersion": 2,
"requires": true,
"packages": {
"node_modules/@babel/runtime": {
"version": "7.25.0",
"resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.25.0.tgz",
"integrity": "sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==",
"dependencies": {
"regenerator-runtime": "^0.14.0"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/complex.js": {
"version": "2.1.1",
"resolved": "https://registry.npmmirror.com/complex.js/-/complex.js-2.1.1.tgz",
"integrity": "sha512-8njCHOTtFFLtegk6zQo0kkVX1rngygb/KQI6z1qZxlFI3scluC+LVTCFbrkWjBv4vvLlbQ9t88IPMC6k95VTTg==",
"engines": {
"node": "*"
},
"funding": {
"type": "patreon",
"url": "https://www.patreon.com/infusion"
}
},
"node_modules/copy-anything": {
"version": "2.0.6",
"resolved": "https://registry.npmmirror.com/copy-anything/-/copy-anything-2.0.6.tgz",
......@@ -15,6 +38,11 @@
"url": "https://github.com/sponsors/mesqueeb"
}
},
"node_modules/decimal.js": {
"version": "10.4.3",
"resolved": "https://registry.npmmirror.com/decimal.js/-/decimal.js-10.4.3.tgz",
"integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA=="
},
"node_modules/errno": {
"version": "0.1.8",
"resolved": "https://registry.npmmirror.com/errno/-/errno-0.1.8.tgz",
......@@ -28,6 +56,23 @@
"errno": "cli.js"
}
},
"node_modules/escape-latex": {
"version": "1.2.0",
"resolved": "https://registry.npmmirror.com/escape-latex/-/escape-latex-1.2.0.tgz",
"integrity": "sha512-nV5aVWW1K0wEiUIEdZ4erkGGH8mDxGyxSeqPzRNtWP7ataw+/olFObw7hujFWlVjNsaDFw5VZ5NzVSIqRgfTiw=="
},
"node_modules/fraction.js": {
"version": "4.3.7",
"resolved": "https://registry.npmmirror.com/fraction.js/-/fraction.js-4.3.7.tgz",
"integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==",
"engines": {
"node": "*"
},
"funding": {
"type": "patreon",
"url": "https://github.com/sponsors/rawify"
}
},
"node_modules/graceful-fs": {
"version": "4.2.11",
"resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.11.tgz",
......@@ -61,12 +106,22 @@
"node": ">=0.10.0"
}
},
"node_modules/image-tools": {
"version": "1.4.0",
"resolved": "https://registry.npmmirror.com/image-tools/-/image-tools-1.4.0.tgz",
"integrity": "sha512-TKtvJ6iUwM0mfaD4keMnk1ENHFC470QEjBfA3IlvKdEOufzvWbjbaoNcoyYq6HlViF8+d5tOS1ooE6j7CHf1lQ=="
},
"node_modules/is-what": {
"version": "3.14.1",
"resolved": "https://registry.npmmirror.com/is-what/-/is-what-3.14.1.tgz",
"integrity": "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==",
"dev": true
},
"node_modules/javascript-natural-sort": {
"version": "0.7.1",
"resolved": "https://registry.npmmirror.com/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz",
"integrity": "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw=="
},
"node_modules/less": {
"version": "4.2.0",
"resolved": "https://registry.npmmirror.com/less/-/less-4.2.0.tgz",
......@@ -133,6 +188,28 @@
"node": ">=6"
}
},
"node_modules/mathjs": {
"version": "13.0.3",
"resolved": "https://registry.npmmirror.com/mathjs/-/mathjs-13.0.3.tgz",
"integrity": "sha512-GpP9OW6swA5POZXvgpc/1FYkAr8lKgV04QHS1tIU60klFfplVCYaNzn6qy0vSp0hAQQN7shcx9CeB507dlLujA==",
"dependencies": {
"@babel/runtime": "^7.24.8",
"complex.js": "^2.1.1",
"decimal.js": "^10.4.3",
"escape-latex": "^1.2.0",
"fraction.js": "^4.3.7",
"javascript-natural-sort": "^0.7.1",
"seedrandom": "^3.0.5",
"tiny-emitter": "^2.1.0",
"typed-function": "^4.2.1"
},
"bin": {
"mathjs": "bin/cli.js"
},
"engines": {
"node": ">= 18"
}
},
"node_modules/mime": {
"version": "1.6.0",
"resolved": "https://registry.npmmirror.com/mime/-/mime-1.6.0.tgz",
......@@ -146,6 +223,14 @@
"node": ">=4"
}
},
"node_modules/moment": {
"version": "2.30.1",
"resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz",
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
"engines": {
"node": "*"
}
},
"node_modules/needle": {
"version": "3.3.1",
"resolved": "https://registry.npmmirror.com/needle/-/needle-3.3.1.tgz",
......@@ -189,6 +274,11 @@
"dev": true,
"optional": true
},
"node_modules/regenerator-runtime": {
"version": "0.14.1",
"resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
},
"node_modules/safer-buffer": {
"version": "2.1.2",
"resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz",
......@@ -203,6 +293,11 @@
"dev": true,
"optional": true
},
"node_modules/seedrandom": {
"version": "3.0.5",
"resolved": "https://registry.npmmirror.com/seedrandom/-/seedrandom-3.0.5.tgz",
"integrity": "sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg=="
},
"node_modules/semver": {
"version": "5.7.2",
"resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.2.tgz",
......@@ -223,11 +318,24 @@
"node": ">=0.10.0"
}
},
"node_modules/tiny-emitter": {
"version": "2.1.0",
"resolved": "https://registry.npmmirror.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
"integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
},
"node_modules/tslib": {
"version": "2.6.3",
"resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.6.3.tgz",
"integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==",
"dev": true
},
"node_modules/typed-function": {
"version": "4.2.1",
"resolved": "https://registry.npmmirror.com/typed-function/-/typed-function-4.2.1.tgz",
"integrity": "sha512-EGjWssW7Tsk4DGfE+5yluuljS1OGYWiI1J6e8puZz9nTMM51Oug8CD5Zo4gWMsOhq5BI+1bF+rWTm4Vbj3ivRA==",
"engines": {
"node": ">= 18"
}
}
}
}
This diff is collapsed.
......@@ -2,5 +2,10 @@
"devDependencies": {
"less": "^4.2.0",
"less-loader": "^12.2.0"
},
"dependencies": {
"image-tools": "^1.4.0",
"mathjs": "^13.0.3",
"moment": "^2.30.1"
}
}
......@@ -275,10 +275,16 @@
"text": "首页"
},
{
"pagePath": "pages/sort/index",
"iconPath": "static/tab/sort-h.png",
"selectedIconPath": "static/tab/sort.png",
"text": "分类"
"pagePath": "pages/indexfinance/index",
"iconPath": "static/tab/index-h.png",
"selectedIconPath": "static/tab/index.png",
"text": "借钱"
},
{
"pagePath": "pages/bill/index",
"iconPath": "static/tab/billh.png",
"selectedIconPath": "static/tab/bill.png",
"text": "账单"
},
{
"pagePath": "pages/my/index",
......
......@@ -176,10 +176,12 @@
},
goItem(item){
if(this.token==''){
this.Go('uni:/pages/login/login')
}else{
const { tager }=item
this.Go(tager)
this.Go('http://192.168.0.65:8081/#/loan')
// const { tager }=item
// this.Go(tager)
}
},
goUP(val){
......
......@@ -172,7 +172,7 @@
uni.setStorageSync('deviceId',deviceId)
}
uni.setStorageSync('token',token)
self.loginNocheck()
uni.navigateBack({
delta: 1
})
......@@ -180,6 +180,20 @@
console.log(err,'请求出错')
})
},
loginNocheck(){
const self=this
const params={
"mobile": self.mobile
}
self.$request('/app/v1/loginNoCheck','POST',params).then(res => {
console.log(res,'loginNoCheck');
const {deviceId,token }=res.result
uni.setStorageSync('deviceId',deviceId)
uni.setStorageSync('tokenFinance',token)
}).catch(err=>{
console.log(err,'请求出错')
})
},
changeInput(e){
this.mobile = e.detail.value
},
......
No preview for this file type
No preview for this file type
No preview for this file type
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import {initHeaderDevice} from './header.js'
const request=async(url,type,data)=>{
const baseUrl='http://112.124.25.186:8089' //测试
const baseUrl='http://portal.cloudsmake.cn' //测试
// const baseUrl='https://api.yyhock.com'//线上
// 这里确保一定是可以获取得到的
const headerDevice = uni.getStorageSync('m-header-device')
......@@ -15,6 +15,7 @@ const request=async(url,type,data)=>{
console.log(baseUrl,'rd')
return new Promise((resolve,reject)=>{
const token=uni.getStorageSync('token')
const tokenFinance=uni.getStorageSync('tokenFinance')
uni.request({
url: baseUrl+url,
method:type,
......@@ -25,8 +26,8 @@ const request=async(url,type,data)=>{
Accept: "application/json;charset=UTF-8",
"Content-Type": "application/json;charset=UTF-8",
device:rd,
Authorization:token,
Author:token,
Authorization:tokenFinance,//贷超
Author:token,//多典花
},
success: (res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment