Commit 08247a96 by 施宇

11

parent da07e575
......@@ -55,13 +55,13 @@ App({
if (this.globalData.auth) {
//是否登录
if (this.globalData.token) {
// wx.switchTab({
// url: '/pages/tab/home/home'
// });
wx.switchTab({
url: '/pages/tab/home/home'
});
} else {
// wx.redirectTo({
// url: '/pages/person/login/index'
// });
wx.redirectTo({
url: '/pages/person/login/index'
});
}
} else {
wx.redirectTo({
......@@ -74,7 +74,6 @@ App({
this.getImUser();
}
chat.webimListen();
this.checkIsIPhoneX();
},
......
......@@ -33,7 +33,11 @@
"pages/person/welfare/index",
"pages/form/rate/index",
"pages/detail/company/index",
"pages/person/exchange/index"
"pages/person/exchange/index",
"pages/list/rate/index",
"pages/list/ratemanage/index",
"pages/form/appeal/index",
"pages/list/signin/index"
],
"window": {
"backgroundTextStyle": "light",
......
......@@ -295,10 +295,16 @@ image {
}
.tip {
padding: 12rpx 24rpx;
padding: 0 24rpx;
height: 60rpx;
background-color: #fff6e6;
overflow: hidden;
transition: height linear .25s;
}
.tip.noheight{
height:0;
}
.tip .close-icon {
color: #d8dfe6;
}
......
......@@ -11,6 +11,10 @@ Component({
type: String,
value: msgType.chatType.SINGLE_CHAT,
},
isTopic:{
type:String,
value:""
}
},
data: {
__comps__: {
......
<view class="room_bar">
<chat-suit-emoji id="chat-suit-emoji" bind:newEmojiStr="emojiAction"></chat-suit-emoji>
<chat-suit-main id="chat-suit-main" username="{{ username }}" chatType="{{ chatType }}" bind:inputFocused="cancelEmoji">
<chat-suit-main id="chat-suit-main" username="{{ username }}" chatType="{{ chatType }}" bind:inputFocused="cancelEmoji" is-topic="{{isTopic}}">
<view class="open_emoji" bind:tap="openEmoji">
<image src="../../../images/Emoji.png" />
</view>
<view class="send_image" bind:tap="sendImage">
<view class="send_image" bind:tap="sendImage" wx:if="{{!isTopic}}">
<image src="../../../images/pic.png"/>
</view>
</chat-suit-main>
......
......@@ -26,6 +26,8 @@
height: 40rpx;
flex:0 0 40rpx;
margin-left: 24rpx;
position: relative;
top:-3rpx;
}
......
......@@ -11,6 +11,10 @@ Component({
type: String,
value: msgType.chatType.SINGLE_CHAT,
},
isTopic:{
type:String,
value:""
}
},
data: {
inputMessage: "", // render input 的值
......
......@@ -13,11 +13,11 @@
bindtap="focus"
bindfocus="focus"
bindblur="blur"
placeholder="输入新消息"
placeholder="{{isTopic?'不来点什么吗?':'输入新消息'}}"
placeholder-style="color:#CFCFCF; padding-left:5px;"
/>
<view class="send_btn" bind:tap="sendMessage">发送</view>
<view class="send_btn" bind:tap="sendMessage">{{isTopic?'发布':'发送'}}</view>
</view>
</form>
......@@ -35,7 +35,7 @@
<!-- view 换成 scroll-view效果更好 用view是为了要stopPullDownRefresh -->
<view scroll-y="true" class="{{ view }} wrap {{isIPX?'scroll_view_X': ''}}" bind:tap="onTap" scroll-into-view="{{ toView }}">
<scroll-view scroll-y="true" class="{{ view }} wrap {{isIPX?'scroll_view_X': ''}}" bind:tap="onTap" scroll-into-view="{{ toView }}">
<view class="message" wx:for="{{ chatMsg }}" wx:key="{{ item.mid }}" id="{{ item.mid }}">
<view class="{{ item.style }}">
<block wx:if="{{item.yourname == customerNum}}">
......@@ -63,5 +63,5 @@
</view>
</view>
</view>
</view>
</scroll-view>
<view style="height: 1px;"></view>
\ No newline at end of file
......@@ -28,7 +28,7 @@
.message {
height: auto;
margin: 0 24rpx 30rpx;
margin: 30rpx 24rpx 0;
position: relative;
}
......@@ -203,4 +203,4 @@
margin-top:10rpx;
position: relative;
padding-left:78rpx;
}
}
\ No newline at end of file
......@@ -3,6 +3,7 @@ let disp = require("../../../utils/broadcast");
Page({
data: {
isShowTip: true,
username: {
your: "",
},
......@@ -27,6 +28,11 @@ Page({
onUnload() {
disp.fire("em.chatroom.leave");
},
closeTip: function () {
this.setData({
isShowTip: false
})
}
});
<!--pages/detail/chat/index.wxml-->
<chat
id="chat"
username="{{ username }}"
chatType="singleChat"></chat>
<view class="chat-view {{isShowTip?'':'nopadding'}}">
<view class="tip row bothSide verCenter {{isShowTip?'':'noheight'}}">
<view class="tip-left">
<text class="icon iconfont iconiconxiantiaoshouji12 tip-icon"></text>
<text class="tip-c">如实填写申诉信息,以便客服人员进行判断!</text>
</view>
<text class="icon iconfont iconiconxiantiaoshouji13 close-icon" bindtap="closeTip"></text>
</view>
<chat id="chat" username="{{ username }}" chatType="singleChat"></chat>
</view>
\ No newline at end of file
......@@ -2,4 +2,18 @@
page{
background-color: #fff;
height:auto;
}
.chat-view{
padding-top:60rpx;
transition: all linear .25s;
}
.chat-view.nopadding{
padding-top:0;
}
.chat-view .tip{
position: fixed;
top:0;
left:0;
right:0;
z-index:999;
}
\ No newline at end of file
// pages/form/appeal/index.js
Page({
/**
* 页面的初始数据
*/
data: {
isShowTip:true
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
closeTip:function(){
this.setData({
isShowTip:false
})
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "申诉"
}
\ No newline at end of file
<!--pages/form/appeal/index.wxml-->
<view class="appeal-view">
<view class="tip row bothSide verCenter {{isShowTip?'':'noheight'}}">
<view class="tip-left">
<text class="icon iconfont iconiconxiantiaoshouji12 tip-icon"></text>
<text class="tip-c">如实填写申诉信息,以便客服人员进行判断!</text>
</view>
<text class="icon iconfont iconiconxiantiaoshouji13 close-icon" bindtap="closeTip"></text>
</view>
<view class="form-view">
<view class="h3 bold">申诉内容:</view>
<textarea placeholder="请输入申请理由,后台人员会与您取得联系。" class="textarea"></textarea>
</view>
<view class="btn-com btn-com-b appeal-btn">提交申诉</view>
</view>
\ No newline at end of file
/* pages/form/appeal/index.wxss */
.form-view {
margin-left:24rpx;
}
.form-view .h3{
color:#515559;
font-size: 28rpx;
padding:27rpx 0 0 15rpx;
}
.textarea{
width:100%;
padding:0 15rpx;
margin-top:14rpx;
box-sizing: border-box;
border-bottom:5rpx solid #D8DFE6;
font-size: 28rpx;
}
.appeal-btn{
margin-top:60rpx;
}
\ No newline at end of file
......@@ -13,7 +13,8 @@ Page({
isShowSwitch: false,
isShowTime: false,
currency: 1,
isClick: true
isClick: true,
isShowTip: true
},
formSubmit: function (e) {
let obj = e.detail.value;
......@@ -165,5 +166,10 @@ Page({
this.setData({
isShowSwitch: !this.data.isShowSwitch
})
},
closeTip: function () {
this.setData({
isShowTip: false
})
}
})
\ No newline at end of file
<!--pages/form/bj/index.wxml-->
<view class="form-view">
<view class="tip row bothSide verCenter">
<view class="tip row bothSide verCenter {{isShowTip?'':'noheight'}}">
<view class="tip-left">
<text class="icon iconfont iconiconxiantiaoshouji12 tip-icon"></text>
<text class="tip-c">请回复真实价格,否则将会影响您的排名</text>
</view>
<text class="icon iconfont iconiconxiantiaoshouji13 close-icon"></text>
<text class="icon iconfont iconiconxiantiaoshouji13 close-icon" bindtap="closeTip"></text>
</view>
<form bindsubmit="formSubmit">
<view class="form-item row verCenter">
......
......@@ -19,8 +19,8 @@ Page({
price: "",
day: "",
goodId: "",
hq:"1"
hq:"1",
isShowTip: true
},
/**
......@@ -232,5 +232,10 @@ Page({
this.setData({
isShowSwitch: !this.data.isShowSwitch
})
},
closeTip: function () {
this.setData({
isShowTip: false
})
}
})
\ No newline at end of file
<!--pages/form/good/index.wxml-->
<view class="form-view">
<view class="tip row bothSide verCenter">
<view class="tip row bothSide verCenter {{isShowTip?'':'noheight'}}">
<view class="tip-left">
<text class="icon iconfont iconiconxiantiaoshouji12 tip-icon"></text>
<text class="tip-c">批量商品上传请到<text class="pc-url">www.icsales.com</text>操作</text>
</view>
<text class="icon iconfont iconiconxiantiaoshouji13 close-icon"></text>
<text class="icon iconfont iconiconxiantiaoshouji13 close-icon" bindtap="closeTip"></text>
</view>
<view class="upload-view column verCenter">
<view class="upload column verCenter rowCenter" bindtap="uploadImg" wx:if="{{!imgUrl}}">
......
.rate-form {
padding-top: 68rpx;
padding-top: 60rpx;
}
.rate-form .tip {
height: 68rpx;
.rate-form {
position: absolute;
top: 0;
left: 0;
......
......@@ -11,7 +11,8 @@ Page({
isShowTime: false,
imgUrl: null,
currency: 1,
isClick: true
isClick: true,
isShowTip: true
},
formSubmit: function (e) {
let obj = e.detail.value;
......@@ -154,5 +155,10 @@ Page({
this.setData({
isShowSwitch: !this.data.isShowSwitch
})
},
closeTip: function () {
this.setData({
isShowTip: false
})
}
})
\ No newline at end of file
<!--pages/form/xj/index.wxml-->
<view class="form-view">
<view class="tip row bothSide verCenter">
<view class="tip row bothSide verCenter {{isShowTip?'':'noheight'}}">
<view class="tip-left">
<text class="icon iconfont iconiconxiantiaoshouji12 tip-icon"></text>
<text class="tip-c">填写完整信息,有利于提高回复报价效率</text>
</view>
<text class="icon iconfont iconiconxiantiaoshouji13 close-icon"></text>
<text class="icon iconfont iconiconxiantiaoshouji13 close-icon" bindtap="closeTip"></text>
</view>
<view class="upload-view column verCenter">
<view class="upload column verCenter rowCenter" bindtap="uploadImg" wx:if="{{!imgUrl}}">
......
// pages/list/rate/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "收到的评价"
}
\ No newline at end of file
<!--pages/list/rate/index.wxml-->
<view class="rate-list-view">
<view class="rate-list">
<view class="rate-item">
<view class="item-top row bothSide px-hr-bottom verCenter">
<view class="top-left row verCenter">
<image src="/res/images/imgs/test.jpg" class="img"></image>
<text class="name">深圳邦马特科技有限公司</text>
</view>
<view class="top-right row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji23 good-type"></text>
<text class="type good-text">好评</text>
</view>
</view>
<view class="item-center row bothSide verCenter">
<text class="num bold ellipsis">STM32F407ZGT6</text>
<text class="price bold">¥1.0120</text>
</view>
<view class="item-bottom">
我是评价内容我是评价内容我是评价内容我是评价内容我是评价内容,我是评价内容我是评价内容。
</view>
<view class="item-last row bothSide verCenter">
<view class="time">2019-05-10 10:15</view>
<view class="operation row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji7"></text>
<text class="text">删除</text>
</view>
</view>
</view>
<view class="rate-item">
<view class="item-top row bothSide px-hr-bottom verCenter">
<view class="top-left row verCenter">
<image src="/res/images/imgs/test.jpg" class="img"></image>
<text class="name">深圳邦马特科技有限公司</text>
</view>
<view class="top-right row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji29 bad-type"></text>
<text class="type bad-text">差评</text>
</view>
</view>
<view class="item-center row bothSide verCenter">
<text class="num bold ellipsis">STM32F407ZGT6</text>
<text class="price bold">¥1.0120</text>
</view>
<view class="item-bottom">
我是评价内容我是评价内容我是评价内容我是评价内容我是评价内容,我是评价内容我是评价内容。
</view>
<view class="item-last row bothSide verCenter">
<view class="time">2019-05-10 10:15</view>
<view class="operation row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji7"></text>
<text class="text">删除</text>
</view>
</view>
</view>
<view class="rate-item">
<view class="item-center row bothSide verCenter px-hr-bottom special-center">
<text class="num bold ellipsis">STM32F407ZGT6</text>
<text class="price bold">¥1.0120</text>
</view>
<view class="item-top row bothSide verCenter special-top">
<view class="top-left row verCenter">
<image src="/res/images/imgs/test.jpg" class="img"></image>
<text class="name">深圳邦马特科技有限公司</text>
</view>
<view class="top-right row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji23 good-type"></text>
<text class="type good-text">好评</text>
</view>
</view>
<view class="item-bottom">
我是评价内容我是评价内容我是评价内容我是评价内容我是评价内容,我是评价内容我是评价内容。
</view>
<view class="item-last row bothSide verCenter">
<view class="time">2019-05-10 10:15</view>
<view class="operation row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji7"></text>
<text class="text">删除</text>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
/* pages/list/rate/index.wxss */
@import '/res/css/rate.wxss'
\ No newline at end of file
// pages/list/ratemanage/index.js
Page({
/**
* 页面的初始数据
*/
data: {
tabIndex: 1
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
},
switchTab: function(e) {
let i = e.currentTarget.dataset.index;
if (i == this.data.tabIndex) {
return
} else {
this.setData({
tabIndex: i,
})
}
},
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "评价管理"
}
\ No newline at end of file
<!--pages/list/ratemanage/index.wxml-->
<view class="rate-list-view">
<view class="switch-tab-com row">
<view bindtap="switchTab" class="{{tabIndex == 1&&'active'}}" data-index="1">
<text>发布的评价</text>
<text class="active-bg"></text>
</view>
<view bindtap="switchTab" class="{{tabIndex == 2&&'active'}}" data-index="2">
<text>收到的评价</text>
<text class="active-bg"></text>
</view>
</view>
<view class="rate-list">
<view class="rate-item">
<view class="item-top row bothSide px-hr-bottom verCenter">
<view class="top-left row verCenter">
<image src="/res/images/imgs/test.jpg" class="img"></image>
<text class="name">深圳邦马特科技有限公司</text>
</view>
<view class="top-right row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji23 good-type"></text>
<text class="type good-text">好评</text>
</view>
</view>
<view class="item-center row bothSide verCenter">
<text class="num bold ellipsis">STM32F407ZGT6</text>
<text class="price bold">¥1.0120</text>
</view>
<view class="item-bottom">
我是评价内容我是评价内容我是评价内容我是评价内容我是评价内容,我是评价内容我是评价内容。
</view>
<view class="item-last row bothSide verCenter">
<view class="time">2019-05-10 10:15</view>
<view class="operation row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji7"></text>
<text class="text">删除</text>
</view>
</view>
</view>
<view class="rate-item">
<view class="item-top row bothSide px-hr-bottom verCenter">
<view class="top-left row verCenter">
<image src="/res/images/imgs/test.jpg" class="img"></image>
<text class="name">深圳邦马特科技有限公司</text>
</view>
<view class="top-right row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji29 bad-type"></text>
<text class="type bad-text">差评</text>
</view>
</view>
<view class="item-center row bothSide verCenter">
<text class="num bold ellipsis">STM32F407ZGT6</text>
<text class="price bold">¥1.0120</text>
</view>
<view class="item-bottom">
我是评价内容我是评价内容我是评价内容我是评价内容我是评价内容,我是评价内容我是评价内容。
</view>
<view class="item-last row bothSide verCenter">
<view class="time">2019-05-10 10:15</view>
<view class="operation row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji7"></text>
<text class="text">删除</text>
</view>
</view>
</view>
<view class="rate-item">
<view class="item-center row bothSide verCenter px-hr-bottom special-center">
<text class="num bold ellipsis">STM32F407ZGT6</text>
<text class="price bold">¥1.0120</text>
</view>
<view class="item-top row bothSide verCenter special-top">
<view class="top-left row verCenter">
<image src="/res/images/imgs/test.jpg" class="img"></image>
<text class="name">深圳邦马特科技有限公司</text>
</view>
<view class="top-right row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji23 good-type"></text>
<text class="type good-text">好评</text>
</view>
</view>
<view class="item-bottom">
我是评价内容我是评价内容我是评价内容我是评价内容我是评价内容,我是评价内容我是评价内容。
</view>
<view class="item-last row bothSide verCenter">
<view class="time">2019-05-10 10:15</view>
<view class="operation row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji7"></text>
<text class="text">删除</text>
</view>
</view>
</view>
</view>
</view>
/* pages/list/ratemanage/index.wxss */
@import '/res/css/rate.wxss'
\ No newline at end of file
// pages/list/signin/index.js
Page({
/**
* 页面的初始数据
*/
data: {
tabIndex:1
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
switchTab: function (e) {
let i = e.currentTarget.dataset.index;
if (i == this.data.tabIndex) {
return
} else {
this.setData({
tabIndex: i,
})
}
}
})
\ No newline at end of file
{
"navigationBarTitleText": "每日签到",
"usingComponents": {
"chat-inputbar": "/components/chat/inputbar/inputbar"
}
}
\ No newline at end of file
<!--pages/list/signin/index.wxml-->
<view class="signin-view">
<view class="today-topic">
<view class="top-line"></view>
<view class="topic-content">
<view class="content-top row bothSide verCenter">
<text class="content-title bold">“硬件重要还是软件重要”</text>
<text class="content-mask">#今日话题</text>
</view>
<view class="content-text">传说,软件工程师的工资要非常高?但是硬件工程师又如何呢?</view>
</view>
</view>
<view class="switch-tab-com row">
<view bindtap="switchTab" class="{{tabIndex == 1&&'active'}}" data-index="1">
<text>最新</text>
<text class="active-bg"></text>
</view>
<view bindtap="switchTab" class="{{tabIndex == 2&&'active'}}" data-index="2">
<text>热门</text>
<text class="active-bg"></text>
</view>
</view>
<view class="topic-list">
<view class="topic-item">
<view class="item-top row bothSide px-hr-bottom verCenter">
<view class="top-left row verCenter">
<image src="/res/images/imgs/test.jpg" class="img"></image>
<text class="name bold">深圳邦马特科技有限公司</text>
</view>
<view class="time">05-10 10:15</view>
</view>
<view class="item-center">
我是评价内容我是评价内容我是评价内容我是评价内容我是评价内容,我是评价内容我是评价内容。
</view>
<view class="item-bottom row bothSide verCenter">
<view class="up-down row verCenter">
<view class="up row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji33"></text>
<text class="num">123</text>
</view>
<view class="down row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji30"></text>
<text class="num">233</text>
</view>
</view>
<view class="more">
<text class="icon iconfont iconiconxiantiaoshouji6"></text>
</view>
</view>
</view>
<view class="topic-item">
<view class="item-top row bothSide px-hr-bottom verCenter">
<view class="top-left row verCenter">
<image src="/res/images/imgs/test.jpg" class="img"></image>
<text class="name bold">深圳邦马特科技有限公司</text>
</view>
<view class="time">05-10 10:15</view>
</view>
<view class="item-center">
我是评价内容我是评价内容我是评价内容我是评价内容我是评价内容,我是评价内容我是评价内容。
</view>
<view class="item-bottom row bothSide verCenter">
<view class="up-down row verCenter">
<view class="up row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji31 hasup"></text>
<text class="num">123</text>
</view>
<view class="down row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji32 hasdown"></text>
<text class="num">233</text>
</view>
</view>
<view class="more">
<text class="icon iconfont iconiconxiantiaoshouji6"></text>
</view>
</view>
</view>
<view class="topic-item">
<view class="item-top row bothSide px-hr-bottom verCenter">
<view class="top-left row verCenter">
<image src="/res/images/imgs/test.jpg" class="img"></image>
<text class="name bold">深圳邦马特科技有限公司</text>
</view>
<view class="time">05-10 10:15</view>
</view>
<view class="item-center">
我是评价内容我是评价内容我是评价内容我是评价内容我是评价内容,我是评价内容我是评价内容。
</view>
<view class="item-bottom row bothSide verCenter">
<view class="up-down row verCenter">
<view class="up row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji31 hasup"></text>
<text class="num">123</text>
</view>
<view class="down row verCenter">
<text class="icon iconfont iconiconxiantiaoshouji30"></text>
<text class="num">233</text>
</view>
</view>
<view class="more">
<text class="icon iconfont iconiconxiantiaoshouji6"></text>
</view>
</view>
</view>
</view>
<chat-inputbar id="topic-inputbar" is-topic="1"></chat-inputbar>
</view>
\ No newline at end of file
/* pages/list/signin/index.wxss */
.signin-view{
padding-bottom:120rpx;
}
.top-line {
height: 16rpx;
background-color: #0066a8;
border-radius: 13rpx;
margin: 0 14rpx;
position: relative;
z-index:2
}
.topic-content {
background: linear-gradient(360deg, rgba(126, 178, 246, 1) 0%, rgba(0, 133, 218, 1) 100%);
border-radius: 0 0 20rpx 20rpx;
color: #fff;
margin: 0 24rpx;
padding: 24rpx;
position: relative;
z-index: 3;
transform: translateY(-16rpx)
}
.content-top {
margin-top: 8rpx;
}
.content-title {
font-size: 32rpx;
flex: 1;
}
.content-mask {
font-size: 26rpx;
}
.content-text {
margin-top: 16rpx;
font-size: 26rpx;
}
.topic-item {
padding: 0 24rpx 24rpx;
}
.item-top {
padding: 18rpx 0;
}
.img {
height: 48rpx;
width: 48rpx;
border-radius: 50%;
}
.name {
font-size: 26rpx;
color: #515559;
margin: 0 16rpx;
flex: 1;
}
.time{
font-size: 22rpx;
color: #adb6bf;
white-space: nowrap
}
.item-center{
font-size: 26rpx;
color: #8a9299;
line-height: 40rpx;
margin-top: 24rpx;
}
.up-down{
margin-top:24rpx;
}
.up-down .icon{
margin-right:16rpx;
}
.up-down .icon,.more .icon{
font-size: 40rpx;
color:#ADB6BF;
}
.icon.hasup{
color:#0D84D1
}
.icon.hasdown{
color:#EAAD37
}
.up-down .num{
color:#8A9299;
font-size: 28rpx;
}
.up{
margin-right:65rpx;
}
\ No newline at end of file
// pages/tab/message/message.js
let disp = require("../../../utils/broadcast");
let WebIM = require("../../../utils/WebIM")["default"];
import { judgeToken } from '../../../utils/util.js';
import {
judgeToken
} from '../../../utils/util.js';
Page({
/**
......@@ -13,6 +15,7 @@ Page({
userId: "",
customer: {},
isCustomer: true,
isShowTip: true
},
/**
......@@ -23,7 +26,7 @@ Page({
let me = this;
let my = wx.getStorageSync("myUsername");
//监听未读消息数
disp.on("em.xmpp.unreadspot", function (message) {
disp.on("em.xmpp.unreadspot", function(message) {
if (getApp().globalData.customerNum != my) {
me.getCustom();
}
......@@ -33,7 +36,7 @@ Page({
});
});
}
},
getCustom: function() {
let my = wx.getStorageSync("myUsername");
......@@ -81,7 +84,7 @@ Page({
let member = wx.getStorageSync("member");
let myName = wx.getStorageSync("myUsername");
for (let i = 0; i < member.length; i++) {
if (member[i] !== getApp().globalData.customerNum){
if (member[i] !== getApp().globalData.customerNum) {
let newChatMsgs = wx.getStorageSync(member[i] + myName) || [];
let historyChatMsgs = wx.getStorageSync("rendered_" + member[i] + myName) || [];
let curChatMsgs = historyChatMsgs.concat(newChatMsgs);
......@@ -99,7 +102,7 @@ Page({
array.push(lastChatMsg);
}
}
}
}
array.sort((a, b) => {
return b.dateTimeNum - a.dateTimeNum
......@@ -260,4 +263,9 @@ Page({
fail: function(err) {}
});
},
closeTip: function() {
this.setData({
isShowTip: false
})
}
})
\ No newline at end of file
......@@ -5,12 +5,12 @@
<view class="h3 bold">暂无询价消息</view>
</view>
<view class="message-content" wx:if="{{!isCustomer||arr.length}}">
<view class="tip row bothSide verCenter">
<view class="tip row bothSide verCenter {{isShowTip?'':'noheight'}}">
<view class="tip-left">
<text class="icon iconfont iconiconxiantiaoshouji12 tip-icon"></text>
<text class="tip-c">风险提示文字风险提示文字风险提示文字风险</text>
</view>
<text class="icon iconfont iconiconxiantiaoshouji13 close-icon"></text>
<text class="icon iconfont iconiconxiantiaoshouji13 close-icon" bindtap="closeTip"></text>
</view>
<view class="message-list">
<view catchtap="into_chatRoom" data-item="{{customer}}" wx:if="{{!isCustomer}}">
......@@ -30,7 +30,7 @@
</view>
</view>
</view>
<view wx:for="{{ arr }}" wx:key="index" wx:if="{{arr}}">
<view wx:for="{{ arr }}" wx:key="index" wx:if="{{arr}}">
<swipe-delete binddeleteChatItem="deleteChatItem" data-item="{{ item }}" binddeleteChat="deleteChat">
<view class="message-item px-hr-bottom row bothSide nowrap" catchtap="into_chatRoom" data-item="{{ item }}">
<view class="message-l row ellipsis">
......
......@@ -3,7 +3,6 @@ page{
overflow: hidden
}
.message-view{
/* overflow: hidden; */
position: fixed;
top:0;
bottom:0;
......@@ -11,31 +10,6 @@ page{
right:0;
overflow: hidden;
}
.tip {
padding: 12rpx 24rpx;
background-color: #fff6e6;
}
.tip .close-icon {
color: #d8dfe6;
}
.tip .icon {
font-size: 30rpx;
}
.tip-left {
color: #eaa217;
}
.tip-left .tip-icon {
margin-right: 7rpx;
vertical-align: middle;
}
.tip-c {
font-size: 24rpx;
}
.message-item {
margin-left: 25rpx;
......
......@@ -48,7 +48,7 @@
"list": []
},
"miniprogram": {
"current": 11,
"current": 12,
"list": [
{
"id": -1,
......@@ -119,6 +119,26 @@
"pathName": "pages/person/exchange/index",
"query": "",
"scene": null
},
{
"id": 10,
"name": "pages/list/ratemanage/index",
"pathName": "pages/list/ratemanage/index",
"query": "",
"scene": null
},
{
"id": -1,
"name": "pages/form/appeal/index",
"pathName": "pages/form/appeal/index",
"query": "",
"scene": null
},
{
"id": -1,
"name": "pages/list/signin/index",
"pathName": "pages/list/signin/index",
"scene": null
}
]
}
......
.rate-item {
padding: 0 24rpx 24rpx;
}
.item-top {
padding: 18rpx 0;
}
.item-top.special-top{
padding:0;
margin-top:18rpx;
}
.img {
height: 48rpx;
width: 48rpx;
border-radius: 50%;
}
.name {
font-size: 26rpx;
color: #515559;
margin: 0 16rpx;
flex: 1;
}
.icon {
font-size: 36rpx;
}
.icon.good-type {
color: #ea1717;
}
.icon.bad-type {
color: #8a9299;
}
.type {
font-size: 28rpx;
margin-left: 12rpx;
white-space: nowrap;
}
.type.good-text {
color: #f03737;
}
.type.bad-text {
color: #686e73;
}
.item-center {
margin-top: 19rpx;
}
.item-center.special-center{
margin:0;
padding:24rpx 0;
}
.num {
color: #515559;
font-size: 32rpx;
margin-right: 10rpx;
}
.price {
color: #ea1717;
font-size: 28rpx;
}
.item-bottom {
font-size: 26rpx;
color: #8a9299;
line-height: 40rpx;
margin-top: 24rpx;
}
.item-last{
margin-top: 18rpx;
}
.time {
font-size: 22rpx;
color: #adb6bf;
}
.operation{
color:#0D84D1
}
.operation .icon{
font-size: 40rpx;
}
.operation .text{
font-size: 28rpx;
margin-left:18rpx;
}
\ No newline at end of file
No preview for this file type
......@@ -146,6 +146,18 @@ Created by iconfont
<glyph glyph-name="iconxiantiaoshouji29" unicode="&#58899;" d="M370.744889-23.324444a28.387556 28.387556 0 0 0-23.608889 3.697777c-96.597333 63.288889-213.902222 30.577778-216.405333 29.866667l-0.113778-0.028444c-15.36-4.408889-31.459556 4.835556-36.124445 20.679111-4.693333 15.843556 3.896889 32.426667 19.2 36.949333 5.632 1.991111 144.071111 41.443556 263.964445-37.034667 13.710222-8.988444 17.863111-27.534222 9.386667-41.386666a27.676444 27.676444 0 0 0-16.298667-12.743111z m155.050667 32.426666a27.989333 27.989333 0 0 0-13.624889 16.298667 30.776889 30.776889 0 0 0 18.460444 38.172444c136.362667 50.204444 260.750222-16.071111 265.585778-18.944 14.136889-7.68 19.114667-25.656889 11.064889-40.248889-7.879111-14.535111-25.514667-20.081778-39.480889-12.657777l-0.227556 0.113777c-2.076444 1.137778-107.861333 56.490667-218.567111 15.729778a28.359111 28.359111 0 0 0-23.210666 1.507556z m-145.237334 188.586667l-57.628444 57.6a27.022222 27.022222 0 0 0-5.063111 6.883555c-60.017778 78.506667-77.368889 179.086222-48.384 283.847112 33.564444 121.685333 123.989333 232.391111 225.109333 275.342222a29.155556 29.155556 0 0 0 31.573333-5.432889l6.257778-6.087111c39.054222-39.025778 67.754667-83.086222 85.902222-131.413334 69.376 21.447111 131.128889 28.558222 184.177778 21.162667a28.842667 28.842667 0 0 0 26.851556-23.04c0.341333-1.592889 0.483556-3.384889 0.568889-5.091555 7.196444-53.219556-0.170667-113.806222-22.328889-184.263112 49.635556-18.033778 94.947556-47.274667 134.940444-87.296l6.172445-6.343111c7.936-8.277333 10.040889-20.622222 5.461333-31.573333-42.979556-101.12-153.685333-191.544889-275.342222-225.109333-85.617778-23.523556-168.419556-16.384-238.677334 19.768889 1.649778-51.000889 20.48-103.992889 56.661334-159.800889a30.72 30.72 0 0 0-51.541334-33.422223c-51.996444 80.156444-73.671111 158.72-64.711111 234.24z" horiz-adv-x="1024" />
<glyph glyph-name="iconxiantiaoshouji30" unicode="&#59002;" d="M373.504 672.7168L696.32 698.112c87.2448 6.9376 166.5024-55.808 179.5328-142.976l19.456-132.48 0.0512-0.0256a136.3456 136.3456 0 0 0-34.9184-112.9728 135.8336 135.8336 0 0 0-109.7728-43.5456l-147.0208 10.24a30.7968 30.7968 0 0 1-32.8448-30.6688v-139.1104c0-13.4912-5.1968-26.0352-14.6176-35.328-9.7024-9.6768-22.272-14.9248-35.6096-14.9248a50.2784 50.2784 0 0 0-50.2528 50.2528v150.1184c0 16.128-12.4928 29.5168-28.5952 30.6688l-68.1984 4.7616V672.7168zM709.632 760.064c-6.0416 0-12.1088-0.256-18.2016-0.7168l-351.0528-27.648a30.72 30.72 0 0 1-28.288-30.6176v-437.6576a30.72 30.72 0 0 1 28.5696-30.6176l68.224-4.7872v-121.472a111.7952 111.7952 0 0 1 111.6928-111.6928 110.9504 110.9504 0 0 1 78.8736 32.768 110.0288 110.0288 0 0 1 32.7936 78.9248V212.736l114.176-7.9872a197.1968 197.1968 0 0 1 159.1552 63.1808 197.376 197.376 0 0 1 50.56 163.6352l-19.5072 132.5568c-16.896 112.9728-114.7648 195.9424-226.9952 195.9424zM230.144 291.7888l-77.0304 1.2032a9.984 9.984 0 0 0-9.728 9.9328V662.9888c0 5.376 4.352 9.8304 9.728 9.9072l77.056 1.2032v-382.3104z m30.72 444.2112h-0.4608l-108.2624-1.664A71.68 71.68 0 0 1 81.92 662.9888v-360.064a71.68 71.68 0 0 1 70.2208-71.3728l108.288-1.6896c8.192 0.256 16.1536 3.072 22.016 8.832a30.72 30.72 0 0 1 9.1648 21.888V705.28a30.72 30.72 0 0 1-30.72 30.72z" horiz-adv-x="1024" />
<glyph glyph-name="iconxiantiaoshouji31" unicode="&#59003;" d="M709.632 7.9104c-6.0416 0-12.1088 0.256-18.2016 0.7168l-351.0528 27.648a30.72 30.72 0 0 0-28.288 30.6176V504.5504a30.72 30.72 0 0 0 28.5696 30.6176l68.224 4.7872V661.4272A111.7952 111.7952 0 0 0 520.576 773.12c29.7216 0 57.7536-11.648 78.8736-32.768a110.0288 110.0288 0 0 0 32.7936-78.9248v-106.1888l114.176 7.9872a197.1968 197.1968 0 0 0 159.1552-63.1808 197.376 197.376 0 0 0 50.56-163.6352l-19.5072-132.5568c-16.896-112.9728-114.7648-195.9424-226.9952-195.9424z m-490.1888 24.064l-67.3024 1.6896A71.68 71.68 0 0 0 81.92 105.0112V465.0752a71.68 71.68 0 0 0 70.2208 71.3728l67.328 1.6896c8.192-0.256 16.1536-3.072 22.016-8.832a30.72 30.72 0 0 0 9.1648-21.888V62.72a30.72 30.72 0 0 0-30.72-30.72h-0.4864z" horiz-adv-x="1024" />
<glyph glyph-name="iconxiantiaoshouji32" unicode="&#59004;" d="M709.632 760.0896c-6.0416 0-12.1088-0.256-18.2016-0.7168l-351.0528-27.648a30.72 30.72 0 0 1-28.288-30.6176v-437.6576a30.72 30.72 0 0 1 28.5696-30.6176l68.224-4.7872v-121.472a111.7952 111.7952 0 0 1 111.6928-111.6928 110.9504 110.9504 0 0 1 78.8736 32.768 110.0288 110.0288 0 0 1 32.7936 78.9248V212.736l114.176-7.9872a197.1968 197.1968 0 0 1 159.1552 63.1808 197.376 197.376 0 0 1 50.56 163.6352l-19.5072 132.5568c-16.896 112.9728-114.7648 195.9424-226.9952 195.9424z m-490.1888-24.064l-67.3024-1.6896A71.68 71.68 0 0 1 81.92 662.9888v-360.064a71.68 71.68 0 0 1 70.2208-71.3728l67.328-1.6896c8.192 0.256 16.1536 3.072 22.016 8.832a30.72 30.72 0 0 1 9.1648 21.888V705.28a30.72 30.72 0 0 1-30.72 30.72h-0.4864z" horiz-adv-x="1024" />
<glyph glyph-name="iconxiantiaoshouji33" unicode="&#59005;" d="M373.504 95.2832l322.816-25.3952c87.2448-6.9376 166.5024 55.808 179.5328 142.976l19.456 132.48 0.0512 0.0256a136.3456 136.3456 0 0 1-34.9184 112.9728 135.8336 135.8336 0 0 1-109.7728 43.5456l-147.0208-10.24a30.7968 30.7968 0 0 0-32.8448 30.6688V661.4272c0 13.4912-5.1968 26.0352-14.6176 35.328a50.0736 50.0736 0 0 1-35.6096 14.9248c-27.7248 0-50.2528-22.528-50.2528-50.2528v-150.1184c0-16.128-12.4928-29.5168-28.5952-30.6688l-68.1984-4.7616v-380.5952z m336.128-87.3728c-6.0416 0-12.1088 0.256-18.2016 0.7168l-351.0528 27.648a30.72 30.72 0 0 0-28.288 30.6176V504.5504a30.72 30.72 0 0 0 28.5696 30.6176l68.224 4.7872V661.4272A111.7952 111.7952 0 0 0 520.576 773.12c29.7216 0 57.7536-11.648 78.8736-32.768a110.0288 110.0288 0 0 0 32.7936-78.9248v-106.1888l114.176 7.9872a197.1968 197.1968 0 0 0 159.1552-63.1808 197.376 197.376 0 0 0 50.56-163.6352l-19.5072-132.5568c-16.896-112.9728-114.7648-195.9424-226.9952-195.9424zM230.144 476.2112l-77.0304-1.2032a9.984 9.984 0 0 1-9.728-9.9328v-360.064c0-5.376 4.352-9.8304 9.728-9.9072l77.056-1.2032V476.2112z m30.72-444.2112h-0.4608l-108.2624 1.664A71.68 71.68 0 0 0 81.92 105.0112V465.0752a71.68 71.68 0 0 0 70.2208 71.3728l108.288 1.6896c8.192-0.256 16.1536-3.072 22.016-8.832a30.72 30.72 0 0 0 9.1648-21.888V62.72a30.72 30.72 0 0 0-30.72-30.72z" horiz-adv-x="1024" />
</font>
......
No preview for this file type
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment