12.12(添加我的模块,钱包,
117
App.vue
@@ -1,45 +1,76 @@
|
||||
<script>
|
||||
import config from './config'
|
||||
import store from '@/store'
|
||||
import { getToken } from '@/utils/auth'
|
||||
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
this.initApp()
|
||||
},
|
||||
onShow() {
|
||||
uni.hideTabBar()
|
||||
},
|
||||
methods: {
|
||||
// 初始化应用
|
||||
initApp() {
|
||||
// 初始化应用配置
|
||||
this.initConfig()
|
||||
this.getSys()
|
||||
},
|
||||
getSys() {
|
||||
uni.getSystemInfo({
|
||||
success: res => {
|
||||
this.globalData.sys = res
|
||||
}
|
||||
})
|
||||
},
|
||||
initConfig() {
|
||||
this.globalData.config = config
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
import config from './config'
|
||||
import store from '@/store'
|
||||
import { getToken } from '@/utils/auth'
|
||||
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
this.initApp()
|
||||
},
|
||||
onShow() {
|
||||
uni.hideTabBar()
|
||||
},
|
||||
methods: {
|
||||
// 初始化应用
|
||||
initApp() {
|
||||
// 初始化应用配置
|
||||
this.initConfig()
|
||||
this.getSys()
|
||||
},
|
||||
getSys() {
|
||||
uni.getSystemInfo({
|
||||
success: res => {
|
||||
this.globalData.sys = res
|
||||
}
|
||||
})
|
||||
},
|
||||
initConfig() {
|
||||
this.globalData.config = config
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import "@/uni_modules/uview-ui/index.scss";
|
||||
@import '@/static/scss/index.scss';
|
||||
@import '@/static/scss/currency.css';
|
||||
@import '@/static/font/common.css';
|
||||
page {
|
||||
background-color: #fff;
|
||||
}
|
||||
body {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
}
|
||||
@import "@/uni_modules/uview-ui/index.scss";
|
||||
@import '@/static/scss/index.scss';
|
||||
@import '@/static/scss/currency.css';
|
||||
@import '@/static/font/common.css';
|
||||
page {
|
||||
background-color: #fff;
|
||||
}
|
||||
body {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.f-jcsa {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.f-jcsb {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
}
|
||||
|
||||
.f-jc-c {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.f-a-i {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
height: `${imageSize}rpx`,
|
||||
borderRadius: `${imageRadius}rpx`
|
||||
}"
|
||||
src="@/static/images/banner/banner01.jpg" mode=""
|
||||
src="@/static/images/banner/branner_1.png" mode=""
|
||||
/>
|
||||
<view class="none-box flex-center fff" :style="{width: `${imageSize / 1.5}rpx`, height: `${imageSize / 1.5}rpx`}">
|
||||
失效
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
:fixed="true"
|
||||
:placeholder="true"
|
||||
:safeAreaInsetBottom="true"
|
||||
activeColor="#000"
|
||||
>
|
||||
<u-tabbar-item
|
||||
v-for="(item,index) in carShopList"
|
||||
|
||||
30
data/user_menu.js
Normal file
@@ -0,0 +1,30 @@
|
||||
export const carShopUserMenuList = [
|
||||
{
|
||||
text: '店铺设置',
|
||||
path: '/pages/carShop/community/community'
|
||||
}, {
|
||||
text: '车辆信息',
|
||||
path: '/pages/carShop/community/community'
|
||||
}, {
|
||||
text: '客户管理',
|
||||
path: '/pages/carShop/community/community'
|
||||
}, {
|
||||
text: '司机管理',
|
||||
path: '/pages/carShop/community/community'
|
||||
}, {
|
||||
text: '我的收藏',
|
||||
path: '/pages/carShop/community/community'
|
||||
}, {
|
||||
text: '我的足迹',
|
||||
path: '/pages/carShop/community/community'
|
||||
}, {
|
||||
text: '我的钱包',
|
||||
path: '/pages/carShop/mine/wallet/wallet'
|
||||
}, {
|
||||
text: '我的推广',
|
||||
path: '/pages/carShop/community/community'
|
||||
}, {
|
||||
text: '联系客服',
|
||||
path: '/pages/carShop/community/community'
|
||||
}
|
||||
]
|
||||
21
pages.json
@@ -102,7 +102,8 @@
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "我的",
|
||||
"enablePullDownRefresh" : false
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -110,10 +111,26 @@
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "消息",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/carShop/message/message-list",
|
||||
"style": {
|
||||
"navigationBarTitleText" : "系统消息",
|
||||
"enablePullDownRefresh" : false
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"path" : "pages/carShop/mine/wallet/wallet",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "我的钱包",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<view class="item mt-2 pz-2 px-3" v-for="(item,index) in dataList" :key="index">
|
||||
<view class="item-title flex align-center justify-between">
|
||||
<view class="item-title-car-num">{{'浙A·15JD6'}}</view>
|
||||
<view>待审核</view>
|
||||
<view style="color: red;">待审核</view>
|
||||
</view>
|
||||
<view class="item-title flex align-center justify-between">
|
||||
<view class="item-title-left">维修门店</view>
|
||||
@@ -27,18 +27,46 @@
|
||||
<view class="item-title-left">维修价格</view>
|
||||
<view class="item-title-right">¥200</view>
|
||||
</view>
|
||||
<u-line color="#EDEDED" margin="24rpx 0"></u-line>
|
||||
<u-line color="#EDEDED" margin="24rpx 0"></u-line>
|
||||
<view class="flex justify-end">
|
||||
<view class="">
|
||||
<u-button type="primary" shape="circle" text="拒绝" :plain="true" color="#999999"></u-button>
|
||||
<view class="refuse-button">
|
||||
<u-button type="primary" shape="circle" text="拒绝" :plain="true" color="#999999"
|
||||
:customStyle='{width: "112rpx",height: "56rpx",marginRight: "16rpx",fontSize: "24rpx",fontWeight: 500,}'
|
||||
@click="disposeShowFn(0)"></u-button>
|
||||
</view>
|
||||
<view>
|
||||
<u-button type="primary" shape="circle" text="处理" color="#13AFA8"></u-button>
|
||||
<view class="pass-button">
|
||||
<u-button type="primary" shape="circle" text="处理" color="#13AFA8"
|
||||
:customStyle='{width: "160rpx",height: "56rpx",marginRight: "16rpx",fontSize: "24rpx",fontWeight: 500,}'
|
||||
@click="disposeShowFn(1)"></u-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<tabbar-carshop current="/pages/carShop/maintainOrder/maintainOrder"></tabbar-carshop>
|
||||
</z-paging>
|
||||
<!-- 处理弹出层 -->
|
||||
<u-popup :show="disposeShow" @close="disposeClose" @open="disposeOpen" :round="32" closeable>
|
||||
<view class="dispose-popup">
|
||||
<view>
|
||||
<view class="dispose-popup-title">
|
||||
{{disposeType==1?"填写审核人":'审核意见'}}
|
||||
</view>
|
||||
<view v-if="disposeType==0" class="dispose-popup-input">
|
||||
<u--textarea placeholder="请输入审核意见" border="none" v-model="opinion" maxlength="-1"
|
||||
:customStyle="{backgroundColor: '#F5F5F5',paddingLeft:'15rpx'}"></u--textarea>
|
||||
</view>
|
||||
<view class="dispose-popup-input">
|
||||
<u--input placeholder="填写审批人" border="none" v-model="auditor"
|
||||
:customStyle="{backgroundColor: '#F5F5F5',height:'88rpx',paddingLeft:'15rpx'}"></u--input>
|
||||
</view>
|
||||
<view class="dispose-popup-button">
|
||||
<u-button type="primary" shape="circle" text="提交" color="#13AFA8"
|
||||
:customStyle='{height: "80rpx",marginRight: "16rpx",fontSize: "24rpx",fontWeight: 500,}'
|
||||
@click="submitFn"></u-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -53,13 +81,41 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
disposeShow: false, //处理弹出层
|
||||
disposeType: 0, //处理类型 0:拒绝 1:通过
|
||||
tabsList5,
|
||||
//订单列表
|
||||
dataList: [],
|
||||
auditor: '', //审核人
|
||||
opinion:'', //审核意见
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
//提交处理结果
|
||||
submitFn() {
|
||||
this.disposeShow = false
|
||||
if (this.disposeType == 1) {
|
||||
console.log('通过');
|
||||
} else {
|
||||
console.log('拒绝');
|
||||
}
|
||||
},
|
||||
//打开弹出层
|
||||
disposeShowFn(type) {
|
||||
this.disposeShow = true
|
||||
this.disposeType = type
|
||||
},
|
||||
//处理弹出层
|
||||
disposeOpen() {
|
||||
console.log('open');
|
||||
this.auditor = ''
|
||||
},
|
||||
disposeClose() {
|
||||
this.disposeShow = false
|
||||
console.log('close');
|
||||
},
|
||||
//订单列表
|
||||
queryList(pageNo, pageSize) {
|
||||
// 此处请求仅为演示,请替换为自己项目中的请求
|
||||
// this.$request.queryList({
|
||||
@@ -78,31 +134,65 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page{
|
||||
page {
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
.item{
|
||||
|
||||
.dispose-popup {
|
||||
width: 100%;
|
||||
padding: 64rpx 32rpx;
|
||||
.dispose-popup-title{
|
||||
font-size: 32rpx;
|
||||
font-weight: 400;
|
||||
color: #111111;
|
||||
}
|
||||
.dispose-popup-input {
|
||||
margin: 32rpx 0 32rpx 0;
|
||||
}
|
||||
|
||||
.dispose-popup-button {
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
background: #fff;
|
||||
.item-title{
|
||||
padding-bottom: 24rpx;
|
||||
|
||||
.item-title {
|
||||
margin: 16rpx 0;
|
||||
.item-title-left{
|
||||
|
||||
.item-title-left {
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #444444;
|
||||
line-height: 33rpx;
|
||||
}
|
||||
.item-title-right{
|
||||
|
||||
.item-title-right {
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #111111;
|
||||
line-height: 33rpx;
|
||||
}
|
||||
}
|
||||
.item-title-car-num{
|
||||
|
||||
.item-title-car-num {
|
||||
font-size: 38rpx;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
line-height: 45rpx;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.refuse-button {}
|
||||
|
||||
.pass-button {
|
||||
width: 160rpx;
|
||||
height: 56rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
</style>
|
||||
98
pages/carShop/message/message-list.vue
Normal file
@@ -0,0 +1,98 @@
|
||||
<!-- 系统消息页 -->
|
||||
<template>
|
||||
<view>
|
||||
<scroll-view scroll-y>
|
||||
<view class="list flex-column align-center">
|
||||
<view class="item" v-for="(item,index) in messageList" :key="index">
|
||||
<view class="time text-center f-24 c666">
|
||||
{{item.time}}
|
||||
</view>
|
||||
<view class="content-box" :style="index%2 && 'background: #F1F1F1'">
|
||||
<view class="title f-32 c111">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="content">
|
||||
<u-parse :content="item.content"></u-parse>
|
||||
</view>
|
||||
<view class="bottom-box flex align-center justify-between" @click="link(`/pages/common/textview/index?title=${item.title}&content=${item.content}`)">
|
||||
<view class="f-28 c111">
|
||||
点击查看全文
|
||||
</view>
|
||||
<image src="@/static/images/icon/arrow-right.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
messageList: [
|
||||
{
|
||||
time: '10-19 12:34',
|
||||
title: '恭喜获得#带着宠物去旅行 #红包!现金实物超多惊喜,速拆!',
|
||||
content: `<h3>恭喜获得#带着宠物去旅行 #红包!现金实物超多惊喜,速拆!</h3><img src="https://cdn.uviewui.com/uview/swiper/2.jpg" /><p>露从今夜白,月是故乡明</p>`
|
||||
},{
|
||||
time: '10-19 12:34',
|
||||
title: '恭喜获得#带着宠物去旅行 #红包!现金实物超多惊喜,速拆!',
|
||||
content: `<h3>恭喜获得#带着宠物去旅行 #红包!现金实物超多惊喜,速拆!</h3><img src="https://cdn.uviewui.com/uview/swiper/2.jpg" /><p>露从今夜白,月是故乡明</p>`
|
||||
},{
|
||||
time: '10-19 12:34',
|
||||
title: '恭喜获得#带着宠物去旅行 #红包!现金实物超多惊喜,速拆!',
|
||||
content: `<h3>恭喜获得#带着宠物去旅行 #红包!现金实物超多惊喜,速拆!</h3><img src="https://cdn.uviewui.com/uview/swiper/2.jpg" /><p>露从今夜白,月是故乡明</p>`
|
||||
},{
|
||||
time: '10-19 12:34',
|
||||
title: '恭喜获得#带着宠物去旅行 #红包!现金实物超多惊喜,速拆!',
|
||||
content: `<h3>恭喜获得#带着宠物去旅行 #红包!现金实物超多惊喜,速拆!</h3><img src="https://cdn.uviewui.com/uview/swiper/2.jpg" /><p>露从今夜白,月是故乡明</p>`
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
link(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
background: #F5F5F5;
|
||||
}
|
||||
.list {
|
||||
.item {
|
||||
.time {
|
||||
line-height: 72rpx;
|
||||
}
|
||||
.content-box {
|
||||
padding: 32rpx;
|
||||
width: 702rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 8rpx;
|
||||
.title {
|
||||
|
||||
}
|
||||
.content {
|
||||
|
||||
}
|
||||
.bottom-box {
|
||||
margin-top: 16rpx;
|
||||
padding-top: 16rpx;
|
||||
border-top: 1rpx solid #ededed;
|
||||
line-height: 40rpx;
|
||||
image {
|
||||
width: 10rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,6 +1,33 @@
|
||||
<!-- 消息页面 -->
|
||||
<template>
|
||||
<view>
|
||||
<view>消息</view>
|
||||
<view class="navbar fixed-top">
|
||||
<view :style="`height: ${$u.sys().statusBarHeight}px;`" />
|
||||
<view class="navbar-title flex align-center justify-between text-center pt-2">
|
||||
<view class="image flex-center" @click="back">
|
||||
<image class="back" src="@/static/images/icon/arrow-left.png" mode=""></image>
|
||||
</view>
|
||||
<view class="title">
|
||||
消息
|
||||
</view>
|
||||
<view class="image">
|
||||
<image class="clear" src="@/static/images/icon/clear.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view :style="{ height: $u.addUnit($u.getPx('104rpx') + $u.sys().statusBarHeight,'px')}" />
|
||||
<view class="message-item flex align-center justify-between bg-white" @click="link('./message-list')">
|
||||
<view class="left flex align-center justify-start">
|
||||
<image src="@/static/images/icon/sys_icon.png" mode=""></image>
|
||||
<text class="f-32 black">系统消息</text>
|
||||
</view>
|
||||
<view class="right flex align-center justify-end">
|
||||
<view class="bg-primary flex-center white f-22">
|
||||
1
|
||||
</view>
|
||||
<image src="@/static/images/icon/arrow-right.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
<tabbar-carshop current="/pages/carShop/message/message"></tabbar-carshop>
|
||||
</view>
|
||||
</template>
|
||||
@@ -15,10 +42,78 @@
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
back() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
link(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
padding-bottom: 16rpx;
|
||||
width: 750rpx;
|
||||
background-color: #fff;
|
||||
border-bottom: 1rpx solid #EDEDED;
|
||||
z-index: 1000;
|
||||
|
||||
.navbar-title {
|
||||
padding: 0 34rpx;
|
||||
height: 88rpx;
|
||||
font-size: 36rpx;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
line-height: 36rpx;
|
||||
|
||||
.image {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
|
||||
.back {
|
||||
width: 18rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.message-item {
|
||||
padding: 0 32rpx 0 24rpx;
|
||||
width: 750rpx;
|
||||
height: 168rpx;
|
||||
|
||||
.left {
|
||||
image {
|
||||
margin-right: 36rpx;
|
||||
width: 104rpx;
|
||||
height: 104rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
view {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
image {
|
||||
margin-left: 16rpx;
|
||||
width: 10rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,25 +1,223 @@
|
||||
<!-- 消息页面 -->
|
||||
<template>
|
||||
<view>
|
||||
<view>我的</view>
|
||||
<tabbar-carshop current="/pages/carShop/mine/mine"></tabbar-carshop>
|
||||
<view class="navbar fixed-top">
|
||||
<view :style="`height: ${$u.sys().statusBarHeight}px;`" />
|
||||
<view class="navbar-title flex align-center justify-between text-center pt-2">
|
||||
<view class="image flex-center" @click="back">
|
||||
</view>
|
||||
<view class="title">
|
||||
</view>
|
||||
<view class="image">
|
||||
<image class="clear" src="@/static/images/carshop/user/set.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view :style="{ height: $u.addUnit($u.getPx('104rpx') + $u.sys().statusBarHeight,'px')}" />
|
||||
|
||||
<!-- 正文 -->
|
||||
<view class="">
|
||||
<view class="user-header">
|
||||
<view class="user-header-image">
|
||||
<image src="../../../static/images/carshop/user/user_to.png" mode=""></image>
|
||||
<image class="user-header-image-medal" src="../../../static/images/carshop/user/medal.png" mode="">
|
||||
</image>
|
||||
</view>
|
||||
<image class="user-header-sign-in" src="../../../static/images/repair/index/maintenance_reception.png">
|
||||
</image>
|
||||
</view>
|
||||
<view class="user-header-name">浙江元通之星</view>
|
||||
</view>
|
||||
<view class="user-waist">
|
||||
<view>
|
||||
<view class="user-waist-number">423</view>
|
||||
<view class="user-waist-tit">关注</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="user-waist-number">423</view>
|
||||
<view class="user-waist-tit">粉丝</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="user-waist-number">423</view>
|
||||
<view class="user-waist-tit">积分</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="user-waist-number">423</view>
|
||||
<view class="user-waist-tit">发布</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="user-menu">
|
||||
<u-cell-group :border="false">
|
||||
<u-cell :border="false" v-for="(item,index) in carShopUserMenuList" :key="index" :title="item.text"
|
||||
:isLink="true" @click="navigatorFn(item)" :customStyle="{padding:'12rpx 0rpx'}"></u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
<!-- tabbar -->
|
||||
<tabbar-carshop current="/pages/carShop/mine/mine"></tabbar-carshop>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import tabbarCarshop from '@/components/tabbar-carshop/tabbar-carshop.vue'
|
||||
import {
|
||||
carShopUserMenuList
|
||||
} from "@/data/user_menu.js"
|
||||
export default {
|
||||
components: {
|
||||
tabbarCarshop
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
//菜单栏
|
||||
carShopUserMenuList,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
//to
|
||||
navigatorFn(item) {
|
||||
console.log(item);
|
||||
uni.navigateTo({
|
||||
url: item.path
|
||||
})
|
||||
},
|
||||
back() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
|
||||
.user-menu {
|
||||
width: calc(100% - 48rpx);
|
||||
margin: 0rpx 24rpx 24rpx 24rpx;
|
||||
background: #fff;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.user-waist {
|
||||
width: calc(100% - 48rpx);
|
||||
margin: 64rpx 24rpx 24rpx 24rpx;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
text-align: center;
|
||||
padding: 48rpx 0;
|
||||
background: #fff;
|
||||
border-radius: 8rpx;
|
||||
|
||||
.user-waist-number {
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #111111;
|
||||
}
|
||||
|
||||
.user-waist-tit {
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.user-header-name {
|
||||
margin-left: 50rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #111111;
|
||||
}
|
||||
|
||||
.user-header {
|
||||
width: 100%;
|
||||
padding: 0 24rpx 26rpx 50rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: end;
|
||||
|
||||
.user-header-sign-in {
|
||||
width: 136rpx;
|
||||
height: 56rpx;
|
||||
}
|
||||
|
||||
.user-header-image {
|
||||
width: 136rpx;
|
||||
height: 136rpx;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
|
||||
.user-header-image-medal {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
}
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navbar {
|
||||
padding-bottom: 16rpx;
|
||||
width: 750rpx;
|
||||
background-color: #F5F5F5;
|
||||
border-bottom: 1rpx solid #F5F5F5;
|
||||
z-index: 1000;
|
||||
|
||||
.navbar-title {
|
||||
padding: 0 34rpx;
|
||||
height: 88rpx;
|
||||
font-size: 36rpx;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
line-height: 36rpx;
|
||||
|
||||
.image {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
|
||||
.back {
|
||||
width: 18rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.message-item {
|
||||
padding: 0 32rpx 0 24rpx;
|
||||
width: 750rpx;
|
||||
height: 168rpx;
|
||||
|
||||
.left {
|
||||
image {
|
||||
margin-right: 36rpx;
|
||||
width: 104rpx;
|
||||
height: 104rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
view {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
image {
|
||||
margin-left: 16rpx;
|
||||
width: 10rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
213
pages/carShop/mine/wallet/wallet.vue
Normal file
@@ -0,0 +1,213 @@
|
||||
<template>
|
||||
<view>
|
||||
<u-navbar safeAreaInsetTop placeholder title="我的钱包" :autoBack="true" bgColor="rgb(237,237,237)">
|
||||
</u-navbar>
|
||||
<view class="wallet-header">
|
||||
<view class="f-a-i f-jcsb">
|
||||
<view>
|
||||
<view class="wallet-header-title">总金额(元)</view>
|
||||
<view class="wallet-header-number">
|
||||
<u--text mode="price" text="728732" size="26"></u--text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="f-a-i">
|
||||
<u-button type="primary" text="体现" color="#333333" :customStyle='buttomStyle'></u-button>
|
||||
<u-button type="primary" text="充值" color="#333333" :customStyle='buttomStyle'></u-button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="f-a-i" style="margin-top: 40rpx;">
|
||||
<view style="width: 50%;">
|
||||
<view>*可提现金额</view>
|
||||
<view class="wallet-header-can-withdraw"> <u--text mode="price" text="728732" size="20"
|
||||
color="#111"></u--text></view>
|
||||
</view>
|
||||
<view style="width: 50%;">
|
||||
<view>*可提现金额</view>
|
||||
<view class="wallet-header-can-withdraw"> <u--text mode="price" text="728732" size="20"
|
||||
color="#111"></u--text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wallet-list">
|
||||
<view class="f-a-i f-jcsb">
|
||||
<view class="wallet-list-consumption-detail">消费明细</view>
|
||||
<view class="f-a-i wallet-list-date">
|
||||
2023-06
|
||||
<image src="@/static/images/carshop/user/arrows_bott.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="f-a-i f-jcsb wallet-operation">
|
||||
<view class="f-a-i">
|
||||
<view>支出:¥1000.00</view>
|
||||
<view style="margin-left: 24rpx;">收入:¥1000.00</view>
|
||||
</view>
|
||||
<view>
|
||||
余额:¥1000.00
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<z-paging ref="paging" class="box" id="box" :fixed="false" :style="{width: '100%',height:listTop}"
|
||||
v-model="billList" @query="queryList">
|
||||
<view v-for="(item,index) in billList" :key="index" class="box-cont">
|
||||
<view class="f-a-i">
|
||||
<view class="box-list ">
|
||||
<view>
|
||||
<image v-if="index%2==0" src="@/static/images/carshop/user/harvest.png" mode=""></image>
|
||||
<image v-else src="@/static/images/carshop/user/expenditure.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="f-a-i f-jcsb box-list-title">
|
||||
<view class="">
|
||||
<view class="box-list-title-cont">购买产品</view>
|
||||
<view class="box-list-title-time">2021-06-21 12:33:00</view>
|
||||
</view>
|
||||
<view class="box-list-title-money">{{index%2==0?'+':'-'}}100</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</z-paging>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
buttomStyle: {
|
||||
width: "136rpx",
|
||||
height: "64rpx",
|
||||
fontSize: "24rpx",
|
||||
fontWeight: 500,
|
||||
borderRadius: "8rpx",
|
||||
marginLeft: "16rpx"
|
||||
},
|
||||
//列表
|
||||
billList: [],
|
||||
listTop: 0
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
//订单列表
|
||||
queryList(pageNo, pageSize) {
|
||||
// 此处请求仅为演示,请替换为自己项目中的请求
|
||||
// this.$request.queryList({
|
||||
// pageNo,
|
||||
// pageSize
|
||||
// }).then(res => {
|
||||
let arr = [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}]
|
||||
this.$refs.paging.complete(arr);
|
||||
// })
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
const query = uni.createSelectorQuery().in(this);
|
||||
query.select('#box').boundingClientRect(data => {
|
||||
console.log("得到布局位置信息" + JSON.stringify(data));
|
||||
console.log("节点离页面顶部的距离为" + data.top);
|
||||
uni.getSystemInfo({
|
||||
success: (res) => {
|
||||
this.listTop = (res.windowHeight + res.statusBarHeight - data.top) * 2 + "rpx"
|
||||
console.log('窗口的高度:', res.windowHeight, this.listTop);
|
||||
}
|
||||
});
|
||||
}).exec();
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: rgb(237,237,237);
|
||||
}
|
||||
|
||||
.box-cont {
|
||||
background-color: #fff;
|
||||
padding: 40rpx 24rpx;
|
||||
}
|
||||
|
||||
.box-list-title {
|
||||
width: calc(100% - 80rpx);
|
||||
margin-left: 16rpx;
|
||||
border-bottom: 1rpx solid #F4F4F4;
|
||||
padding-bottom: 8rpx;
|
||||
.box-list-title-time{
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
.box-list-title-money{
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
color: #111111;
|
||||
}
|
||||
.box-list-title-cont{
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
color: #111111;
|
||||
}
|
||||
}
|
||||
|
||||
.box-list {
|
||||
|
||||
image {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.wallet-list {
|
||||
background-color: #fff;
|
||||
padding: 32rpx 24rpx;
|
||||
|
||||
.wallet-list-consumption-detail {
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
color: #222222;
|
||||
}
|
||||
|
||||
.wallet-list-date {
|
||||
text-align: end;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #111111;
|
||||
|
||||
image {
|
||||
width: 26rpx;
|
||||
height: 26rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.wallet-operation {
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.wallet-header-can-withdraw {
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
|
||||
.wallet-header {
|
||||
padding: 32rpx 40rpx;
|
||||
|
||||
.wallet-header-title {
|
||||
font-size: 38rpx;
|
||||
font-weight: 400;
|
||||
color: #222222;
|
||||
}
|
||||
|
||||
.wallet-header-number {
|
||||
font-size: 52rpx;
|
||||
font-weight: 600;
|
||||
line-height: 61rpx;
|
||||
letter-spacing: 1px;
|
||||
color: #111111;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="flex-column-center">
|
||||
<image class="icon-phone" src="@/static/images/icon/phone.png" mode="widthFix" />
|
||||
<image class="icon-phone" src="@/static/images/icon/sys_icon.png" mode="widthFix" />
|
||||
<view class="text-center f-48">
|
||||
{{phonenumber}}
|
||||
</view>
|
||||
|
||||
BIN
static/images/banner/branner_1.png
Normal file
|
After Width: | Height: | Size: 321 KiB |
BIN
static/images/carshop/user/arrows_bott.png
Normal file
|
After Width: | Height: | Size: 437 B |
BIN
static/images/carshop/user/expenditure.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
static/images/carshop/user/harvest.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
static/images/carshop/user/medal.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
static/images/carshop/user/set.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
static/images/carshop/user/user_to.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |