|
@@ -1,53 +1,89 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="page">
|
|
<view class="page">
|
|
|
<uni-nav-bar :fixed="true" background-color="#FFE05C" :border="false" :statusBar="true" title="首页" />
|
|
<uni-nav-bar :fixed="true" background-color="#FFE05C" :border="false" :statusBar="true" title="首页" />
|
|
|
- <view class="flex-row tuni">
|
|
|
|
|
|
|
+ <view class="flex-row tuni ">
|
|
|
<image class="profile" :src="userInfo.avatar || '/static/logo.png'"></image>
|
|
<image class="profile" :src="userInfo.avatar || '/static/logo.png'"></image>
|
|
|
- <view class="tuniMsg flex-col">
|
|
|
|
|
- <text class="name">{{userInfo.nickName}}</text>
|
|
|
|
|
- <view class="flex-row dizi">
|
|
|
|
|
- <u-icon name="/static/index/dizi.png" size="18"></u-icon>
|
|
|
|
|
- <text>{{storeName || '请先报道打卡'}}</text>
|
|
|
|
|
|
|
+ <view class="tuniMsg">
|
|
|
|
|
+ <view class="name ">
|
|
|
|
|
+ <text >{{userInfo.nickName}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <text class="biaoqian ">高级技师</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="flex-col " @click="userScanCode">
|
|
|
|
|
- <view class="flex-row justify-center dakaIcon">
|
|
|
|
|
- <u-icon name="/static/index/saoma.png" size="25"></u-icon>
|
|
|
|
|
|
|
+ <view class="flex-row justify-around tuni-right ">
|
|
|
|
|
+ <view class="flex-col " @click="userScanCode">
|
|
|
|
|
+ <view class="flex-row justify-center dakaIcon ">
|
|
|
|
|
+ <text>12</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="flex-row justify-center dakaText ">
|
|
|
|
|
+ <text>预约人数</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="flex-col " @click="userScanCode">
|
|
|
|
|
+ <view class="flex-row justify-center dakaIcon ">
|
|
|
|
|
+ <u-icon name="/static/index/erweima.png" size="35"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="flex-row justify-center dakaText ">
|
|
|
|
|
+ <text>拓客二维码</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="flex-row justify-center dakaText">
|
|
|
|
|
- <text>报道打卡</text>
|
|
|
|
|
|
|
+ <view class="flex-col " @click="userScanCode">
|
|
|
|
|
+ <view class="flex-row justify-center dakaIcon ">
|
|
|
|
|
+ <u-icon name="/static/index/saoma.png" size="25"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="flex-row justify-center dakaText ">
|
|
|
|
|
+ <text>报道打卡</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <view class="tab flex-row">
|
|
|
|
|
- <view class="tabs" :class="{selectTabs: tabIndex === 0}" @click="clickTab(0)">
|
|
|
|
|
- <text>服务中</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="tabs" :class="{selectTabs: tabIndex === 1}" @click="clickTab(1)">
|
|
|
|
|
- <text>待服务</text>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="flex-row justify-around buttons">
|
|
|
|
|
+ <view class="buttonItem" @click="call" v-if="currService.callState=='2'">
|
|
|
|
|
+ <text>叫号</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="buttonItem" @click="next" v-else>
|
|
|
|
|
+ <text>下一位</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="buttonItem" @click="takePlace">
|
|
|
|
|
+ <text>已就位</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="buttonItem" @click="settle">
|
|
|
|
|
+ <text>结算</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="buttonItem" @click="addService">
|
|
|
|
|
+ <text>添加服务</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view v-if="tabIndex === 0" class="flex-row justify-center">
|
|
|
|
|
|
|
+ <view class="flex-row justify-center ">
|
|
|
<view class="serviceMsg " v-if="currService">
|
|
<view class="serviceMsg " v-if="currService">
|
|
|
<view class="flex-row serviceInfo ">
|
|
<view class="flex-row serviceInfo ">
|
|
|
<image class="serviceProfile" :src="currService.avatar || '/static/logo.png'"></image>
|
|
<image class="serviceProfile" :src="currService.avatar || '/static/logo.png'"></image>
|
|
|
- <view class="flex-col justify-end">
|
|
|
|
|
- <view class="flex-row">
|
|
|
|
|
- <text class="servicename">{{currService.serviceObjectName}}</text>
|
|
|
|
|
- <view class="flex-row justify-center tag" @click="openSelectServiceObjectPopup">
|
|
|
|
|
- <text>切换</text>
|
|
|
|
|
- <u-icon name="/static/index/qiehuan.png" size="18"></u-icon>
|
|
|
|
|
|
|
+ <view class="flex-col justify-end serviceInfo-rigth ">
|
|
|
|
|
+ <view class="flex-row justify-between ">
|
|
|
|
|
+ <view class="flex-row">
|
|
|
|
|
+ <view class="flex-col justify-center ">
|
|
|
|
|
+ <text class="servicename">张辉</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="flex-col justify-center ">
|
|
|
|
|
+ <text class="biaoqian">会员用户</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <view class="flex-col justify-center ">
|
|
|
|
|
+ <view class="flex-row justify-center tag" @click="openSelectServiceObjectPopup">
|
|
|
|
|
+ <text>切换</text>
|
|
|
|
|
+ <u-icon name="/static/index/qiehuan.png" size="18"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view :style="{'height':'110rpx'}"></view>
|
|
|
|
|
- <view class="flex-row justify-center " v-if="!currService.balanceFlag">
|
|
|
|
|
|
|
+ <view :style="{'height':'120rpx'}"></view>
|
|
|
|
|
+ <view class="flex-row justify-center" v-if="!currService.balanceFlag">
|
|
|
<view class="flex-row hintView">
|
|
<view class="flex-row hintView">
|
|
|
<view class="hint">
|
|
<view class="hint">
|
|
|
<text>!</text>
|
|
<text>!</text>
|
|
@@ -57,117 +93,21 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="flex-col ">
|
|
|
|
|
- <view class="flex-row justify-center itemViewOut " v-for="(item,index) in currService.childList" :key="index">
|
|
|
|
|
- <view class="flex-col itemView " >
|
|
|
|
|
- <view class="flex-row justify-between item">
|
|
|
|
|
- <view class="flex-row">
|
|
|
|
|
- <u-icon name="/static/index/jiandao.png" size="20"></u-icon>
|
|
|
|
|
- <text class="key">服务项目:</text>
|
|
|
|
|
- <text class="value">{{item.serviceProject}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row statusDesc" :class="item.status ?'statusDesc':'statusDesc1'">
|
|
|
|
|
- <text>{{item.statusDesc}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row item">
|
|
|
|
|
- <u-icon name="/static/index/riqi.png" size="20"></u-icon>
|
|
|
|
|
- <text class="key">服务日期:</text>
|
|
|
|
|
- <text class="value">{{item.serviceDate}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row item">
|
|
|
|
|
- <view class="flex-row">
|
|
|
|
|
- <u-icon name="/static/index/aixin.png" size="20"></u-icon>
|
|
|
|
|
- <text class="key">服务人员:</text>
|
|
|
|
|
- <text class="value">{{item.serviceUserName}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="flex-row item">
|
|
|
|
|
- <view class="flex-row">
|
|
|
|
|
- <u-icon name="/static/index/shiduan.png" size="20"></u-icon>
|
|
|
|
|
- <text class="key">服务时段:</text>
|
|
|
|
|
- <text class="value">{{item.time}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row leftBord">
|
|
|
|
|
- <text class="key">服务费用:</text>
|
|
|
|
|
- <text class="value2">¥{{item.serviceFee}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="flex-row justify-center ">
|
|
|
|
|
+ <view class="imgs">
|
|
|
|
|
+ <view class="mmImgView" :class="{floatRight: (index+1) % 2==0,marginTop:index>1}" v-for="(i,index) in 5" :key="index">
|
|
|
|
|
+ <image class="mmImg" mode="widthFix" src="/static/mn1.webp"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <view class="flex-col itemView">
|
|
|
|
|
- <view class="flex-row justify-between">
|
|
|
|
|
|
|
|
|
|
- <view class="flex-col justify-center">
|
|
|
|
|
- <view class="flex-row">
|
|
|
|
|
- <text class="key1">服务总金额:</text>
|
|
|
|
|
- <text class="value1">¥{{currService.serviceFee}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row justify-center tag1" v-if="currService.status == 1" @click="settle">
|
|
|
|
|
- <u-icon name="/static/index/qianbao.png" size="18"></u-icon>
|
|
|
|
|
- <text>去结算</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="flex-row justify-center">
|
|
<view class="flex-row justify-center">
|
|
|
- <view class="flex-row justify-around grid">
|
|
|
|
|
- <view @click="connect">
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <u-icon name="/static/index/jiaojieban.png" size="40"></u-icon>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <text class="grid-text">服务交接</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view @click="addService">
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <u-icon name="/static/index/jiandao.png" size="40"></u-icon>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <text class="grid-text">添加服务</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view @click="call" v-if="currService.State=='2'">
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <u-icon name="/static/index/naba.png" size="40"></u-icon>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <text class="grid-text">叫 号</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view @click="next" v-else>
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <u-icon name="/static/index/xiayige.png" size="40"></u-icon>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <text class="grid-text">下一位</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view @click="takePlace">
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <u-icon name="/static/index/yijiuwei.png" size="40"></u-icon>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row justify-center">
|
|
|
|
|
- <text class="grid-text">已就位</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="like">
|
|
|
|
|
+ <text>用户爱好用户爱好用户爱好用户爱好用户爱好用户爱好用户爱好用户爱好用户爱好用户爱好用户爱好</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <view class="flex-row justify-center start" @click="start" v-if="currService.status == 1">
|
|
|
|
|
- <text>开始服务</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="flex-row justify-center start" @click="end" v-if="currService.status == 6">
|
|
|
|
|
- <text>结束服务</text>
|
|
|
|
|
- </view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="flex-col" :style="{'height':sysHeight}" v-else>
|
|
<view class="flex-col" :style="{'height':sysHeight}" v-else>
|
|
@@ -179,10 +119,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-if="tabIndex === 1" :style="{'height':sysHeight}">
|
|
|
|
|
- <mescroll-item :i="0" :index="0" :height="sysHeight">
|
|
|
|
|
- </mescroll-item>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<uni-popup ref="addServicePopup" @change="popupChange" type="bottom">
|
|
<uni-popup ref="addServicePopup" @change="popupChange" type="bottom">
|
|
|
<view class="addService">
|
|
<view class="addService">
|