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: { indexGetTrendsPage: {
url: '/api/index/getTrendsPage', url: '/api/index/getTrendsPage',
method: 'GET'
method: 'GET',
showLoading : true,
}, },
//获取动态列表带分页
//获取演员列表带分页
indexGetActorSetPage: { indexGetActorSetPage: {
url: '/api/index/getActorSetPage', url: '/api/index/getActorSetPage',
method: 'GET'
method: 'GET',
showLoading : true,
}, },
//获取动态详情 //获取动态详情
indexGetTrendsDetail: { indexGetTrendsDetail: {
url: '/api/index/getTrendsDetail', url: '/api/index/getTrendsDetail',
method: 'GET'
method: 'GET',
showLoading : true,
}, },
//获取投诉原因 //获取投诉原因
indexGetComplaintReason: { indexGetComplaintReason: {
@ -53,10 +56,11 @@ const config = {
url: '/api/index/getWorkPage', url: '/api/index/getWorkPage',
method: 'GET' method: 'GET'
}, },
//获取投诉原因
//获取置顶列表
indexTopPayList: { indexTopPayList: {
url: '/api/index/getTopPayList', url: '/api/index/getTopPayList',
method: 'GET'
method: 'GET',
showLoading : true,
}, },
@ -68,14 +72,15 @@ const config = {
method: 'GET', method: 'GET',
auth: true, auth: true,
limit : 1500, limit : 1500,
showLoading : true,
}, },
//发布动态 //发布动态
infoReleaseTrends: { infoReleaseTrends: {
url: '/api/info/releaseTrends', url: '/api/info/releaseTrends',
method: 'POST', method: 'POST',
auth: true, auth: true,
limit : 1000, limit : 1000,
showLoading : true,
}, },
//发布演员接口 //发布演员接口
publishActor: { publishActor: {
@ -83,30 +88,35 @@ const config = {
method: 'POST', method: 'POST',
auth: true, auth: true,
limit : 1000, limit : 1000,
showLoading : true,
}, },
//获取银行卡列表带分页 //获取银行卡列表带分页
infoGetBankCardPage: { infoGetBankCardPage: {
url: '/api/info/getBankCardPage', url: '/api/info/getBankCardPage',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 获取个人认证信息 // 获取个人认证信息
infoGetCertification: { infoGetCertification: {
url: '/api/info/getCertification', url: '/api/info/getCertification',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
//获取企业认证信息 //获取企业认证信息
infoGetCompanyCertification: { infoGetCompanyCertification: {
url: '/api/info/getCompanyCertification', url: '/api/info/getCompanyCertification',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 获取收益记录带分页 // 获取收益记录带分页
infoGetIncomePage: { infoGetIncomePage: {
url: '/api/info/getIncomePage', url: '/api/info/getIncomePage',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 获取个人信息接口 // 获取个人信息接口
infoGetInfo: { infoGetInfo: {
@ -118,67 +128,78 @@ const config = {
infoGetMyReleaseDetail: { infoGetMyReleaseDetail: {
url: '/api/info/getMyReleaseDetail', url: '/api/info/getMyReleaseDetail',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 获取我的发布列表 // 获取我的发布列表
infoGetMyReleasePage: { infoGetMyReleasePage: {
url: '/api/info/getMyReleasePage', url: '/api/info/getMyReleasePage',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 获取推广记录详情 // 获取推广记录详情
infoGetPromotionDetail: { infoGetPromotionDetail: {
url: '/api/info/getPromotionDetail', url: '/api/info/getPromotionDetail',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 确认推广 // 确认推广
ConfirmPromotion: { ConfirmPromotion: {
url: '/api/info/confirmPromotion', url: '/api/info/confirmPromotion',
method: 'POST', method: 'POST',
auth: true
auth: true,
showLoading : true,
}, },
// 获取推广记录列表 // 获取推广记录列表
infoGetPromotionPage: { infoGetPromotionPage: {
url: '/api/info/getPromotionPage', url: '/api/info/getPromotionPage',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 获取提现记录带分页 // 获取提现记录带分页
infoGetWithdrawPage: { infoGetWithdrawPage: {
url: '/api/info/getWithdrawPage', url: '/api/info/getWithdrawPage',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 个人认证提交 // 个人认证提交
infoSubmitCertification: { infoSubmitCertification: {
url: '/api/info/submitCertification', url: '/api/info/submitCertification',
method: 'GET', method: 'GET',
auth: true,
auth: true,
showLoading : true,
}, },
// 企业认证提交 // 企业认证提交
infoSubmitCompanyCertification: { infoSubmitCompanyCertification: {
url: '/api/info/submitCompanyCertification', url: '/api/info/submitCompanyCertification',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 修改个人信息接口 // 修改个人信息接口
infoUpdateInfo: { infoUpdateInfo: {
url: '/api/info/updateInfo', url: '/api/info/updateInfo',
method: 'POST', method: 'POST',
auth: true
auth: true,
showLoading : true,
}, },
// 用户提现 // 用户提现
infoWithdraw: { infoWithdraw: {
url: '/api/info/withdraw', url: '/api/info/withdraw',
method: 'POST', method: 'POST',
auth: true
auth: true,
showLoading : true,
}, },
// 获取用户平台数据 // 获取用户平台数据
infoGetInfoMoney: { infoGetInfoMoney: {
url: '/api/info/getInfoMoney', url: '/api/info/getInfoMoney',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
@ -188,24 +209,28 @@ const config = {
loginBindPhone: { loginBindPhone: {
url: '/api/login/bindPhone', url: '/api/login/bindPhone',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 找回密码接口 // 找回密码接口
loginForget: { loginForget: {
url: '/api/login/forget', url: '/api/login/forget',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 登录接口 // 登录接口
loginLogin: { loginLogin: {
url: '/api/login/login', url: '/api/login/login',
method: 'GET',
method: 'GET',
showLoading : true,
}, },
// 退出接口 // 退出接口
loginLogout: { loginLogout: {
url: '/api/login/logout', url: '/api/login/logout',
method: 'GET', method: 'GET',
auth: true
auth: true,
showLoading : true,
}, },
// 注册接口 // 注册接口
loginRegister: { loginRegister: {
@ -216,6 +241,7 @@ const config = {
loginSendcode: { loginSendcode: {
url: '/api/login/sendCode', url: '/api/login/sendCode',
method: 'GET', 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){ if(showLoading){
uni.showLoading({ uni.showLoading({
title: title || '正在提交...'
title: title || '加载中...'
}); });
} }
@ -26,7 +26,8 @@ function http(uri, data, callback, method = 'GET', showLoading, title) {
if(res.statusCode == 401 || if(res.statusCode == 401 ||
res.data.code == 401 || res.data.code == 401 ||
res.data.message == '操作失败,token非法无效!'){
res.data.message == '操作失败,token非法无效!' ||
res.data.message == '操作失败,用户不存在!'){
uni.removeStorageSync('token') uni.removeStorageSync('token')
console.error('登录过期'); console.error('登录过期');
uni.navigateTo({ uni.navigateTo({


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


+ 6
- 0
pages.json View File

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


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

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


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

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


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

@ -53,22 +53,22 @@
</view> </view>
<view class="content"> <view class="content">
<view class="image"> <view class="image">
<image src="" mode=""></image>
<image :src="item.image" mode=""></image>
</view> </view>
<view class="text"> <view class="text">
<view class="title"> <view class="title">
作品名称
{{ item.title }}
</view> </view>
<view class="actor"> <view class="actor">
<view class="headImage"> <view class="headImage">
<image src="" mode=""></image> <image src="" mode=""></image>
</view> </view>
<view class="username"> <view class="username">
发布人小飞作品名称作品名称作品名称作品名称
发布人{{ item.createBy }}
</view> </view>
</view> </view>
<view class="createTime"> <view class="createTime">
发布时间2024-03-03
发布时间{{ item.createTime }}
</view> </view>
</view> </view>
</view> </view>
@ -98,11 +98,37 @@
export default { export default {
data() { data() {
return { 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: { 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> </script>


+ 6
- 0
store/store.js View File

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


Loading…
Cancel
Save