Commit bc8e9a1c by 胡悦

添加展业工具二级内容

1 parent 30defc06
.detail-box {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
box-sizing: border-box;
padding: toRpx(160) toRpx(64) 0;
}
.nav-bar {
position: fixed;
width: 100%;
height: toRpx(96);
left: 0;
top: toRpx(48);
z-index: 999;
pointer-events: none;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
}
}
\ No newline at end of file

2.49 MB | W: | H:

2.53 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -183,6 +183,12 @@
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/boutique/tool/index",
"style": {
"navigationStyle": "custom"
}
}
],
"globalStyle": {
......
<template>
<view>
<view class="common-title">新增工单</view>
</view>
</template>
<script>
export default {
name: 'CreateOrder',
data() {
return {
}
}
}
</script>
<style scoped lang="scss">
</style>
\ No newline at end of file
<template>
<view>
<view class="common-title">填写日报</view>
</view>
</template>
<script>
export default {
name: 'DailyReport',
data() {
return {
}
}
}
</script>
<style scoped lang="scss">
</style>
\ No newline at end of file
<template>
<view>
<view class="common-title">战败录单</view>
</view>
</template>
<script>
export default {
name: 'DefeatOrder',
data() {
return {
}
}
}
</script>
<style scoped lang="scss">
</style>
\ No newline at end of file
<template>
<view class="entrance-container">
<view class="entrance-list">
<view
class="entrance-item"
v-for="(item, index) in entranceList"
:key="index"
@click="handleClick(item)"
>
<view :class="['sprite-icon', `icon-${item.icon}`]"></view>
<view class="entrance-name">{{ item.label }}</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'Entrance',
data() {
return {
entranceList: [
{
icon: 'daily-report',
label: '驻店日报',
name: 'DailyReport'
},
{
icon: 'create-order',
label: '轻改提单',
name: 'CreateOrder'
},
{
icon: 'defeat-order',
label: '战败下单',
name: 'DefeatOrder'
},
{
icon: 'order-management',
label: '工单列表',
name: 'OrderManagement'
}
]
}
},
methods: {
handleClick(item) {
// 这里可以根据实际需求进行跳转或功能处理
this.$emit('entranceClick', item)
}
}
}
</script>
<style scoped lang="scss">
.entrance-container {
width: 100%;
margin-top: toRpx(64);
display: flex;
justify-content: center;
}
.entrance-list {
display: flex;
flex-wrap: wrap;
gap: toRpx(68);
justify-content: flex-start;
}
.entrance-item {
width: toRpx(120);
// height: 144rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: toRpx(30);
.entrance-name {
margin-top: toRpx(22);
}
}
</style>
\ No newline at end of file
<template>
<view>工单列表</view>
</template>
<script>
export default {
name: 'OrderManagement',
data() {
return {
}
}
}
</script>
<style scoped lang="scss">
</style>
\ No newline at end of file
<template>
<view class="detail-box">
<view class="nav-bar">
<view class="back" @click="backPage">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">展业工具</view>
</view>
<view class="detail-content">
<view class="detail-left">
<view class="common-title">展业</view>
<view class="content">
<image
class="banner"
src="../../../assets/images/common/tool_banner.png"
mode="scaleToFill"
/>
<Entrance @entranceClick="entranceClick"></Entrance>
</view>
</view>
<view class="detail-right">
<component :is="toolComponentName" />
</view>
</view>
</view>
</template>
<script>
import Entrance from './components/Entrance.vue';
import CreateOrder from './components/CreateOrder.vue'
import DailyReport from './components/DailyReport.vue'
import DefeatOrder from './components/DefeatOrder.vue'
import OrderManagement from './components/OrderManagement.vue'
export default {
components: {
Entrance,
CreateOrder,
DailyReport,
DefeatOrder,
OrderManagement
},
data() {
return {
toolComponentName: ''
}
},
methods: {
entranceClick(item) {
console.log(item)
this.toolComponentName = item.name
}
}
}
</script>
<style scoped lang="scss">
.detail-content {
display: flex;
height: calc(100vh - #{toRpx(212)});
.detail-left {
width: toRpx(800);
height: 100%;
border-radius: toRpx(48);
background: #ffffff59;
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
margin-right: toRpx(32);
z-index: 1;
overflow: hidden;
.content {
padding: 0 toRpx(48);
.banner {
width: toRpx(704);
height: toRpx(296);
margin-top: toRpx(10);
}
}
}
.detail-right {
width: toRpx(1368);
height: 100%;
border-radius: toRpx(48);
background: #ffffff59;
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
z-index: 1;
overflow: hidden;
}
.common-title {
display: flex;
align-items: center;
justify-content: space-between;
font-size: toRpx(34);
}
}
</style>
\ No newline at end of file
......@@ -16,6 +16,7 @@ $detailVW: 100vmin * (1173 / 768);
$margin: 0 calc((100vmax - #{$detailVW}) / 2);
@import "./assets/css/sprite.scss";
@import "./assets/css/common.scss";
@import '@js-preview/docx/lib/index.css';
@import '@js-preview/excel/lib/index.css';
@font-face {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!