小样式调整
This commit is contained in:
parent
9c776cf5e1
commit
5ce4a1494f
29
.gitignore
vendored
Normal file
29
.gitignore
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
miniprogram_npm
|
||||||
|
.DS_Store
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
coverage
|
||||||
|
*.local
|
||||||
|
|
||||||
|
/cypress/videos/
|
||||||
|
/cypress/screenshots/
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.idea
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
27
app.js
27
app.js
@ -1,10 +1,11 @@
|
|||||||
import userApi from './api/user';
|
import userApi from './api/user';
|
||||||
import commonApi from './api/common';
|
import commonApi from './api/common';
|
||||||
|
// import Push from '@tencentcloud/donut-push';
|
||||||
const token = wx.getStorageSync('accessToken');
|
const token = wx.getStorageSync('accessToken');
|
||||||
console.log(1)
|
|
||||||
App({
|
App({
|
||||||
verifyCodeWaitingTime:60,
|
verifyCodeWaitingTime:60,
|
||||||
onLaunch() {
|
onLaunch() {
|
||||||
|
// this.registerPush = registerPush;
|
||||||
wx.setInnerAudioOption({
|
wx.setInnerAudioOption({
|
||||||
obeyMuteSwitch:false
|
obeyMuteSwitch:false
|
||||||
});
|
});
|
||||||
@ -147,3 +148,27 @@ App({
|
|||||||
summary:null
|
summary:null
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
const registerPush = ()=>{
|
||||||
|
const sdkAppID = 0; // 消息推送 SDKAppID
|
||||||
|
const appKey = ''; // 消息推送 客户端密钥
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
Push.setRegistrationID(userid)
|
||||||
|
.then((res) => {
|
||||||
|
console.info("设置注册用户ID", res);
|
||||||
|
return Push.registerPush(sdkAppID, appKey);
|
||||||
|
}).then((res) => {
|
||||||
|
console.info("注册推送服务", res);
|
||||||
|
return Push.getRegistrationID();
|
||||||
|
}).then((res) => {
|
||||||
|
console.info("完成注册", res);
|
||||||
|
resolve(true)
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
console.error("注册失败", e);
|
||||||
|
resolve(true)
|
||||||
|
});
|
||||||
|
Push.addPushListener(Push.EventName.ON_NOTIFICATION_CLICKED, );
|
||||||
|
})
|
||||||
|
}
|
||||||
3
app.wxss
3
app.wxss
@ -397,6 +397,9 @@ switch .wx-switch-input::after {
|
|||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img-uploader{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,3 @@
|
|||||||
img-uploader{
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.img-area{
|
.img-area{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|||||||
28
package-lock.json
generated
Normal file
28
package-lock.json
generated
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "beefast-mini-deliveryman",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 2,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "beefast-mini-deliveryman",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"@tencentcloud/donut-push": "^8.4.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tencentcloud/donut-push": {
|
||||||
|
"version": "8.4.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@tencentcloud/donut-push/-/donut-push-8.4.1.tgz",
|
||||||
|
"integrity": "sha512-i/gnO3OuYjWCNU0x2u7aI6FK6+dH+iK+wKDKmgD6X2p0tpkJpQ4XFvxe42GC8rQ+UYcgIHCoWVv738uRymmUdQ=="
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@tencentcloud/donut-push": {
|
||||||
|
"version": "8.4.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@tencentcloud/donut-push/-/donut-push-8.4.1.tgz",
|
||||||
|
"integrity": "sha512-i/gnO3OuYjWCNU0x2u7aI6FK6+dH+iK+wKDKmgD6X2p0tpkJpQ4XFvxe42GC8rQ+UYcgIHCoWVv738uRymmUdQ=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
18
package.json
Normal file
18
package.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"name": "beefast-mini-deliveryman",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.ibtc.work/deliveryman/beefast-mini-deliveryman.git"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"@tencentcloud/donut-push": "^8.4.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -514,6 +514,7 @@
|
|||||||
padding:0 20rpx;
|
padding:0 20rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #555555;
|
color: #555555;
|
||||||
|
margin:0;
|
||||||
}
|
}
|
||||||
.left-panel .actions .item.button{
|
.left-panel .actions .item.button{
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"miniprogramRoot": "./",
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "trial",
|
"libVersion": "trial",
|
||||||
"packOptions": {
|
"packOptions": {
|
||||||
@ -12,7 +13,13 @@
|
|||||||
"minified": true,
|
"minified": true,
|
||||||
"enhance": true,
|
"enhance": true,
|
||||||
"showShadowRootInWxmlPanel": true,
|
"showShadowRootInWxmlPanel": true,
|
||||||
"packNpmRelationList": [],
|
"packNpmManually": true,
|
||||||
|
"packNpmRelationList": [
|
||||||
|
{
|
||||||
|
"packageJsonPath": "./package.json",
|
||||||
|
"miniprogramNpmDistDir": "./"
|
||||||
|
}
|
||||||
|
],
|
||||||
"babelSetting": {
|
"babelSetting": {
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
@ -28,6 +35,6 @@
|
|||||||
"appid": "wxcc9b05f43951f1c0",
|
"appid": "wxcc9b05f43951f1c0",
|
||||||
"projectArchitecture": "multiPlatform",
|
"projectArchitecture": "multiPlatform",
|
||||||
"simulatorPluginLibVersion": {
|
"simulatorPluginLibVersion": {
|
||||||
"wxext14566970e7e9f62": "3.6.5-25"
|
"wxext14566970e7e9f62": "3.6.5-24"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user