parent
3b82cb9c2f
commit
80ee48d8ba
@ -1,40 +1,40 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
"pages/MainTest/MainTest",
|
"pages/MainTest/MainTest",
|
||||||
"pages/Msg/msg",
|
"pages/Msg/msg",
|
||||||
"pages/Profile/profile",
|
"pages/Profile/profile",
|
||||||
"pages/Tprofile/Tprofile",
|
"pages/Tprofile/Tprofile",
|
||||||
"pages/Comments/Comments"
|
"pages/Comments/Comments"
|
||||||
],
|
],
|
||||||
"window": {
|
"window": {
|
||||||
"backgroundColor": "#FFF",
|
"backgroundColor": "#FFF",
|
||||||
"backgroundTextStyle": "light",
|
"backgroundTextStyle": "light",
|
||||||
"navigationBarBackgroundColor": "#FFF",
|
"navigationBarBackgroundColor": "#FFF",
|
||||||
"navigationBarTitleText": "家教帮",
|
"navigationBarTitleText": "家教帮",
|
||||||
"navigationBarTextStyle": "black"
|
"navigationBarTextStyle": "black"
|
||||||
},
|
},
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"pagePath": "pages/MainTest/MainTest",
|
"pagePath": "pages/MainTest/MainTest",
|
||||||
"text": "main",
|
"text": "main",
|
||||||
"iconPath": "images/main.png",
|
"iconPath": "images/main.png",
|
||||||
"selectedIconPath": "images/main_on.png"
|
"selectedIconPath": "images/main_on.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/Msg/msg",
|
"pagePath": "pages/Msg/msg",
|
||||||
"text": "msg",
|
"text": "msg",
|
||||||
"iconPath": "images/msg.png",
|
"iconPath": "images/msg.png",
|
||||||
"selectedIconPath": "images/msg_on.png"
|
"selectedIconPath": "images/msg_on.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/Profile/profile",
|
"pagePath": "pages/Profile/profile",
|
||||||
"text": "profile",
|
"text": "profile",
|
||||||
"iconPath": "images/profile.png",
|
"iconPath": "images/profile.png",
|
||||||
"selectedIconPath": "images/profile_on.png"
|
"selectedIconPath": "images/profile_on.png"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"sitemapLocation": "sitemap.json",
|
"sitemapLocation": "sitemap.json",
|
||||||
"style": "v2"
|
"style": "v2"
|
||||||
}
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
// components/dialog/dialog.js
|
||||||
|
Component({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件的属性列表
|
||||||
|
*/
|
||||||
|
properties: {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件的初始数据
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
showModal: true
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件的方法列表
|
||||||
|
*/
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
<!--components/dialog/dialog.wxml-->
|
||||||
|
<view class="container-view">
|
||||||
|
<view>主题内容</view>
|
||||||
|
</view>
|
||||||
|
<!--modal-->
|
||||||
|
<!--弹窗-->
|
||||||
|
<view>
|
||||||
|
<view class="modal-mask" bindtap="hideModal" catchtouchmove="preventTouchMove" wx:if="{{showModal}}">
|
||||||
|
<view class="modal-dialog" wx:if="{{showModal}}">
|
||||||
|
<video src="https://res.wx.qq.com/wxaliveplayer/htdocs/video14e1eea.mov"></video>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
@ -0,0 +1,41 @@
|
|||||||
|
/* components/dialog/dialog.wxss */
|
||||||
|
.container-view {
|
||||||
|
width: 100vh;
|
||||||
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-mask {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-dialog {
|
||||||
|
width: 80%;
|
||||||
|
height: 70%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
overflow: hidden;
|
||||||
|
position: fixed;
|
||||||
|
margin: 0 auto;
|
||||||
|
z-index: 9999;
|
||||||
|
background: #f9f9f9;
|
||||||
|
border-radius: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container-view {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
@ -1,3 +1,5 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {}
|
"usingComponents": {
|
||||||
|
"dialog": "/components/dialog/dialog"
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue