add success page
This commit is contained in:
@@ -89,7 +89,9 @@
|
|||||||
"pages/col/col",
|
"pages/col/col",
|
||||||
"pages/col/skyline/col",
|
"pages/col/skyline/col",
|
||||||
"pages/color-picker/color-picker",
|
"pages/color-picker/color-picker",
|
||||||
"pages/guide/guide"
|
"pages/guide/guide",
|
||||||
|
"pages/success",
|
||||||
|
"pages/success/success"
|
||||||
],
|
],
|
||||||
"subpackages": [
|
"subpackages": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ Page({
|
|||||||
this.trdPrivacy.showPrivacyWin();
|
this.trdPrivacy.showPrivacyWin();
|
||||||
},
|
},
|
||||||
clickHandle(e) {
|
clickHandle(e) {
|
||||||
console.log("Hello World!")
|
|
||||||
let { name, path = '' } = e.detail.item;
|
let { name, path = '' } = e.detail.item;
|
||||||
if (!path) {
|
if (!path) {
|
||||||
name = name.replace(/^[A-Z]/, (match) => `${match}`.toLocaleLowerCase());
|
name = name.replace(/^[A-Z]/, (match) => `${match}`.toLocaleLowerCase());
|
||||||
@@ -55,6 +54,17 @@ Page({
|
|||||||
});
|
});
|
||||||
path = `/pages/${name}/${this.skyline ? 'skyline/' : ''}${name}`;
|
path = `/pages/${name}/${this.skyline ? 'skyline/' : ''}${name}`;
|
||||||
}
|
}
|
||||||
|
wx.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '确定信息核实准确无误?',
|
||||||
|
success: function (res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
console.log('用户点击确定')
|
||||||
|
} else if (res.cancel) {
|
||||||
|
console.log('用户点击取消')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}),
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: path,
|
url: path,
|
||||||
fail: () => {
|
fail: () => {
|
||||||
@@ -108,8 +118,14 @@ Page({
|
|||||||
// 请求成功处理
|
// 请求成功处理
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '提交成功',
|
title: '提交成功',
|
||||||
icon: 'success'
|
icon: 'success',
|
||||||
|
duration: 1000 // 持续1.5秒
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
wx.navigateTo({
|
||||||
|
url: '/pages/success/success'
|
||||||
|
})
|
||||||
|
}, 500)
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
// 请求失败处理
|
// 请求失败处理
|
||||||
|
|||||||
@@ -2,44 +2,44 @@
|
|||||||
<view class="main">
|
<view class="main">
|
||||||
<t-demo >
|
<t-demo >
|
||||||
<baseinfo
|
<baseinfo
|
||||||
label="客户名称:"
|
label="项目名称:"
|
||||||
field="customerName"
|
field="customerName"
|
||||||
placeholder="请输入客户名称"
|
placeholder="请输入项目名称"
|
||||||
bind:change="onFormChange"
|
bind:change="onFormChange"
|
||||||
/>
|
/>
|
||||||
<baseinfo
|
<baseinfo
|
||||||
label="项目来源:"
|
label="项目人员:"
|
||||||
field="projectSource"
|
field="projectSource"
|
||||||
placeholder="请输入项目来源"
|
placeholder="请输入项目人员"
|
||||||
bind:change="onFormChange"
|
bind:change="onFormChange"
|
||||||
/>
|
/>
|
||||||
<baseinfo
|
<baseinfo
|
||||||
label="负 责 人 :"
|
label="我方人员:"
|
||||||
field="projectLeader"
|
field="projectLeader"
|
||||||
placeholder="请输入负责人"
|
placeholder="请输入我方人员"
|
||||||
bind:change="onFormChange"
|
bind:change="onFormChange"
|
||||||
/>
|
/>
|
||||||
</t-demo>
|
</t-demo>
|
||||||
<t-demo desc="具体内容">
|
<t-demo desc="项目诉求">
|
||||||
<clientdemand
|
<clientdemand
|
||||||
field="clientdemand"
|
field="clientdemand"
|
||||||
placeholder="请输入具体内容"
|
placeholder="请输入项目诉求"
|
||||||
bind:change="onFormChange"
|
bind:change="onFormChange"
|
||||||
/>
|
/>
|
||||||
</t-demo>
|
</t-demo>
|
||||||
|
|
||||||
<t-demo desc="希望业务对接事项">
|
<t-demo desc="推进计划">
|
||||||
<clientdemand
|
<clientdemand
|
||||||
field="handovertasks"
|
field="handovertasks"
|
||||||
placeholder="请输入对接事项"
|
placeholder="请输入推进计划"
|
||||||
bind:change="onFormChange"
|
bind:change="onFormChange"
|
||||||
/>
|
/>
|
||||||
</t-demo>
|
</t-demo>
|
||||||
|
|
||||||
<t-demo desc="备注">
|
<t-demo desc="所需公司支持">
|
||||||
<clientdemand
|
<clientdemand
|
||||||
field="remarks"
|
field="remarks"
|
||||||
placeholder="请输入备注"
|
placeholder="请输入所需公司支持"
|
||||||
bind:change="onFormChange"
|
bind:change="onFormChange"
|
||||||
/>
|
/>
|
||||||
</t-demo >
|
</t-demo >
|
||||||
|
|||||||
66
ProjectLiaisonForm/pages/success.js
Normal file
66
ProjectLiaisonForm/pages/success.js
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
// pages/success.js
|
||||||
|
Page({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面的初始数据
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面加载
|
||||||
|
*/
|
||||||
|
onLoad(options) {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
|
*/
|
||||||
|
onReady() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面显示
|
||||||
|
*/
|
||||||
|
onShow() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面隐藏
|
||||||
|
*/
|
||||||
|
onHide() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面卸载
|
||||||
|
*/
|
||||||
|
onUnload() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面相关事件处理函数--监听用户下拉动作
|
||||||
|
*/
|
||||||
|
onPullDownRefresh() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面上拉触底事件的处理函数
|
||||||
|
*/
|
||||||
|
onReachBottom() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户点击右上角分享
|
||||||
|
*/
|
||||||
|
onShareAppMessage() {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
2
ProjectLiaisonForm/pages/success.wxml
Normal file
2
ProjectLiaisonForm/pages/success.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<!--pages/success.wxml-->
|
||||||
|
<text>pages/success.wxml</text>
|
||||||
91
ProjectLiaisonForm/pages/success/success.js
Normal file
91
ProjectLiaisonForm/pages/success/success.js
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
// pages/success/success.js
|
||||||
|
Page({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面的初始数据
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退出小程序
|
||||||
|
*/
|
||||||
|
exitApp() {
|
||||||
|
wx.showModal({
|
||||||
|
title: '退出提示',
|
||||||
|
content: '确定要退出小程序吗?',
|
||||||
|
confirmText: '退出',
|
||||||
|
confirmColor: '#ff4d4f',
|
||||||
|
cancelText: '取消',
|
||||||
|
success: (res) => {
|
||||||
|
if (res.confirm) {
|
||||||
|
wx.exitMiniProgram()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 返回修改
|
||||||
|
*/
|
||||||
|
viewDetails() {
|
||||||
|
wx.navigateBack()
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面加载
|
||||||
|
*/
|
||||||
|
onLoad(options) {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
|
*/
|
||||||
|
onReady() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面显示
|
||||||
|
*/
|
||||||
|
onShow() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面隐藏
|
||||||
|
*/
|
||||||
|
onHide() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面卸载
|
||||||
|
*/
|
||||||
|
onUnload() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面相关事件处理函数--监听用户下拉动作
|
||||||
|
*/
|
||||||
|
onPullDownRefresh() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面上拉触底事件的处理函数
|
||||||
|
*/
|
||||||
|
onReachBottom() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户点击右上角分享
|
||||||
|
*/
|
||||||
|
onShareAppMessage() {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
3
ProjectLiaisonForm/pages/success/success.json
Normal file
3
ProjectLiaisonForm/pages/success/success.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
18
ProjectLiaisonForm/pages/success/success.wxml
Normal file
18
ProjectLiaisonForm/pages/success/success.wxml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<view class="center-container">
|
||||||
|
<view class="content-box">
|
||||||
|
<!-- 成功图标 -->
|
||||||
|
<!-- <image src="/images/success.png" class="success-icon"></image> -->
|
||||||
|
|
||||||
|
<!-- 数据上传完成提示 -->
|
||||||
|
<view class="upload-tip">
|
||||||
|
<text class="tip-title">数据上传已完成!</text>
|
||||||
|
<text class="tip-desc">您录入的信息已成功提交至服务器!</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 操作按钮 -->
|
||||||
|
<view class="action-buttons">
|
||||||
|
<button class="detail-btn" bindtap="viewDetails">返回修改</button>
|
||||||
|
<button class="exit-btn" bindtap="exitApp">退出</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
95
ProjectLiaisonForm/pages/success/success.wxss
Normal file
95
ProjectLiaisonForm/pages/success/success.wxss
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
/* pages/successPage/successPage.wxss */
|
||||||
|
|
||||||
|
/* 基础页面设置 */
|
||||||
|
page {
|
||||||
|
height: 100%;
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 居中容器 */
|
||||||
|
.center-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
height: 100%;
|
||||||
|
padding: 40rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 内容盒子 */
|
||||||
|
.content-box {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 600rpx;
|
||||||
|
padding: 60rpx 40rpx;
|
||||||
|
background: white;
|
||||||
|
border-radius: 24rpx;
|
||||||
|
box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 成功图标 */
|
||||||
|
.success-icon {
|
||||||
|
width: 160rpx;
|
||||||
|
height: 160rpx;
|
||||||
|
margin-bottom: 50rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 上传提示 */
|
||||||
|
.upload-tip {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 60rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tip-title {
|
||||||
|
display: block;
|
||||||
|
font-size: 38rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tip-desc {
|
||||||
|
display: block;
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #666;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 操作按钮区域 */
|
||||||
|
.action-buttons {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 按钮基础样式 */
|
||||||
|
.action-buttons button {
|
||||||
|
width: 48%;
|
||||||
|
height: 90rpx;
|
||||||
|
line-height: 90rpx;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
font-size: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 退出按钮样式 */
|
||||||
|
.exit-btn {
|
||||||
|
background-color: #ff4d4f;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 查看详情按钮样式 */
|
||||||
|
.detail-btn {
|
||||||
|
background-color: #07c160;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 按钮点击效果 */
|
||||||
|
button::after {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:active {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 96 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 MiB |
Reference in New Issue
Block a user