|
|
@@ -1,4 +1,4 @@
|
|
|
-<template>
|
|
|
+·<template>
|
|
|
<view class="page">
|
|
|
<uni-nav-bar :fixed="true" background-color="#FFE05C" :border="false" :statusBar="true" title="首页" />
|
|
|
<view class="flex-row tuni ">
|
|
|
@@ -133,10 +133,18 @@
|
|
|
<text class="value">{{currService.serviceProject}}</text>
|
|
|
</view>
|
|
|
<view class="flex-row">
|
|
|
- <u-icon name="/static/index/tel.png" size="20"></u-icon>
|
|
|
+ <u-icon name="/static/index/tel.png" size="18"></u-icon>
|
|
|
<text class="key">手机尾号:</text>
|
|
|
<text class="value">{{currService.phone.substring(7,11)}}</text>
|
|
|
</view>
|
|
|
+ <view class="flex-row" >
|
|
|
+ <u-icon name="/static/index/quanyika.png" size="16"></u-icon>
|
|
|
+ <text class="key">权益卡:</text>
|
|
|
+ <template v-if="currService.cardList && currService.cardList.length">
|
|
|
+ <text class="biaoqian" v-for="(card,index) in currService.cardList" :key="index">{{card.title}}</text>
|
|
|
+ </template>
|
|
|
+ <text class="value" v-else>无</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="flex-row justify-center">
|
|
|
<view class="imgs">
|
|
|
@@ -181,11 +189,11 @@
|
|
|
<view class="reminderTitle">
|
|
|
<text>保存用户喜好</text>
|
|
|
</view>
|
|
|
- <view class="textareaView flex-row justify-center ">
|
|
|
+ <view class="textareaView flex-row justify-center">
|
|
|
<textarea class="textarea" v-model="content" placeholder-style="color:#999999;fontSize:28rpx"
|
|
|
placeholder="请输入用户喜好" />
|
|
|
</view>
|
|
|
- <view class="flex-row justify-around" :style="{'marginTop':'20rpx'}">
|
|
|
+ <view class="flex-row justify-around " :style="{'marginTop':'20rpx'}">
|
|
|
<view class="cancelButton " @click="closeReminderPopup">
|
|
|
<text>取消</text>
|
|
|
</view>
|
|
|
@@ -623,7 +631,6 @@
|
|
|
storeId: this.userInfo.workStoreId
|
|
|
}).then(res => {
|
|
|
if (e) {
|
|
|
- console.log(res.data.data)
|
|
|
if (res.data.data === null) {
|
|
|
uni.showModal({
|
|
|
title: '温馨提示',
|
|
|
@@ -640,7 +647,12 @@
|
|
|
}
|
|
|
uni.hideLoading();
|
|
|
this.currService = res.data.data
|
|
|
+ console.log('当前服务对象============》', this.currService)
|
|
|
this.setButtomState(this.currService)
|
|
|
+ if (!this.currService){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.equityCard(this.currService)
|
|
|
this.currService.avatar = this.currService.avatar.replace(/^http:/, "https:")
|
|
|
}).catch(err => {
|
|
|
uni.hideLoading();
|
|
|
@@ -650,6 +662,21 @@
|
|
|
|
|
|
},
|
|
|
|
|
|
+ //查询是否是有权益卡的服务对象
|
|
|
+ equityCard(data) {
|
|
|
+ if (!data || !data.serviceObjectId){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$api.service.equityCard({
|
|
|
+ serviceObjectId: data.serviceObjectId,
|
|
|
+ memberId: data.userId
|
|
|
+ }).then(res => {
|
|
|
+ // data.cardList = res.data.data
|
|
|
+ this.$set(data,'cardList',res.data.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
setButtomState(currService) {
|
|
|
if (currService) {
|
|
|
if (currService.status == 12) {
|
|
|
@@ -725,4 +752,4 @@
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
@import './index.rpx.css';
|
|
|
-</style>
|
|
|
+</style>
|