Commit 7e2d888fd1e818d18f0ab0e8ca6f6548f25c03a7

Authored by wangfan
1 parent dac9af66

manager-invitation

// pages/manager-invitation/editor.js
import util from '../../utils/util';
import App from '../../utils/api';
import TP from '../../utils/tpls';
const {regeneratorRuntime} = global
Page({
/**
* 页面的初始数据
*/
data: {},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
})
\ No newline at end of file
... ...
{
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText":"订座详情",
"usingComponents": {
"userinfo": "/components/userinfo/userinfo",
"nav":"/components/nav/nav",
"formids":"/components/formids/formids"
}
}
\ No newline at end of file
... ...
<!--pages/manager-invitation/editor.wxml-->
<nav>修改信息</nav>
<view class="pages">
<view class="base block">
<view class="item Medium">预订信息</view>
<view class="item flex-ll">
<input value="" bindinput="input" placeholder="请输入店铺名称"/>
<view class="quick">快速选择</view>
</view>
<view class="item flex-ll">
<input value="" bindinput="input" placeholder="请输入预订时间"/>
</view>
<view class="item flex-ll">
<input value="" bindinput="input" placeholder="请输入包间名称"/>
</view>
<view class="item flex-ll">
<input value="" bindinput="input" placeholder="请输入店铺地址"/>
</view>
</view>
<view class="upload block flex-vc">
<view class="image">
<image src="http://qn.colorcun.com/manager-invitation/wx/upload2.jpg" mode="aspectFill"></image>
</view>
<view class="text">(此处照片为邀请函展示照片)</view>
</view>
<formids bindclick="submit" style="width: 100%;">
<view class="submit">确定</view>
</formids>
</view>
... ...
/* pages/manager-invitation/editor.wxss */
page{
background-color: #F5F5F5;
}
.pages{
background-color: #F5F5F5;
font-size: 34rpx;
padding-top: 20rpx;
padding-bottom: 160rpx;
}
.block{
width: 94%;
margin: 0 auto;
border-radius: 8rpx;
background-color: #FEFEFE;
}
.base .item{
height: 140rpx;
line-height: 140rpx;
width: 94%;
margin: 0 auto;
border-bottom: 2rpx solid #F1F0F4;
}
.item input{
width: 100%;
}
.base .item:last-child{
border-width: 0;
}
.upload{
margin-top: 20rpx;
height: 310rpx;
}
.image{
width: 220rpx;
height: 220rpx;
border: 2rpx #E0E0E0 dashed;
margin-top: 20rpx;
}
.image image{
width: 100%;
height: 100%;
}
.text{
margin-top: 20rpx;
font-size: 28rpx;
color: #999999;
}
.submit{
position: fixed;
bottom: 30rpx;
left: 0;
right:0;
margin: 0 auto;
height: 84rpx;
line-height: 84rpx;
width: 90%;
background-color: #74BBBE;
border-radius: 10rpx;
color: #FEFEFE;
}
.quick{
height: 50rpx;
line-height: 50rpx;
width: 140rpx;
background-color: #46A5A9;
font-size: 28rpx;
color: #FEFEFE;
text-align: center;
min-width: 140rpx;
}
\ No newline at end of file
... ...
// pages/manager-invitation/index.js
import util from '../../utils/util';
import App from '../../utils/api';
const {regeneratorRuntime} = global
Page({
/**
... ...