Commit d4763275 by 胡悦

添加页面

1 parent 87f7f087
......@@ -8,4 +8,10 @@ module.exports = {
...data,
})
},
findSoureList(data) {
return http.post({
method: 'dj.api.smartcarlife.recepiton.soure.findSoureList',
...data,
})
}
}
\ No newline at end of file
......@@ -17,6 +17,13 @@
}
},
{
"path": "pages/detail/detail",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "pages/order/order",
"style": {
"navigationBarTitleText": "",
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 13:44:50
-->
<template>
<view>
详情页
<button @click="open">打开弹窗</button>
<uni-popup ref="popup" type="bottom" background-color="#fff" border-radius="10px 10px 0 0"
>
<view>
<view class="">付款二维码</view>
</view>
</uni-popup
>
</view>
</template>
<script>
export default {
data() {
return {};
},
onLoad(options) {
console.log(options, "==");
// const text = options.text
// uni.setNavigationBarTitle({
// title: text
// });
},
methods: {
open() {
// 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center']
this.$refs.popup.open("top");
},
},
};
</script>
<style scoped lang="scss">
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 09:45:47
* @LastEditTime: 2024-04-08 11:44:51
-->
<template>
<view class="container">
......@@ -20,13 +20,13 @@
</view>
<view class="left-footer">
<view class="logout">
<image class="icon-logout" src="../../static/images/home/icon-logout.png" mode="scaleToFill" />
<glsx-image class="icon-logout" src="home/icon-logout.png" mode="scaleToFill" />
<view>退出</view>
</view>
<view class="store-addr">
<image
<glsx-image
class="icon-addr"
src="../../static/images/home/icon-addr.png"
src="home/icon-addr.png"
mode="scaleToFill"
/>
<view class="addr-text">东莞问界交付中心</view>
......@@ -35,14 +35,62 @@
</view>
<view class="right-side">
<!-- 右侧内容 -->
<text>右侧内容</text>
<view class="home-title">客户接待</view>
<view class="start">
<glsx-image class="icon-start" src="home/icon-handshake.png" mode="scaleToFill" />
<view class="start-text">开始接待</view>
</view>
<!-- 各模块入口list -->
<view class="module-list">
<view class="module-item" v-for="item in moduleList" :key="item.id" @click="toDetail(item)">
<image
class="module-img"
:src="item.picUrl"
mode="scaleToFill"
/>
<view class="module-name">{{item.name}}</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {};
return {
moduleList: [
{
id: 1,
name: '问界交车告知书',
picUrl: '../../static/logo.png'
},
{
id: 2,
name: '商城延保价格明细',
picUrl: '../../static/logo.png'
},
{
id: 3,
name: '保修升级告知书',
picUrl: '../../static/logo.png'
},
{
id: 4,
name: '问界三包政策',
picUrl: '../../static/logo.png'
},
{
id: 5,
name: '整车质保升级政策',
picUrl: '../../static/logo.png'
},
{
id: 6,
name: '历史成交客户',
picUrl: '../../static/logo.png'
}
]
};
},
onLoad(options) {
const text = options.text;
......@@ -50,6 +98,14 @@ export default {
title: text,
});
},
methods: {
toDetail(item) {
// this.$Router.push({name:'detail'})
uni.navigateTo({
url: `../detail/detail?id=${item.id}`
})
}
},
};
</script>
<style scoped lang="scss">
......@@ -125,5 +181,51 @@ export default {
.right-side {
flex: 1;
background-color: #FFFFFF;
padding: 0 60rpx;
.home-title {
margin: 26rpx auto;
text-align: center;
}
.start {
width: 100%;
height: 196rpx;
display: flex;
justify-content: center;
align-items: center;
background-image: linear-gradient(90deg, #48A6FF 0%, #2C66F7 100%);
border-radius: 40rpx;
margin: 40rpx 0 60rpx;
.icon-start {
width: 72rpx;
height: 72rpx;
margin-right: 20rpx;
}
.start-text {
font-weight: 600;
font-size: 48rpx;
color: #FFFFFF;
line-height: 44rpx;
}
}
.module-list {
display: flex;
flex-wrap: wrap;
.module-item {
margin-right: 60rpx;
.module-img {
width: 324rpx;
height: 324rpx;
border-radius: 16rpx;
mix-blend-mode: multiply;
}
.module-name {
font-weight: 500;
font-size: 28rpx;
color: #292D33;
text-align: center;
}
}
}
}
</style>
\ No newline at end of file
import modules from './modules'
import Vue from 'vue'
import Router from '@/plugin/uni-simple-router/index.js'
/*
* @Description:
* @Author: huyue
* @Date: 2024-04-07 18:15:11
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 11:11:15
*/
// import modules from './modules'
// import Vue from 'vue'
// import Router from '@/plugin/uni-simple-router/index.js'
Vue.use(Router)
//初始化
const router = new Router({
encodeURI:true,
routes: [...modules]//路由表
});
// Vue.use(Router)
// //初始化
// const router = new Router({
// encodeURI:true,
// routes: [...modules]//路由表
// });
const whiteList = ['/pages/common/login']
//全局路由前置守卫
router.beforeEach((to, from, next) => {
next()
})
// 全局路由后置守卫
router.afterEach((to, from) => {
console.log("afterEach")
});
\ No newline at end of file
// const whiteList = ['/pages/common/login']
// //全局路由前置守卫
// router.beforeEach((to, from, next) => {
// next()
// })
// // 全局路由后置守卫
// router.afterEach((to, from) => {
// console.log("afterEach")
// });
\ No newline at end of file
const routes = [
{
path: "/pages/home/home",
name: 'home',
meta: {
title: '客户接待',
},
},
{
path: "/pages/common/login",
name: 'login',
meta: {
title: '登录',
},
},
{
path: "/pages/detail/detail",
name: 'detail',
meta: {
title: '详情',
},
},
]
export default routes
\ 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!