Browse Source

上传代码

master
前端-胡立永 10 months ago
parent
commit
97f1ddce6e
9 changed files with 125 additions and 45 deletions
  1. +52
    -26
      api/api.js
  2. +3
    -2
      api/http.js
  3. +0
    -0
      centerSvgIcon/1.png
  4. +6
    -0
      pages.json
  5. +24
    -8
      pages/auth/login.vue
  6. +2
    -2
      pages/index/center.vue
  7. +0
    -1
      pages/publish/actorDetail.vue
  8. +32
    -6
      pages/publish/competition.vue
  9. +6
    -0
      store/store.js

+ 52
- 26
api/api.js View File

@ -31,17 +31,20 @@ const config = {
//获取动态列表带分页
indexGetTrendsPage: {
url: '/api/index/getTrendsPage',
method: 'GET'
method: 'GET',
showLoading : true,
},
//获取动态列表带分页
//获取演员列表带分页
indexGetActorSetPage: {
url: '/api/index/getActorSetPage',
method: 'GET'
method: 'GET',
showLoading : true,
},
//获取动态详情
indexGetTrendsDetail: {
url: '/api/index/getTrendsDetail',
method: 'GET'
method: 'GET',
showLoading : true,
},
//获取投诉原因
indexGetComplaintReason: {
@ -53,10 +56,11 @@ const config = {
url: '/api/index/getWorkPage',
method: 'GET'
},
//获取投诉原因
//获取置顶列表
indexTopPayList: {
url: '/api/index/getTopPayList',
method: 'GET'
method: 'GET',
showLoading : true,
},
@ -68,14 +72,15 @@ const config = {
method: 'GET',
auth: true,
limit : 1500,
showLoading : true,
},
//发布动态
infoReleaseTrends: {
url: '/api/info/releaseTrends',
method: 'POST',
auth: true,
limit : 1000,
showLoading : true,
},
//发布演员接口
publishActor: {
@ -83,30 +88,35 @@ const config = {
method: 'POST',
auth: true,
limit : 1000,
showLoading : true,
},
//获取银行卡列表带分页
infoGetBankCardPage: {
url: '/api/info/getBankCardPage',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 获取个人认证信息
infoGetCertification: {
url: '/api/info/getCertification',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
//获取企业认证信息
infoGetCompanyCertification: {
url: '/api/info/getCompanyCertification',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 获取收益记录带分页
infoGetIncomePage: {
url: '/api/info/getIncomePage',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 获取个人信息接口
infoGetInfo: {
@ -118,67 +128,78 @@ const config = {
infoGetMyReleaseDetail: {
url: '/api/info/getMyReleaseDetail',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 获取我的发布列表
infoGetMyReleasePage: {
url: '/api/info/getMyReleasePage',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 获取推广记录详情
infoGetPromotionDetail: {
url: '/api/info/getPromotionDetail',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 确认推广
ConfirmPromotion: {
url: '/api/info/confirmPromotion',
method: 'POST',
auth: true
auth: true,
showLoading : true,
},
// 获取推广记录列表
infoGetPromotionPage: {
url: '/api/info/getPromotionPage',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 获取提现记录带分页
infoGetWithdrawPage: {
url: '/api/info/getWithdrawPage',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 个人认证提交
infoSubmitCertification: {
url: '/api/info/submitCertification',
method: 'GET',
auth: true,
auth: true,
showLoading : true,
},
// 企业认证提交
infoSubmitCompanyCertification: {
url: '/api/info/submitCompanyCertification',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 修改个人信息接口
infoUpdateInfo: {
url: '/api/info/updateInfo',
method: 'POST',
auth: true
auth: true,
showLoading : true,
},
// 用户提现
infoWithdraw: {
url: '/api/info/withdraw',
method: 'POST',
auth: true
auth: true,
showLoading : true,
},
// 获取用户平台数据
infoGetInfoMoney: {
url: '/api/info/getInfoMoney',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
@ -188,24 +209,28 @@ const config = {
loginBindPhone: {
url: '/api/login/bindPhone',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 找回密码接口
loginForget: {
url: '/api/login/forget',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 登录接口
loginLogin: {
url: '/api/login/login',
method: 'GET',
method: 'GET',
showLoading : true,
},
// 退出接口
loginLogout: {
url: '/api/login/logout',
method: 'GET',
auth: true
auth: true,
showLoading : true,
},
// 注册接口
loginRegister: {
@ -216,6 +241,7 @@ const config = {
loginSendcode: {
url: '/api/login/sendCode',
method: 'GET',
showLoading : true,
},
}


+ 3
- 2
api/http.js View File

@ -6,7 +6,7 @@ function http(uri, data, callback, method = 'GET', showLoading, title) {
if(showLoading){
uni.showLoading({
title: title || '正在提交...'
title: title || '加载中...'
});
}
@ -26,7 +26,8 @@ function http(uri, data, callback, method = 'GET', showLoading, title) {
if(res.statusCode == 401 ||
res.data.code == 401 ||
res.data.message == '操作失败,token非法无效!'){
res.data.message == '操作失败,token非法无效!' ||
res.data.message == '操作失败,用户不存在!'){
uni.removeStorageSync('token')
console.error('登录过期');
uni.navigateTo({


static/image/center/1.png → centerSvgIcon/1.png View File


+ 6
- 0
pages.json View File

@ -164,6 +164,12 @@
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "mine/updateUserInfo",
"style": {
"navigationBarTitleText": ""
}
}
]
}],


+ 24
- 8
pages/auth/login.vue View File

@ -6,18 +6,18 @@
<view class="title">
欢迎登录真视界
</view>
<view class="btn mt">
<view class="btn mt"
@click="wxLogin">
<view class="icon">
<image src="/static/image/login/wx.png" mode=""></image>
</view>
<view class=""
@click="wxLogin">
微信授权手机号登录
<view class="">
微信授权登录
</view>
</view>
<view class="btn b2">
<!-- <view class="btn b2">
使用短信验证登录
</view>
</view> -->
@ -33,20 +33,23 @@
size="30rpx"
:name="1"
></uv-checkbox>
阅读并同意我们的<text>服务协议与隐私条款</text>
阅读并同意我们的<text @click="openConfigDetail('getPrivacyPolicy')">服务协议与隐私条款</text>
</view>
<view class="">
以及<text>个人信息保护指引</text>
以及<text @click="openConfigDetail('getUserAgreement')">个人信息保护指引</text>
</view>
</view>
</uv-checkbox-group>
</view>
<configPopup ref="popup"></configPopup>
</view>
</template>
<script>
import configPopup from '@/components/config/configPopup.vue'
export default {
components : { configPopup },
data() {
return {
checkboxValue : []
@ -54,8 +57,21 @@
},
methods: {
wxLogin(){
if(!this.checkboxValue.length){
return uni.showToast({
title: '请先同意隐私协议',
icon:'none'
})
}
this.$store.commit('login')
},
//
openConfigDetail(key){
this.$refs.popup.open(key)
}
}
}
</script>


+ 2
- 2
pages/index/center.vue View File

@ -53,7 +53,7 @@
<uv-grid-item v-for="(item,index) in baseList" :key="index" @click="goToPage(item)">
<img :src="item.imageUrl" :alt="item.title"
:style="{ width: '60rpx', height: '60rpx',marginBottom: '10rpx'}" />
<text style="font-size: 30rpx;color: #333333;">{{ item.title }}
<text style="font-size: 28rpx;color: #333333;">{{ item.title }}
</text>
</uv-grid-item>
</uv-grid>
@ -69,7 +69,7 @@
<uv-grid-item v-for="(item,index) in otherList" :key="index" @click="goToPage(item)">
<img :src="item.imageUrl" :alt="item.title"
:style="{ width: '60rpx', height: '60rpx',marginBottom: '10rpx'}" />
<text style="font-size: 30rpx;color: #333333;">{{ item.title }}
<text style="font-size: 28rpx;color: #333333;">{{ item.title }}
</text>
</uv-grid-item>
</uv-grid>


+ 0
- 1
pages/publish/actorDetail.vue View File

@ -53,7 +53,6 @@
v-for="(t, index) in item.isImage && item.isImage.split(',')"
:key="index">
<view class="item-image">
<!-- <v :src="t" mode=""></v> -->
<video src="t"/>
</view>
</view>


+ 32
- 6
pages/publish/competition.vue View File

@ -53,22 +53,22 @@
</view>
<view class="content">
<view class="image">
<image src="" mode=""></image>
<image :src="item.image" mode=""></image>
</view>
<view class="text">
<view class="title">
作品名称
{{ item.title }}
</view>
<view class="actor">
<view class="headImage">
<image src="" mode=""></image>
</view>
<view class="username">
发布人小飞作品名称作品名称作品名称作品名称
发布人{{ item.createBy }}
</view>
</view>
<view class="createTime">
发布时间2024-03-03
发布时间{{ item.createTime }}
</view>
</view>
</view>
@ -98,11 +98,37 @@
export default {
data() {
return {
list : []
list : [],
total : 0,
queryParams: {
pageNo: 1,
pageSize: 10
},
}
},
onLoad() {
// this.$route.query
this.getList()
},
//
onReachBottom() {
if(this.queryParams.pageSize < this.total){
this.queryParams.pageSize += 10
this.getList()
}
},
methods: {
getList(){
this.$api('indexGetGetWorkPage', {
token : uni.getStorageSync('token'),
...this.queryParams
}, res => {
if(res.code == 200){
this.list = res.result.records
this.total = res.result.total
}
})
}
}
}
</script>


+ 6
- 0
store/store.js View File

@ -29,6 +29,9 @@ const store = new Vuex.Store({
})
},
login(state){
uni.showLoading({
title: '登录中...'
})
uni.login({
success(res) {
if(res.errMsg != "login:ok"){
@ -38,6 +41,9 @@ const store = new Vuex.Store({
api('loginLogin', {
code : res.code
}, res => {
uni.hideLoading()
if(res.code != 200){
return
}


Loading…
Cancel
Save