Commit 87f7f087 by 胡悦

添加:首页路径和部分页面

1 parent 6ec5cb89
/node_modules
/uni_modules
/unpackage
/.idea
/.vscode
......
{
"easycom": {
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
},
"pages": [
{
"easycom": {
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
},
"pages": [
{
"path": "pages/home/home",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "pages/common/login",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/order/order",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "pages/informationEntry/informationEntry",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "生意助手",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "生意助手",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
}
}
<!--
* @Description: 首页
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 09:45:47
-->
<template>
<view class="container">
<view class="left-side">
<!-- 左侧内容 -->
<view class="user-info">
<image
class="user-avatar"
src="../../static/logo.png"
mode="scaleToFill"
/>
<view class="user-name">huyue</view>
<view class="user-position">延保专员</view>
</view>
<view class="left-footer">
<view class="logout">
<image class="icon-logout" src="../../static/images/home/icon-logout.png" mode="scaleToFill" />
<view>退出</view>
</view>
<view class="store-addr">
<image
class="icon-addr"
src="../../static/images/home/icon-addr.png"
mode="scaleToFill"
/>
<view class="addr-text">东莞问界交付中心</view>
</view>
</view>
</view>
<view class="right-side">
<!-- 右侧内容 -->
<text>右侧内容</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {};
},
onLoad(options) {
const text = options.text;
uni.setNavigationBarTitle({
title: text,
});
},
};
</script>
<style scoped lang="scss">
.container {
display: flex;
height: 100vh;
}
.left-side {
display: flex;
flex-direction: column;
background-color: #F8F9F9;
.user-info {
width: 220rpx;
box-sizing: border-box;
padding: 56rpx 56rpx 0 36rpx;
text-align: center;
}
.user-avatar {
width: 128rpx;
height: 128rpx;
border-radius: 50%;
box-shadow: 0 4rpx 8rpx 0 #0000001a;
}
.user-name {
font-weight: 500;
font-size: 32rpx;
color: #333333;
margin-top: 20rpx;
}
.user-position {
font-size: 20rpx;
color: #9B9B9E;
margin-top: 8rpx;
}
.left-footer {
margin-top: auto;
}
.logout {
display: flex;
align-items: center;
justify-content: center;
background-color: #FFFFFF;
border: 2rpx solid #EEEEEE;
border-radius: 16rpx;
font-size: 28rpx;
margin: 0 30rpx;
color: #6C6C70;
padding: 18rpx 32rpx;
}
.icon-logout {
width: 32rpx;
height: 32rpx;
margin-right: 8rpx;
}
.store-addr {
display: flex;
align-items: flex-start;
padding: 0 16rpx 60rpx;
margin-top: 38rpx;
.icon-addr {
width: 32rpx;
height: 32rpx;
}
.addr-text {
width: 152rpx;
font-size: 24rpx;
color: #6C6C70;
word-wrap: break-word;
white-space: normal;
}
}
}
.right-side {
flex: 1;
background-color: #FFFFFF;
}
</style>
\ No newline at end of file
<!--
* @Description:
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 09:42:44
-->
<template>
<view>
这是信息录入
<button @tap="choose">调摄像头</button>
<view>客户付款凭证</view>
</view>
</template>
<script>
export default {
data() {
return {
};
},
onLoad(options) {
const text = options.text
uni.setNavigationBarTitle({
title: text
});
},
methods: {
choose() {
uni.chooseImage({
count: 1,
success: (res) => {
console.log(res)
},
fail: (err) => {
console.log(err)
}
})
}
}
}
</script>
<style lang="scss">
</style>
\ No newline at end of file
<!--
* @Description:
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 09:43:06
-->
<template>
<view>
这是订单列表
</view>
</template>
<script>
export default {
data() {
return {
};
},
onLoad(options) {
const text = options.text
uni.setNavigationBarTitle({
title: text
});
}
}
</script>
<style lang="scss">
</style>
\ 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!