pages.json
{
"path": "pages/contact/information",
"style": {
"app-plus": {
"titleNView": {
"buttons": [ //右侧操作按钮样式定义,是以数组形式定义,可定义多个
{
"text": "提交",
"type": "none",
"color": "#fff",
"background": "#000000",
// "fontSrc": "/static/iconfont.ttf",
"fontSize": "16px"
}
]
}
},
"navigationBarTitleText": "入职信息"
}
},
contact页面:
onNavigationBarButtonTap: function(e) {
const that = this
uni.showModal({
title: '提示',
content: '提交后将无法修改,确定提交?',
success: function(res) {
if (res.confirm) {
editEntrySubmitStatus(that.form1.oaEmployeeId).then(res => {
uni.showToast({
title: '提交成功',
icon: 'none',
duration: 2000
})
uni.switchTab({
url: '/pages/contact/contact'
});
})
} else if (res.cancel) {
console.log('拒绝提交');
}
}
});
},