调整页面样式

This commit is contained in:
唐明明
2022-01-14 16:16:56 +08:00
parent 18448d7873
commit dd6c5718b0
14 changed files with 51 additions and 52 deletions

View File

@@ -222,6 +222,7 @@
}, },
{ {
"path": "pages/pay/pay", "path": "pages/pay/pay",
"name": "Pay",
"style": { "style": {
"navigationBarTitleText": "收银台", "navigationBarTitleText": "收银台",
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
@@ -250,8 +251,7 @@
"name": "signIndex", "name": "signIndex",
"style": { "style": {
"navigationBarTitleText": "每日签到", "navigationBarTitleText": "每日签到",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -259,8 +259,7 @@
"name": "menuIndex", "name": "menuIndex",
"style": { "style": {
"navigationBarTitleText": "食谱推荐", "navigationBarTitleText": "食谱推荐",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -268,8 +267,7 @@
"name": "menuClassify", "name": "menuClassify",
"style": { "style": {
"navigationBarTitleText": "食谱推荐", "navigationBarTitleText": "食谱推荐",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -277,8 +275,7 @@
"name": "menuDetails", "name": "menuDetails",
"style": { "style": {
"navigationBarTitleText": "食谱详情", "navigationBarTitleText": "食谱详情",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -286,8 +283,7 @@
"name": "topicIndex", "name": "topicIndex",
"style": { "style": {
"navigationBarTitleText": "话题广场", "navigationBarTitleText": "话题广场",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -308,8 +304,7 @@
"name": "rankingIndex", "name": "rankingIndex",
"style": { "style": {
"navigationBarTitleText": "食物排行", "navigationBarTitleText": "食物排行",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -317,8 +312,7 @@
"name": "rankingList", "name": "rankingList",
"style": { "style": {
"navigationBarTitleText": "食物榜单", "navigationBarTitleText": "食物榜单",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -326,8 +320,7 @@
"name": "rankingDetails", "name": "rankingDetails",
"style": { "style": {
"navigationBarTitleText": "食物详情", "navigationBarTitleText": "食物详情",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -335,8 +328,7 @@
"name": "noticeIndex", "name": "noticeIndex",
"style": { "style": {
"navigationBarTitleText": "消息", "navigationBarTitleText": "消息",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -344,8 +336,7 @@
"name": "noticeList", "name": "noticeList",
"style": { "style": {
"navigationBarTitleText": "消息", "navigationBarTitleText": "消息",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -353,8 +344,7 @@
"name": "noticeDetails", "name": "noticeDetails",
"style": { "style": {
"navigationBarTitleText": "消息", "navigationBarTitleText": "消息",
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -458,8 +448,7 @@
"name": "serviceIndex", "name": "serviceIndex",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom", "navigationStyle": "custom"
"enablePullDownRefresh": false
} }
}, },
{ {

View File

@@ -70,7 +70,7 @@ import userAuth from "@/public/userAuth";
export default { export default {
data() { data() {
return { return {
phone: "14745798066", phone: "",
code: "", code: "",
smsTime: 60, smsTime: 60,
getSms: false, getSms: false,

View File

@@ -531,19 +531,22 @@ export default {
days: 1, days: 1,
}; };
recordsHealth(params).then((res) => { recordsHealth(params).then((res) => {
this.$refs.uToast.show({ uni.showModal({
type: "success", title: "提示",
title: "创建成功", content: "创建成功",
message: "创建成功啦", showCancel:false,
iconUrl: success: ModalRes => {
"https://cdn.uviewui.com/uview/demo/toast/success.png",
complete() {
this.percentplan3 = 100; this.percentplan3 = 100;
this.behaviorShow = false; // 关闭运动量页面 this.behaviorShow = false; // 关闭运动量页面
uni.navigateBack({}); uni.navigateBack({});
}, }
}); })
}); }).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
} }
}, },
}, },

View File

@@ -88,8 +88,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page { .content {
background-color: $window-color; background-color: $window-color;
min-height: 100vh;
} }
.tabs { .tabs {

View File

@@ -94,8 +94,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page { .content {
background-color: $window-color; background-color: $window-color;
min-height: 100vh;
} }
.backImg { .backImg {
width: 100%; width: 100%;

View File

@@ -48,8 +48,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page { .content {
background-color: $window-color; background-color: $window-color;
min-height: 100vh;
} }
.menu { .menu {
.title { .title {

View File

@@ -53,8 +53,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page { .content {
background-color: $window-color; background-color: $window-color;
min-height: 100vh;
} }
.tips { .tips {
padding: $padding; padding: $padding;

View File

@@ -45,10 +45,11 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page { .content {
padding: $padding; padding: $padding;
box-sizing: border-box; box-sizing: border-box;
background-color: $window-color; background-color: $window-color;
min-height: 100vh;
} }
.noticeList { .noticeList {

View File

@@ -65,8 +65,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page { .content {
background-color: $window-color; background-color: $window-color;
min-height: 100vh;
} }
.box { .box {

View File

@@ -83,7 +83,6 @@
}) })
}, },
fail: payErr => { fail: payErr => {
console.log(payErr)
if(payErr.errCode == '-100'){ if(payErr.errCode == '-100'){
uni.showToast({ uni.showToast({
title: '支付被取消', title: '支付被取消',

View File

@@ -177,10 +177,11 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page { .content {
background-color: $window-color; background-color: $window-color;
padding: $padding; padding: $padding;
box-sizing: border-box; box-sizing: border-box;
min-height: 100vh;
} }
.modular { .modular {

View File

@@ -227,7 +227,6 @@ export default {
// 喝水 // 喝水
drinkWater() { drinkWater() {
drinkWater().then((res) => { drinkWater().then((res) => {
console.log(res);
this.getWaters(); this.getWaters();
}); });
}, },

View File

@@ -128,9 +128,11 @@
</script> </script>
<style lang="scss"> <style lang="scss">
page { .content {
background-color: $window-color; background-color: $window-color;
padding-bottom: $padding; padding-bottom: $padding;
min-height: 100vh;
box-sizing: border-box;
} }
/* 图片 */ /* 图片 */

View File

@@ -89,10 +89,10 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page { .content {
padding-top: calc(var(--status-bar-height) + 180rpx);
overflow: hidden;
background-color: $window-color; background-color: $window-color;
min-height: 100vh;
box-sizing: border-box;
} }
.status { .status {