This commit is contained in:
YeMingfei666 2024-12-21 18:25:27 +08:00
commit 24b7eae649
34 changed files with 780 additions and 782 deletions

View File

@ -2,8 +2,8 @@
"name" : "斯耀短剧",
"appid" : "__UNI__E0B05B1",
"description" : "",
"versionName" : "1.0.7",
"versionCode" : 107,
"versionName" : "1.0.8",
"versionCode" : 108,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -20,8 +20,8 @@
</text>
</view>
<view class="list">
<scroll-view @scrolltolower="scrolltolower" :refresher-enabled="refresherTriggered"
@scrolltoupper="scrolltoupper" scroll-y="true"
<scroll-view @scrollToLower="scrollToLower" :refresher-enabled="refresherTriggered"
@scrollToUpper="scrollToUpper" scroll-y="true"
style="width: 100%;height: 100%;background-color: #ffffff;padding-bottom: 30rpx;">
<view class="list-item flex align-center justify-center" v-for="(item,index) in list" :key="index">
<view class="list-item-box flex align-center justify-between">
@ -80,7 +80,7 @@
},
onShow() {
this.getAmount()
this.getList()
this.getUserBalanceList()
},
onPullDownRefresh() {
this.getAmount()
@ -93,7 +93,7 @@
getAmount() {
this.$Request.getT('app/moneyDetails/selectUserMoney').then(res => {
uni.stopPullDownRefresh()
if (res.code == 0) {
if (res.code === 0) {
this.amount = res.data.amount || 0
} else {
this.amount = '0.00'
@ -106,7 +106,7 @@
}
this.$Request.getT('app/cash/withdraw', params).then(res => {
console.log(res)
if (res.code == 0) {
if (res.code === 0) {
// this.amount = res.data.amount
} else {
// this.amount = '0.00'
@ -120,7 +120,7 @@
/**
* 获取余额明细
*/
getList() {
getUserBalanceList() {
let data = {
page: this.page,
limit: this.limit
@ -129,14 +129,14 @@
setTimeout(() => {
this.refresherTriggered = false
}, 1500)
if (res.code == 0) {
if (res.code === 0) {
this.pages = res.data.pages
if (this.page < this.pages) {
this.status = 'loadmore'
} else {
this.status = 'nomore'
}
if (this.page == 1) {
if (this.page === 1) {
this.list = res.data.records
} else {
this.list = [...this.list, ...res.data.records]
@ -150,17 +150,17 @@
})
},
//
scrolltoupper() {
scrollToUpper() {
this.page = 1
this.refresherTriggered = true
this.getList()
this.getUserBalanceList()
},
//
scrolltolower() {
scrollToLower() {
if (this.page < this.pages) {
this.status = 'loading'
this.page += 1
this.getList()
this.getUserBalanceList()
} else {
this.status = 'nomore'
}

View File

@ -47,8 +47,8 @@
limit: this.limit,
}
this.$u.api.collectList(data).then(res => {
if(res.code == 0) {
if( this.page == 1) {
if(res.code === 0) {
if( this.page === 1) {
this.collectList = res.data.records
uni.stopPullDownRefresh();
return

View File

@ -69,13 +69,13 @@
limit: this.limit,
}
this.$u.api.selectCourse(data).then(res => {
if (res.code == 0) {
if (res.code === 0) {
res.data.list.forEach(ret => {
if (ret.avatar) {
ret.avatar = ret.avatar.split(',')
}
})
if (this.page == 1) {
if (this.page === 1) {
this.courseList = res.data.list
uni.stopPullDownRefresh();
return

View File

@ -5,7 +5,7 @@
<swiper-item class="swipers-item" v-for="(item,index) in swiperList" :key="item.courseDetailsId">
<view class="swipers-items" v-if="current == index">
<!-- 视频 -->
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" object-fit="contain"
<video :show-fullscreen-btn="false" @controlstoggle="controlStoggles" object-fit="contain"
v-if="current === index && item.videoUrl" :play-strategy="2" :show-loading="true"
codec="software" :muted="false" :show-center-play-btn="true" :loop="true" @ended="ended"
@timeupdate="timeupdate" @play="videoPlay('myVideo'+item.courseDetailsId, item.courseDetailsId)"
@ -46,7 +46,7 @@
</view>
</view>
<view class="swipers-items-right-item" v-if="isCollect">
<view class="swipers-items-right-item-img" @click.stop="shoucang()">
<view class="swipers-items-right-item-img" @click.stop="collectVideo()">
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
mode=""></image>
</view>
@ -57,7 +57,7 @@
</view>
</view>
<view class="swipers-items-right-item" v-else>
<view class="swipers-items-right-item-img" @click.stop="shoucang()">
<view class="swipers-items-right-item-img" @click.stop="collectVideo()">
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian.png"
mode=""></image>
</view>
@ -188,7 +188,7 @@
<text class="popuppay-title-l">
购买后继续观看
</text>
<image @click="closePopusPay()" class="popuppay-title-r"
<image @click="closePopupPay()" class="popuppay-title-r"
src="../../static/images/me/closeIconss.png" mode=""></image>
</view>
<!-- 余额 -->
@ -390,7 +390,6 @@
}
},
onShow() {
console.log("走了iOS播放器。。。。。。。。。。。。。。。");
//当应用从后台进入前台时自动播放
if (this.videoContext) {
this.videoContext.play()
@ -398,7 +397,7 @@
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
let that = this
uni.$on('back', (data) => {
if (data.flag == true) {
if (data.flag) {
that.showPay = false
that.getDataList(that.courseId, that.courseDetailsId, true);
that.getMyLoveStatus()
@ -468,14 +467,14 @@
// #endif
this.$nextTick(() => {
this.closePopusPay()
this.closePopupPay()
})
if (this.courseId) {
this.getDataList(this.courseId, this.courseDetailsId);
}
httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.getRedEnvelopeTips = res.data
}
})
@ -494,7 +493,7 @@
console.log('this bottom padding = ' + this.paddingBottom);
httpsRequest.getT("app/common/type/919", {}).then(res => {
if (res.code == 0) {
if (res.code === 0) {
const sysInfo = uni.getSystemInfoSync();
let isIos = sysInfo.platform == 'ios'
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
@ -535,7 +534,7 @@
*/
getScale() {
httpsRequest.getT("app/common/type/914", {}).then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.scale = Number(res.data.value)
}
});
@ -574,7 +573,7 @@
},
//选集弹窗的回调
changeXj(e) {
if (e.show == false) {
if (!e.show) {
//关闭弹窗的时候重置scrollIntoViews防止关闭后第二次点就不能自动滑动到当前集的位置
this.scrollIntoViews = 'video0'
}
@ -615,7 +614,7 @@
});
},
isCheckPay(status, name, order) {
if (status == 0) {
if (status === 0) {
this.setPayment(name, order);
} else {
uni.hideLoading();
@ -625,7 +624,7 @@
});
}
},
iphonepay() {
iphonePay() {
let that = this
plus.payment.getChannels((res) => {
let channel = res.find(i => i.id === 'appleiap')
@ -681,7 +680,7 @@
httpsRequest.postT('/app/ios/isoPayApp?receipt=' + receipt + '&ordersId=' + that.iosPayId).then(
res => {
uni.hideLoading();
if (res.status == 0) {
if (res.status === 0) {
uni.showToast({
title: '支付成功',
duration: 2000,
@ -693,7 +692,7 @@
},
// 充值
pay() {
if (this.checked == false) {
if (!this.checked) {
uni.showToast({
title: '请阅读并同意《付费须知说明》',
icon: 'none'
@ -704,7 +703,7 @@
uni.showLoading({
title: '支付中...'
})
if (this.openWay == 2) {
if (this.openWay === 2) {
// 微信APP支付 根据订单id获取支付信息
httpsRequest.postT("/app/wxPay/payMoney", {
classify: 1,
@ -712,7 +711,7 @@
}).then(ret => {
this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
});
} else if (this.openWay == 1) {
} else if (this.openWay === 1) {
let paytype = 'h5'
// #ifdef APP
paytype = 'app'
@ -725,7 +724,7 @@
});
// this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
});
} else if (this.openWay == 3) {
} else if (this.openWay === 3) {
let userId = uni.getStorageSync('userId');
let data = {
payClassifyId: this.wallet[this.wallCurr].payClassifyId,
@ -742,7 +741,7 @@
});
}
});
} else if (this.openWay == 4) {
} else if (this.openWay === 4) {
let userId = uni.getStorageSync('userId');
let data = {
// money: this.wallet[this.current].price
@ -772,7 +771,7 @@
getMyMoney() {
if (uni.getStorageSync('token')) {
httpsRequest.getT('/app/moneyDetails/selectUserMoney').then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.moneyNum = res.data.money
}
})
@ -826,7 +825,7 @@
*/
getMoneyList() {
httpsRequest.getT('/app/payClassify/selectPayClassifyList').then(res => {
if (res.code == 0) {
if (res.code === 0) {
let priceObj = this.findMinMaxPricesWithIndexes(res.data)
this.wallet = res.data
this.wallet[priceObj.minPriceIndex].remarks = '特惠'
@ -843,7 +842,7 @@
this.wallet = arr
}
// #ifdef APP
this.iphonepay()
this.iphonePay()
// #endif
} else {
uni.showToast({
@ -854,11 +853,11 @@
})
},
//关闭支付弹窗
closePopusPay() {
closePopupPay() {
this.$refs.popuppay.close()
},
//打开支付弹窗
openPopusPay() {
openPopupPay() {
this.$refs.popuppay.open('bottom')
},
// 获取收藏状态
@ -878,7 +877,7 @@
})
},
//显示/隐藏适配控制器的回调
controlstoggles(e) {
controlStoggles(e) {
this.showControls = e.detail.show
this.showBack = this.showControls
console.log(e.detail.show, '显示/隐藏控制栏')
@ -962,16 +961,16 @@
data.courseDetailsId = this.videoList[this.current].courseDetailsId
httpsRequest.getT('/app/order/insertCourseOrders', data).then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.ordersId = res.data.orders.ordersId //记录订单id
this.payMoney = res.data.orders.payMoney //记录订单价格
if (type == 1) { //金币
if (type === 1) { //金币
this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney)
} else if (type == 2) { //支付宝
} else if (type === 2) { //支付宝
this.closePay() //关闭购买选择弹窗
this.payPrice = res.data.orders.payMoney //需要支付的价格
this.openPopusPay() //显示充值弹窗
this.openPopupPay() //显示充值弹窗
}
@ -989,13 +988,13 @@
httpsRequest.postT("/app/order/payOrders", {
orderId: orderId,
}).then(res => {
if (res.code == 0) {
if (res.code === 0) {
uni.hideLoading()
uni.showToast({
title: '已成功解锁',
icon: 'none'
})
this.closePopusPay()
this.closePopupPay()
this.closePay()
that.showPay = false
that.showMoney = false
@ -1037,7 +1036,7 @@
this.videoList = [...this.videoList, ...this.meunList.slice(index + 1, index + 3)]
}
//只剩一条数据
if (lengths == 1) {
if (lengths === 1) {
//把剩下的一条给放进去
this.videoList = [
//选中的那条
@ -1049,7 +1048,7 @@
]
}
//选择的就是最后一条数据
if (lengths == 0) {
if (lengths === 0) {
//后两条拿总数组的前两条就可以了
this.videoList = [...this.videoList, ...this.meunList.slice(0, 2)]
}
@ -1062,7 +1061,7 @@
// const index = this.meunList.findIndex(menu => menu.courseDetailsId === item.courseDetailsId);
// this.videoList = [this.meunList[index]]
this.current = index
if (this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type) {
if (this.videoList[this.current].videoUrl === '' && this.videoList[this.current].price <= 0 && !type) {
this.getDataList(this.courseId, this.courseDetailsId, true, 'select')
return;
}
@ -1104,7 +1103,7 @@
this.$refs.popup.close()
},
//收藏
shoucang() {
collectVideo() {
if (uni.getStorageSync('token')) {
let data = {
courseId: this.courseId,
@ -1112,7 +1111,7 @@
type: this.isCollect == false ? 1 : 0
}
httpsRequest.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.getMyLoveStatus()
}
})

View File

@ -59,7 +59,7 @@
types:1
}
this.$u.api.help(data).then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.helpClassifyList = res.data
for (var i = 0; i < this.helpClassifyList.length; i++) {
this.helpClassifyList[i].parentId = 1

View File

@ -48,7 +48,7 @@
methods: {
getIntegral() {
this.$u.api.integral().then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.integralNum = res.data.integralNum
}else {
uni.showToast({

File diff suppressed because it is too large Load Diff

View File

@ -1,133 +1,133 @@
<template>
<view style="text-align: left">
<view v-if="list.length" v-for="(item, index) in list" :key="index" class="item">
<view>
<view style="margin-bottom: 8upx;text-align: right;">
<text style="margin-bottom: 8upx;color: green" v-if="item.state==1"> 提现成功</text>
<text style="margin-bottom: 8upx;color: green" v-if="item.state==0"> 提现中</text>
<text style="margin-bottom: 8upx;color: #FD6416" v-if="item.state==-1"> 提现失败</text>
</view>
<view style="text-align: left">
<view v-if="list.length" v-for="(item, index) in list" :key="index" class="item">
<view>
<view style="margin-bottom: 8upx;text-align: right;">
<text style="margin-bottom: 8upx;color: green" v-if="item.state===1"> 提现成功</text>
<text style="margin-bottom: 8upx;color: green" v-if="item.state===0"> 提现中</text>
<text style="margin-bottom: 8upx;color: #FD6416" v-if="item.state===-1"> 提现失败</text>
</view>
<view style="color: #999999;font-size: 28upx;">
<view style="margin-bottom: 8upx"> 收款人账号{{item.zhifubao}}</view>
<view style="margin-bottom: 8upx"> 收款人姓名{{item.zhifubaoName}}</view>
<view style="margin-bottom: 8upx"> 发起时间{{item.createAt}}</view>
<view style="margin-bottom: 8upx" v-if="item.state==1">成功时间 {{item.outAt}}</view>
<view style="margin-bottom: 8upx;color: #FD6416" v-if="item.state==-1">{{item.refund}}</view>
<view style="color: #999999;font-size: 28upx;">
<view style="margin-bottom: 8upx"> 收款人账号{{ item.zhifubao }}</view>
<view style="margin-bottom: 8upx"> 收款人姓名{{ item.zhifubaoName }}</view>
<view style="margin-bottom: 8upx"> 发起时间{{ item.createAt }}</view>
<view style="margin-bottom: 8upx" v-if="item.state===1">成功时间 {{ item.outAt }}</view>
<view style="margin-bottom: 8upx;color: #FD6416" v-if="item.state===-1">{{ item.refund }}</view>
<view style="margin-bottom: 8upx;text-align: right;">
<!-- 提现金额 -->
<text style="color: #FD6416;font-size: 32upx;font-weight: 600"> {{item.money}}</text>
</view>
</view>
</view>
</view>
<view style="margin-bottom: 8upx;text-align: right;">
<!-- 提现金额 -->
<text style="color: #FD6416;font-size: 32upx;font-weight: 600"> {{ item.money }}</text>
</view>
</view>
</view>
</view>
<view class="page-box" v-if="!list.length">
<view class="centre">
<image src="../../static/images/learn/none.png" mode=""></image>
<view class="tips">
暂无记录
</view>
</view>
</view>
<view class="page-box" v-if="!list.length">
<view class="centre">
<image src="../../static/images/learn/none.png" mode=""></image>
<view class="tips">
暂无记录
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list: [],
page: 1,
limit: 10,
totalCount: 0,
}
},
onLoad: function(e) {
this.getMoney();
},
export default {
data() {
return {
list: [],
page: 1,
limit: 10,
totalCount: 0,
}
},
onLoad: function (e) {
this.getMoney();
},
methods: {
getMoney() {
let that = this;
let token = uni.getStorageSync('token')
methods: {
getMoney() {
let that = this;
let token = uni.getStorageSync('token')
if (token) {
//
let data = {
page: this.page,
limit: this.limit
}
this.$Request.getT('app/cash/selectPayDetails', data).then(res => {
this.totalCount = res.data.totalCount;
if ( res.data.list.length > 0) {
this.list = [...this.list,...res.data.list];
}
})
}
if (token) {
//
let data = {
page: this.page,
limit: this.limit
}
this.$Request.getT('app/cash/selectPayDetails', data).then(res => {
this.totalCount = res.data.totalCount;
if (res.data.list.length > 0) {
this.list = [...this.list, ...res.data.list];
}
})
}
},
},
onReachBottom: function() {
if (this.page*this.limit < this.totalCount) {
this.page = this.page + 1;
this.getMoney();
}
},
onPullDownRefresh: function() {
this.page = 1;
// that.list = []
this.getMoney();
},
}
},
},
onReachBottom: function () {
if (this.page * this.limit < this.totalCount) {
this.page = this.page + 1;
this.getMoney();
}
},
onPullDownRefresh: function () {
this.page = 1;
// that.list = []
this.getMoney();
},
}
</script>
<style lang='scss' scoped>
/* @import "../../static/css/index.css"; */
/* @import "../../static/css/index.css"; */
page {
background: #FFFFFF;
}
page {
background: #FFFFFF;
}
.item {
background: white;
padding: 32rpx;
margin: 32rpx;
font-size: 28rpx;
box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
border-radius: 16upx;
}
.item {
background: white;
padding: 32rpx;
margin: 32rpx;
font-size: 28rpx;
box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
border-radius: 16upx;
}
.centre {
text-align: center;
padding: 200rpx 0;
font-size: 32rpx;
box-sizing: border-box;
.centre {
text-align: center;
padding: 200rpx 0;
font-size: 32rpx;
box-sizing: border-box;
image {
width: 360rpx;
height: 360rpx;
// margin-bottom: 20rpx;
margin: 0 auto 20rpx;
// border: 1px dotted #000000;
}
image {
width: 360rpx;
height: 360rpx;
// margin-bottom: 20rpx;
margin: 0 auto 20rpx;
// border: 1px dotted #000000;
}
.tips {
font-size: 34rpx;
color: #999999;
margin-top: 20rpx;
}
.tips {
font-size: 34rpx;
color: #999999;
margin-top: 20rpx;
}
.btn {
margin: 80rpx auto;
width: 600rpx;
border-radius: 32rpx;
line-height: 90rpx;
color: #ffffff;
font-size: 34rpx;
background: #ff7581;
}
}
.btn {
margin: 80rpx auto;
width: 600rpx;
border-radius: 32rpx;
line-height: 90rpx;
color: #ffffff;
font-size: 34rpx;
background: #ff7581;
}
}
</style>

View File

@ -21,7 +21,7 @@
</view>
</view>
<view class=" invite-box u-relative">
<view class=" inviteBox u-relative">
<view class="top">
<u-image src="/me/static/invite/bg1.png" alt="" width="422rpx" height="76rpx"></u-image>
<view class="u-absolute font-bold">
@ -809,7 +809,7 @@
background: #F3F4F8;
}
.invite-box {
.inviteBox {
position: relative;
margin-top: -240rpx;
background-color: #fff;

View File

@ -7,7 +7,7 @@
<view class="" style="position: relative;overflow: hidden;width: 90px;">
<view style="position: absolute;bottom:0;">
<!-- <view class="flex"> -->
<button @tap="getOut" class="cu-btn round">立即提现</button>
<button @tap="getOut" class="cuBtn round">立即提现</button>
<!-- </view> -->
</view>
</view>
@ -33,7 +33,7 @@
style="width: 80rpx;height:80rpx;border-radius: 50rpx;"></image>
<view class="margin-left-sm">
<view class="userName_view">{{item.userName}}</view>
<view class="text-cut" style="font-size: 24rpx;" v-if="item.userType && item.userType == 2">二级好友
<view class="text-cut" style="font-size: 24rpx;" v-if="item.userType && item.userType === 2">二级好友
</view>
<view class="text-cut" style="font-size: 24rpx;" v-else>一级好友
</view>
@ -45,7 +45,7 @@
</view>
</view>
<empty v-if="userList.length == 0" />
<empty v-if="userList.length === 0" />
</view>
</view>
</template>
@ -84,7 +84,7 @@
limit: this.limit
}
this.$u.api.queryInviter(data).then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.inviterRecord = res.data.inviteMoney.money
} else {
uni.showToast({
@ -102,8 +102,8 @@
userType:1
}
this.$u.api.inviter(data).then(res => {
if (res.code == 0) {
if (this.page == 1) {
if (res.code === 0) {
if (this.page === 1) {
this.userList = res.data.list
} else {
this.userList = [...this.userList, ...res.data.list]
@ -128,7 +128,7 @@
</script>
<style>
.cu-btn {
.cuBtn {
background: rgba(255, 117, 129, 0.2);
color: #ff7581;
font-weight: bold;

View File

@ -9,8 +9,8 @@
<view style="margin-bottom: 8upx"> 时间 {{item.createTime}}</view>
<view style="margin-bottom: 8upx;text-align: right;">
<!-- 提现金额 -->
<text v-if="item.type==2" style="color: #666;font-size: 32upx;font-weight: 600"> - {{item.money}}</text>
<text v-if="item.type==1" style="color: #FD6416;font-size: 32upx;font-weight: 600">+ {{item.money}}</text>
<text v-if="item.type===2" style="color: #666;font-size: 32upx;font-weight: 600"> - {{item.money}}</text>
<text v-if="item.type===1" style="color: #FD6416;font-size: 32upx;font-weight: 600">+ {{item.money}}</text>
</view>
</view>
@ -45,7 +45,7 @@
if (e.moneyType) {
this.moneyType = e.moneyType
uni.setNavigationBarTitle({
title: e.moneyType == 1 ? '红包明细' : '金币明细'
title: e.moneyType === 1 ? '红包明细' : '金币明细'
});
}
if (e.viewType) {

View File

@ -1,5 +1,5 @@
<template>
<view class="container">
<view class="containerView">
<list-cell title="收款人姓名" type="text" placeholder="请输入支付宝收款人姓名" v-model="zhiFuBaoName"></list-cell>
<list-cell title="支付宝账号" type="text" placeholder="请输入要绑定的支付宝手机号" v-model="zhiFuBao"></list-cell>
@ -10,7 +10,6 @@
<view style="padding: 32upx 64upx;font-size: 24upx;color: #999999;">提示请正确填写收款人的支付宝账户和真实的收款人姓名否则将无法正常收款</view>
</view>
</view>
</template>
<script>
@ -31,7 +30,7 @@
if (userId) {
this.$u.api.userinfo().then(res => {
if (res.code == 0) {
if (res.code === 0) {
if (res.data.zhiFuBao) {
this.zhiFuBao = res.data.zhiFuBao;
}
@ -79,7 +78,7 @@
this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&zhiFuBaoName=' + zhiFuBaoName).then(
res => {
console.log(res);
if(res.code==0){
if(res.code===0){
uni.setStorageSync('zhiFuBao', zhiFuBao)
uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
uni.showToast({
@ -135,7 +134,7 @@
background: #FFFFFF;
}
.container {
.containerView {
padding-top: 32upx;
position: relative;
width: 100%;

View File

@ -77,7 +77,7 @@
integral: this.value
}
this.$Request.postT('/app/integral/creditsExchange', data).then(res => {
if (res.code == 0) {
if (res.code === 0) {
uni.showToast({
title: '积分兑换成功'
})
@ -97,7 +97,7 @@
//
getBili() {
this.$u.get('/app/common/type/104').then(res => { // 104
if (res.code == 0 && res.data) {
if (res.code === 0 && res.data) {
this.bili = res.data.value
}
});

View File

@ -112,14 +112,14 @@
setTimeout(() => {
this.refresherTriggered = false
}, 1500)
if (res.code == 0) {
if (res.code === 0) {
this.pages = res.data.pages
if (this.page < this.pages) {
this.status = 'loadmore'
} else {
this.status = 'nomore'
}
if (this.page == 1) {
if (this.page === 1) {
this.list = res.data.records
} else {
this.list = [...this.list, ...res.data.records]
@ -131,7 +131,7 @@
getNum() {
this.$Request.getT('/app/integral/selectByUserId').then(res => {
uni.stopPullDownRefresh()
if (res.code == 0) {
if (res.code === 0) {
this.num = res.data.integralNum
} else {
this.num = 0

View File

@ -15,7 +15,7 @@
</view>
<view class="list-box-r-new flex align-center justify-between">
<view class="list-box-r-new-l">
{{item.over==1?'完结':'更新'+item.courseDetailsCount+'集'}}
{{item.over===1?'完结':'更新'+item.courseDetailsCount+'集'}}
</view>
<view class="list-box-r-new-r">
继续观看
@ -27,7 +27,7 @@
<view class="" style="margin: 20rpx;" v-if="list.length > 0">
<u-loadmore :status="status" />
</view>
<empty v-if="list.length == 0" title="暂无记录" />
<empty v-if="list.length === 0" title="暂无记录" />
</view>
</template>
@ -47,17 +47,17 @@
};
},
onShow() {
this.getList()
this.getDataList()
},
onPullDownRefresh() {
this.page = 1
this.getList()
this.getDataList()
},
onReachBottom() {
if (this.page < this.pages) {
this.page += 1
this.status = 'loading'
this.getList()
this.getDataList()
} else {
this.status = 'nomore'
}
@ -70,7 +70,7 @@
})
},
//
getList() {
getDataList() {
let data = {
page: this.page,
limit: this.limit,
@ -78,14 +78,14 @@
}
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
uni.stopPullDownRefresh()
if (res.code == 0) {
if (res.code === 0) {
this.pages = res.data.pages
if (this.page < this.pages) {
this.status = 'loadmore'
} else {
this.status = 'nomore'
}
if (this.page == 1) {
if (this.page === 1) {
this.list = res.data.records
} else {
this.list = [...this.list, ...res.data.records]

View File

@ -79,14 +79,14 @@
}
this.$u.api.courseList(data).then(res => {
uni.stopPullDownRefresh()
if (res.code == 0) {
if (res.code === 0) {
this.pages = res.data.totalPage
if (this.page < this.pages) {
this.status = 'loadmore'
} else {
this.status = 'nomore'
}
if (this.page == 1) {
if (this.page === 1) {
this.jqList = res.data.list
} else {
this.jqList = [...this.jqList, ...res.data.list]

View File

@ -51,8 +51,8 @@
state: 5
}
this.$u.api.message(data).then(res => {
if (res.code == 0) {
if (this.page == 1) {
if (res.code === 0) {
if (this.page === 1) {
this.msgList = res.data.list
uni.stopPullDownRefresh();
return

View File

@ -17,7 +17,6 @@
<button class="confirm-btn" @click="toLogin" :disabled="logining">立即换绑
</button>
</view>
</view>
</template>
<script>

View File

@ -11,7 +11,7 @@
{{formatNumber(moneyNum)}}
</view>
</view>
<view @click="goNav('/me/wallet/mingxi')" class="money-bto flex align-center justify-between">
<view @click="goNav('/me/wallet/wallet_detail')" class="money-bto flex align-center justify-between">
金币明细
<u-icon name="arrow-right" color="#ff7581" size="40"></u-icon>
</view>

View File

@ -10,15 +10,15 @@
</view>
<view class="list-box-time flex align-center justify-between">
{{item.createTime}}
<text>{{item.type==1?'+':'-'}}{{item.money}}</text>
<text>{{item.type===1?'+':'-'}}{{item.money}}</text>
</view>
</view>
</view>
<view v-if="list.length > 3" class="loadmore">
<view v-if="list.length > 3" class="loadMore">
<u-loadmore :status="status" />
</view>
<empty v-if="list.length==0" title="暂无明细" />
<empty v-if="list.length===0" title="暂无明细" />
<!-- 抖音im客服 -->
<ttMsg />
</view>
@ -66,14 +66,14 @@
}
this.$Request.getT('/app/moneyDetails/queryUserMoneyDetails', data).then(res => {
uni.stopPullDownRefresh()
if (res.code == 0) {
if (res.code === 0) {
this.pages = res.data.pages
if (this.page < this.pages) {
this.status = 'loadmore'
} else {
this.status = 'nomore'
}
if (this.page == 1) {
if (this.page === 1) {
this.list = res.data.records
} else {
this.list = [...this.list, ...res.data.records]
@ -123,7 +123,7 @@
}
}
.loadmore {
.loadMore {
margin: 20rpx 0;
}
</style>

View File

@ -566,14 +566,14 @@
}
}, {
"path": "wallet/mingxi",
"path": "wallet/wallet_detail",
"style": {
"navigationBarTitleText": "金币明细",
"enablePullDownRefresh": true
}
}, {
"path": "jilu/jilu",
"path": "jilu/record",
"style": {
"navigationBarTitleText": "最近观看",
"enablePullDownRefresh": true

View File

@ -51,7 +51,7 @@
<view class="itemTitle-box-l">
最近观看
</view>
<view class="itemTitle-box-r" @click="goNav('/me/jilu/jilu')">
<view class="itemTitle-box-r" @click="goNav('/me/jilu/record')">
更多
</view>
</view>

View File

@ -4,20 +4,20 @@
<view class="head">
<scroll-view scroll-x class="bg nav bg-white u-border-bottom">
<view class="flex text-center">
<view class="cu-item flex-sub text-bold" :class="item.name==TabCur?' cur ':'text-black'"
<view class="cu-item flex-sub text-bold" :class="item.name===TabCur?' cur ':'text-black'"
v-for="(item,index) in tabList" :key="index" :data-id="item.name" @tap="tabSelect">
{{item.name}}
<view v-if="item.name==TabCur"
<view v-if="item.name===TabCur"
style="width: 64rpx;height: 8rpx;;background: #5074FF;margin: -20rpx auto;border-radius: 10rpx;">
</view>
</view>
</view>
</scroll-view>
</view>
<view class="headlen">
<view v-if="TabCur == tabList[0].name">
<view class="headLen">
<view v-if="TabCur === tabList[0].name">
<view class="page-box" v-if="latelyCourseList.length && userId">
<view class="order" v-for="(item, index) in latelyCourseList" :key="index"
<view class="orderView" v-for="(item, index) in latelyCourseList" :key="index"
@click="goCourseDet(item)">
<view class="item">
<view class="left">
@ -71,7 +71,7 @@
</view>
<view v-if="TabCur == tabList[2].name">
<view class="page-box" v-if="collectList.length && userId">
<view class="order" v-for="(item,index) in collectList" :key='index' @click="goCourseDet(item)">
<view class="orderView" v-for="(item,index) in collectList" :key='index' @click="goCourseDet(item)">
<view class="item">
<view class="left">
<image :src="item.titleImg" mode="aspectFill"
@ -444,7 +444,7 @@
z-index: 999;
}
.headlen {
.headLen {
/* #ifdef H5 */
margin-top: 80rpx;
/* #endif */
@ -457,7 +457,7 @@
padding-bottom: 100px;
}
.order {
.orderView {
width: 700rpx;
background-color: #ffffff;
margin: 20rpx auto;

View File

@ -1,5 +1,5 @@
<template>
<view class="containers">
<view class="containersView">
<div style="width: 100%;height: 85%;position: absolute;background: url('../../static/images/appeq_bg.png') no-repeat center bottom / cover;"></div>
<view style="text-align: center;position: relative;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;">
@ -57,7 +57,7 @@
var u = navigator.userAgent;
if (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1) {
this.$Request.get('/app/common/type/49').then(res => {
if (res.code == 0) {
if (res.code === 0) {
if (res.data && res.data.value) {
if (this.openShare) {
let ua = navigator.userAgent.toLowerCase();
@ -97,7 +97,7 @@
} else {
this.$Request.get('/app/common/type/50').then(res => {
if (res.code == 0) {
if (res.code === 0) {
if (res.data && res.data.value) {
if (this.openShares) {
let ua = navigator.userAgent.toLowerCase();
@ -151,7 +151,7 @@
width: 100%;
height: 100%;
}
.containers {
.containersView {
width: 100%;
height: 100%;
}

View File

@ -1,5 +1,5 @@
<template>
<view class="container1">
<view class="containerView">
<view class="cu-form-group"
style="margin: 30upx;border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
<view class="title">手机号</view>
@ -11,11 +11,10 @@
<text class="title">验证码</text>
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code" @input="inputChange"
@confirm="toLogin" />
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
<button class="send-msg" @click="sendMsg" :disabled="sendIng">{{ sendTime }}</button>
</view>
<button class="confirm-btn" @click="toLogin" :disabled="logining">立即绑定</button>
</view>
<button class="confirm-btn" @click="toLogin" :disabled="loginIng">立即绑定</button>
</view>
</template>
@ -29,8 +28,8 @@
return {
mobile: '',
code: '',
logining: false,
sending: false,
loginIng: false,
sendIng: false,
sendTime: '获取验证码',
count: 60,
type: '',
@ -55,11 +54,11 @@
} = this;
if (count === 1) {
this.count = 60;
this.sending = false;
this.sendIng = false;
this.sendTime = '获取验证码'
} else {
this.count = count - 1;
this.sending = true;
this.sendIng = true;
this.sendTime = count - 1 + '秒后重新获取';
setTimeout(this.countDown.bind(this), 1000);
}
@ -76,7 +75,7 @@
this.$queue.showLoading("正在发送验证码...");
this.$Request.getT('/app/Login/sendMsg/' + mobile + '/gzg').then(res => {
if (res.code === 0) {
this.sending = true;
this.sendIng = true;
this.$queue.showToast('验证码发送成功请注意查收');
this.countDown();
uni.hideLoading();
@ -162,7 +161,7 @@
background: #557EFD;
}
.container1 {
.containerView {
top: 0;
padding-top: 32upx;
position: relative;

View File

@ -13,7 +13,7 @@
<text class="title">验证码</text>
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
@input="inputChange" @confirm="toLogin" />
<button class="send-msg" @click="sendMsg" :disabled="sending">{{sendTime}}</button>
<button class="send-msg" @click="sendMsg" :disabled="sendIng">{{sendTime}}</button>
</view>
<view class="cu-form-group"
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
@ -34,10 +34,10 @@
code: '',
mobile: '',
password: '',
sending: false,
sendIng: false,
sendTime: '获取验证码',
count: 60,
logining: false
loginIng: false
}
},
@ -64,7 +64,7 @@
})
this.$u.get('/app/Login/sendMsg/' + mobile + '/forget').then(res => {
if (res.code === 0) {
this.sending = true;
this.sendIng = true;
uni.showToast({
title: '验证码发送成功请注意查收',
icon: 'none',
@ -89,12 +89,12 @@
} = this;
if (count === 1) {
this.count = 60;
this.sending = false;
this.sendIng = false;
this.sendTime = '获取验证码'
} else {
this.count = count - 1;
this.sending = true;
this.sendTime = count - 1 + '秒后重新获取';
this.sendIng = true;
this.sendTime = count - 1 + '秒后获取';
setTimeout(this.countDown.bind(this), 1000);
}
},
@ -140,7 +140,7 @@
duration: 1000
})
} else {
this.logining = true;
this.loginIng = true;
// this.$queue.showLoading("...");
uni.showLoading({
title: '正在修改密码中...'

View File

@ -37,7 +37,7 @@
<button class="confirm-btn" @click="toRegister">注册</button>
<button class="confirm-btn" @click="toLogin">登录</button>
</view>
<view class="footer">
<view class="footerView">
<text @tap="isShowAgree" class="cuIcon"
:class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">注册即同意</text>
<!-- 协议地址 -->
@ -89,7 +89,7 @@
showMa() {
//
this.$Request.getT('/common/type/88').then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.invitation = res.data.value;
}
});
@ -211,7 +211,7 @@
})
return
}
if (invitation.length == 0 && registerCode == '是') {
if (invitation.length === 0 && registerCode === '是') {
uni.showToast({
title: '请输入邀请码',
icon: 'none',
@ -356,7 +356,7 @@
background: #ffffff;
}
.footer {
.footerView {
display: flex;
justify-content: center;
align-items: center;

View File

@ -37,7 +37,7 @@
<button class="confirm-btn" @click="toRegister">注册</button>
<button class="confirm-btn" @click="toLogin">登录</button>
</view>
<view class="footer">
<view class="footerView">
<text @tap="isShowAgree" class="cuIcon"
:class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">同意</text>
<!-- 协议地址 -->
@ -362,7 +362,7 @@
background: #fff;
}
.footer {
.footerView {
display: flex;
justify-content: center;
align-items: center;

View File

@ -30,7 +30,7 @@
onLoad() {
//pc 854
this.$Request.getT("/app/common/type/854").then(res => {
if (res.code == 0) {
if (res.code === 0) {
if (res.data && res.data.value) {
this.erweima = res.data.value;
}
@ -38,7 +38,7 @@
});
//pc 853
this.$Request.getT("/app/common/type/853").then(res => {
if (res.code == 0) {
if (res.code === 0) {
if (res.data && res.data.value) {
this.content = res.data.value;
}
@ -58,7 +58,7 @@
follow() {
if (this.$queue.getData("openid")) {
this.$Request.get("/tao/wx/follow/" + this.$queue.getData("openid")).then(res => {
if (res === true) {
if (res) {
window.location.replace(this.$queue.publicYuMing());
}
});

View File

@ -176,7 +176,7 @@
<u-badge :offset="[0,20]" type="error" :count="numCount"></u-badge>
</view>
<view class="tool-box-content-item flex align-center justify-center flex-wrap"
@click="goNav('/me/jilu/jilu')">
@click="goNav('/me/jilu/record')">
<view class="tool-box-content-item-img">
<image src="../../static/images/me/vlishi.png" mode=""></image>
</view>
@ -313,9 +313,9 @@
this.token = uni.getStorageSync('token')
if (this.token) {
this.getMyMoney()
this.getJifen()
this.getPoints()
this.$u.api.userinfo().then(res => {
if (res.code == 0 && res.data) {
if (res.code === 0 && res.data) {
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
uni.setStorageSync('userName', res.data.userName)
@ -332,7 +332,7 @@
userId: uni.getStorageSync('userId')
}
this.$u.api.userVip(data).then(res => {
if (res.code == 0 && res.data && res.data.isVip == 2) {
if (res.code === 0 && res.data && res.data.isVip === 2) {
this.isVIP = true;
this.endTime = res.data.endTime
uni.setStorageSync('isVIP', true)
@ -347,7 +347,7 @@
this.userName = uni.getStorageSync('userName')
this.isVIP = uni.getStorageSync('isVIP')
this.getMyLoveNum()
this.getMyZhuiNum()
this.getMyFansNum()
} else {
this.isLogin = false
this.isVIP = false
@ -364,10 +364,10 @@
httpsRequest.getT("app/common/type/919", {}).then(res => {
console.log(res);
if (res.code == 0) {
if (res.code === 0) {
const sysInfo = uni.getSystemInfoSync();
let isIos = sysInfo.platform == 'ios'
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
let isIos = sysInfo.platform === 'ios'
this.isShowMoneyPay = !(res.data.value === '1' && isIos)
}
});
},
@ -385,7 +385,7 @@
sdkContent: this.kami
}
this.$Request.postT('/app/sdkInfo/sdkExchange', data).then(res => {
if (res.code == 0) {
if (res.code === 0) {
uni.showToast({
title: '兑换成功'
})
@ -394,7 +394,7 @@
userId: uni.getStorageSync('userId')
}
this.$u.api.userVip(datas).then(rest => {
if (rest.code == 0 && rest.data && rest.data.isVip == 2) {
if (rest.code === 0 && rest.data && rest.data.isVip === 2) {
this.isVIP = true;
this.endTime = rest.data.endTime
uni.setStorageSync('isVIP', true)
@ -430,7 +430,7 @@
classify: 2
}
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.myLoveNum = res.data.total
} else {
this.myLoveNum = 0
@ -438,14 +438,14 @@
})
},
//
getMyZhuiNum() {
getMyFansNum() {
let data = {
page: 1,
limit: 1,
classify: 1
}
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.myZhui = res.data.total
} else {
this.myZhui = 0
@ -455,9 +455,9 @@
/**
* 获取积分
*/
getJifen() {
getPoints() {
this.$Request.getT('/app/integral/selectByUserId').then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.jifen = res.data.integralNum
} else {
this.jifen = 0
@ -481,7 +481,7 @@
*/
getMyMoney() {
this.$Request.getT('/app/moneyDetails/selectUserMoney').then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.moneyNum = res.data.money
this.userInfo = res.data
// this.$Request.getT('/app/invite/selectInviteMoney').then(ret => {
@ -524,15 +524,15 @@
goMsg() {
let kefu = uni.getStorageSync('kefu'); // 1 2
let kefuPhone = uni.getStorageSync('kefuPhone');
if (kefu == 1) {
if (kefu === 1) {
uni.navigateTo({
url: '/me/setting/kefu'
})
} else if (kefu == 3) {
} else if (kefu === 3) {
uni.makePhoneCall({
phoneNumber: kefuPhone //
});
} else if (kefu == 2) {
} else if (kefu === 2) {
// #ifdef MP-WEIXIN
let that = this
try {
@ -576,7 +576,7 @@
console.log(e)
let token = uni.getStorageSync('token')
if (token) {
if (type == 'tabbar') {
if (type === 'tabbar') {
uni.switchTab({
url: e
})
@ -598,10 +598,10 @@
this.$u.api.bannerList({
classify: '3'
}).then(res => {
if (res.code == 0 && res.data) {
if (res.code === 0 && res.data) {
let arr = []
res.data.forEach(ret => {
if (ret.state == 1) {
if (ret.state === 1) {
arr.push(ret)
}
})

View File

@ -1,7 +1,7 @@
<template>
<view>
<view class="usermain">
<view class="usermain-item u-border-bottom">
<view class="userMain">
<view class="userMain-item u-border-bottom">
<view>头像</view>
<view>
<!-- #ifdef MP-WEIXIN -->
@ -16,7 +16,7 @@
<!-- #endif -->
</view>
</view>
<view class="usermain-item item-padding u-border-bottom">
<view class="userMain-item item-padding u-border-bottom">
<view>用户名</view>
<view>
<view class="cu-form-group">
@ -24,14 +24,14 @@
</view>
</view>
</view>
<!-- <view class="usermain-item item-padding">
<!-- <view class="userMain-item item-padding">
<view >姓名</view>
<view class="cu-form-group">
<input v-model="realName" placeholder="请填写您的真实姓名" />
</view>
</view> -->
<view class="usermain-item item-padding u-border-bottom">
<view class="userMain-item item-padding u-border-bottom">
<view>手机</view>
<view>
<!-- #ifndef MP-WEIXIN -->
@ -52,7 +52,7 @@
</view>
</view>
<!-- <view class="usermain-item item-padding" @click="goMyAddress">
<!-- <view class="userMain-item item-padding" @click="goMyAddress">
<view >地址管理</view>
<view>
@ -63,7 +63,7 @@
</view> -->
</view>
<view class="footer-btn">
<view class="usermain-btn" @click="messagebtn()">保存</view>
<view class="userMain-btn" @click="messagebtn()">保存</view>
</view>
</view>
</template>
@ -99,7 +99,7 @@
code: code
}
this.$Request.postT('/app/Login/wxPhone', data).then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.phone = res.data.phone_info.purePhoneNumber;
} else {
uni.showToast({
@ -294,7 +294,7 @@
getUserInfo() {
let userId = uni.getStorageSync('userId')
this.$u.api.userinfo().then(res => {
if (res.code == 0) {
if (res.code === 0) {
this.userName = res.data.userName;
this.phone = res.data.phone;
this.phones = res.data.phone
@ -427,11 +427,11 @@
height: 100%;
}
.usermain {
.userMain {
background: #FFFFFF;
}
.usermain-item {
.userMain-item {
display: flex;
align-items: center;
margin-left: 40rpx;
@ -440,7 +440,7 @@
/* border-bottom: 2rpx solid #f2f2f2; */
}
.usermain-item.item-padding {
.userMain-item.item-padding {
padding: 0 40rpx 0 0;
}
@ -461,7 +461,7 @@
margin-top: 150rpx;
}
.footer-btn .usermain-btn {
.footer-btn .userMain-btn {
color: #FFFFFF;
background: #ff7581;
text-align: center;

View File

@ -16,7 +16,7 @@
<image class="task_icon2 u-relative" src="../../static/images/me/task_icon2.png"></image>
</view>
<view class="content signIn margin-lr padding bg-white u-relative" v-if="isShowMoneyPay" style="margin-bottom: 32rpx;">
<view class="content signIn margin-lr padding bg-white u-relative" style="margin-bottom: 32rpx;">
<view class="title flex justify-between">
<view>已连续签到 <text class="num">{{signDays}}</text> </view>
<!-- <view class="dk flex">

View File

@ -43,7 +43,7 @@
</view>
</view>
<view class="swipers-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
<view class="swipers-items-right-item-img" @click.stop="shoucang(item)">
<view class="swipers-items-right-item-img" @click.stop="collectVideo(item)">
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian.png"
mode=""></image>
</view>
@ -54,7 +54,7 @@
</view>
</view>
<view class="swipers-items-right-item" v-else>
<view class="swipers-items-right-item-img" @click.stop="shoucang(item)">
<view class="swipers-items-right-item-img" @click.stop="collectVideo(item)">
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
mode=""></image>
</view>
@ -317,7 +317,7 @@
})
},
//收藏
shoucang(item) {
collectVideo(item) {
if (uni.getStorageSync('token')) {
let data = {
courseId: item.courseId,