first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
export default {
// devBaseUrl: 'http://115.159.153.142:9020/h5',
devBaseUrl: '/api',
testBaseUrl: '',
prodBaseUrl: '',
apiList: {
index: '/index', // 首页
radio: '/radio', //radio
newsDetail: '/newsDetail', // 新闻页面接口
liveDetail: '/liveDetail', //直播详情
channelComment: '/channelComment', //包河TV评论
channelList: '/channelList', //包河TV
interactDetail: '/interactDetail' ,// 用户注册接口
videoDetail: '/videoDetail',//视频页面接口
liveList: '/liveList', // 融媒直播
},
}

View File

@@ -0,0 +1,51 @@
import config from "../config";
class Http {
get(params) {
uni.showLoading({ title: '请求中..' });
return new Promise((success,error) => {
uni.request({
url: this.CheckBaseUrl()+params.url,
data: params.data,
method: 'GET',
header: Object.assign({
token: uni.getStorageSync('token')
},params.header),
success: (res) => {
success(this.ResponseCheck(res.data));
},
fail: (err) => {
console.log("6");
console.log(err);
}
});
})
}
post() {}
ResponseCheck(res) {
uni.hideLoading();
switch (res.resultCode) {
case '000':
return res.data
break;
case '500':
uni.showToast({
title: res.message,
duration: 2000
});
throw new Error(res.message);
break;
}
}
CheckBaseUrl() {
if (process.env.NODE_ENV === 'development') {
return config.devBaseUrl;
} else {
return config.prodBaseUrl;
}
}
}
export default new Http();

View File

@@ -0,0 +1,3 @@
li {
font-size: 30px;
}

View File

@@ -0,0 +1,96 @@
.apps {
margin-left: 11.5125rpx;
margin-right: 12rpx;
margin-left: 23rpx;
}
.apps .p1 {
margin-top: 49rpx;
font-size: 36rpx;
line-height: 22.5rpx;
color: #333333;
}
.apps .p2 {
margin-top: 18rpx;
font-family: PingFangSC-Medium;
font-size: 23rpx;
font-weight: normal;
font-stretch: normal;
line-height: 21.6rpx;
letter-spacing: 0rem;
color: #999999;
}
.apps .jianjie {
margin-top: 50rpx;
display: flex;
justify-content: space-between;
}
.apps .jianjie .left {
display: flex;
align-items: center;
}
.apps .jianjie .left img {
margin-right: 4.9875rpx;
width: 26rpx;
height: 27rpx;
}
.apps .jianjie .left p {
color: #999999;
font-size: 12rpx;
font-weight: normal;
font-stretch: normal;
line-height: 22.5rpx;
letter-spacing: 0rpx;
}
.apps .jianjie .right {
display: flex;
justify-content: flex-end;
align-items: center;
position: relative;
}
.apps .jianjie .right p {
font-family: PingFangSC-Medium;
font-size: 24rpx;
line-height: 14.4rpx;
letter-spacing: 0rpx;
color: #999999;
}
.apps .jianjie .right img {
margin-left: 5.5125rpx;
width: 17rpx;
height: 10rpx;
}
.apps .jianjie .right .aaa {
right: 0;
font-size: 12rpx;
color: #999999;
position: absolute;
top: 10px;
width: 80px;
}
.apps .jianjie .right .active {
display: none;
}
.apps .jianjie .right .none {
display: block !important;
}
.apps .msg {
margin-top: 38rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.apps .msg p {
font-family: PingFangSC-Medium;
font-size: 13.9875rpx;
font-weight: normal;
font-stretch: normal;
line-height: 16.8rpx;
color: #333333;
}
.apps .msg img {
width: 150rpx;
height: 56rpx;
}
/deep/ .comment .title[data-v-72477f54] {
margin-left: 15rpx;
}

View File

@@ -0,0 +1,97 @@
.apps {
margin-left: 11.5125rpx;
margin-right: 12rpx;
margin-left: 23rpx;
.p1 {
margin-top: 49rpx;
font-size: 36rpx;
line-height: 22.5rpx;
color: #333333;
}
.p2 {
margin-top: 18rpx;
font-family: PingFangSC-Medium;
font-size: 23rpx;
font-weight: normal;
font-stretch: normal;
line-height: 21.6rpx;
letter-spacing: 0rem;
color: #999999;
}
.jianjie {
margin-top: 50rpx;
display: flex;
justify-content: space-between;
.left {
display: flex;
align-items: center;
img {
margin-right: 4.9875rpx;
width: 26rpx;
height: 27rpx;
}
p {
color: #999999;
font-size: 12rpx;
font-weight: normal;
font-stretch: normal;
line-height: 22.5rpx;
letter-spacing: 0rpx;
}
}
.right {
display: flex;
justify-content: flex-end;
align-items: center;
position: relative;
p {
font-family: PingFangSC-Medium;
font-size: 24rpx;
line-height: 14.4rpx;
letter-spacing: 0rpx;
color: #999999;
}
img {
margin-left: 5.5125rpx;
width: 17rpx;
height: 10rpx;
}
.aaa {
right: 0;
font-size: 12rpx;
color: #999999;
position: absolute;
top: 10px;
width: 80px;
}
.active{
display: none;
}
.none{
display: block !important;
}
}
}
.msg {
margin-top: 38rpx;
display: flex;
justify-content: space-between;
align-items: center;
p {
font-family: PingFangSC-Medium;
font-size: 13.9875rpx;
font-weight: normal;
font-stretch: normal;
line-height: 16.8rpx;
color: #333333;
}
img {
width: 150rpx;
height: 56rpx;
}
}
}
/deep/.comment .title[data-v-72477f54]{
margin-left: 15rpx;
}

View File

@@ -0,0 +1,89 @@
import http from "../http";
import config from "../config";
export default class IndexServer {
async getIndex(data = {}, header = {}) {
return await http.get({
url: config.apiList.index,
data: data,
header: header
});
}
//radio
async radio(data = {}, header = {}) {
return await http.get({
url: config.apiList.radio,
data: data,
header: header
});
}
async interactDetail (data = {}, header = {}) {
// eslint-disable-next-line no-return-await
return await http.get({
url: config.apiList.interactDetail,
data: data,
headers: header
})
}
async videoDetail (data = {}, header = {}) {
// eslint-disable-next-line no-return-await
return await http.get({
url: config.apiList.videoDetail,
data: data,
headers: header
})
}
//直播详情
async liveDetail(data = {}, header = {}) {
return await http.get({
url: config.apiList.liveDetail,
data: data,
header: header
});
}
//包河TV评论
async channelComment(data = {}, header = {}) {
return await http.get({
url: config.apiList.channelComment,
data: data,
header: header
});
}
//包河TV
async channelList(data = {}, header = {}) {
return await http.get({
url: config.apiList.channelList,
data: data,
header: header
});
}
// 融媒直播
async liveList (data = {}, header = {}) {
return await http.get({
url: config.apiList.liveList,
data: data,
headers: header
})
}
async newsDetail (data = {}, header = {}) {
return await http.get({
url: config.apiList.newsDetail,
data: data,
headers: header
})
}
}

View File

@@ -0,0 +1,5 @@
import http from '../http'
import config from '../config'
export default class NewsService {
}

View File

@@ -0,0 +1,7 @@
import IndexServer from "./IndexServer";
import NewsService from "./NewsService";
export default {
index: new IndexServer(),
news: new NewsService()
}