@ -0,0 +1,28 @@ |
|||||||
|
{ |
||||||
|
"$schema":"https://json.schemastore.org/prettierrc.json", |
||||||
|
"printWidth": 120, |
||||||
|
"tabWidth": 2, |
||||||
|
"useTabs": false, |
||||||
|
"semi": true, |
||||||
|
"singleQuote": false, |
||||||
|
"bracketSpacing": true, |
||||||
|
"trailingComma": "all", |
||||||
|
"arrowParens": "always", |
||||||
|
"endOfLine": "auto", |
||||||
|
"htmlWhitespaceSensitivity": "ignore", |
||||||
|
"singleAttributePerLine": false, |
||||||
|
"overrides": [ |
||||||
|
{ |
||||||
|
"files": "*.wxml", |
||||||
|
"options": { "parser": "html" } |
||||||
|
}, |
||||||
|
{ |
||||||
|
"files": "*.wxss", |
||||||
|
"options": { "parser": "css" } |
||||||
|
}, |
||||||
|
{ |
||||||
|
"files": "*.wxs", |
||||||
|
"options": { "parser": "babel" } |
||||||
|
} |
||||||
|
] |
||||||
|
} |
@ -0,0 +1,8 @@ |
|||||||
|
# Change to the src/images directory, or exit if the directory doesn't exist |
||||||
|
Set-Location -Path ./src/images/ -ErrorAction Stop |
||||||
|
|
||||||
|
# Add all files to svn, including ignored files and forced additions |
||||||
|
svn add . --no-ignore --force |
||||||
|
|
||||||
|
# Commit the changes with a message |
||||||
|
svn ci -m "update" |
@ -1,18 +1,11 @@ |
|||||||
// app.ts
|
// app.ts
|
||||||
|
import page from "@/utils/page"; |
||||||
|
|
||||||
App<IAppOption>({ |
App<IAppOption>({ |
||||||
globalData: {}, |
globalData: { |
||||||
|
imageUrl: "https://m.wtx.hbraas.com/demo/web/images/", |
||||||
|
}, |
||||||
onLaunch() { |
onLaunch() { |
||||||
// 展示本地存储能力
|
Page = page as WechatMiniprogram.Page.Constructor; |
||||||
const logs = wx.getStorageSync('logs') || [] |
|
||||||
logs.unshift(Date.now()) |
|
||||||
wx.setStorageSync('logs', logs) |
|
||||||
|
|
||||||
// 登录
|
|
||||||
wx.login({ |
|
||||||
success: res => { |
|
||||||
console.log(res.code) |
|
||||||
// 发送 res.code 到后台换取 openId, sessionKey, unionId
|
|
||||||
}, |
|
||||||
}) |
|
||||||
}, |
}, |
||||||
}) |
}); |
||||||
|
After Width: | Height: | Size: 277 KiB |
After Width: | Height: | Size: 1.0 MiB |
After Width: | Height: | Size: 143 KiB |
After Width: | Height: | Size: 451 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 440 KiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 727 KiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 443 KiB |
After Width: | Height: | Size: 258 KiB |
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 692 KiB |
After Width: | Height: | Size: 637 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 703 KiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 461 KiB |
After Width: | Height: | Size: 3.4 MiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 757 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 461 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 490 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 139 KiB |
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 579 KiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 892 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 461 KiB |
After Width: | Height: | Size: 259 KiB |
After Width: | Height: | Size: 2.0 MiB |
After Width: | Height: | Size: 1004 KiB |
After Width: | Height: | Size: 903 KiB |
After Width: | Height: | Size: 1.0 MiB |
After Width: | Height: | Size: 462 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 1.4 MiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 351 KiB |
After Width: | Height: | Size: 217 KiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 157 KiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 149 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 295 KiB |
After Width: | Height: | Size: 2.6 MiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 463 KiB |
After Width: | Height: | Size: 2.1 MiB |
After Width: | Height: | Size: 701 KiB |
After Width: | Height: | Size: 2.6 MiB |
After Width: | Height: | Size: 258 KiB |
After Width: | Height: | Size: 217 KiB |
After Width: | Height: | Size: 143 KiB |
After Width: | Height: | Size: 701 KiB |
After Width: | Height: | Size: 892 KiB |
After Width: | Height: | Size: 1.0 MiB |
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 3.4 MiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 2.0 MiB |
After Width: | Height: | Size: 903 KiB |
After Width: | Height: | Size: 2.1 MiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 461 KiB |
After Width: | Height: | Size: 451 KiB |
After Width: | Height: | Size: 443 KiB |
After Width: | Height: | Size: 440 KiB |
After Width: | Height: | Size: 139 KiB |
After Width: | Height: | Size: 157 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 461 KiB |
After Width: | Height: | Size: 1.6 MiB |