This commit is contained in:
parent
491430b7b6
commit
2b13a9dd52
|
@ -26,5 +26,5 @@ app.$mount()
|
|||
import http from "@/request/index.js"
|
||||
Vue.prototype.http=http
|
||||
|
||||
Vue.prototype.socketUrl = "ws://61.130.44.231/webSocket"
|
||||
// Vue.prototype.socketUrl = "wss://yxx.ydool.net/webSocket"
|
||||
// Vue.prototype.socketUrl = "ws://61.130.44.231/webSocket"
|
||||
Vue.prototype.socketUrl = "wss://yxx.ydool.net/webSocket"
|
|
@ -22,7 +22,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="work_desc">
|
||||
{{detailData.text}}
|
||||
<u-parse :content="detailData.text"></u-parse>
|
||||
</view>
|
||||
<!-- 附带文件 -->
|
||||
<view class="file_box" v-for="(item,index) in list2" :key="index" @click="downLoad(item.url)">
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="work_desc">
|
||||
{{serveList.context}}
|
||||
<u-parse :content="serveList.context"></u-parse>
|
||||
</view>
|
||||
<view class="work_desc" style="margin-top: 20px;" v-for="(v,i) in img" :key="i">
|
||||
<image :src="v" mode="widthFix"
|
||||
|
|
|
@ -14,26 +14,27 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
list: [{
|
||||
imgUrl: '../../static/moreFun/moreFun5.png',
|
||||
label: '文艺活动'
|
||||
},
|
||||
{
|
||||
imgUrl: '../../static/moreFun/moreFun6.png',
|
||||
label: '积分使用'
|
||||
},
|
||||
{
|
||||
imgUrl: '../../static/moreFun/moreFun7.png',
|
||||
label: '文艺商城'
|
||||
},
|
||||
list: [
|
||||
// {
|
||||
// imgUrl: '../../static/moreFun/moreFun5.png',
|
||||
// label: '文艺活动'
|
||||
// },
|
||||
// {
|
||||
// imgUrl: '../../static/moreFun/moreFun6.png',
|
||||
// label: '积分使用'
|
||||
// },
|
||||
// {
|
||||
// imgUrl: '../../static/moreFun/moreFun7.png',
|
||||
// label: '文艺商城'
|
||||
// },
|
||||
{
|
||||
imgUrl: '../../static/moreFun/moreFun8.png',
|
||||
label: '文艺之家'
|
||||
},
|
||||
{
|
||||
imgUrl: '../../static/moreFun/moreFun9.png',
|
||||
label: '文艺援助'
|
||||
},
|
||||
// {
|
||||
// imgUrl: '../../static/moreFun/moreFun9.png',
|
||||
// label: '文艺援助'
|
||||
// },
|
||||
{
|
||||
imgUrl: '../../static/moreFun/moreFun1.png',
|
||||
label: '媒体宣传'
|
||||
|
@ -52,75 +53,76 @@
|
|||
}, {
|
||||
imgUrl: '../../static/icon13.png',
|
||||
label: '文艺比赛'
|
||||
}, {
|
||||
imgUrl: '../../static/moreFun/moreFun10.png',
|
||||
label: '点单大厅'
|
||||
},
|
||||
},
|
||||
// {
|
||||
// imgUrl: '../../static/moreFun/moreFun10.png',
|
||||
// label: '点单大厅'
|
||||
// },
|
||||
]
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
SwitchPage(id) {
|
||||
switch (id) {
|
||||
// case 0:
|
||||
// // uni.showToast({
|
||||
// // title: '功能未完善',
|
||||
// // icon: "none",
|
||||
// // });
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/ArtActivities/ArtActivities"
|
||||
// })
|
||||
// break;
|
||||
// case 1:
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/MyPoints/MyPoints"
|
||||
// })
|
||||
// break;
|
||||
// case 2:
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/shop/Shop"
|
||||
// })
|
||||
// break;
|
||||
case 0:
|
||||
// uni.showToast({
|
||||
// title: '功能未完善',
|
||||
// icon: "none",
|
||||
// });
|
||||
uni.navigateTo({
|
||||
url: "/pages/ArtActivities/ArtActivities"
|
||||
})
|
||||
break;
|
||||
case 1:
|
||||
uni.navigateTo({
|
||||
url: "/pages/MyPoints/MyPoints"
|
||||
})
|
||||
break;
|
||||
case 2:
|
||||
uni.navigateTo({
|
||||
url: "/pages/shop/Shop"
|
||||
})
|
||||
break;
|
||||
case 3:
|
||||
uni.navigateTo({
|
||||
url: "/pages/literFamily/literFamily"
|
||||
})
|
||||
break;
|
||||
// case 4:
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/literHelp/literHelp"
|
||||
// })
|
||||
// break;
|
||||
case 1:
|
||||
uni.navigateTo({
|
||||
url: "/pages/mediaProp/mediaProp"
|
||||
})
|
||||
break;
|
||||
case 2:
|
||||
uni.navigateTo({
|
||||
url: "/pages/mediaProp/mediaProp"
|
||||
})
|
||||
break;
|
||||
case 3:
|
||||
uni.navigateTo({
|
||||
url: "/pages/DataSearch/DataSearch"
|
||||
})
|
||||
break;
|
||||
case 4:
|
||||
uni.navigateTo({
|
||||
url: "/pages/literHelp/literHelp"
|
||||
url: "/pages/DataSearch/DataSearch"
|
||||
})
|
||||
break;
|
||||
case 5:
|
||||
uni.navigateTo({
|
||||
url: "/pages/mediaProp/mediaProp"
|
||||
})
|
||||
break;
|
||||
case 6:
|
||||
uni.navigateTo({
|
||||
url: "/pages/mediaProp/mediaProp"
|
||||
})
|
||||
break;
|
||||
case 7:
|
||||
uni.navigateTo({
|
||||
url: "/pages/DataSearch/DataSearch"
|
||||
})
|
||||
break;
|
||||
case 8:
|
||||
uni.navigateTo({
|
||||
url: "/pages/DataSearch/DataSearch"
|
||||
})
|
||||
break;
|
||||
case 9:
|
||||
uni.navigateTo({
|
||||
url: "/pages/ArtRace/ArtRace"
|
||||
})
|
||||
break;
|
||||
case 10:
|
||||
uni.navigateTo({
|
||||
url: "/pages/orderHall/orderHall"
|
||||
})
|
||||
break;
|
||||
// case 10:
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/orderHall/orderHall"
|
||||
// })
|
||||
// break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -152,6 +152,7 @@
|
|||
fans:'',
|
||||
care:'',
|
||||
yhsf: '',
|
||||
isUnread: false
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
|
@ -232,6 +233,25 @@
|
|||
});
|
||||
})
|
||||
},
|
||||
//未读
|
||||
getTalkList() {
|
||||
let _this = this
|
||||
this.http.request('/chat/lists', {}, "GET").then(res => {
|
||||
if (res.code == 200) {
|
||||
if(res.data.length > 0){
|
||||
res.data.forEach(function(item) {
|
||||
if(item.unread > 0)
|
||||
_this.isUnread = true
|
||||
})
|
||||
}
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
},
|
||||
//跳转积分
|
||||
gopointsPg() {
|
||||
uni.navigateTo({
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
//作品列表
|
||||
getData() {
|
||||
let _this = this
|
||||
this.http.request('/user/details', {
|
||||
this.http.request('/works/myWorks', {
|
||||
page: this.pages,
|
||||
size: this.size,
|
||||
id: this.userId,
|
||||
|
@ -179,7 +179,7 @@
|
|||
//上拉
|
||||
getMoreData() {
|
||||
const _this = this
|
||||
this.http.request('/works/list', {
|
||||
this.http.request('/works/myWorks', {
|
||||
page: this.pages,
|
||||
size: this.size,
|
||||
id: this.userId,
|
||||
|
@ -396,7 +396,8 @@
|
|||
margin-bottom: 6px;
|
||||
|
||||
.tag {
|
||||
width: 80rpx;
|
||||
// width: 80rpx;
|
||||
padding: 6rpx 10rpx;
|
||||
text-align: center;
|
||||
border: 1rpx solid #AFADB0;
|
||||
border-radius: 20px;
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
//作品列表
|
||||
getData() {
|
||||
let _this = this
|
||||
this.http.request('/user/details', {
|
||||
this.http.request('/works/list', {
|
||||
page: this.pages,
|
||||
size: this.size,
|
||||
id: this.userId,
|
||||
|
|
|
@ -122,13 +122,13 @@
|
|||
},
|
||||
{
|
||||
id: 4,
|
||||
imgUrl: '../../static/icon5.png',
|
||||
title: '积分使用'
|
||||
imgUrl: '../../static/moreFun/moreFun7.png',
|
||||
title: '文艺商城'
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
imgUrl: '../../static/icon6.png',
|
||||
title: '文艺之家'
|
||||
imgUrl: '../../static/moreFun/moreFun10.png',
|
||||
title: '点单大厅'
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
|
@ -137,8 +137,8 @@
|
|||
},
|
||||
{
|
||||
id: 7,
|
||||
imgUrl: '../../static/moreFun/moreFun10.png',
|
||||
title: '点单大厅'
|
||||
imgUrl: '../../static/icon5.png',
|
||||
title: '积分使用'
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
|
@ -297,13 +297,13 @@
|
|||
})
|
||||
break;
|
||||
case 4:
|
||||
uni.navigateTo({
|
||||
url: "/pages/MyPoints/MyPoints"
|
||||
uni.redirectTo({
|
||||
url: "/pages/shop/Shop"
|
||||
})
|
||||
break;
|
||||
case 5:
|
||||
uni.navigateTo({
|
||||
url: "/pages/literFamily/literFamily"
|
||||
url: "/pages/orderHall/orderHall"
|
||||
})
|
||||
break;
|
||||
case 6:
|
||||
|
@ -313,7 +313,7 @@
|
|||
break;
|
||||
case 7:
|
||||
uni.navigateTo({
|
||||
url: "/pages/orderHall/orderHall"
|
||||
url: "/pages/MyPoints/MyPoints"
|
||||
})
|
||||
break;
|
||||
case 8:
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</view>
|
||||
<view class="bottom">
|
||||
<view class="msg">{{chat.message.content}}</view>
|
||||
<view class="tis" v-if="chat.tisNum>0">{{chat.unread}}</view>
|
||||
<view class="tis" v-if="chat.unread>0">{{chat.unread}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -7,7 +7,7 @@ export default {
|
|||
config: {
|
||||
// baseUrl: "http://192.168.0.57:8080/h5/api", //王锡
|
||||
// baseUrl: "/pre", //俞燕红-跨域
|
||||
// baseUrl: "http://10.0.0.36:8080/h5/api", //俞燕红 s
|
||||
// baseUrl: "https://yxx.ydool.net/h5/api", //
|
||||
baseUrl: "/h5/api", //俞燕红 线上
|
||||
header: {
|
||||
'Content-Type': 'application/json;charset=UTF-8',
|
||||
|
|
Loading…
Reference in New Issue