Commit 534b6f53 by 前端

Merge branch 'kuangyq_v2.10.0' into 'master'

Kuangyq v2.10.0

See merge request !1
2 parents 02d40176 0dc8f741
{
"pages": [
"pages/tab/index/index",
"pages/application/application",
"pages/experience/experience"
"pages/applicationAccount/applicationAccount",
"pages/applicationPartener/applicationPartener"
],
"window": {
"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
{
"usingComponents": {}
}
\ No newline at end of file
<!--pages/applicationAccount/applicationAccount.wxml-->
<view class="apply-account">
<view>
top
</view>
<view>
</view>
<view class="contact-inline">
</view>
</view>
/* pages/applicationAccount/applicationAccount.wxss */
.apply-account {
position: relative;
}
.contact-inline {
width: 50rpx;
height: 50rpx;
background-color: aqua;
position: absolute;
right: 10rpx;
top: 930rpx;
}
\ 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
{
"usingComponents": {}
}
\ 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
// pages/tab/index/index.js
Page({
/**
* 页面的初始数据
*/
data: {
introduceName: ''
introduceName: "",
},
introduce(e) {
console.log(e.target.dataset.name)
const name = e.target.dataset.name
switch (name){
case '城市合伙人':
wx.$router.go('application')
console.log(e.target.dataset.name);
const name = e.target.dataset.name;
switch (name) {
case "城市合伙人":
wx.$router.go("application");
break;
default:
this.setData({
introduceName: name
})
introduceName: name,
});
}
},
jump() {
wx.$router.go('experience')
wx.$router.go("experience");
},
/**
* 生命周期函数--监听页面加载
......@@ -36,49 +34,35 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
onShareAppMessage() {},
});
......@@ -51,6 +51,10 @@
"projectname": "%E5%B9%BF%E8%81%94%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%A8%A1%E7%89%88",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
},
"condition": {
"miniprogram": {
"list": [
......@@ -86,9 +90,5 @@
}
]
}
},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
}
}
\ 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!