Commit 15a1e636 by 匡雅琴

页面创建

1 parent 38d0be18
{ {
"pages": [ "pages": [
"pages/tab/index/index", "pages/tab/index/index",
"pages/application/application" "pages/applicationAccount/applicationAccount",
"pages/applicationPartener/applicationPartener"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
......
import WxValidate from "../../utils/WxValidate"
// pages/applicationAccount/applicationAccount.js
Page({
/**
* 页面的初始数据
*/
data: {
accountForm: {
applyName: '',
telphone: '',
enterpriseName: '',
concerContent: ''
}
},
// 表单验证规则
initValidate() {
const rules = {
nickName: {
required: true,
minlength: 2
}
}
const messages = {
nickName: {
required: '请填写姓名',
minlength: '请输入正确的名称'
}
}
this.WxValidate = new WxValidate(rules, messages)
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
// 初始化验证规则函数
this.initValidate()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<!--pages/applicationAccount/applicationAccount.wxml-->
<view class="apply-account">
<view>
top
</view>
<view>
</view>
</view>
/* pages/applicationAccount/applicationAccount.wxss */
\ No newline at end of file \ No newline at end of file
// pages/applicationPartener/applicationPartener.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<!--pages/applicationPartener/applicationPartener.wxml-->
<text>pages/applicationPartener/applicationPartener.wxml</text>
/* pages/applicationPartener/applicationPartener.wxss */
\ No newline at end of file \ No newline at end of file
...@@ -13,7 +13,7 @@ Page({ ...@@ -13,7 +13,7 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
setTimeout(() => { setTimeout(() => {
wx.$router.go('application') wx.$router.go('applicationAccount')
}, 2e3) }, 2e3)
}, },
......
...@@ -22,35 +22,36 @@ ...@@ -22,35 +22,36 @@
"checkSiteMap": true, "checkSiteMap": true,
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"compileHotReLoad": false, "compileHotReLoad": false,
"lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": true, "useMultiFrameRuntime": true,
"useApiHook": true, "useApiHook": true,
"useApiHostProcess": true,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"bundle": false, "useIsolateContext": false,
"useIsolateContext": true,
"useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false, "userConfirmedBundleSwitch": false,
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [], "packNpmRelationList": [],
"minifyWXSS": true, "minifyWXSS": true,
"useApiHostProcess": false,
"lazyloadPlaceholderEnable": false,
"useStaticServer": true,
"showES6CompileOption": false,
"disableUseStrict": false, "disableUseStrict": false,
"minifyWXML": true,
"showES6CompileOption": false,
"useCompilerPlugins": false, "useCompilerPlugins": false,
"minifyWXML": true "ignoreUploadUnusedFiles": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.15.0", "libVersion": "2.15.0",
"appid": "wxfe82b8d65d07808f", "appid": "wxfe82b8d65d07808f",
"projectname": "%E5%B9%BF%E8%81%94%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%A8%A1%E7%89%88", "projectname": "ai-card",
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
},
"condition": { "condition": {
"miniprogram": { "miniprogram": {
"list": [ "list": [
...@@ -86,9 +87,5 @@ ...@@ -86,9 +87,5 @@
} }
] ]
} }
},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
} }
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!