Browse Source

修改个人中心的订单参数

master
chenlong 1 year ago
parent
commit
9adabd752f
  1. 10
      pages/ChatDetail/index.vue
  2. 8
      pages/Index/components/UserPage/index.vue

10
pages/ChatDetail/index.vue

@ -7,16 +7,16 @@
<view class="detail-container" :style="{height:windowHeihgt-40+'px'}">
<view class="detail-content-container">
<view class="detail-content" style="height: calc(100%);overflow: auto;padding-bottom: 150px;box-sizing: border-box;">
<view :class="item.send_user_id === user_id ? 'chat-item my-chat row' : 'chat-item other-chat row'" v-for="(item, index) in messageList" wx:key="index">
<view :class="item.send_user_id === user_id && type === item.type ? 'chat-item my-chat row' : 'chat-item other-chat row'" v-for="(item, index) in messageList">
<view class="chat-item-content row">
<view class="chat-avator " v-if="item.send_user_id !== user_id">
<view class="chat-avator " v-if="item.send_user_id !== user_id || type !== item.type">
<image mode="aspectFill" class="img" :src="item.avatar ? item.avatar : user.avatar" />
</view>
<view class="chat-content-container " style="max-width: calc(100% - 50px);">
<view class="chat-time">{{ item.create_time }}</view>
<view class="chat-time">{{item.user_name}} {{ item.create_time }}</view>
<view class="chat-content" style="word-break: break-all;">{{ item.info }}</view>
</view>
<view class="chat-avator " v-if="item.send_user_id === user_id">
<view class="chat-avator " v-if="item.send_user_id === user_id && type === item.type">
<image mode="aspectFill" class="img" :src="item.avatar ? item.avatar : user.avatar" />
</view>
</view>
@ -107,7 +107,7 @@
type:0,
user_id:0,
messageList:[],
title:"在线咨询"
title:"在线沟通"
},
onLoad(options) {
this.getToken(options.id, options.type ?? 1);

8
pages/Index/components/UserPage/index.vue

@ -79,11 +79,11 @@
</view>
</view>
<view class="user-button-group row">
<view class="user-button col-6" @click="orderPage(0, 1)">
<view class="user-button col-6" @click="orderPage(0, 2)">
<image class="img" :src="staticImage.baby.wait" mode="aspectFit"/>
<view class="user-title">待服务</view>
</view>
<view class="user-button col-6" @click="orderPage(2, 1)">
<view class="user-button col-6" @click="orderPage(2, 2)">
<image class="img" :src="staticImage.baby.end" mode="aspectFit"/>
<view class="user-title">已完成</view>
</view>
@ -101,11 +101,11 @@
<image class="img" :src="staticImage.bigTitle" mode="heightFix"/>
</view>
<view class="user-button-group row">
<view class="user-button col-6" @click="orderPage(0, 2)">
<view class="user-button col-6" @click="orderPage(0, 1)">
<image class="img" :src="staticImage.big.wait" mode="aspectFit"/>
<view class="user-title">待服务</view>
</view>
<view class="user-button col-6" @click="orderPage(2, 2)">
<view class="user-button col-6" @click="orderPage(2, 1)">
<image class="img" :src="staticImage.big.end" mode="aspectFit"/>
<view class="user-title">已完成</view>
</view>

Loading…
Cancel
Save