Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mini-program-wepy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mini-program-wepy
Commits
83a52c3d
Commit
83a52c3d
authored
May 28, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除不必要的
parent
0634c638
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
app.wpy
src/app.wpy
+0
-20
index.wpy
src/pages/index.wpy
+0
-5
No files found.
src/app.wpy
View file @
83a52c3d
...
@@ -32,27 +32,7 @@ wepy.app({
...
@@ -32,27 +32,7 @@ wepy.app({
}
}
});
});
wx.setStorageSync('onNetworkStatusChange', true);
wx.setStorageSync('onNetworkStatusChange', true);
// wx.checkSession({
// success () {
// console.log('已登录');
// // session_key 未过期,并且在本生命周期一直有效
// },
// fail () {
// // session_key 已经失效,需要重新执行登录流程
// wx.login({
// success (res) {
// if (res.code) {
// // 发起网络请求,告诉后端
// wx.setStorageSync('wxCode', res.code);
// } else {
// console.log('登录失败!' + res.errMsg);
// }
// }
// });
// }
// });
wx.onNetworkStatusChange((res) => {
wx.onNetworkStatusChange((res) => {
console.log('onNetworkStatusChange', res.isConnected);
wx.setStorageSync('onNetworkStatusChange', res.isConnected);
wx.setStorageSync('onNetworkStatusChange', res.isConnected);
});
});
},
},
...
...
src/pages/index.wpy
View file @
83a52c3d
...
@@ -476,7 +476,6 @@
...
@@ -476,7 +476,6 @@
innerAudioContext.autoplay = true;
innerAudioContext.autoplay = true;
innerAudioContext.src = '/static/audio/supermarie.mp3';
innerAudioContext.src = '/static/audio/supermarie.mp3';
innerAudioContext.onPlay(() => {
innerAudioContext.onPlay(() => {
console.log('开始播放');
});
});
innerAudioContext.onError((res) => {
innerAudioContext.onError((res) => {
console.log(res.errMsg);
console.log(res.errMsg);
...
@@ -620,9 +619,5 @@
...
@@ -620,9 +619,5 @@
'video-loading': '~@/components/custom/loading'
'video-loading': '~@/components/custom/loading'
},
},
navigationStyle: "custom",
navigationStyle: "custom",
"navigateToMiniProgramAppIdList":[
"wx91d27dbf599dff74"
],
}
}
</config>
</config>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment