|
|
@@ -2,7 +2,7 @@
|
|
|
<view class="page">
|
|
|
<uni-nav-bar :fixed="true" background-color="#FFE05C" :border="false" :statusBar="true" title="首页" />
|
|
|
<view class="flex-row tuni ">
|
|
|
- <image class="profile" :src="userInfo.avatarUrl || '/static/index/nullAva.png'"></image>
|
|
|
+ <image class="profile" :src="userInfo.avatarUrl || '/static/ud4.png'"></image>
|
|
|
<view class="tuniMsg">
|
|
|
<view class="name ">
|
|
|
<text >{{userInfo.name}}</text>
|
|
|
@@ -12,7 +12,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex-row justify-around tuni-right ">
|
|
|
- <view class="flex-col " @click="userScanCode">
|
|
|
+ <view class="flex-col">
|
|
|
<view class="flex-row justify-center dakaIcon ">
|
|
|
<text>{{userInfo.subNumber}}</text>
|
|
|
</view>
|
|
|
@@ -20,7 +20,7 @@
|
|
|
<text>预约人数</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="flex-col " @click="userScanCode">
|
|
|
+ <view class="flex-col">
|
|
|
<view class="flex-row justify-center dakaIcon ">
|
|
|
<u-icon name="/static/index/erweima.png" size="35"></u-icon>
|
|
|
</view>
|
|
|
@@ -61,7 +61,7 @@
|
|
|
<view class="flex-row justify-center ">
|
|
|
<view class="serviceMsg " v-if="currService">
|
|
|
<view class="flex-row serviceInfo ">
|
|
|
- <image class="serviceProfile" :src="currService.avatar || '/static/logo.png'"></image>
|
|
|
+ <image class="serviceProfile" :src="currService.avatar || '/static/ud4.png'"></image>
|
|
|
<view class="flex-col justify-end serviceInfo-rigth ">
|
|
|
<view class="flex-row justify-between ">
|
|
|
<view class="flex-row">
|
|
|
@@ -115,7 +115,7 @@
|
|
|
<image class="dataNull" src="/static/index/dataNull.png"></image>
|
|
|
</view>
|
|
|
<view class="flex-row justify-center dataNullText">
|
|
|
- <text>暂无服务项目</text>
|
|
|
+ <text>暂无服务项目,请刷新页面</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -145,7 +145,7 @@
|
|
|
<view class="serviceItems ">
|
|
|
<view class="flex-col serviceTeach "
|
|
|
:class="{marginLeft28: (index+4) % 4!==0,marginTop24:index>3}" v-for="(item,index) in servicePersonList" :key="index" @click="servicePersonListIndex = index">
|
|
|
- <image class="serviceTeachImg" :src="item.facePhotoUrl ||'/static/index/nullAva.png'" :class="{vBackGround: servicePersonListIndex === index}"></image>
|
|
|
+ <image class="serviceTeachImg" :src="item.facePhotoUrl ||'/static/ud4.png'" :class="{vBackGround: servicePersonListIndex === index}"></image>
|
|
|
<view class="serviceTeachName">
|
|
|
<text>{{item.personName}}</text>
|
|
|
</view>
|
|
|
@@ -178,7 +178,7 @@
|
|
|
|
|
|
<scroll-view class="scrollY" scroll-y>
|
|
|
<view class="flex-row objectItem" :class="{'vBackGround': selectServiceObjectIndex === index}" v-for="(item,index) in selectServiceObjectList" :key="index" @click="selectServiceObjectIndex = index">
|
|
|
- <image class="objectImage" :src="item.facePhotoUrl || '/static/index/dataNull.png'"></image>
|
|
|
+ <image class="objectImage" :src="item.facePhotoUrl || '/static/ud4.png'"></image>
|
|
|
<view class="flex-col objectName ">
|
|
|
<text>{{item.nickName}}</text>
|
|
|
</view>
|
|
|
@@ -234,7 +234,7 @@
|
|
|
this.storeId = uni.getStorageSync('storeId')
|
|
|
this.storeName = uni.getStorageSync('storeName')
|
|
|
this.getUserInfo()
|
|
|
- this.currServiceInfo()
|
|
|
+ // this.currServiceInfo()
|
|
|
|
|
|
|
|
|
},
|
|
|
@@ -429,39 +429,22 @@
|
|
|
url: '/pages/scanCode/scanCode',
|
|
|
events: {
|
|
|
getScancode: function(data) {
|
|
|
-
|
|
|
- uni.getLocation({
|
|
|
- type: 'gcj02',
|
|
|
- success: (e) => {
|
|
|
- // that.qqMap.reverseGeocoder({ //根据经纬度解析地址信息
|
|
|
- // location: {
|
|
|
- // latitude: e.latitude,
|
|
|
- // longitude: e.longitude
|
|
|
- // },
|
|
|
- // })
|
|
|
- that.storeId = JSON.parse(data).storeId
|
|
|
- that.timestamp = JSON.parse(data).timestamp
|
|
|
- uni.setStorageSync('storeId', that.storeId)
|
|
|
- uni.setStorageSync('timestamp', that.timestamp)
|
|
|
- let param ={
|
|
|
- storeId:that.storeId,
|
|
|
- timestamp:that.timestamp,
|
|
|
- longitude:e.longitude,
|
|
|
- latitude:e.latitude
|
|
|
- }
|
|
|
- console.log(param)
|
|
|
- that.$api.service.clockIn(param).then(res=>{
|
|
|
- uni.showToast({
|
|
|
- icon: 'success',
|
|
|
- duration: 2000,
|
|
|
- title: '签到成功'
|
|
|
- });
|
|
|
- that.currServiceInfo()
|
|
|
- })
|
|
|
- },
|
|
|
- fail:(err) =>{
|
|
|
- console.log('++++++++++getLocation++fail+++++++++++',err)
|
|
|
- }
|
|
|
+ that.storeId = JSON.parse(data).storeId
|
|
|
+ that.timestamp = JSON.parse(data).timestamp
|
|
|
+ uni.setStorageSync('storeId', that.storeId)
|
|
|
+ uni.setStorageSync('timestamp', that.timestamp)
|
|
|
+ let param ={
|
|
|
+ storeId:that.storeId,
|
|
|
+ timestamp:that.timestamp
|
|
|
+ }
|
|
|
+ console.log(param)
|
|
|
+ that.$api.service.clockIn(param).then(res=>{
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'success',
|
|
|
+ duration: 2000,
|
|
|
+ title: '签到成功'
|
|
|
+ });
|
|
|
+ that.currServiceInfo()
|
|
|
})
|
|
|
},
|
|
|
}
|