Compare commits
No commits in common. "def8f0cf1b71275a5958fe96e36035cd96e0ddb5" and "39b2749ac9fe7b10f25a08878bed91a09f4011ef" have entirely different histories.
def8f0cf1b
...
39b2749ac9
@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="notice">
|
<view class="notice">
|
||||||
<view v-for="(item,index) in notice" :key="index" @click="gotoInfo(index)">
|
<view v-for="(item,index) in notice" :key="index">
|
||||||
<view class="time_notice">{{ item.addtime }}</view>
|
<view class="time_notice">{{ item.addtime }}</view>
|
||||||
<view class="notice_view">
|
<view class="notice_view">
|
||||||
<image :src="item.picture" mode="aspectFill" ></image>
|
<image :src="item.picture" mode="aspectFill" ></image>
|
||||||
<view class="text_view u-line-2">{{ item.content }}</view>
|
<view class="text_view u-line-2">{{ item.content }}</view>
|
||||||
<view class="notice_list">
|
<view class="notice_list" @click="gotoInfo(index)">
|
||||||
<text>查看详情</text>
|
<text>查看详情</text>
|
||||||
<u-icon name="arrow-right" color="#666"></u-icon>
|
<u-icon name="arrow-right" color="#666"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
<image src="/static/image/common/10.png"></image>
|
<image src="/static/image/common/10.png"></image>
|
||||||
<text>输入达人名称</text>
|
<text>输入达人名称</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="list" style="margin-left:-20rpx">
|
<view class="list">
|
||||||
<darenItem style="margin-top:20rpx;margin-left:20rpx;" v-for="item in recommendList" :key="item.id" :info="item" v-on:pChangeType="changeType"></darenItem>
|
<darenItem style="margin-top:20rpx;" v-for="item in recommendList" :key="item.id" :info="item" v-on:pChangeType="changeType"></darenItem>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -76,7 +76,7 @@ export default {
|
|||||||
},
|
},
|
||||||
searchValue() {
|
searchValue() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageB/search/index?type=2'
|
url: '/pageB/search/index?type=1'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
<image src="/static/image/shop/11.png"></image>
|
<image src="/static/image/shop/11.png"></image>
|
||||||
<view>店铺信息</view>
|
<view>店铺信息</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="customers()">
|
<view @click="switchCurrent(3)">
|
||||||
<image src="/static/image/shop/12.png"></image>
|
<image src="/static/image/shop/12.png"></image>
|
||||||
<view>联系客服</view>
|
<view>联系客服</view>
|
||||||
</view>
|
</view>
|
||||||
@ -109,43 +109,6 @@ export default {
|
|||||||
// if(e.index == 0) this.show = true;
|
// if(e.index == 0) this.show = true;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
customers(){
|
|
||||||
console.log(this.$store.state.hasLogin)
|
|
||||||
if(!this.$store.state.hasLogin){
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: "请先登录",
|
|
||||||
type: 'warning'
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
function Friend(uuid, name, avatar,time = "", text = "",date = "") {
|
|
||||||
this.uuid = uuid;
|
|
||||||
this.name = name;
|
|
||||||
this.avatar = avatar;
|
|
||||||
this.online = false;
|
|
||||||
this.unReadMessage = 0;
|
|
||||||
this.text = text;
|
|
||||||
this.time = time;
|
|
||||||
this.date = date
|
|
||||||
}
|
|
||||||
console.log(123)
|
|
||||||
this.$u.api.getAtwillUserInfo({
|
|
||||||
id:this.sid
|
|
||||||
}).then((res)=>{
|
|
||||||
console.log(res)
|
|
||||||
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
|
|
||||||
this.$u.route({
|
|
||||||
url:"/pageD/privateChat/privateChat",
|
|
||||||
params:{
|
|
||||||
id:JSON.stringify(user)
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
}).catch((err)=>{
|
|
||||||
console.log(err)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
toDetailsPage(id) {
|
toDetailsPage(id) {
|
||||||
// console.log(11);
|
// console.log(11);
|
||||||
this.$u.route('pageB/photo/index', {
|
this.$u.route('pageB/photo/index', {
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
<u-navbar :is-back="false" :title-size="36" title="消息">
|
<u-navbar :is-back="false" :title-size="36" title="消息">
|
||||||
<view class="slot-wrap">
|
<view class="slot-wrap">
|
||||||
<image src="../../static/pageD/info(3).png" @click="delMessage()"></image>
|
<image src="../../static/pageD/info(3).png" @click="delMessage()"></image>
|
||||||
<image src="../../static/pageD/info(2).png" @click="kefu()"></image>
|
<image src="../../static/pageD/info(2).png"></image>
|
||||||
</view>
|
</view>
|
||||||
</u-navbar>
|
</u-navbar>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<!-- 正文内容 -->
|
<!-- 正文内容 -->
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="sousuo"></view> -->
|
<!-- <view class="sousuo"></view> -->
|
||||||
<view class="backes" style="border-bottom: 1px #ececec solid;">
|
<view class="backes">
|
||||||
<titles :information="information_dles"></titles>
|
<titles :information="information_dles"></titles>
|
||||||
</view>
|
</view>
|
||||||
<!-- 消息通知 -->
|
<!-- 消息通知 -->
|
||||||
@ -105,49 +105,6 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
kefu(){
|
|
||||||
if(!this.$store.state.hasLogin){
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: "请先登录",
|
|
||||||
type: 'warning'
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
function Friend(uuid, name, avatar,time = "", text = "",date = "") {
|
|
||||||
this.uuid = uuid;
|
|
||||||
this.name = name;
|
|
||||||
this.avatar = avatar;
|
|
||||||
this.online = false;
|
|
||||||
this.unReadMessage = 0;
|
|
||||||
this.text = text;
|
|
||||||
this.time = time;
|
|
||||||
this.date = date
|
|
||||||
}
|
|
||||||
const token = uni.getStorageSync('token');
|
|
||||||
let that = this
|
|
||||||
uni.request({
|
|
||||||
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
|
|
||||||
data:{
|
|
||||||
userId: 1
|
|
||||||
},
|
|
||||||
method:"POST",
|
|
||||||
header:{
|
|
||||||
"Authorization" : 'Bearer' + " " + token
|
|
||||||
},
|
|
||||||
success(res){
|
|
||||||
console.log(res)
|
|
||||||
res = res.data
|
|
||||||
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
|
|
||||||
that.$u.route({
|
|
||||||
url:"/pageD/privateChat/privateChat",
|
|
||||||
params:{
|
|
||||||
id:JSON.stringify(user)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
gochat(id){
|
gochat(id){
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
url:"/pageD/privateChat/privateChat",
|
url:"/pageD/privateChat/privateChat",
|
||||||
|
@ -297,8 +297,7 @@ IMService.prototype.initialIMListeners = function () {
|
|||||||
friend.text = message.type != "text" ? "其他消息" : message.payload.text
|
friend.text = message.type != "text" ? "其他消息" : message.payload.text
|
||||||
let time = new Date(message.timestamp)
|
let time = new Date(message.timestamp)
|
||||||
friend.date = message.timestamp
|
friend.date = message.timestamp
|
||||||
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
|
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
|
||||||
|
|
||||||
console.log(that.friends)
|
console.log(that.friends)
|
||||||
that.friendsarr = []
|
that.friendsarr = []
|
||||||
for(let i in that.friends){
|
for(let i in that.friends){
|
||||||
@ -323,7 +322,7 @@ IMService.prototype.initialIMListeners = function () {
|
|||||||
friend.text = message.type != "text" ? "其他消息" : message.payload.text
|
friend.text = message.type != "text" ? "其他消息" : message.payload.text
|
||||||
let time = new Date(message.timestamp)
|
let time = new Date(message.timestamp)
|
||||||
friend.date = message.timestamp
|
friend.date = message.timestamp
|
||||||
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
|
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
|
||||||
console.log(this.friends)
|
console.log(this.friends)
|
||||||
that.friendsarr = []
|
that.friendsarr = []
|
||||||
for(let i in this.friends){
|
for(let i in this.friends){
|
||||||
@ -538,9 +537,7 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
|
|||||||
friend.text = message
|
friend.text = message
|
||||||
let time = new Date()
|
let time = new Date()
|
||||||
friend.date = time.getTime()
|
friend.date = time.getTime()
|
||||||
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
|
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
|
||||||
|
|
||||||
|
|
||||||
console.log(that.friends)
|
console.log(that.friends)
|
||||||
that.friendsarr = []
|
that.friendsarr = []
|
||||||
for(let i in that.friends){
|
for(let i in that.friends){
|
||||||
@ -564,9 +561,7 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
|
|||||||
friend.text = message
|
friend.text = message
|
||||||
let time = new Date()
|
let time = new Date()
|
||||||
friend.date = time.getTime()
|
friend.date = time.getTime()
|
||||||
friend.time = (time.getHours() < 10 ? '0' + time.getHours() : time.getHours()) + ":" + (time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes()) + ":" + (time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds())
|
friend.time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
|
||||||
|
|
||||||
|
|
||||||
console.log(this.friends)
|
console.log(this.friends)
|
||||||
that.friendsarr = []
|
that.friendsarr = []
|
||||||
for(let i in this.friends){
|
for(let i in this.friends){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user