|
@@ -3,8 +3,8 @@
|
|
<view class="navBox">
|
|
<view class="navBox">
|
|
<view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
<view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
<view class="nav">
|
|
<view class="nav">
|
|
- <view class="navLeft" @click="goBack">
|
|
|
|
- <image src="../static/img/nav_icon_back.png" mode="aspectFit" class="backImg" @click="goback"></image>
|
|
|
|
|
|
+ <view class="navLeft" >
|
|
|
|
+ <!-- <image src="../static/img/nav_icon_back.png" mode="aspectFit" class="backImg" @click="goback"></image> -->
|
|
</view>
|
|
</view>
|
|
<view class="title">询价信息</view>
|
|
<view class="title">询价信息</view>
|
|
<view class="goVin" @click="vinScanFn">车架号查询</view>
|
|
<view class="goVin" @click="vinScanFn">车架号查询</view>
|
|
@@ -13,6 +13,7 @@
|
|
<view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
<view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
<view style="height: 44px;"></view>
|
|
<view style="height: 44px;"></view>
|
|
<scroll-view class="conversations" scroll-y="true">
|
|
<scroll-view class="conversations" scroll-y="true">
|
|
|
|
+ <view @click="setClipboardData">token:{{token}}</view>
|
|
<view v-if="conversations.length > 0">
|
|
<view v-if="conversations.length > 0">
|
|
<view class="scroll-item" v-for="(conversation, key) in conversations" :key="key">
|
|
<view class="scroll-item" v-for="(conversation, key) in conversations" :key="key">
|
|
<view class="item-head">
|
|
<view class="item-head">
|
|
@@ -40,7 +41,8 @@
|
|
<text v-else-if="conversation.lastMessage.type === 'file'">[文件消息]</text>
|
|
<text v-else-if="conversation.lastMessage.type === 'file'">[文件消息]</text>
|
|
<text v-else-if="conversation.lastMessage.type === 'order'">[自定义消息:订单]</text>
|
|
<text v-else-if="conversation.lastMessage.type === 'order'">[自定义消息:订单]</text>
|
|
<text v-else-if="conversation.lastMessage.type === 'pic'">[图片消息]</text>
|
|
<text v-else-if="conversation.lastMessage.type === 'pic'">[图片消息]</text>
|
|
- <text v-else>[[未识别内容]]</text>
|
|
|
|
|
|
+ <text v-else-if="conversation.lastMessage.type === 'car'">[车辆信息]</text>
|
|
|
|
+ <text v-else>[[未识别内容]]</text>
|
|
</view>
|
|
</view>
|
|
<view class="item-info-top_content" v-else>
|
|
<view class="item-info-top_content" v-else>
|
|
<text>
|
|
<text>
|
|
@@ -91,6 +93,7 @@
|
|
},
|
|
},
|
|
onLoad(opt) {
|
|
onLoad(opt) {
|
|
this.token=opt.token
|
|
this.token=opt.token
|
|
|
|
+ uni.setStorageSync('token', this.token);
|
|
this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|
this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|
this.imLoginUrl()
|
|
this.imLoginUrl()
|
|
},
|
|
},
|
|
@@ -137,6 +140,16 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ setClipboardData(){
|
|
|
|
+ uni.setClipboardData({
|
|
|
|
+ data: this.token,
|
|
|
|
+ success: () => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '复制成功'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
imLoginUrl(){
|
|
imLoginUrl(){
|
|
this.$http('imSys/imLoginUrl', {
|
|
this.$http('imSys/imLoginUrl', {
|
|
token:this.token,
|
|
token:this.token,
|
|
@@ -377,8 +390,8 @@
|
|
|
|
|
|
.conversations .scroll-item_info .item-info-top {
|
|
.conversations .scroll-item_info .item-info-top {
|
|
padding-top: 20rpx;
|
|
padding-top: 20rpx;
|
|
- height: 60rpx;
|
|
|
|
- line-height: 60rpx;
|
|
|
|
|
|
+ /* height: 60rpx;
|
|
|
|
+ line-height: 60rpx; */
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
@@ -386,7 +399,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
.conversations .item-info-top_name {
|
|
.conversations .item-info-top_name {
|
|
- font-size: 34rpx;
|
|
|
|
|
|
+ font-size: 30rpx;
|
|
color: #262628;
|
|
color: #262628;
|
|
}
|
|
}
|
|
|
|
|