修改身份证添加,首页和规则弹窗,提现看广告
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
"type" : "uniCloud"
|
"type" : "uniCloud"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"playground" : "custom",
|
"playground" : "standard",
|
||||||
"type" : "uni-app:app-android"
|
"type" : "uni-app:app-android"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg"; //
|
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg"; //
|
||||||
const ROOTPATH = "https://dj-api.hnsiyao.cn/czg"; //后台服务域名
|
// const ROOTPATH = "https://dj-api.hnsiyao.cn/czg"; //后台服务域名
|
||||||
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
||||||
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||||
@@ -10,12 +10,12 @@ const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
|||||||
// const ROOTPATH = "http://192.168.1.5:8100/sqx_fast/"; //后台服务域名
|
// const ROOTPATH = "http://192.168.1.5:8100/sqx_fast/"; //后台服务域名
|
||||||
// const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
|
// const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "http://192.168.1.41:8100/czg"; //
|
const ROOTPATH1 = "http://192.168.1.41:8100/czg"; //
|
||||||
// const ROOTPATH = "http://192.168.1.41:8100/czg"; //后台服务域名
|
const ROOTPATH = "http://192.168.1.41:8100/czg"; //后台服务域名
|
||||||
// 测试
|
// 测试
|
||||||
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg"; //
|
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg"; //
|
||||||
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg"; //后台服务域名
|
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg"; //后台服务域名
|
||||||
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
@@ -1,30 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="tixian">
|
<view class="tixian">
|
||||||
<view
|
<view class="top-bg">
|
||||||
class="top-bg">
|
|
||||||
<view class="class1">可提现总额</view>
|
<view class="class1">可提现总额</view>
|
||||||
<view class="class2">¥ {{ mayMoney }}</view>
|
<view class="class2">¥ {{ mayMoney }}</view>
|
||||||
|
|
||||||
<view
|
<view class="class3">
|
||||||
class="class3">
|
<view class="class4" style="">
|
||||||
<view class="class4" style="">
|
|
||||||
<view class="color-333 u-font-32">提现金额
|
<view class="color-333 u-font-32">提现金额
|
||||||
<!-- <text style="font-size: 28upx;color: #ff7581;"
|
<!-- <text style="font-size: 28upx;color: #ff7581;"
|
||||||
v-if="shouxufei">(注:提现手续费为{{shouxufei * 100}}%)</text> -->
|
v-if="shouxufei">(注:提现手续费为{{shouxufei * 100}}%)</text> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view class="u-flex flex-row justify-between align-center" style="padding: 20upx">
|
||||||
class="u-flex flex-row justify-between align-center"
|
<view class="flex align-center">
|
||||||
style="padding: 20upx">
|
|
||||||
<view class="flex align-center" >
|
|
||||||
<view class="color-333" style="font-size: 40upx;">¥</view>
|
<view class="color-333" style="font-size: 40upx;">¥</view>
|
||||||
<input type="number" v-model="money" placeholder="请输入金额" @input="ymfmoneyInput" @blur="ymfymfmoneyBlur"
|
<input type="number" v-model="money" placeholder="请输入金额" @input="ymfmoneyInput" @blur="ymfymfmoneyBlur"
|
||||||
class="color-333 u-text-left u-m-l-10 u-font-40"
|
class="color-333 u-text-left u-m-l-10 u-font-40" style="width: 80%;" />
|
||||||
style="width: 80%;"/>
|
|
||||||
</view>
|
</view>
|
||||||
<view @click="ymfsetAllMoney"
|
<view @click="ymfsetAllMoney" class="u-font-28 color-333 u-p-l-15 u-p-r-15 u-p-t-16 u-p-b-16 flex-0 "
|
||||||
class="u-font-28 color-333 u-p-l-15 u-p-r-15 u-p-t-16 u-p-b-16 flex-0 "
|
style="background: #ff7581;color: white;border-radius: 10rpx;">
|
||||||
style="background: #ff7581;color: white;border-radius: 10rpx;">
|
|
||||||
全部
|
全部
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -44,14 +38,13 @@
|
|||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view @click="ymfgetOut"
|
<view @click="withdraw" class="u-m-40 u-font-36 color-fff u-border-10"
|
||||||
class="u-m-40 u-font-36 color-fff u-border-10"
|
style="background: #ff7581;border-radius: 10px;height: 80rpx;line-height: 80rpx;">
|
||||||
style="background: #ff7581;border-radius: 10px;height: 80rpx;line-height: 80rpx;">
|
<!-- 提现 -->
|
||||||
提现
|
{{ !isWithdraw ? '观看广告提现' : '立即提现' }}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view
|
<view class="flex w-full justify-center ">
|
||||||
class="flex w-full justify-center ">
|
|
||||||
<view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="ymfgoaliZhiFuBao">
|
<view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="ymfgoaliZhiFuBao">
|
||||||
提现账号
|
提现账号
|
||||||
</view>
|
</view>
|
||||||
@@ -66,9 +59,9 @@
|
|||||||
<view v-if="list.length" v-for="(item, index) in list" :key="index" class="item">
|
<view v-if="list.length" v-for="(item, index) in list" :key="index" class="item">
|
||||||
<view>
|
<view>
|
||||||
<view style="margin-bottom: 8rpx;text-align: right;">
|
<view style="margin-bottom: 8rpx;text-align: right;">
|
||||||
<text style="margin-bottom: 8rpx;color: green" v-if="item.state===1"> 提现成功</text>
|
<text style="margin-bottom: 8rpx;color: green" v-if="item.state === 1"> 提现成功</text>
|
||||||
<text style="margin-bottom: 8rpx;color: green" v-if="item.state===0"> 提现中</text>
|
<text style="margin-bottom: 8rpx;color: green" v-if="item.state === 0"> 提现中</text>
|
||||||
<text style="margin-bottom: 8rpx;color: #FD6416" v-if="item.state===-1||item.state===2">
|
<text style="margin-bottom: 8rpx;color: #FD6416" v-if="item.state === -1 || item.state === 2">
|
||||||
提现失败
|
提现失败
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -77,8 +70,8 @@
|
|||||||
<view class="u-m-t-8"> 收款人账号:{{ item.zhifubao }}</view>
|
<view class="u-m-t-8"> 收款人账号:{{ item.zhifubao }}</view>
|
||||||
<view class="u-m-t-8"> 收款人姓名:{{ item.zhifubaoName }}</view>
|
<view class="u-m-t-8"> 收款人姓名:{{ item.zhifubaoName }}</view>
|
||||||
<view class="u-m-t-8"> 发起时间:{{ item.createAt }}</view>
|
<view class="u-m-t-8"> 发起时间:{{ item.createAt }}</view>
|
||||||
<view class="u-m-t-8" v-if="item.state===1">成功时间 {{ item.outAt }}</view>
|
<view class="u-m-t-8" v-if="item.state === 1">成功时间 {{ item.outAt }}</view>
|
||||||
<view style="margin-bottom: 8rpx;color: #FD6416" v-if="item.state===-1||item.state===2">
|
<view style="margin-bottom: 8rpx;color: #FD6416" v-if="item.state === -1 || item.state === 2">
|
||||||
失败原因:{{ item.refund }}
|
失败原因:{{ item.refund }}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -102,6 +95,21 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
<u-modal v-model="ruleShow" confirm-text="知道了" title="规则说明" :title-style="{ fontWeight: '700' }"
|
||||||
|
confirm-color="rgb(255, 117, 129)">
|
||||||
|
<view class="u-p-30 u-text-left">
|
||||||
|
<scroll-view scroll-y="true" style="max-height: 50vh;">
|
||||||
|
<rich-text class="color-666" :nodes="ruleInfo"></rich-text>
|
||||||
|
</scroll-view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</u-modal>
|
||||||
|
<!-- 激励视频广告 -->
|
||||||
|
<ad-rewarded-video v-if="adRewardedVideo" ref="adRewardedVideo" adpid="1531580352" :loadnext="true"
|
||||||
|
v-slot:default="{ loading, error }" :url-callback="urlCallback" @load="onadload" @close="onadclose"
|
||||||
|
@error="onaderror">
|
||||||
|
<view class="ad-error" v-if="error">{{ error }}</view>
|
||||||
|
</ad-rewarded-video>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -115,21 +123,21 @@ export default {
|
|||||||
tixianList: [{
|
tixianList: [{
|
||||||
money: '10'
|
money: '10'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
money: '20'
|
money: '20'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
money: '50'
|
money: '50'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
money: '100'
|
money: '100'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
money: '200'
|
money: '200'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
money: '500'
|
money: '500'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
value: 0,
|
value: 0,
|
||||||
min: '',
|
min: '',
|
||||||
@@ -141,6 +149,27 @@ export default {
|
|||||||
page: 1,
|
page: 1,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
totalCount: 0,
|
totalCount: 0,
|
||||||
|
isWithdraw: false,
|
||||||
|
urlCallback: null,
|
||||||
|
adRewardedVideo: true,
|
||||||
|
ruleShow: true,
|
||||||
|
ruleInfo: `
|
||||||
|
用户在平台中对奖励提现的,适用以下规则:
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
1,用户的收益达到最低提现金额要求后,可以申请提现。每日发起前10笔提现为自动到账,超出则需第二个工作日后到账。
|
||||||
|
<br/>
|
||||||
|
2,用户需要通过支付宝提现,需按照要求绑定支付宝账号并填写提现金额或其他提现所需信息,请确保提供的信息准确无误,以免提现失败。
|
||||||
|
<br/>
|
||||||
|
3,如果用户发现显示「提现失败」,需确认当前填写或绑定的支付宝账号或银行卡账号是否正确,以及支付宝账号是否可用。如果用户发现显示「提现成功」但没到账
|
||||||
|
<br/>
|
||||||
|
(1)如果用户有多个支付宝账号,请检查用户是否提现到了其他支付宝账号。
|
||||||
|
<br/>
|
||||||
|
(2)高峰期提现人数多会导致网络拥堵,显示提现成功之后72小时内属于正常现象,请耐心等候。
|
||||||
|
<br/>
|
||||||
|
4,每日23:00至次日11:00为系统维护时间,活动的对应奖励可能延迟到账。提现通常会在72小时内到账,如遇双休日、节假日,提现到账时间可能会延长。活动高峰期间,由于网络拥堵,用户可能存在短时间内无法提现的情况。平台将尽最大努力及时恢复提现功能,但无需因此承担任何责任。
|
||||||
|
<br/>
|
||||||
|
`,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -153,6 +182,7 @@ export default {
|
|||||||
this.aliZhiFuBao = uni.getStorageSync('zhiFuBao')
|
this.aliZhiFuBao = uni.getStorageSync('zhiFuBao')
|
||||||
this.aliZhiFuBaoName = uni.getStorageSync('zhiFuBaoName')
|
this.aliZhiFuBaoName = uni.getStorageSync('zhiFuBaoName')
|
||||||
this.ymfgetcashMoney()
|
this.ymfgetcashMoney()
|
||||||
|
this.getCanCash()
|
||||||
|
|
||||||
},
|
},
|
||||||
onReachBottom: function () {
|
onReachBottom: function () {
|
||||||
@@ -170,6 +200,61 @@ export default {
|
|||||||
// this.list();
|
// this.list();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
onNavigationBarButtonTap() {
|
||||||
|
this.showRule()
|
||||||
|
},
|
||||||
|
showRule() {
|
||||||
|
this.ruleShow = true
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 广告播放成功回调
|
||||||
|
* @param {Object} e
|
||||||
|
*/
|
||||||
|
async onadclose(e) {
|
||||||
|
const detail = e.detail
|
||||||
|
if (detail && detail.isEnded) {
|
||||||
|
// 正常播放结束
|
||||||
|
let res = await this.$Request.getT('app/ad/state', {
|
||||||
|
extraKey: this.urlCallback.extra
|
||||||
|
})
|
||||||
|
this.getCanCash()
|
||||||
|
} else {
|
||||||
|
// 播放中途退出
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 广告加载失败回调
|
||||||
|
* @param {Object} e
|
||||||
|
*/
|
||||||
|
onaderror(e) {
|
||||||
|
if (this.adRewardedVideoloadNum >= 3) {
|
||||||
|
this.adRewardedVideo = false;
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.adRewardedVideoloadNum++
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$refs.adRewardedVideo.load();
|
||||||
|
}, 1000); // 10
|
||||||
|
console.log("广告加载失败")
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 广告数据加载成功回调
|
||||||
|
* @param {Object} e
|
||||||
|
*/
|
||||||
|
onadload(e) {
|
||||||
|
this.adRewardedVideo = true;
|
||||||
|
console.log('广告数据加载成功');
|
||||||
|
},
|
||||||
|
|
||||||
|
getCanCash() {
|
||||||
|
this.$Request.getT('/app/cash/canCash').then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.isWithdraw = res.data;
|
||||||
|
} else {
|
||||||
|
this.isWithdraw = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
ymfmoneyInput(e) {
|
ymfmoneyInput(e) {
|
||||||
let num = e.detail.value.match(/^\d*(\.?\d{0,2})/g)[0] || null;
|
let num = e.detail.value.match(/^\d*(\.?\d{0,2})/g)[0] || null;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -287,6 +372,16 @@ export default {
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
that.ymfgetcashMoney()
|
that.ymfgetcashMoney()
|
||||||
}, 1500)
|
}, 1500)
|
||||||
|
} else if (res.code == 9991) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
setTimeout(function () {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/me/yaoqing/zhifubao-tixain'
|
||||||
|
});
|
||||||
|
}, 1500)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -301,7 +396,22 @@ export default {
|
|||||||
ymfcheckMobile(money) {
|
ymfcheckMobile(money) {
|
||||||
return RegExp(/^1[34578]\d{9}$/).test(money);
|
return RegExp(/^1[34578]\d{9}$/).test(money);
|
||||||
},
|
},
|
||||||
|
withdraw() {
|
||||||
|
if (!this.isWithdraw) {
|
||||||
|
this.urlCallback = {
|
||||||
|
userId: this.userId,
|
||||||
|
extra: 'cash:' + this.userId + "" + new Date().getTime(),
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$refs.adRewardedVideo.show();
|
||||||
|
} else {
|
||||||
|
this.ymfgetOut()
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
ymfgetOut() {
|
ymfgetOut() {
|
||||||
|
|
||||||
|
|
||||||
let that = this;
|
let that = this;
|
||||||
let token = that.token
|
let token = that.token
|
||||||
let userId = that.userId
|
let userId = that.userId
|
||||||
@@ -326,7 +436,7 @@ export default {
|
|||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "提现申请提示",
|
title: "提现申请提示",
|
||||||
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + that
|
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + that
|
||||||
.money + '元\n\n收款人账号:' + that.aliZhiFuBao + '',
|
.money + '元\n\n收款人账号:' + that.aliZhiFuBao + '',
|
||||||
// content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + that
|
// content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + that
|
||||||
// .money + '元\n\n提现手续费:' + shouxufei +
|
// .money + '元\n\n提现手续费:' + shouxufei +
|
||||||
// '\n\n收款人账号:' + that.aliZhiFuBao + '',
|
// '\n\n收款人账号:' + that.aliZhiFuBao + '',
|
||||||
@@ -342,8 +452,8 @@ export default {
|
|||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "提现申请提示",
|
title: "提现申请提示",
|
||||||
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + that
|
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + that
|
||||||
.money + '元\n\n收款人账号:' + that.aliZhiFuBao +
|
.money + '元\n\n收款人账号:' + that.aliZhiFuBao +
|
||||||
'',
|
'',
|
||||||
success: (e) => {
|
success: (e) => {
|
||||||
if (e.confirm) {
|
if (e.confirm) {
|
||||||
// that.money = money
|
// that.money = money
|
||||||
@@ -367,8 +477,8 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(that.aliZhiFuBao,that.aliZhiFuBaoName,'tixian');
|
console.log(that.aliZhiFuBao, that.aliZhiFuBaoName, 'tixian');
|
||||||
this.ymfgoaliZhiFuBao()
|
this.ymfgoaliZhiFuBao()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -389,7 +499,7 @@ export default {
|
|||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提现申请提示',
|
title: '提现申请提示',
|
||||||
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + money +
|
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + money +
|
||||||
'元\n\n收款人账号:' + that.aliZhiFuBao + '',
|
'元\n\n收款人账号:' + that.aliZhiFuBao + '',
|
||||||
// content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + money +
|
// content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + money +
|
||||||
// '元\n\n提现手续费:' + shouxufei +
|
// '元\n\n提现手续费:' + shouxufei +
|
||||||
// '\n\n收款人账号:' + that.aliZhiFuBao + '',
|
// '\n\n收款人账号:' + that.aliZhiFuBao + '',
|
||||||
@@ -409,8 +519,8 @@ export default {
|
|||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提现申请提示',
|
title: '提现申请提示',
|
||||||
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + money +
|
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.aliZhiFuBaoName + '\n\n提现金额:' + money +
|
||||||
'元\n\n收款人账号:' + that.aliZhiFuBao +
|
'元\n\n收款人账号:' + that.aliZhiFuBao +
|
||||||
'',
|
'',
|
||||||
success: e => {
|
success: e => {
|
||||||
if (e.confirm) {
|
if (e.confirm) {
|
||||||
this.money = money
|
this.money = money
|
||||||
@@ -452,21 +562,41 @@ export default {
|
|||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
// @import '../../static/css/index.css';
|
// @import '../../static/css/index.css';
|
||||||
.top-bg{
|
.top-bg {
|
||||||
background-color: #ff7581;height: 400upx;border-bottom-right-radius: 40upx;border-bottom-left-radius: 40upx;
|
background-color: #ff7581;
|
||||||
|
height: 400upx;
|
||||||
|
border-bottom-right-radius: 40upx;
|
||||||
|
border-bottom-left-radius: 40upx;
|
||||||
}
|
}
|
||||||
.class1{
|
|
||||||
font-size: 32upx;color: #FFFFFF;padding-top: 100upx;
|
.class1 {
|
||||||
|
font-size: 32upx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
padding-top: 100upx;
|
||||||
}
|
}
|
||||||
.class2{
|
|
||||||
font-size: 40upx;color: #FFFFFF;padding-top: 20upx;
|
.class2 {
|
||||||
|
font-size: 40upx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
padding-top: 20upx;
|
||||||
}
|
}
|
||||||
.class3{
|
|
||||||
width: 90%;height: max-content;margin-left: 40upx;background-color: #FFFFFF;box-shadow: rgba(183, 183, 183, 0.3) 0px 1px 10px;margin-top: 50upx;border-radius: 20upx;
|
.class3 {
|
||||||
|
width: 90%;
|
||||||
|
height: max-content;
|
||||||
|
margin-left: 40upx;
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
box-shadow: rgba(183, 183, 183, 0.3) 0px 1px 10px;
|
||||||
|
margin-top: 50upx;
|
||||||
|
border-radius: 20upx;
|
||||||
}
|
}
|
||||||
.class4{
|
|
||||||
display: flex;flex-direction: row;padding: 20upx;
|
.class4 {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
padding: 20upx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.view2-view-text {
|
.view2-view-text {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
|||||||
@@ -4,8 +4,9 @@
|
|||||||
|
|
||||||
<list-cell title="支付宝账号" type="text" placeholder="请输入要绑定的支付宝手机号" v-model="zhiFuBao"></list-cell>
|
<list-cell title="支付宝账号" type="text" placeholder="请输入要绑定的支付宝手机号" v-model="zhiFuBao"></list-cell>
|
||||||
|
|
||||||
|
<list-cell title="身份证号码" type="text" placeholder="请输入要绑定身份证号码" v-model="certNum"></list-cell>
|
||||||
|
|
||||||
<button :class="zhiFuBao&&zhiFuBaoName?'confirm-btn':'ymf-confirm-btn1'" @click="ymftoLogin"
|
<button :class="zhiFuBao && zhiFuBaoName ? 'confirm-btn' : 'ymf-confirm-btn1'" @click="ymftoLogin"
|
||||||
:disabled="logining">绑定账户</button>
|
:disabled="logining">绑定账户</button>
|
||||||
<view style="padding: 32upx 64upx;font-size: 24upx;color: #999999;">提示:请正确填写收款人的支付宝账户和真实的收款人姓名,否则将无法正常收款</view>
|
<view style="padding: 32upx 64upx;font-size: 24upx;color: #999999;">提示:请正确填写收款人的支付宝账户和真实的收款人姓名,否则将无法正常收款</view>
|
||||||
|
|
||||||
@@ -13,166 +14,177 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import listCell from '@/me/components/com-input';
|
import listCell from '@/me/components/com-input';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
listCell
|
listCell
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
zhiFuBao: '',
|
zhiFuBao: '',
|
||||||
zhiFuBaoName: '',
|
zhiFuBaoName: '',
|
||||||
logining: false
|
logining: false,
|
||||||
}
|
certNum: '',
|
||||||
},
|
|
||||||
onLoad() {
|
|
||||||
let userId = uni.getStorageSync('userId');
|
|
||||||
|
|
||||||
if (userId) {
|
}
|
||||||
this.$u.api.userinfo().then(res => {
|
},
|
||||||
if (res.code === 0) {
|
onLoad() {
|
||||||
if (res.data.zhiFuBao) {
|
let userId = uni.getStorageSync('userId');
|
||||||
this.zhiFuBao = res.data.zhiFuBao;
|
this.certNum = uni.getStorageSync('certNum')
|
||||||
}
|
|
||||||
if (res.data.zhiFuBaoName) {
|
if (userId) {
|
||||||
this.zhiFuBaoName = res.data.zhiFuBaoName;
|
this.$u.api.userinfo().then(res => {
|
||||||
}
|
if (res.code === 0) {
|
||||||
// console.log(this.zhiFuBao )
|
if (res.data.zhiFuBao) {
|
||||||
// console.log(this.zhiFuBaoName )
|
this.zhiFuBao = res.data.zhiFuBao;
|
||||||
|
}
|
||||||
|
if (res.data.zhiFuBaoName) {
|
||||||
|
this.zhiFuBaoName = res.data.zhiFuBaoName;
|
||||||
|
}
|
||||||
|
if (res.data.certNo) {
|
||||||
|
this.certNum = res.data.certNo;
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
inputChange(e) {
|
|
||||||
const key = e.currentTarget.dataset.key;
|
|
||||||
this[key] = e.detail.value;
|
|
||||||
},
|
|
||||||
ymfnavBack() {
|
|
||||||
uni.navigateBack();
|
|
||||||
},
|
|
||||||
|
|
||||||
ymftoLogin() {
|
|
||||||
// console.log(this.zhiFuBao )
|
|
||||||
// console.log(this.zhiFuBaoName )
|
|
||||||
// const {
|
|
||||||
// zhiFuBao,
|
|
||||||
// zhiFuBaoName
|
|
||||||
// } = this;
|
|
||||||
let zhiFuBao = this.zhiFuBao
|
|
||||||
let zhiFuBaoName = this.zhiFuBaoName
|
|
||||||
console.log(zhiFuBao)
|
|
||||||
console.log(zhiFuBaoName)
|
|
||||||
if (!zhiFuBao) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请设置收款人姓名',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
} else if (!zhiFuBaoName) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请设置收款人支付宝账号',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&zhiFuBaoName=' + zhiFuBaoName).then(
|
|
||||||
res => {
|
|
||||||
console.log(res);
|
|
||||||
if(res.code===0){
|
|
||||||
uni.setStorageSync('zhiFuBao', zhiFuBao)
|
|
||||||
uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
|
|
||||||
uni.showToast({
|
|
||||||
title: '修改成功',
|
|
||||||
icon: 'none',
|
|
||||||
complete() {
|
|
||||||
setTimeout(function() {
|
|
||||||
uni.navigateBack();
|
|
||||||
}, 1000)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
uni.showToast({
|
|
||||||
title:res.msg||'修改失败',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// if (!zhifubao) {
|
})
|
||||||
// this.$queue.showToast("请设置收款人支付宝账号");
|
}
|
||||||
// } else if (!zhifubaoName) {
|
|
||||||
// this.$queue.showToast("请设置收款人姓名");
|
},
|
||||||
// } else {
|
methods: {
|
||||||
// this.$queue.showLoading("修改中...");
|
inputChange(e) {
|
||||||
// this.$Request.postT("/cash/userinfo?userId=" + userId + "&zhifubao=" + zhifubao + "&zhifubaoName=" + zhifubaoName).then(
|
const key = e.currentTarget.dataset.key;
|
||||||
// res => {
|
this[key] = e.detail.value;
|
||||||
// if (res.status === 0) {
|
},
|
||||||
// if (res.data.zhifubao) {
|
ymfnavBack() {
|
||||||
// this.zhifubao = res.data.zhifubao;
|
uni.navigateBack();
|
||||||
// }
|
|
||||||
// if (res.data.zhifubaoName) {
|
|
||||||
// this.zhifubaoName = res.data.zhifubaoName;
|
|
||||||
// }
|
|
||||||
// this.ymfnavBack();
|
|
||||||
// } else {
|
|
||||||
// // this.$queue.showToast(res.msg)
|
|
||||||
// }
|
|
||||||
// uni.hideLoading();
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
ymftoLogin() {
|
||||||
|
// console.log(this.zhiFuBao )
|
||||||
|
// console.log(this.zhiFuBaoName )
|
||||||
|
// const {
|
||||||
|
// zhiFuBao,
|
||||||
|
// zhiFuBaoName
|
||||||
|
// } = this;
|
||||||
|
let zhiFuBao = this.zhiFuBao
|
||||||
|
let zhiFuBaoName = this.zhiFuBaoName
|
||||||
|
let certNum = this.certNum
|
||||||
|
|
||||||
|
if (!zhiFuBao) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请设置收款人姓名',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} else if (!certNum) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请设置收款人身份证账号',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} else if (!zhiFuBaoName) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请设置收款人支付宝账号',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName + '&certNum=' + certNum).then(
|
||||||
|
res => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.code === 0) {
|
||||||
|
uni.setStorageSync('zhiFuBao', zhiFuBao)
|
||||||
|
uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
|
||||||
|
uni.setStorageSync('certNum', certNum)
|
||||||
|
|
||||||
|
uni.showToast({
|
||||||
|
title: '修改成功',
|
||||||
|
icon: 'none',
|
||||||
|
complete() {
|
||||||
|
setTimeout(function () {
|
||||||
|
uni.navigateBack();
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg || '修改失败',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
// if (!zhifubao) {
|
||||||
|
// this.$queue.showToast("请设置收款人支付宝账号");
|
||||||
|
// } else if (!zhifubaoName) {
|
||||||
|
// this.$queue.showToast("请设置收款人姓名");
|
||||||
|
// } else {
|
||||||
|
// this.$queue.showLoading("修改中...");
|
||||||
|
// this.$Request.postT("/cash/userinfo?userId=" + userId + "&zhifubao=" + zhifubao + "&zhifubaoName=" + zhifubaoName).then(
|
||||||
|
// res => {
|
||||||
|
// if (res.status === 0) {
|
||||||
|
// if (res.data.zhifubao) {
|
||||||
|
// this.zhifubao = res.data.zhifubao;
|
||||||
|
// }
|
||||||
|
// if (res.data.zhifubaoName) {
|
||||||
|
// this.zhifubaoName = res.data.zhifubaoName;
|
||||||
|
// }
|
||||||
|
// this.ymfnavBack();
|
||||||
|
// } else {
|
||||||
|
// // this.$queue.showToast(res.msg)
|
||||||
|
// }
|
||||||
|
// uni.hideLoading();
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang='scss'>
|
<style lang='scss'>
|
||||||
page {
|
page {
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
padding-top: 32upx;
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ymf-confirm-btn1 {
|
||||||
|
width: 300px;
|
||||||
|
height: 42px;
|
||||||
|
line-height: 42px;
|
||||||
|
border-radius: 30px;
|
||||||
|
margin-top: 70upx;
|
||||||
|
/* background: whitesmoke; */
|
||||||
|
background: #ff7581;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 32rpx;
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
border-radius: 60px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.page {
|
|
||||||
padding-top: 32upx;
|
|
||||||
position: relative;
|
.confirm-btn {
|
||||||
width: 100%;
|
width: 300px;
|
||||||
height: 100%;
|
height: 42px;
|
||||||
overflow: hidden;
|
line-height: 42px;
|
||||||
background: #ffffff;
|
border-radius: 30px;
|
||||||
}
|
margin-top: 70upx;
|
||||||
|
background: #ff7581;
|
||||||
.ymf-confirm-btn1 {
|
color: #ffffff;
|
||||||
width: 300px;
|
font-size: 32rpx;
|
||||||
height: 42px;
|
|
||||||
line-height: 42px;
|
&:after {
|
||||||
border-radius: 30px;
|
border-radius: 60px;
|
||||||
margin-top: 70upx;
|
|
||||||
/* background: whitesmoke; */
|
|
||||||
background: #ff7581;
|
|
||||||
color: #FFFFFF;
|
|
||||||
font-size: 32rpx;
|
|
||||||
|
|
||||||
&:after {
|
|
||||||
border-radius: 60px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.confirm-btn {
|
|
||||||
width: 300px;
|
|
||||||
height: 42px;
|
|
||||||
line-height: 42px;
|
|
||||||
border-radius: 30px;
|
|
||||||
margin-top: 70upx;
|
|
||||||
background: #ff7581;
|
|
||||||
color: #ffffff;
|
|
||||||
font-size: 32rpx;
|
|
||||||
|
|
||||||
&:after {
|
|
||||||
border-radius: 60px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
150
pages.json
150
pages.json
@@ -10,7 +10,6 @@
|
|||||||
"navigationBarTitleText": "任务",
|
"navigationBarTitleText": "任务",
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -26,7 +25,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "任务"
|
"navigationBarTitleText": "任务"
|
||||||
// "navigationStyle": "custom"
|
// "navigationStyle": "custom"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -34,7 +32,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "任务",
|
"navigationBarTitleText": "任务",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -65,7 +62,8 @@
|
|||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/index/course/orderDet",
|
"path": "pages/index/course/orderDet",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "确认订单",
|
"navigationBarTitleText": "确认订单",
|
||||||
@@ -79,8 +77,6 @@
|
|||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/learn/index",
|
"path": "pages/learn/index",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -111,8 +107,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/me/vip/index",
|
"path": "pages/me/vip/index",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -124,8 +118,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/login/login",
|
"path": "pages/login/login",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -163,7 +155,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/login/bind",
|
"path": "pages/login/bind",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "绑定手机号",
|
"navigationBarTitleText": "绑定手机号",
|
||||||
@@ -176,7 +169,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/login/register",
|
"path": "pages/login/register",
|
||||||
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"navigationBarBackgroundColor": "#f1a48a",
|
"navigationBarBackgroundColor": "#f1a48a",
|
||||||
@@ -201,7 +193,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/yodwbsHlmJ/yodwbsHlmJ",
|
"path": "pages/yodwbsHlmJ/yodwbsHlmJ",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "追剧",
|
"navigationBarTitleText": "追剧",
|
||||||
@@ -211,8 +204,8 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "pages/yodwbsHlmJ/aaacasadwqvb",
|
"path": "pages/yodwbsHlmJ/aaacasadwqvb",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "追剧as",
|
"navigationBarTitleText": "追剧as",
|
||||||
@@ -222,8 +215,8 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "pages/video/video",
|
"path": "pages/video/video",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "推荐",
|
"navigationBarTitleText": "推荐",
|
||||||
@@ -239,9 +232,7 @@
|
|||||||
"video-player": "ext://industry/video-player"
|
"video-player": "ext://industry/video-player"
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/login/appEq",
|
"path": "pages/login/appEq",
|
||||||
@@ -253,7 +244,8 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/login/iosmobile",
|
"path": "pages/login/iosmobile",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "手机号绑定"
|
"navigationBarTitleText": "手机号绑定"
|
||||||
@@ -308,38 +300,48 @@
|
|||||||
"navigationBarTitleText": "意见反馈",
|
"navigationBarTitleText": "意见反馈",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "HEWZtgyqRH/HEWZtgyqRH",
|
"path": "HEWZtgyqRH/HEWZtgyqRH",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的余额"
|
"navigationBarTitleText": "我的余额"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "HEWZtgyqRH/YGivHgyqkI"
|
"path": "HEWZtgyqRH/YGivHgyqkI"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "HEWZtgyqRH/EsBgyqacOi"
|
"path": "HEWZtgyqRH/EsBgyqacOi"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "feedbackIndexczgw/issuer"
|
"path": "feedbackIndexczgw/issuer"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "feedbackIndexczgw/Invoicedgoods"
|
"path": "feedbackIndexczgw/Invoicedgoods"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "feedback/toexamine"
|
"path": "feedback/toexamine"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "feedback/orderinquiry"
|
"path": "feedback/orderinquiry"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "feedbackIndexczgw/feedbackIndexczgw",
|
"path": "feedbackIndexczgw/feedbackIndexczgw",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "帮助中心",
|
"navigationBarTitleText": "帮助中心",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "helpDetail/helpDetail",
|
"path": "helpDetail/helpDetail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "帮助详情",
|
"navigationBarTitleText": "帮助详情",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "message/duanju-message-home",
|
"path": "message/duanju-message-home",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "消息中心"
|
"navigationBarTitleText": "消息中心"
|
||||||
@@ -396,9 +398,13 @@
|
|||||||
"path": "yaoqing/ymg-yaoqing-tixian",
|
"path": "yaoqing/ymg-yaoqing-tixian",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "申请提现",
|
"navigationBarTitleText": "申请提现",
|
||||||
"h5": {
|
// "navigationStyle": "custom",
|
||||||
|
"app-plus": {
|
||||||
"titleNView": {
|
"titleNView": {
|
||||||
"backgroundColor": "#FFFFFF"
|
"buttons": [{
|
||||||
|
"text": "规则",
|
||||||
|
"fontSize": "30rpx"
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -475,7 +481,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "setting/kefu",
|
"path": "setting/kefu",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "客服",
|
"navigationBarTitleText": "客服",
|
||||||
@@ -525,8 +532,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "detail/detail",
|
"path": "detail/detail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
@@ -565,12 +572,9 @@
|
|||||||
"video-player": "ext://industry/video-player"
|
"video-player": "ext://industry/video-player"
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
|
|
||||||
"path": "detail/detailIOS",
|
"path": "detail/detailIOS",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
@@ -609,45 +613,42 @@
|
|||||||
"video-player": "ext://industry/video-player"
|
"video-player": "ext://industry/video-player"
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "FrdwbsihPr/FrdwbsihPr",
|
"path": "FrdwbsihPr/FrdwbsihPr",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "金币充值",
|
"navigationBarTitleText": "金币充值",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "FrdwbsihPr/RSKjJIdwbH",
|
"path": "FrdwbsihPr/RSKjJIdwbH",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "金币明细",
|
"navigationBarTitleText": "金币明细",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "jilu/duanju-zuijin-guankan",
|
"path": "jilu/duanju-zuijin-guankan",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "最近观看",
|
"navigationBarTitleText": "最近观看",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "jilu/duanju-zhjuiju-jilu",
|
"path": "jilu/duanju-zhjuiju-jilu",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "追剧记录",
|
"navigationBarTitleText": "追剧记录",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "jifen/duanju-jifen",
|
"path": "jifen/duanju-jifen",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的积分",
|
"navigationBarTitleText": "我的积分",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "jifen/duanju-jifen-duihuan",
|
"path": "jifen/duanju-jifen-duihuan",
|
||||||
@@ -655,14 +656,13 @@
|
|||||||
"navigationBarTitleText": "积分兑换",
|
"navigationBarTitleText": "积分兑换",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "jilu/duanju-love",
|
"path": "jilu/duanju-love",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的喜欢",
|
"navigationBarTitleText": "我的喜欢",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "jilu/new/fensehn-first",
|
"path": "jilu/new/fensehn-first",
|
||||||
@@ -670,7 +670,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "jilu/new/free-create-fenshen",
|
"path": "jilu/new/free-create-fenshen",
|
||||||
@@ -678,7 +677,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "jifen/new/create-zhuanye-fenshen",
|
"path": "jifen/new/create-zhuanye-fenshen",
|
||||||
@@ -686,7 +684,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "jifen/new/fenshen-detail",
|
"path": "jifen/new/fenshen-detail",
|
||||||
@@ -694,7 +691,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "payOrder/duanju-xiadan",
|
"path": "payOrder/duanju-xiadan",
|
||||||
@@ -702,7 +698,6 @@
|
|||||||
"navigationBarTitleText": "下单",
|
"navigationBarTitleText": "下单",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "payOrder/new/index",
|
"path": "payOrder/new/index",
|
||||||
@@ -710,7 +705,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "payOrder/new/newindex",
|
"path": "payOrder/new/newindex",
|
||||||
@@ -718,7 +712,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "setting/logOff",
|
"path": "setting/logOff",
|
||||||
@@ -726,15 +719,15 @@
|
|||||||
"navigationBarTitleText": "注销账号",
|
"navigationBarTitleText": "注销账号",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "setting/offXieyi",
|
"path": "setting/offXieyi",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "用户注销协议",
|
"navigationBarTitleText": "用户注销协议",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "juqing/duanju-juqing-home",
|
"path": "juqing/duanju-juqing-home",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "剧情介绍",
|
"navigationBarTitleText": "剧情介绍",
|
||||||
@@ -747,7 +740,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "juqing/new/waiting-result",
|
"path": "juqing/new/waiting-result",
|
||||||
@@ -755,14 +747,13 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "mFYpdwbMdk/mFYpdwbMdk",
|
"path": "mFYpdwbMdk/mFYpdwbMdk",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "壁纸",
|
"navigationBarTitleText": "壁纸",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "rHTgyqGoIV/rHTgyqGoIV",
|
"path": "rHTgyqGoIV/rHTgyqGoIV",
|
||||||
@@ -841,13 +832,11 @@
|
|||||||
{
|
{
|
||||||
"root": "pay",
|
"root": "pay",
|
||||||
"pages": [{
|
"pages": [{
|
||||||
"path": "success",
|
"path": "success",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "支付成功"
|
"navigationBarTitleText": "支付成功"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}]
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "other",
|
"root": "other",
|
||||||
@@ -887,7 +876,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "抽奖",
|
"navigationBarTitleText": "抽奖",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -924,24 +912,20 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "短剧",
|
"navigationBarTitleText": "短剧",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF",
|
"navigationBarBackgroundColor": "#FFFFFF",
|
||||||
"backgroundColor": "#F8F8F8"
|
"backgroundColor": "#F8F8F8"
|
||||||
|
|
||||||
},
|
},
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
"color": "#333333",
|
"color": "#333333",
|
||||||
"selectedColor": "#FF7581",
|
"selectedColor": "#FF7581",
|
||||||
"backgroundColor": "#FFFFFF",
|
"backgroundColor": "#FFFFFF",
|
||||||
"borderStyle": "black",
|
"borderStyle": "black",
|
||||||
|
|
||||||
"list": [{
|
"list": [{
|
||||||
"pagePath": "pages/index/index2",
|
"pagePath": "pages/index/index2",
|
||||||
"iconPath": "static/tabbar/index@2x.png",
|
"iconPath": "static/tabbar/index@2x.png",
|
||||||
@@ -961,14 +945,12 @@
|
|||||||
// "text": "刷剧"
|
// "text": "刷剧"
|
||||||
// }
|
// }
|
||||||
// ,
|
// ,
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// "pagePath": "pages/video/video",
|
// "pagePath": "pages/video/video",
|
||||||
// "iconPath": "static/tabbar/learn@2x.png",
|
// "iconPath": "static/tabbar/learn@2x.png",
|
||||||
// "selectedIconPath": "static/tabbar/learn_@2x.png",
|
// "selectedIconPath": "static/tabbar/learn_@2x.png",
|
||||||
// "text": "推荐"
|
// "text": "推荐"
|
||||||
// },
|
// },
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// "pagePath": "pages/chasingDrama/chasingDrama",
|
// "pagePath": "pages/chasingDrama/chasingDrama",
|
||||||
// "iconPath": "static/tabbar/zhuiju.png",
|
// "iconPath": "static/tabbar/zhuiju.png",
|
||||||
|
|||||||
@@ -14,179 +14,209 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<template v-if="noticeList.length>0&&isShowMoneyPay">
|
<template v-if="noticeList.length > 0 && isShowMoneyPay">
|
||||||
<view class="gongao">
|
<view class="gongao">
|
||||||
<view class="gongaoicon">
|
<view class="gongaoicon">
|
||||||
公告
|
公告
|
||||||
</view>
|
</view>
|
||||||
<swiper :autoplay="true" :vertical="true" :interval="4000" :circular="true" :indicator-dots="false"
|
<swiper :autoplay="true" :vertical="true" :interval="4000" :circular="true" :indicator-dots="false"
|
||||||
class="swiperstyle">
|
class="swiperstyle">
|
||||||
<swiper-item @tap='goMsg(item.url)' v-for="(item, index) in noticeList" :key="index">
|
<swiper-item @tap='goMsg(item.url)' v-for="(item, index) in noticeList" :key="index">
|
||||||
<view style="height: 80rpx;line-height: 80rpx;">{{item.title}}</view>
|
<view style="height: 80rpx;line-height: 80rpx;">{{ item.title }}</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;align-items: center;justify-content: space-between;padding:0 20rpx;">
|
<view style="display: flex;align-items: center;justify-content: space-between;padding:0 20rpx;">
|
||||||
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx" :style="active==1?'color:#ff6b7f':''" @tap="getrecomVideo('',1)">
|
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx"
|
||||||
|
:style="active == 1 ? 'color:#ff6b7f' : ''" @tap="getrecomVideo('', 1)">
|
||||||
最新
|
最新
|
||||||
</view>
|
</view>
|
||||||
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx" :style="active==2?'color:#ff6b7f':''" @tap="getrecomVideo('1',2)">
|
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx"
|
||||||
|
:style="active == 2 ? 'color:#ff6b7f' : ''" @tap="getrecomVideo('1', 2)">
|
||||||
排行
|
排行
|
||||||
</view>
|
</view>
|
||||||
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx" :style="active==3?'color:#ff6b7f':''" @tap="getrecomVideo('2',3)">
|
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx"
|
||||||
|
:style="active == 3 ? 'color:#ff6b7f' : ''" @tap="getrecomVideo('2', 3)">
|
||||||
最热
|
最热
|
||||||
</view>
|
</view>
|
||||||
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx" :style="active==4?'color:#ff6b7f':''" @tap="getrecomVideo('1',4)">
|
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx"
|
||||||
|
:style="active == 4 ? 'color:#ff6b7f' : ''" @tap="getrecomVideo('1', 4)">
|
||||||
剧情
|
剧情
|
||||||
</view>
|
</view>
|
||||||
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx" :style="active==5?'color:#ff6b7f':''" @tap="getrecomVideo('2',5)">
|
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx"
|
||||||
|
:style="active == 5 ? 'color:#ff6b7f' : ''" @tap="getrecomVideo('2', 5)">
|
||||||
飙升
|
飙升
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<contentlist :list='list'></contentlist>
|
<contentlist :list='list'></contentlist>
|
||||||
</view>
|
</view>
|
||||||
<u-image v-if="isShowMoneyPay" @click="goMsg('/me/VjgyqAzklr/VjgyqAzklr')" :src="`../../static/red-pack-new.gif`"
|
<u-image v-if="isShowMoneyPay" @click="goMsg('/me/VjgyqAzklr/VjgyqAzklr')"
|
||||||
|
:src="`../../static/red-pack-new.gif`"
|
||||||
style="width: 200rpx;height: 200rpx;position: fixed;right: 10rpx;bottom: 180rpx;"></u-image>
|
style="width: 200rpx;height: 200rpx;position: fixed;right: 10rpx;bottom: 180rpx;"></u-image>
|
||||||
|
|
||||||
|
<u-modal v-model="ruleShow" confirm-text="知道了" :title="rule_title" :title-style="{ fontWeight: '700' }"
|
||||||
|
confirm-color="rgb(255, 117, 129)">
|
||||||
|
<view class="u-p-30 u-text-left">
|
||||||
|
<scroll-view scroll-y="true" style="max-height: 50vh;">
|
||||||
|
<rich-text class="color-666" :nodes="rule_content"></rich-text>
|
||||||
|
</scroll-view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</u-modal>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import contentlist from './components/contentlist.vue'
|
import contentlist from './components/contentlist.vue'
|
||||||
import httpsRequest from '@/common/httpRequest.js'
|
import httpsRequest from '@/common/httpRequest.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
contentlist
|
contentlist
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
noticeList: [], //公告列表
|
noticeList: [], //公告列表
|
||||||
list: [],
|
list: [],
|
||||||
page: 1,
|
page: 1,
|
||||||
active:1,
|
active: 1,
|
||||||
isShowMoneyPay: true,
|
isShowMoneyPay: true,
|
||||||
}
|
ruleShow: false,
|
||||||
},
|
rule_title: '',
|
||||||
onShow() {
|
rule_content: '',
|
||||||
this.getMsg()
|
|
||||||
this.getrecomVideo()
|
|
||||||
|
|
||||||
httpsRequest.getT("/app/common/type/919", {}).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
const sysInfo = uni.getSystemInfoSync();
|
|
||||||
let isIos = sysInfo.platform == 'ios'
|
|
||||||
this.isIosApp = isIos
|
|
||||||
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
onReachBottom() {
|
|
||||||
++this.page
|
|
||||||
this.getrecomVideo()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// 跳转公告链接
|
|
||||||
goMsg(url) {
|
|
||||||
if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) {
|
|
||||||
uni.navigateTo({
|
|
||||||
url
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
//#ifndef H5
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/index/webView?url=' + url
|
|
||||||
});
|
|
||||||
//#endif
|
|
||||||
//#ifdef H5
|
|
||||||
window.location.href = url;
|
|
||||||
//#endif
|
|
||||||
}
|
|
||||||
},
|
|
||||||
moreVideo() {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/index/course/courseList?title=最新热播'
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 列表
|
|
||||||
//获取推荐视频
|
|
||||||
getrecomVideo(sort,active=1) {
|
|
||||||
this.active=active
|
|
||||||
if (sort) {
|
|
||||||
this.page = 1
|
|
||||||
}
|
|
||||||
let data = {
|
|
||||||
page: this.page,
|
|
||||||
limit: 12,
|
|
||||||
sort: sort,
|
|
||||||
classifyId: ''
|
|
||||||
}
|
|
||||||
this.$Request.getT('/app/course/selectCourse', data).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
if (this.page == 1) {
|
|
||||||
this.list = res.data.list
|
|
||||||
} else {
|
|
||||||
this.list = [...this.list, ...res.data.list]
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 公告
|
|
||||||
getMsg() {
|
|
||||||
let data = {
|
|
||||||
page: 1,
|
|
||||||
limit: 5,
|
|
||||||
state: 1
|
|
||||||
}
|
|
||||||
this.$u.api.msg(data).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.notice = res.data.list
|
|
||||||
res.data.list.forEach(res => {
|
|
||||||
this.noticeList.push(res)
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.msg,
|
|
||||||
duration: 1000,
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.getMsg()
|
||||||
|
this.getrecomVideo()
|
||||||
|
|
||||||
|
httpsRequest.getT("/app/common/type/919", {}).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
const sysInfo = uni.getSystemInfoSync();
|
||||||
|
let isIos = sysInfo.platform == 'ios'
|
||||||
|
this.isIosApp = isIos
|
||||||
|
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
httpsRequest.getT("/app/announcement", {}).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
if (res.data && res.data.state == 1) {
|
||||||
|
this.ruleShow = true
|
||||||
|
this.rule_title = res.data.title
|
||||||
|
this.rule_content = res.data.content
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
++this.page
|
||||||
|
this.getrecomVideo()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 跳转公告链接
|
||||||
|
goMsg(url) {
|
||||||
|
if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
//#ifndef H5
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/index/webView?url=' + url
|
||||||
|
});
|
||||||
|
//#endif
|
||||||
|
//#ifdef H5
|
||||||
|
window.location.href = url;
|
||||||
|
//#endif
|
||||||
|
}
|
||||||
|
},
|
||||||
|
moreVideo() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/index/course/courseList?title=最新热播'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 列表
|
||||||
|
//获取推荐视频
|
||||||
|
getrecomVideo(sort, active = 1) {
|
||||||
|
this.active = active
|
||||||
|
if (sort) {
|
||||||
|
this.page = 1
|
||||||
|
}
|
||||||
|
let data = {
|
||||||
|
page: this.page,
|
||||||
|
limit: 12,
|
||||||
|
sort: sort,
|
||||||
|
classifyId: ''
|
||||||
|
}
|
||||||
|
this.$Request.getT('/app/course/selectCourse', data).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
if (this.page == 1) {
|
||||||
|
this.list = res.data.list
|
||||||
|
} else {
|
||||||
|
this.list = [...this.list, ...res.data.list]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 公告
|
||||||
|
getMsg() {
|
||||||
|
let data = {
|
||||||
|
page: 1,
|
||||||
|
limit: 5,
|
||||||
|
state: 1
|
||||||
|
}
|
||||||
|
this.$u.api.msg(data).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.notice = res.data.list
|
||||||
|
res.data.list.forEach(res => {
|
||||||
|
this.noticeList.push(res)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
duration: 1000,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.gongao {
|
.gongao {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 75rpx;
|
bottom: 75rpx;
|
||||||
left: 70rpx;
|
left: 70rpx;
|
||||||
border-radius: 21rpx 21rpx 21rpx 21rpx;
|
border-radius: 21rpx 21rpx 21rpx 21rpx;
|
||||||
width: 611rpx;
|
width: 611rpx;
|
||||||
height: 78rpx;
|
height: 78rpx;
|
||||||
background-color: rgba(255, 255, 255, .65);
|
background-color: rgba(255, 255, 255, .65);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12rpx;
|
padding: 12rpx;
|
||||||
|
|
||||||
.gongaoicon {
|
.gongaoicon {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
width: 98rpx;
|
width: 98rpx;
|
||||||
height: 50rpx;
|
height: 50rpx;
|
||||||
line-height: 50rpx;
|
line-height: 50rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-image: url('../../static/gonggaobg.png');
|
background-image: url('../../static/gonggaobg.png');
|
||||||
background-size: 98rpx 50rpx;
|
background-size: 98rpx 50rpx;
|
||||||
}
|
|
||||||
|
|
||||||
.swiperstyle {
|
|
||||||
height: 78rpx;
|
|
||||||
width: 80%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.swiperstyle {
|
||||||
|
height: 78rpx;
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -286,6 +286,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.$u.post('/app/Login/registerCode?password=' + code + '&phone=' + mobile).then(res => {
|
this.$u.post('/app/Login/registerCode?password=' + code + '&phone=' + mobile).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
console.log(res,'userid1')
|
||||||
uni.setStorageSync('token', res.token)
|
uni.setStorageSync('token', res.token)
|
||||||
uni.setStorageSync('userId', res.user.userId)
|
uni.setStorageSync('userId', res.user.userId)
|
||||||
uni.setStorageSync('userName', res.user.userName)
|
uni.setStorageSync('userName', res.user.userName)
|
||||||
|
|||||||
Reference in New Issue
Block a user