|
|
@@ -2,38 +2,39 @@
|
|
|
<view class="index">
|
|
|
<view class="head">
|
|
|
<view class="header">
|
|
|
- <view class="image">
|
|
|
- <image src="/static/login3.png" mode=""></image>
|
|
|
- </view>
|
|
|
+ <image src="/static/index/address.png" mode=""></image>
|
|
|
{{name}}
|
|
|
+ <image src="/static/index/down.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="data_box">
|
|
|
+ <view class="title">
|
|
|
+ 今日概况
|
|
|
+ <image src="/static/index/today.png" mode=""></image>
|
|
|
</view>
|
|
|
- <view class="data_box">
|
|
|
- <view class="title">
|
|
|
- 今日概况
|
|
|
+ <view class="data">
|
|
|
+ <view class="item">
|
|
|
+ <span>{{numberOrders}}</span>订单
|
|
|
</view>
|
|
|
- <view class="data">
|
|
|
- <view class="item">
|
|
|
- <span>{{num}}</span>订单
|
|
|
- </view>
|
|
|
- <view class="item">
|
|
|
- <span>{{num}}</span>权益
|
|
|
- </view>
|
|
|
- <view class="item">
|
|
|
- <span>{{num}}</span>新客
|
|
|
- </view>
|
|
|
+ <view class="item">
|
|
|
+ <span>{{income}}</span>收益
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <span>{{newCustomer}}</span>新客
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="service">
|
|
|
<view class="main">
|
|
|
<view class="scan" @click="scan">
|
|
|
- <image src="/static/avatar_boy.png" mode=""></image>扫码核销
|
|
|
+ <image src="/static/index/scan.png" mode=""></image>扫码核销
|
|
|
</view>
|
|
|
<view class="scan" @click="scanRecord">
|
|
|
- <image src="/static/avatar_boy.png" mode=""></image>核销记录
|
|
|
+ <image src="/static/index/record.png" mode=""></image>核销记录
|
|
|
</view>
|
|
|
<view class="scan">
|
|
|
- <image src="/static/avatar_boy.png" mode=""></image>售卖订单
|
|
|
+ <image src="/static/index/order.png" mode=""></image>售卖订单
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="other">
|
|
|
@@ -42,12 +43,25 @@
|
|
|
</view>
|
|
|
<view class="message">
|
|
|
<view class="title">
|
|
|
- <image src="/static/avatar_girl.png" mode=""></image> 实时消息
|
|
|
+ 实时消息
|
|
|
</view>
|
|
|
<view class="msg">
|
|
|
<view class="item" v-for="(item,index) in msg" :key="index">
|
|
|
- <span>{{item.type}}</span>
|
|
|
- {{item.msg}}
|
|
|
+ <view class="type">
|
|
|
+ <view class="img">
|
|
|
+ <image src="/static/index/deal.png" mode="" v-if="item.type=='交易信息'"></image>
|
|
|
+ <image src="/static/index/verify.png" mode="" v-if="item.type=='产品核销'"></image>
|
|
|
+ <image src="/static/index/client.png" mode="" v-if="item.type=='客户评价'"></image>
|
|
|
+ <image src="/static/index/system.png" mode="" v-if="item.type=='系统消息'"></image>
|
|
|
+ {{item.type}}
|
|
|
+ </view>
|
|
|
+ <view class="time">
|
|
|
+ {{item.time}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="details">
|
|
|
+ {{item.msg}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -62,6 +76,9 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ numberOrders: '', //订单
|
|
|
+ newCustomer: '', //新客
|
|
|
+ income: '', //收益
|
|
|
name: '滨海广场店',
|
|
|
num: 222,
|
|
|
list: [{
|
|
|
@@ -81,16 +98,24 @@
|
|
|
},
|
|
|
],
|
|
|
msg: [{
|
|
|
- type: '核销订单',
|
|
|
- msg: '全程1700公里,到家门口的时候,他说转他300块油费吧。'
|
|
|
+ type: '交易信息',
|
|
|
+ msg: '12:20 客户张先生已申请预约到店服务,预约时间12月13日 13时00分,请查收并做好相应准备。',
|
|
|
+ time: '2025-12-13 13:00:00'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: '产品核销',
|
|
|
+ msg: '12:20 客户张先生已申请预约到店服务,预约时间12月13日 13时00分,请查收并做好相应准备。',
|
|
|
+ time: '2025-12-13 13:00:00'
|
|
|
},
|
|
|
{
|
|
|
- type: '核销订单',
|
|
|
- msg: '全程1700公里,到家门口的时候,他说转他300块油费吧。'
|
|
|
+ type: '客户评价',
|
|
|
+ msg: '12:20 客户张先生已申请预约到店服务,预约时间12月13日 13时00分,请查收并做好相应准备。',
|
|
|
+ time: '2025-12-13 13:00:00'
|
|
|
},
|
|
|
{
|
|
|
- type: '核销订单',
|
|
|
- msg: '全程1700公里,到家门口的时候,他说转他300块油费吧。'
|
|
|
+ type: '系统消息',
|
|
|
+ msg: '12:20 客户张先生已申请预约到店服务,预约时间12月13日 13时00分,请查收并做好相应准备。',
|
|
|
+ time: '2025-12-13 13:00:00'
|
|
|
},
|
|
|
]
|
|
|
}
|
|
|
@@ -107,20 +132,23 @@
|
|
|
//扫码核销
|
|
|
scan() {
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/scan/scan'
|
|
|
+ url: '/pages/scan/scan'
|
|
|
})
|
|
|
},
|
|
|
- scanRecord(){
|
|
|
+ scanRecord() {
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/scan/record'
|
|
|
+ url: '/pages/scan/record'
|
|
|
})
|
|
|
},
|
|
|
- gettodayData(){
|
|
|
- this.$http.get("/merchant/app/home/todayData",{
|
|
|
- merchantId:''
|
|
|
- }).then(res=> {
|
|
|
- console.log(res)
|
|
|
- })
|
|
|
+ gettodayData() {
|
|
|
+ this.$http.get("/merchant/app/home/todayData?merchantId=" + '111', {}).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ this.income = res.data.result.income
|
|
|
+ this.newCustomer = res.data.result.newCustomer
|
|
|
+ this.numberOrders = res.data.result.numberOrders
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -131,102 +159,174 @@
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
.index {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
+ width: 100vw;
|
|
|
+ height: 94vh;
|
|
|
+ background: #F7F8FC;
|
|
|
|
|
|
.head {
|
|
|
- background: #fff;
|
|
|
+ width: 100%;
|
|
|
+ height: 272rpx;
|
|
|
+ background: linear-gradient(90deg, #E6FFFF 0%, #CEF7FF 40%, #A3CEFE 73%, #BCD6FF 100%), linear-gradient(#F7F8FC 0%, rgba(247, 248, 252, 0) 100%, );
|
|
|
padding: 20rpx;
|
|
|
|
|
|
.header {
|
|
|
width: 100%;
|
|
|
+ height: 112rpx;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ padding: 0px 24rpx;
|
|
|
+ font-size: 32rpx;
|
|
|
+ font-weight: 600;
|
|
|
|
|
|
- .image {
|
|
|
- width: 80rpx;
|
|
|
- height: 80rpx;
|
|
|
- border-radius: 50%;
|
|
|
- overflow: hidden;
|
|
|
- margin-right: 20rpx;
|
|
|
+ image {
|
|
|
+ width: 48rpx;
|
|
|
+ height: 48rpx;
|
|
|
+ margin-right: 10rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ image:nth-child(2) {
|
|
|
+ width: 24rpx;
|
|
|
+ height: 24rpx;
|
|
|
+ margin-left: 10rpx;
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+ .data_box {
|
|
|
+ width: 676rpx;
|
|
|
+ height: 196rpx;
|
|
|
+ margin: 20rpx auto;
|
|
|
+ margin-top: -141rpx;
|
|
|
+ background: linear-gradient(0, #FFFFFF 0%, #FFF4EA 100%);
|
|
|
+ box-shadow: 0px 2rpx 8rpx 0px rgba(214, 225, 237, 0.1);
|
|
|
+ border-radius: 16rpx 16rpx 16rpx 16rpx;
|
|
|
|
|
|
- .data_box {
|
|
|
- margin-top: 30rpx;
|
|
|
+ .title {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: 100%;
|
|
|
+ height: 53rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ border-bottom: 1px solid #eeeeee;
|
|
|
+ padding: 12rpx 16rpx;
|
|
|
|
|
|
- .title {
|
|
|
- margin-bottom: 30rpx;
|
|
|
+ image {
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ margin-left: 10rpx;
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .data {
|
|
|
+ .data {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ align-items: center;
|
|
|
+ padding: 20rpx 0px;
|
|
|
+
|
|
|
+ .item {
|
|
|
display: flex;
|
|
|
+ flex-direction: column;
|
|
|
justify-content: space-around;
|
|
|
align-items: center;
|
|
|
+ font-size: 24rpx;
|
|
|
+ line-height: 28rpx;
|
|
|
+ color: #999999;
|
|
|
|
|
|
- .item {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: space-around;
|
|
|
- align-items: center;
|
|
|
-
|
|
|
- span {
|
|
|
- font-weight: 600;
|
|
|
- margin-bottom: 20rpx;
|
|
|
- }
|
|
|
+ span {
|
|
|
+ color: #333;
|
|
|
+ font-size: 48rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ line-height: 56rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.service {
|
|
|
- margin-top: 24rpx;
|
|
|
- background: #fff;
|
|
|
- padding: 24rpx;
|
|
|
+ width: 676rpx;
|
|
|
+ // height: 468rpx;
|
|
|
+ background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
|
|
|
+ box-shadow: 0px 2rpx 8rpx 0px rgba(214, 225, 237, 0.1);
|
|
|
+ border-radius: 16rpx;
|
|
|
+ padding: 24rpx 18rpx;
|
|
|
+ margin: 0 auto;
|
|
|
|
|
|
.main {
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
+ margin-bottom: 40rpx;
|
|
|
|
|
|
.scan {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
+ font-size: 26rpx;
|
|
|
+ font-weight: 600;
|
|
|
|
|
|
image {
|
|
|
- width: 100rpx;
|
|
|
- height: 100rpx;
|
|
|
- margin-bottom: 20rpx;
|
|
|
+ width: 106rpx;
|
|
|
+ height: 106rpx;
|
|
|
+ margin-bottom: 4rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.message {
|
|
|
- width: 96%;
|
|
|
- padding: 20rpx;
|
|
|
+ width: 676rpx;
|
|
|
+ padding: 20rpx 16rpx;
|
|
|
margin: 20rpx auto 0px;
|
|
|
- background-color: #fff;
|
|
|
+ background: linear-gradient(0, #FFFFFF 0%, #E2EFFF 100%);
|
|
|
+ border-radius: 16rpx;
|
|
|
|
|
|
.title {
|
|
|
+ width: 100%;
|
|
|
+ height: 53rpx;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
-
|
|
|
- image {
|
|
|
- width: 40rpx;
|
|
|
- height: 40rpx;
|
|
|
- margin-right: 20rpx;
|
|
|
- }
|
|
|
+ margin-bottom: 20rpx;
|
|
|
}
|
|
|
|
|
|
.msg {
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
.item {
|
|
|
- // width: 80%;
|
|
|
+ width: 100%;
|
|
|
+ // height: 126rpx;
|
|
|
// margin: 20rpx auto;
|
|
|
- padding: 20rpx;
|
|
|
border-bottom: 1px solid #dddddd;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
|
|
|
- span {
|
|
|
- font-weight: 600;
|
|
|
+ .type {
|
|
|
+ width: 100%;
|
|
|
+ height: 38rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 8rpx;
|
|
|
+
|
|
|
+ .img {
|
|
|
+ font-size: 26rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 30rpx;
|
|
|
+ height: 30rpx;
|
|
|
+ margin-right: 8rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .time {
|
|
|
+ font-size: 22rpx;
|
|
|
+ color: #999999;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .details{
|
|
|
+ font-size: 22rpx;
|
|
|
+ color: #999999;
|
|
|
+ margin-bottom: 16rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|