59 Commits

Author SHA1 Message Date
wwz
4c0766d92b 客服 2025-01-14 16:56:07 +08:00
GYJ
a4c26b4801 版本号 2025-01-14 10:15:35 +08:00
duan
6a6a746334 下拉刷新 2025-01-13 18:09:58 +08:00
duan
3fbd51a3f2 提现广告弹出 2025-01-13 17:45:15 +08:00
duan
fad0ca9ff0 弹窗,广告 2025-01-13 17:42:17 +08:00
duan
dba6bcd906 修改接口,喜欢接口 2025-01-13 16:48:49 +08:00
duan
644f5a446a 隐藏抽奖记录里的图片 2025-01-13 15:33:09 +08:00
duan
b74fff86a4 隐藏广告接口 2025-01-13 15:27:42 +08:00
duan
cbfde6822c 提交代码 2025-01-13 15:25:30 +08:00
GYJ
0b8e005140 文字修改 2025-01-11 17:54:29 +08:00
duan
8803fe81ca 报错问题 2025-01-11 14:05:17 +08:00
duan
7a72c1d4fe Merge branch 'ios-2' of https://e.coding.net/g-cphe0354/duanju/video_app into ios-2 2025-01-11 14:01:30 +08:00
duan
a3b0c66779 提交代码 2025-01-11 14:01:27 +08:00
GYJ
90a92659b4 隐藏信息修改 2025-01-10 19:48:40 +08:00
duan
5d4cb8ccbe 修改token 2025-01-10 18:34:43 +08:00
duan
e3bf3af2d3 修改获取红包次数代码 2025-01-10 18:04:37 +08:00
duan
8ce6713532 修改代码 2025-01-10 17:23:44 +08:00
duan
eddae67fd3 提升判断919权限代码 2025-01-10 16:44:38 +08:00
duan
15f4dc0e73 修改弹窗提示 2025-01-09 17:22:03 +08:00
duan
58ad33a494 更新 2025-01-09 17:03:16 +08:00
duan
8a31aa557b 提交弹窗 2025-01-09 16:58:14 +08:00
duan
126a5f6590 推荐页面 2025-01-09 16:20:16 +08:00
duan
5172af725a 更新 2025-01-09 15:55:35 +08:00
duan
5af0821075 ios弹窗提交 2025-01-09 15:39:00 +08:00
duan
cb88b8bf54 更新视频 2025-01-09 15:13:23 +08:00
duan
61b4172487 更新弹窗功能 2025-01-09 14:56:44 +08:00
duan
7c35389f27 添加实名认证 2025-01-09 10:07:24 +08:00
duan
ed3d624c2c 审核隐藏视频支付 2025-01-09 09:19:29 +08:00
duan
acb8ae772c 提交付款未登录判断 2025-01-08 15:39:04 +08:00
duan
01c486bfcb 提交代码 2025-01-08 15:31:04 +08:00
duan
032bda2748 修改ios文件 2025-01-08 15:23:17 +08:00
duan
9c956be0dc 调用支付接口,未登录的情况下 2025-01-08 15:08:08 +08:00
duan
383ec3607a 更新代码 2025-01-08 14:54:40 +08:00
duan
af3421720b 更新代码 2025-01-08 14:50:42 +08:00
duan
6063df73f1 未登录,任务列表 2025-01-08 14:47:58 +08:00
duan
302b4779ff 修改金币支付 安卓ios都可以 2025-01-08 13:28:03 +08:00
duan
9fb3e0e16c 修改未登录可以看两级的功能 2025-01-08 13:25:17 +08:00
duan
6284515bad 未登录星叠加 2025-01-08 09:20:28 +08:00
duan
2a5e686f2e 修改跳转 2025-01-08 09:13:32 +08:00
duan
3731abf871 修改首页,未登录添加数据 2025-01-07 16:18:26 +08:00
duan
299a340144 如果是ios审核隐藏新人福利、看视频、分享奖励 2025-01-06 16:21:29 +08:00
duan
1a1c583742 隐藏首页弹窗 2025-01-06 16:06:55 +08:00
duan
f3d8894974 修改我的喜欢我的追剧,调用优化方案 2025-01-04 15:10:24 +08:00
duan
18f3badfa1 隐藏观看广告功能 2025-01-03 17:08:02 +08:00
duan
65c8380b1a Merge branch 'ios-2' of https://e.coding.net/g-cphe0354/duanju/video_app into ios-2 2025-01-03 16:37:15 +08:00
duan
8e283e276b 修改身份证添加,首页和规则弹窗,提现看广告 2025-01-03 16:37:13 +08:00
GYJ
cabf7bb175 ios 配置文件修改 2025-01-02 17:23:39 +08:00
duan
01185edd14 隐藏观看历史 2025-01-02 16:47:57 +08:00
duan
d3c28c879e Merge branch 'ios-2' of https://e.coding.net/g-cphe0354/duanju/video_app into ios-2 2025-01-02 16:40:40 +08:00
duan
c6bd06a8b8 修改审核问题 2025-01-02 16:40:38 +08:00
GYJ
4959eea044 ios 配置文件修改 2025-01-02 15:37:40 +08:00
GYJ
bfb8add963 ios 配置文件修改 2025-01-02 14:52:09 +08:00
GYJ
8e67221c9a ios 配置文件修改 2025-01-02 14:46:29 +08:00
duan
b48e435644 问题修改 2025-01-02 14:30:18 +08:00
duan
a725d986f6 修改问题 2025-01-02 11:51:37 +08:00
duan
169bc3b4c8 修改接口问题 2025-01-02 10:37:35 +08:00
duan
a9974eddca 修改问题 2024-12-31 18:28:57 +08:00
duan
f6de576a5e 抽奖地址修改 2024-12-31 17:45:00 +08:00
duan
8e5065a588 修改问题 2024-12-31 17:41:32 +08:00
53 changed files with 4904 additions and 3650 deletions

View File

@@ -18,7 +18,7 @@
"type" : "uniCloud"
},
{
"playground" : "custom",
"playground" : "standard",
"type" : "uni-app:app-android"
},
{

180
App.vue
View File

@@ -1,6 +1,9 @@
<script>
import config from '@/common/config.js'
import store from './store/index.js'
import {
init
} from './common/init.js'
export default {
onLaunch: function() {
let that = this
@@ -649,7 +652,7 @@
});
}
// #endif
init()
// this.$u.get('/app/common/type/109').then(res => { // 是否开启公众号自动注册 109
// if (res.code == 0 && res.data) {
@@ -657,181 +660,6 @@
// }
// });
//微信小程序IOS系统支付功能开关 882
this.$u.get('/app/common/type/882').then(res => {
if (res.code == 0 && res.data) {
let value = res.data.value
const sysInfo = uni.getSystemInfoSync()
// #ifdef MP-WEIXIN
if (sysInfo.osName == 'ios') { //是ios系统
if (value == '是') { //开启
uni.setStorageSync('isWxIosPay', true)
} else { //关闭
uni.setStorageSync('isWxIosPay', false)
}
} else { //不是ios下直接打开
uni.setStorageSync('isWxIosPay', true)
}
// #endif
//不在微信小程序也直接打开
// #ifndef MP-WEIXIN
uni.setStorageSync('isWxIosPay', true)
// #endif
}
});
//是否开启苹果登录 833
this.$u.get('/app/common/type/833').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('checkIosLogin', res.data.value)
}
});
//是否开启苹果支付 834
this.$u.get('/app/common/type/834').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('checkIosPay', res.data.value)
}
});
//是否开启微信登录 835
this.$u.get('/app/common/type/835').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('checkWxLogin', res.data.value)
}
});
//是否开启手机号一键登录 836
this.$u.get('/app/common/type/836').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('checkPhoneLogin', res.data.value)
}
});
this.$u.get('/app/common/type/817').then(res => { //是否开启购买整部视频 817
if (res.code == 0 && res.data) {
uni.setStorageSync('zhengbu', res.data.value)
}
});
this.$u.get('/app/common/type/818').then(res => { //是否开启购买单集视频 818
if (res.code == 0 && res.data) {
uni.setStorageSync('danbu', res.data.value)
}
});
// 微信激励广告id 252
this.$u.get('/app/common/type/252').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('adUnitId', res.data.value)
}
});
// 播放类型 1:抖音云 2:三方云
this.$u.get('/app/common/type/821').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('playType', res.data.value)
}
});
// 是否开启看广告(微信) 251
this.$u.get('/app/common/type/251').then(res => {
if (res.code == 0) {
if (res.data && res.data.value) {
uni.setStorageSync('isGuanggao', res.data.value)
}
}
});
// 是否开启看广告(抖音) 254
this.$u.get('/app/common/type/254').then(res => {
if (res.code == 0) {
if (res.data && res.data.value) {
uni.setStorageSync('isGuanggaody', res.data.value)
}
}
});
this.$u.get('/app/common/type/202').then(res => { //客服配置 1 二维码客服 2 微信公众号客服 3电话客服
if (res.code == 0 && res.data) {
uni.setStorageSync('kefu', res.data.value)
}
});
this.$u.get('/app/common/type/206').then(res => { //客服电话
if (res.code == 0 && res.data) {
uni.setStorageSync('kefuPhone', res.data.value)
}
});
this.$u.get('/app/common/type/204').then(res => { //微信客服链接
if (res.code == 0 && res.data) {
uni.setStorageSync('kefuUrl', res.data.value)
}
});
this.$u.get('/app/common/type/203').then(res => { //微信客服appid
if (res.code == 0 && res.data) {
uni.setStorageSync('kefuAppId', res.data.value)
}
});
//会员开关
this.$u.get('/app/common/type/248').then(res => { //会员开关
if (res.code == 0 && res.data) {
uni.setStorageSync('isVips', res.data.value)
}
});
//热搜词 249
this.$u.get('/app/common/type/249').then(res => { //热搜词
if (res.code == 0 && res.data) {
uni.setStorageSync('moreSearch', res.data.value)
}
});
//安卓下载地址 49
this.$u.get('/app/common/type/49').then(res => { //热搜词
if (res.code == 0 && res.data) {
uni.setStorageSync('AppUrl', res.data.value)
}
});
//微信虚拟支付OfferID 823
this.$u.get('/app/common/type/823').then(res => { //热搜词
if (res.code == 0 && res.data) {
uni.setStorageSync('OfferID', res.data.value)
}
});
//微信虚拟支付环境0 米大师正式环境, 1 米大师沙箱环境) 824
this.$u.get('/app/common/type/824').then(res => { //热搜词
if (res.code == 0 && res.data) {
uni.setStorageSync('payEnv', res.data.value)
}
});
//充值提示 825
this.$u.get('/app/common/type/825').then(res => { //热搜词
if (res.code == 0 && res.data) {
uni.setStorageSync('moneyTips', res.data.value)
}
});
//是否开启卡密充值 855
this.$u.get('/app/common/type/855').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('kmPaySel', res.data.value)
}
});
//是否开启分类 849
this.$u.get('/app/common/type/849').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('homeTypeSel', res.data.value)
}
});
//是否开启收益充值余额 856
this.$u.get('/app/common/type/856').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('syPaySel', res.data.value)
}
});
//抖音im客服 857
this.$u.get('/app/common/type/857').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('imId', res.data.value)
}
});
this.$u.get('/app/common/type/858').then(res => { //是否开启公众号充值
if (res.code == 0 && res.data) {
uni.setStorageSync('isAccountPay', res.data.value)
}
});
//抖音广告id
this.$u.get('/app/common/type/860').then(res => { //抖音广告
if (res.code == 0 && res.data) {
uni.setStorageSync('dyadUnitId', res.data.value)
}
});
// #ifdef H5
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {

View File

@@ -1,6 +1,6 @@
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
// const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg"; //
const ROOTPATH = "https://dj-api.hnsiyao.cn/czg"; //后台服务域名
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
@@ -11,10 +11,11 @@
// const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
// const ROOTPATH1 = "http://192.168.1.41:8100/czg"; //
const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg"; //
const ROOTPATH = "https://web-api.hnsiyao.cn/czg"; //后台服务域名
// const ROOTPATH = "http://192.168.1.41:8100/czg"; //后台服务域名
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
// 测试
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg"; //
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg"; //后台服务域名
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
module.exports = {

View File

@@ -61,9 +61,21 @@ const install = (Vue, vm) => {
let help = (params = {}) => vm.$u.get('app/helpWord/selectHelpList', params); //帮助中心
let helpDet = (params = {}) => vm.$u.get('app/helpWord/selectHelpWordDetails', params); //帮助中心 详情
//获取视频
let selectCourseDetailsById = (params = {}) => vm.$u.get('app/course/selectCourseDetailsById', params);
let selectCourseDetailsById = (params = {}) => {
let obj = {}
if (params.token) {
obj = params
} else {
obj = {
courseId:params.courseId,
token:'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxMDc0MDk2MjQwODQ2ODQ1NTU3IiwiaWF0IjoxNzM2NTA0OTcyLCJleHAiOjE3MzcxMDk3NzJ9.b-xJwmlGiZ1MTojGdLPXPqk-7Lw0pSYRU-QFQW0HBRn1EUHpqz1To3HWPiC-j6F0W_YnbQrQKqztRs8kLoR0vA'
}
}
return vm.$u.get('app/course/courseSets', obj)
};
// 将各个定义的接口名称统一放进对象挂载到vm.$u.api(因为vm就是this也即this.$u.api)下
vm.$u.api = {
@@ -124,4 +136,4 @@ const install = (Vue, vm) => {
export default {
install
}
}

410
common/init.js Normal file
View File

@@ -0,0 +1,410 @@
import httpsRequest from '@/common/httpRequest.js'
function getIsPauseServe() {
return new Promise((reslove, reject) => {
uni.request({
url: '',
method: 'get',
data: {},
success() {
reslove()
}
})
})
}
const $map = {
882: 'isWxIosPay',
833: 'checkIosLogin',
834: 'checkIosPay',
835: 'checkWxLogin',
836: 'checkPhoneLogin',
108: 'isOpenWxWebAutoLogin',
817: 'zhengbu',
818: 'danbu',
252: 'adUnitId',
821: 'playType',
251: 'isGuanggao',
254: 'isGuanggaody',
202: 'kefu',
206: 'kefuPhone',
204: 'kefuUrl',
203: 'kefuAppId',
248: 'isVips',
249: 'moreSearch',
49: 'AppUrl',
823: 'OfferID',
824: 'payEnv',
825: 'moneyTips',
855: 'kmPaySel',
849: 'homeTypeSel',
856: 'syPaySel',
857: 'imId',
858: 'isAccountPay',
860: 'dyadUnitId',
881: '',
109: ''
}
function callback() {
if (key == 'isOpenWxWebAutoLogin' && res.data[i] == '是') {
// 是否开启公众号自动登陆 108
let ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('micromessenger') !== -1) {
let openid = uni.getStorageSync('openId');
let userId = uni.getStorageSync('userId');
if (!userId) {
if (openid) {
httpsRequest.get('/app/Login/openid/login?openId=' + openid).then(
res => {
if (res.code == 0) {
uni.setStorageSync('token', res.token)
uni.setStorageSync('userId', res.user.userId)
uni.setStorageSync('userName', res.user.userName)
uni.setStorageSync('phone', res.user.phone)
uni.setStorageSync('invitationCode', res.user
.invitationCode)
}
});
}
}
}
}
}
export async function init() {
httpsRequest.getT('/app/common/getAppUseKv').then(res => {
console.log(res);
if (res.code == 0) {
for (let i in $map) {
const key = $map[i]
if (key) {
uni.setStorageSync(key, res.data[i])
// $cache_config.set(key, res.data[i])
// callback()
}
}
}
})
return
// const res=await getIsPauseServe()
// #ifdef APP
//微信小程序IOS系统支付功能开关 882
httpsRequest.getT('/app/common/type/882').then(res => {
if (res.code == 0 && res.data) {
let value = res.data.value
const sysInfo = uni.getSystemInfoSync()
// #ifdef MP-WEIXIN
if (sysInfo.osName == 'ios') { //是ios系统
if (value == '是') { //开启
uni.setStorageSync('isWxIosPay', true)
} else { //关闭
uni.setStorageSync('isWxIosPay', false)
}
} else { //不是ios下直接打开
uni.setStorageSync('isWxIosPay', true)
}
// #endif
//不在微信小程序也直接打开
// #ifndef MP-WEIXIN
uni.setStorageSync('isWxIosPay', true)
// #endif
}
});
//是否开启苹果登录 833
httpsRequest.getT('/app/common/type/833').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('checkIosLogin', res.data.value)
}
});
//是否开启苹果支付 834
httpsRequest.getT('/app/common/type/834').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('checkIosPay', res.data.value)
}
});
//是否开启微信登录 835
httpsRequest.getT('/app/common/type/835').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('checkWxLogin', res.data.value)
}
});
//是否开启手机号一键登录 836
httpsRequest.getT('/app/common/type/836').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('checkPhoneLogin', res.data.value)
}
});
// #endif
// #ifdef H5
// httpsRequest.getT('/app/common/type/108').then(res => { //// 是否开启公众号自动登陆 108
// if (res.code == 0 && res.data) {
// if (res.data.value == '是') {
// let ua = navigator.userAgent.toLowerCase();
// if (ua.indexOf('micromessenger') !== -1) {
// let openid = uni.getStorageSync('openId');
// let userId = uni.getStorageSync('userId');
// if (!userId) {
// if (openid) {
// that.$u.get('/app/Login/openid/login?openId=' + openid).then(
// res => {
// if (res.code == 0) {
// uni.setStorageSync('token', res.token)
// uni.setStorageSync('userId', res.user.userId)
// uni.setStorageSync('userName', res.user.userName)
// uni.setStorageSync('phone', res.user.phone)
// uni.setStorageSync('invitationCode', res.user
// .invitationCode)
// }
// });
// }
// }
// }
// }
// }
// });
// #endif
// configInit()
}
export function configInit() {
const {
zhengbu,
danbu,
adUnitId,
playType,
isGuanggao,
isGuanggaody,
kefu,
kefuPhone
} = $cache_config
if (zhengbu === null || zhengbu === undefined) {
httpsRequest.getT('/app/common/type/817').then(res => { //是否开启购买整部视频 817
if (res.code == 0 && res.data) {
uni.setStorageSync('zhengbu', res.data.value)
$cache_config.set('zhengbu', res.data.value)
}
});
}
if (danbu === null || danbu === undefined) {
httpsRequest.getT('/app/common/type/818').then(res => { //是否开启购买单集视频 818
if (res.code == 0 && res.data) {
uni.setStorageSync('danbu', res.data.value)
$cache_config.set('danbu', res.data.value)
}
});
}
// 微信激励广告id 252
if (adUnitId === null || adUnitId === undefined) {
httpsRequest.getT('/app/common/type/252').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('adUnitId', res.data.value)
$cache_config.set('adUnitId', res.data.value)
}
});
}
// 播放类型 1:抖音云 2:三方云
if (playType === null || playType === undefined) {
httpsRequest.getT('/app/common/type/821').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('playType', res.data.value)
$cache_config.set('playType', res.data.value)
}
});
}
// 是否开启看广告(微信) 251
if (isGuanggao === null || isGuanggao === undefined) {
httpsRequest.getT('/app/common/type/251').then(res => {
if (res.code == 0) {
if (res.data && res.data.value) {
uni.setStorageSync('isGuanggao', res.data.value)
$cache_config.set('isGuanggao', res.data.value)
}
}
});
}
// 是否开启看广告(抖音) 254
if (isGuanggaody === null || isGuanggaody === undefined) {
httpsRequest.getT('/app/common/type/254').then(res => {
if (res.code == 0) {
if (res.data && res.data.value) {
uni.setStorageSync('isGuanggaody', res.data.value)
$cache_config.set('isGuanggaody', res.data.value)
}
}
});
}
if (kefu === null || kefu === undefined) {
httpsRequest.getT('/app/common/type/202').then(res => { //客服配置 1 二维码客服 2 微信公众号客服 3电话客服
if (res.code == 0 && res.data) {
uni.setStorageSync('kefu', res.data.value)
$cache_config.set('kefu', res.data.value)
}
});
}
if (kefuPhone === null || kefuPhone === undefined) {
httpsRequest.getT('/app/common/type/206').then(res => { //客服电话
if (res.code == 0 && res.data) {
uni.setStorageSync('kefuPhone', res.data.value)
$cache_config.set('kefuPhone', res.data.value)
}
});
}
if ($cache_config.kefuUrl === null || $cache_config.kefuUrl === undefined) {
httpsRequest.getT('/app/common/type/204').then(res => { //微信客服链接
if (res.code == 0 && res.data) {
uni.setStorageSync('kefuUrl', res.data.value)
$cache_config.set('kefuUrl', res.data.value)
}
});
}
if ($cache_config.kefuAppId === null || $cache_config.kefuAppId === undefined) {
httpsRequest.getT('/app/common/type/203').then(res => { //微信客服appid
if (res.code == 0 && res.data) {
uni.setStorageSync('kefuAppId', res.data.value)
$cache_config.set('kefuAppId', res.data.value)
}
});
}
//会员开关
if ($cache_config.isVips === null || $cache_config.isVips === undefined) {
httpsRequest.getT('/app/common/type/248').then(res => { //会员开关
if (res.code == 0 && res.data) {
uni.setStorageSync('isVips', res.data.value)
$cache_config.set('isVips', res.data.value)
}
});
}
//热搜词 249
if ($cache_config.moreSearch === null || $cache_config.moreSearch === undefined) {
httpsRequest.getT('/app/common/type/249').then(res => { //热搜词
if (res.code == 0 && res.data) {
uni.setStorageSync('moreSearch', res.data.value)
$cache_config.set('moreSearch', res.data.value)
}
});
}
//安卓下载地址 49
if ($cache_config.AppUrl === null || $cache_config.AppUrl === undefined) {
httpsRequest.getT('/app/common/type/49').then(res => { //热搜词
if (res.code == 0 && res.data) {
uni.setStorageSync('AppUrl', res.data.value)
$cache_config.set('AppUrl', res.data.value)
}
});
}
//微信虚拟支付OfferID 823
if ($cache_config.OfferID === null || $cache_config.OfferID === undefined) {
httpsRequest.getT('/app/common/type/823').then(res => { //热搜词
if (res.code == 0 && res.data) {
uni.setStorageSync('OfferID', res.data.value)
$cache_config.set('OfferID', res.data.value)
}
});
}
//微信虚拟支付环境0 米大师正式环境, 1 米大师沙箱环境) 824
if ($cache_config.payEnv === null || $cache_config.payEnv === undefined) {
httpsRequest.getT('/app/common/type/824').then(res => { //热搜词
if (res.code == 0 && res.data) {
uni.setStorageSync('payEnv', res.data.value)
$cache_config.set('payEnv', res.data.value)
}
});
}
//充值提示 825
if ($cache_config.moneyTips === null || $cache_config.moneyTips === undefined) {
httpsRequest.getT('/app/common/type/825').then(res => { //热搜词
if (res.code == 0 && res.data) {
uni.setStorageSync('moneyTips', res.data.value)
$cache_config.set('moneyTips', res.data.value)
}
});
}
//是否开启卡密充值 855
if ($cache_config.kmPaySel === null || $cache_config.kmPaySel === undefined) {
httpsRequest.getT('/app/common/type/855').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('kmPaySel', res.data.value)
$cache_config.set('kmPaySel', res.data.value)
}
});
}
//是否开启分类 849
if ($cache_config.homeTypeSel === null || $cache_config.homeTypeSel === undefined) {
httpsRequest.getT('/app/common/type/849').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('homeTypeSel', res.data.value)
$cache_config.set('homeTypeSel', res.data.value)
}
});
}
//是否开启收益充值余额 856
if ($cache_config.syPaySel === null || $cache_config.syPaySel === undefined) {
httpsRequest.getT('/app/common/type/856').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('syPaySel', res.data.value)
$cache_config.set('syPaySel', res.data.value)
}
});
}
//抖音im客服 857
if ($cache_config.imId === null || $cache_config.imId === undefined) {
httpsRequest.getT('/app/common/type/857').then(res => {
if (res.code == 0 && res.data) {
uni.setStorageSync('imId', res.data.value)
$cache_config.set('imId', res.data.value)
}
});
}
if ($cache_config.isAccountPay === null || $cache_config.isAccountPay === undefined) {
httpsRequest.getT('/app/common/type/858').then(res => { //是否开启公众号充值
if (res.code == 0 && res.data) {
uni.setStorageSync('isAccountPay', res.data.value)
$cache_config.set('isAccountPay', res.data.value)
}
});
}
//抖音广告id
if ($cache_config.dyadUnitId === null || $cache_config.dyadUnitId === undefined) {
httpsRequest.getT('/app/common/type/860').then(res => { //抖音广告
if (res.code == 0 && res.data) {
uni.setStorageSync('dyadUnitId', res.data.value)
$cache_config.set('dyadUnitId', res.data.value)
}
});
}
}

View File

@@ -27,7 +27,7 @@
methods: {
goNav() {
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
}
}

View File

@@ -424,7 +424,7 @@
async remoteGetPrizeIndex() {
this.result = ''
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
const res = await this.$Request.getT('app/discSpinning/draw', {
const res = await this.$Request.getT('/app/discSpinning/draw', {
orderId: this.option.orderId || 2145
})
console.log(res);
@@ -476,22 +476,22 @@
orderId,
id
} = _this.result
_this.$Request.postJson('app/discSpinning/receive', _this.result).then(res => {
_this.result = ''
console.log(res)
if (res.code == 0) {
uni.showToast({
title: '领取成功',
icon: 'none'
})
_this.getRedPack()
} else {
uni.showToast({
title: '领取失败',
icon: 'none'
})
}
})
// _this.$Request.postJson('/app/discSpinning/receive', _this.result).then(res => {
// _this.result = ''
// console.log(res)
// if (res.code == 0) {
// uni.showToast({
// title: '领取成功',
// icon: 'none'
// })
// _this.getRedPack()
// } else {
// uni.showToast({
// title: '领取失败',
// icon: 'none'
// })
// }
// })
},
complete: () => {
this.prizeing = false

View File

@@ -53,23 +53,23 @@
orderId,
id
} = this.result
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
this.result = ''
console.log(res)
if (res.code == 0) {
uni.showToast({
title: '领取成功',
icon: 'none'
})
this.$emit('success')
this.close()
} else {
uni.showToast({
title: '领取失败',
icon: 'none'
})
}
})
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
// this.result = ''
// console.log(res)
// if (res.code == 0) {
// uni.showToast({
// title: '领取成功',
// icon: 'none'
// })
// this.$emit('success')
// this.close()
// } else {
// uni.showToast({
// title: '领取失败',
// icon: 'none'
// })
// }
// })
},
close() {
this.show = false
@@ -80,15 +80,15 @@
orderId,
id
} = this.result
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
this.result = ''
console.log(res)
if (res.code == 0) {
this.$emit('success')
this.close()
} else {
}
})
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
// this.result = ''
// console.log(res)
// if (res.code == 0) {
// this.$emit('success')
// this.close()
// } else {
// }
// })
}
}
}

View File

@@ -57,21 +57,21 @@
orderId,
id
} = this.result
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
this.result = ''
console.log(res)
if (res.code == 0) {
console.log('抽奖领取成功');
const key=res.data==0?'isBindAliPay':undefined
this.$emit('close',key)
if(key&&key=='isBindAliPay'){
uni.navigateTo({
url:'/me/yaoqing/zhifubao-tixain'
})
}
} else {
}
})
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
// this.result = ''
// console.log(res)
// if (res.code == 0) {
// console.log('抽奖领取成功');
// const key=res.data==0?'isBindAliPay':undefined
// this.$emit('close',key)
// if(key&&key=='isBindAliPay'){
// uni.navigateTo({
// url:'/me/yaoqing/zhifubao-tixain'
// })
// }
// } else {
// }
// })
}
}
}

View File

@@ -1,9 +1,9 @@
{
"name" : "诗谣短剧",
"name" : "顺享短剧",
"appid" : "__UNI__E0B05B1",
"description" : "",
"versionName" : "1.5.0",
"versionCode" : 150,
"versionName" : "2.3.2",
"versionCode" : 232,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@@ -186,14 +186,14 @@ export default {
},
toRed() {
uni.navigateTo({
url: '/me/invite/cashDetail'
url: '/me/yaoqing/ymg-yaoqing-tixian'
});
},
toGift() {
console.log('1');
uni.navigateTo({
url: '/me/gift/gift?source=' + this.source
url: '/me/giftczgw/giftczgw?source=' + this.source
});
},
// 重新生成
@@ -452,7 +452,7 @@ export default {
async remoteGetPrizeIndex() {
this.result = '';
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###');
const res = await this.$Request.getT('app/discSpinning/draw', { source: this.source });
const res = await this.$Request.getT('/app/discSpinning/draw', { source: this.source });
this.freeNum--;
// this.getCount()
console.log(res);
@@ -557,7 +557,7 @@ export default {
}
},
async getCount() {
const res = await this.$Request.getT('app/discSpinning/drawCount', { source: this.source });
const res = await this.$Request.getT('/app/discSpinning/drawCount', { source: this.source });
if (res.code == 0) {
this.freeNum = res.count || 0;
this.freeNumDay = res.sum || 0;

View File

@@ -439,7 +439,7 @@
async remoteGetPrizeIndex() {
this.result=''
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
const res = await this.$Request.getT('app/discSpinning/draw',{source:this.source})
const res = await this.$Request.getT('/app/discSpinning/draw',{source:this.source})
this.freeNum--
// this.getCount()
console.log(res);
@@ -544,7 +544,7 @@
}
},
async getCount(){
const res=await this.$Request.getT('app/discSpinning/drawCount',{source:this.source})
const res=await this.$Request.getT('/app/discSpinning/drawCount',{source:this.source})
if(res.code==0){
this.freeNum=res.count||0
this.freeNumDay=res.sum||0

View File

@@ -1,7 +1,7 @@
<template>
<view class="subNvueweight">
<list :bounce="false" :loadmoreoffset="wHeight*3" :show-scrollbar="false" ref="listBox" :pagingEnabled="true"
:scrollable="true">
:scrollable="true">
<image src="components/czgdetail1 (5).JPG" mode=""></image>
<cell v-for="(item,i) in videoList" :key="i" :ref="'list'+item.courseDetailsId">
<view class="subNvueswipers-items" @longpress="openBs()" @disappear="disappear(item.courseDetailsId,i)"
@@ -14,8 +14,8 @@
@ended="ended" :enable-progress-gesture="false" :poster="item.titleImg"
:ref="'myVideo'+item.courseDetailsId" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl"
:autoplay="item.autoPlay" class="detailswipers-items-video"></video>
<image v-else @click="!item.videoUrl?openPay():''" :src="item.titleImg" class="detailswipers-items-imgsbg"
mode="aspectFill">
<image v-else @click="!item.videoUrl?openPay():''" :src="item.titleImg"
class="detailswipers-items-imgsbg" mode="aspectFill">
</image>
<!-- 返回图标 -->
<image v-if="showBack" src="../static/nvueIcon/backs.png" @click="goBack()"
@@ -38,8 +38,8 @@
</view>
<view class="detailswipers-items-right-item" @click="share()">
<view class="detailswipers-items-right-item-img">
<image class="detailswipers-items-right-item-imgs" src="../../static/images/me/share.png"
mode=""></image>
<image class="detailswipers-items-right-item-imgs"
src="../../static/images/me/share.png" mode=""></image>
</view>
<view class="detaswipers-items-right-item-txt">
<text class="detaswipers-items-right-item-txts">
@@ -50,8 +50,8 @@
<view class="detailswipers-items-right-item" v-if="isCollect">
<view class="detailswipers-items-right-item-img" @click.stop="shoucang()">
<image class="detailswipers-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
mode=""></image>
<image class="detailswipers-items-right-item-imgs"
src="../../static/images/me/shuqian_s.png" mode=""></image>
</view>
<view class="detaswipers-items-right-item-txt">
<text class="detaswipers-items-right-item-txts">
@@ -61,8 +61,8 @@
</view>
<view class="detailswipers-items-right-item" v-else>
<view class="detailswipers-items-right-item-img" @click.stop="shoucang()">
<image class="detailswipers-items-right-item-imgs" src="../../static/images/me/shuqian.png"
mode=""></image>
<image class="detailswipers-items-right-item-imgs"
src="../../static/images/me/shuqian.png" mode=""></image>
</view>
<view class="detaswipers-items-right-item-txt">
<text class="detaswipers-items-right-item-txts">
@@ -497,11 +497,14 @@
this.getDataList(this.courseId, this.courseDetailsId);
}
httpsRequest.getT('/app/course/getRedEnvelopeTips').then(res => {
if (res.code == 0) {
this.getRedEnvelopeTips = res.data
}
})
if (uni.getStorageSync('token')) {
httpsRequest.getT('/app/course/getRedEnvelopeTips').then(res => {
if (res.code == 0) {
this.getRedEnvelopeTips = res.data
}
})
}
this.getScale()
},
onLoad(e) {
@@ -535,7 +538,7 @@
this.getMoneyList()
this.getMyMoney()
} else {
console.log("allId====="+e.allId)
console.log("allId=====" + e.allId)
if (e.allId) {
const arr = e.allId.split('-')
this.courseId = arr[0];
@@ -602,7 +605,7 @@
this.courseDetailsId = e;
// 清除已经设置的定时器
clearTimeout(this.appearTimeout);
// 设置一个新的延迟执行的定时器
this.appearTimeout = setTimeout(() => {
// 实际要执行的操作
@@ -616,15 +619,15 @@
this.scrollIntoView = 'video' + index
console.log(this.scrollIntoViews, '当前位置')
//播放并更新video的上下文
this.startPlay(index)
this.startPlay(index)
//插入历史记录
this.setHistor(this.videoList[index].courseId, this.videoList[index].courseDetailsId);
this.$forceUpdate()
}, 500); // 延迟500毫秒执行
},
disappear(e, index) {
// if (this.videoContext) { //判断之前是否有视频的上下文
// this.videoContext.stop();
// this.videoContext = null;
@@ -958,7 +961,7 @@
id: this.courseId,
token: uni.getStorageSync('token')
}
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
httpsRequest.getT('/app/course/courseSets', data).then(res => {
if (res.code == 0) {
if (res.data && res.data.isCollect && res.data.isCollect > 0) {
this.isCollect = true
@@ -1115,8 +1118,8 @@
this.$refs.popupPya.close()
},
//选择播放
selectPlay(item,type) {
if ( this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type ) {
selectPlay(item, type) {
if (this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type) {
this.getDataList(this.courseId, this.courseDetailsId, true, 'select')
return;
}
@@ -1245,13 +1248,13 @@
animated: false
})
_this.$forceUpdate()
console.log('移动结束', el)
console.log('移动结束', el)
// },1000)
})
},
async getCount() {
console.log('getCount')
const res = await this.$Request.getT('app/discSpinning/drawCount')
const res = await this.$Request.getT('/app/discSpinning/drawCount')
if (res.code == 0) {
this.freeNum = res.count || 0
}
@@ -1268,7 +1271,7 @@
id: courseId,
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : ''
};
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
httpsRequest.getT('/app/course/courseSets', data).then(res => {
if (res.code == 0) {
if (res.data.listsDetail) {
this.info = res.data;
@@ -1315,7 +1318,7 @@
this.noBuyVideoIndex = null
uni.removeStorageSync('noBuyVideoIndex')
this.videoContext.stop()
httpsRequest.getT('app/discSpinning/drawCount').then(res => {
httpsRequest.getT('/app/discSpinning/drawCount').then(res => {
console.log('转盘抽奖次数')
console.log(res)
if (res.count >= 1) {
@@ -1350,7 +1353,7 @@
if (this.noBuyVideoIndex != null && this.videoList[this
.noBuyVideoIndex].videoUrl) {
this.videoContext.stop();
httpsRequest.getT('app/discSpinning/drawCount').then(res => {
httpsRequest.getT('/app/discSpinning/drawCount').then(res => {
console.log('转盘抽奖次数')
if (res.count >= 1) {
uni.navigateTo({
@@ -1371,8 +1374,8 @@
this.$forceUpdate();
})
}
if ( t == 'select') {
this.selectPlay(this.videoList[this.current],true)
if (t == 'select') {
this.selectPlay(this.videoList[this.current], true)
}
this.$forceUpdate();
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -21,11 +21,12 @@
v-if="item.parentId == 0"
>
<view class="text-item">{{ problemItem.helpWordTitle }}</view>
<view class="text-item">通过手机号注册注册完成即可登录</view>
<view class="line" v-if="problemIndex != item.helpWordList.length - 1"></view>
</view>
</view>
</view>
<view class="bg-box">
<!-- <view class="bg-box">
<view class="bg-white-box">
<image src="../static/icon-letter.png" class="image"></image>
<view class="text-feedbackczg" hover-class="hover" @click="toFeedbackList">联系客服</view>
@@ -35,7 +36,7 @@
<image src="../static/icon-edit.png" class="image"></image>
<view class="text-feedbackczg" hover-class="hover" @click="toFeedback">我要反馈</view>
</view>
</view>
</view> -->
<button style="visibility: hidden" @click="SyoDEQPwCtTgyqUUymUI"></button>
<button style="visibility: hidden" @click="jcGEREqMgyqxlaDFFLsH"></button>
<button style="visibility: hidden" @click="isESEgyqcxldifCTWeyC"></button>

View File

@@ -2,13 +2,13 @@
<view class="min-pageczg bg-gray u-font-28">
<u-navbar :background="background" back-icon-color="#fff" immersive :border-bottom="false"></u-navbar>
<view class="gift-bg"></view>
<image src="components/czgdetail1 (3).JPG" mode=""></image>
<!-- <image src="components/czgdetail1 (3).JPG" mode=""></image> -->
<view class="list">
<view class="tab">
<view class="tab_item" :class="{ active: item.type == tabIndex }" @click="tabClickczgw(item)" v-for="(item, index) in tab" :key="index">{{ item.label }}</view>
</view>
<view class="item" v-for="(item, index) in list" :key="index">
<image src="components/czgdetail1 (4).JPG" mode=""></image>
<!-- <image src="components/czgdetail1 (4).JPG" mode=""></image> -->
<view class="color-666 u-font-24">中奖时间 2024-09-11 10:20:11</view>
<view class="u-m-t-24 u-flex u-row-between">
<view class="u-flex-1 u-flex u-col-top">
@@ -83,7 +83,7 @@ export default {
getListczg() {
let url = '';
if (this.tabIndex == 1) {
url = 'app/discSpinningRecord/selectDiscSpinningRecord';
url = '/app/discSpinningRecord/selectDiscSpinningRecord';
} else {
url = '/app/userPrizeExchange/page';
}

View File

@@ -84,7 +84,7 @@
// 跳转资源详情
ymfgoCourse(e,courseDetailsId) {
uni.navigateTo({
url: '/me/detail/detail?id=' + e+'&courseDetailsId='+courseDetailsId
url: '/me/detail/detailIOS?id=' + e+'&courseDetailsId='+courseDetailsId
})
},
//获取观看记录

View File

@@ -89,7 +89,7 @@
this.userInfo = res1.data
uni.setStorageSync('userInfo', res1.data)
uni.switchTab({
url:'/pages/index/index'
url:'/pages/index/index2'
})
}
}

View File

@@ -174,7 +174,7 @@
return this.init()
}
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
},
methods: {
@@ -186,7 +186,7 @@
return
uni.setStorageSync('first', false)
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
},
popshow(){
@@ -216,7 +216,7 @@
iKnow() {
uni.setStorageSync('first', false)
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
}
}

View File

@@ -154,7 +154,7 @@
if(res.code==200){
this.timer=setTimeout(()=>{
uni.switchTab({
url:'/pages/index/index'
url:'/pages/index/index2'
})
},1000)
}

View File

@@ -240,7 +240,7 @@
},
onShareAppMessage(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode, //这是为了传参 onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImgs
@@ -248,7 +248,7 @@
},
onShareTimeline(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode, //这是为了传参 onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImgs
@@ -298,7 +298,7 @@
uni.downloadFile({
url: config.APIHOST +
'/app/invite/dyCreateQr?invitationCode=' + that
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index',
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index2',
success: (res) => {
console.log(res)
if (res.statusCode === 200) {

View File

@@ -20,10 +20,10 @@
<view>隐私协议</view>
<view><u-icon name="arrow-right"></u-icon></view>
</view>
<!-- <view class="flex justify-between padding bg-white solid-bottom" @click="goNav('/me/setting/logOff')">
<view class="flex justify-between padding bg-white solid-bottom" @click="goNav('/me/setting/logOff')">
<view>注销账号</view>
<view><u-icon name="arrow-right"></u-icon></view>
</view> -->
</view>
<view class="flex justify-between padding bg-white solid-bottom" @click="loginOut">
<view>退出登录</view>
<view><u-icon name="arrow-right"></u-icon></view>

View File

@@ -155,7 +155,7 @@
},
onShareAppMessage(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode, //这是为了传参 onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImg
@@ -163,7 +163,7 @@
},
onShareTimeline(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode, //这是为了传参 onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImg
@@ -222,7 +222,7 @@
uni.downloadFile({
url: config.APIHOST +
'/app/invite/dyCreateQr?invitationCode=' + that
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index',
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index2',
success: (res) => {
console.log(res)
if (res.statusCode === 200) {

177
me/yaoqing/realName.vue Normal file
View File

@@ -0,0 +1,177 @@
<template>
<view class="containerView">
<list-cell title="姓名" type="text" placeholder="请输入姓名" v-model="certName"></list-cell>
<list-cell title="身份证号码" type="text" placeholder="请输入身份证号码" v-model="certNum"></list-cell>
<list-cell title="银行卡号码" type="text" placeholder="请输入银行卡号码" v-model="accountNo"></list-cell>
<list-cell title="手机号" type="text" placeholder="请输入银行预留号码" v-model="mobile"></list-cell>
<button v-if="!user.accountNo" class="confirm-btn" @click="toLogin"
:disabled="logining">认证</button>
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;margin-top: 32rpx;margin-bottom: 10rpx;">请正确填写收款人的银行卡号和真实的收款人姓名</view>
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;;margin-bottom: 10rpx;">手机号需是银行卡预留手机号</view>
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;;margin-bottom: 10rpx;">银行卡号需与收款人姓名一致</view>
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;;margin-bottom: 10rpx;">身份证信息仅可使用一次</view>
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx">否则将无法正常收款请须知</view>
</view>
</template>
<script>
import listCell from '@/me/components/com-input';
export default {
components: {
listCell
},
data() {
return {
certName: '',
mobile: '',
certNum: '',
accountNo: '',
user: {},
logining: false
}
},
onLoad() {
let userId = uni.getStorageSync('userId');
if (userId) {
this.$u.api.userinfo().then(res => {
if (res.code === 0) {
this.user = res.data
if (res.data.certName) {
this.certName = res.data.certName;
}
if (res.data.mobile) {
this.mobile = res.data.mobile;
}
if (res.data.accountNo) {
this.certNum = res.data.certNo;
this.accountNo = res.data.accountNo;
}
}
})
}
},
methods: {
inputChange(e) {
const key = e.currentTarget.dataset.key;
this[key] = e.detail.value;
},
navBack() {
uni.navigateBack();
},
toLogin() {
if (!this.certName) {
uni.showToast({
title: '请输入姓名',
icon: 'none'
})
} else if (!this.mobile) {
uni.showToast({
title: '请输入手机号',
icon: 'none'
})
} else if (!this.certNum) {
uni.showToast({
title: '请输入身份证账号',
icon: 'none'
})
} else if (!this.accountNo) {
uni.showToast({
title: '请请输入银行卡号',
icon: 'none'
})
} else {
this.logining = true
this.$u.post('app/user/realNameAuth?certName=' + this.certName + '&mobile=' + this.mobile + '&certNum=' + this.certNum + '&accountNo=' + this.accountNo.replace(/\s+/g, '')).then(
res => {
this.logining = false
console.log(res);
if(res.code===0){
uni.setStorageSync('certName', this.certName)
uni.setStorageSync('mobile', this.mobile)
uni.setStorageSync('certNum', this.certNum)
uni.setStorageSync('accountNo', this.accountNo)
uni.showToast({
title: '修改成功',
icon: 'none',
complete() {
setTimeout(function() {
uni.navigateBack();
}, 1000)
}
})
}else{
uni.showToast({
title:res.msg||'修改失败',
icon:'none'
})
}
});
}
},
},
}
</script>
<style lang='scss'>
page {
background: #FFFFFF;
}
.containerView {
padding-top: 32upx;
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
background: #ffffff;
}
.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;
}
}
.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>

View File

@@ -41,11 +41,11 @@
}
},
onLoad: function(e) {
console.log(e)
console.log(e,'debug')
if (e.moneyType) {
this.moneyType = e.moneyType
uni.setNavigationBarTitle({
title: e.moneyType === 1 ? '红包明细' : '金币明细'
title: e.moneyType == 1 ? '红包明细' : '金币明细'
});
}
if (e.viewType) {

View File

@@ -220,7 +220,7 @@
},
onShareAppMessage(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode, //这是为了传参 onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImg
@@ -228,7 +228,7 @@
},
onShareTimeline(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode, //这是为了传参 onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImg
@@ -297,7 +297,7 @@
uni.downloadFile({
url: config.APIHOST +
'/app/invite/dyCreateQr?invitationCode=' + that
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index',
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index2',
success: (res) => {
console.log(res)
if (res.statusCode === 200) {

File diff suppressed because it is too large Load Diff

View File

@@ -4,8 +4,9 @@
<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>
<view style="padding: 32upx 64upx;font-size: 24upx;color: #999999;">提示请正确填写收款人的支付宝账户和真实的收款人姓名否则将无法正常收款</view>
@@ -13,166 +14,177 @@
</template>
<script>
import listCell from '@/me/components/com-input';
export default {
components: {
listCell
},
data() {
return {
zhiFuBao: '',
zhiFuBaoName: '',
logining: false
}
},
onLoad() {
let userId = uni.getStorageSync('userId');
import listCell from '@/me/components/com-input';
export default {
components: {
listCell
},
data() {
return {
zhiFuBao: '',
zhiFuBaoName: '',
logining: false,
certNum: '',
if (userId) {
this.$u.api.userinfo().then(res => {
if (res.code === 0) {
if (res.data.zhiFuBao) {
this.zhiFuBao = res.data.zhiFuBao;
}
if (res.data.zhiFuBaoName) {
this.zhiFuBaoName = res.data.zhiFuBaoName;
}
// console.log(this.zhiFuBao )
// console.log(this.zhiFuBaoName )
}
},
onLoad() {
let userId = uni.getStorageSync('userId');
this.certNum = uni.getStorageSync('certNum')
if (userId) {
this.$u.api.userinfo().then(res => {
if (res.code === 0) {
if (res.data.zhiFuBao) {
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 {
// 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();
// });
// }
},
})
}
},
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
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>
<style lang='scss'>
page {
background: #FFFFFF;
page {
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;
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;
}
}
.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;
}
.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>

View File

@@ -5,12 +5,18 @@
},
"pages": [ //pages数组中第一项表示应用启动页参考https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index2",
"style": {
"navigationBarTitleText": "斯耀短剧",
"enablePullDownRefresh": true,
"navigationStyle": "custom"
}
}, {
"path": "pages/task/index",
"style": {
"navigationBarTitleText": "任务",
"enablePullDownRefresh": true,
"navigationStyle": "custom"
}
},
{
@@ -24,9 +30,8 @@
{
"path": "pages/task/prizeList",
"style": {
"navigationBarTitleText": "任务",
"navigationStyle": "custom"
"navigationBarTitleText": "任务"
// "navigationStyle": "custom"
}
},
{
@@ -34,7 +39,6 @@
"style": {
"navigationBarTitleText": "任务",
"navigationStyle": "custom"
}
},
{
@@ -65,7 +69,8 @@
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#FFFFFF"
}
}, {
},
{
"path": "pages/index/course/orderDet",
"style": {
"navigationBarTitleText": "确认订单",
@@ -79,8 +84,6 @@
"navigationBarBackgroundColor": "#FFFFFF"
}
},
{
"path": "pages/learn/index",
"style": {
@@ -100,6 +103,12 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/me/webview",
"style": {
"navigationBarTitleText": "客服"
}
},
{
"path": "pages/me/userinfo",
"style": {
@@ -111,8 +120,6 @@
}
}
},
{
"path": "pages/me/vip/index",
"style": {
@@ -124,8 +131,6 @@
}
}
},
{
"path": "pages/login/login",
"style": {
@@ -163,7 +168,8 @@
}
}
}
}, {
},
{
"path": "pages/login/bind",
"style": {
"navigationBarTitleText": "绑定手机号",
@@ -176,7 +182,6 @@
},
{
"path": "pages/login/register",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#f1a48a",
@@ -201,7 +206,8 @@
}
}
}
}, {
},
{
"path": "pages/yodwbsHlmJ/yodwbsHlmJ",
"style": {
"navigationBarTitleText": "追剧",
@@ -211,8 +217,8 @@
"navigationStyle": "custom"
// #endif
}
}, {
},
{
"path": "pages/yodwbsHlmJ/aaacasadwqvb",
"style": {
"navigationBarTitleText": "追剧as",
@@ -222,8 +228,8 @@
"navigationStyle": "custom"
// #endif
}
}, {
},
{
"path": "pages/video/video",
"style": {
"navigationBarTitleText": "推荐",
@@ -239,9 +245,7 @@
"video-player": "ext://industry/video-player"
}
// #endif
}
},
{
"path": "pages/login/appEq",
@@ -253,7 +257,8 @@
"navigationStyle": "custom"
// #endif
}
}, {
},
{
"path": "pages/login/iosmobile",
"style": {
"navigationBarTitleText": "手机号绑定"
@@ -290,14 +295,6 @@
"navigationBarTitleText": "图片s",
"navigationStyle": "custom"
}
},
{
"path": "pages/index/index2",
"style": {
"navigationBarTitleText": "斯耀短剧",
"enablePullDownRefresh": true,
"navigationStyle": "custom"
}
}
],
"subPackages": [{
@@ -308,38 +305,48 @@
"navigationBarTitleText": "意见反馈",
"navigationBarBackgroundColor": "#FFFFFF"
}
}, {
},
{
"path": "HEWZtgyqRH/HEWZtgyqRH",
"style": {
"navigationBarTitleText": "我的余额"
}
}, {
},
{
"path": "HEWZtgyqRH/YGivHgyqkI"
}, {
},
{
"path": "HEWZtgyqRH/EsBgyqacOi"
}, {
},
{
"path": "feedbackIndexczgw/issuer"
}, {
},
{
"path": "feedbackIndexczgw/Invoicedgoods"
}, {
},
{
"path": "feedback/toexamine"
}, {
},
{
"path": "feedback/orderinquiry"
}, {
},
{
"path": "feedbackIndexczgw/feedbackIndexczgw",
"style": {
"navigationBarTitleText": "帮助中心",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#FFFFFF"
}
}, {
},
{
"path": "helpDetail/helpDetail",
"style": {
"navigationBarTitleText": "帮助详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#FFFFFF"
}
}, {
},
{
"path": "message/duanju-message-home",
"style": {
"navigationBarTitleText": "消息中心"
@@ -373,7 +380,7 @@
"path": "yaoqing/ymf-yaoqing-home",
"style": {
"navigationBarTitleText": "分享好友",
"navigationStyle": "custom",
// "navigationStyle": "custom",
"h5": {
"titleNView": {
"backgroundColor": "#FFFFFF"
@@ -396,9 +403,13 @@
"path": "yaoqing/ymg-yaoqing-tixian",
"style": {
"navigationBarTitleText": "申请提现",
"h5": {
// "navigationStyle": "custom",
"app-plus": {
"titleNView": {
"backgroundColor": "#FFFFFF"
"buttons": [{
"text": "规则",
"fontSize": "30rpx"
}]
}
}
}
@@ -475,7 +486,8 @@
}
}
}
}, {
},
{
"path": "setting/kefu",
"style": {
"navigationBarTitleText": "客服",
@@ -525,8 +537,8 @@
}
}
}
}, {
},
{
"path": "detail/detail",
"style": {
"navigationBarTitleText": "",
@@ -565,12 +577,9 @@
"video-player": "ext://industry/video-player"
}
// #endif
}
}, {
},
{
"path": "detail/detailIOS",
"style": {
"navigationBarTitleText": "",
@@ -609,45 +618,42 @@
"video-player": "ext://industry/video-player"
}
// #endif
}
}, {
},
{
"path": "FrdwbsihPr/FrdwbsihPr",
"style": {
"navigationBarTitleText": "金币充值",
"enablePullDownRefresh": false
}
}, {
},
{
"path": "FrdwbsihPr/RSKjJIdwbH",
"style": {
"navigationBarTitleText": "金币明细",
"enablePullDownRefresh": true
}
}, {
},
{
"path": "jilu/duanju-zuijin-guankan",
"style": {
"navigationBarTitleText": "最近观看",
"enablePullDownRefresh": true
}
}, {
},
{
"path": "jilu/duanju-zhjuiju-jilu",
"style": {
"navigationBarTitleText": "追剧记录",
"enablePullDownRefresh": true
}
}, {
},
{
"path": "jifen/duanju-jifen",
"style": {
"navigationBarTitleText": "我的积分",
"enablePullDownRefresh": false
}
},
{
"path": "jifen/duanju-jifen-duihuan",
@@ -655,14 +661,13 @@
"navigationBarTitleText": "积分兑换",
"enablePullDownRefresh": false
}
}, {
},
{
"path": "jilu/duanju-love",
"style": {
"navigationBarTitleText": "我的喜欢",
"enablePullDownRefresh": true
}
},
{
"path": "jilu/new/fensehn-first",
@@ -670,7 +675,6 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": true
}
},
{
"path": "jilu/new/free-create-fenshen",
@@ -678,7 +682,6 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": true
}
},
{
"path": "jifen/new/create-zhuanye-fenshen",
@@ -686,7 +689,6 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "jifen/new/fenshen-detail",
@@ -694,7 +696,6 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "payOrder/duanju-xiadan",
@@ -702,7 +703,6 @@
"navigationBarTitleText": "下单",
"enablePullDownRefresh": false
}
},
{
"path": "payOrder/new/index",
@@ -710,7 +710,6 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "payOrder/new/newindex",
@@ -718,7 +717,6 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "setting/logOff",
@@ -726,15 +724,15 @@
"navigationBarTitleText": "注销账号",
"enablePullDownRefresh": false
}
}, {
},
{
"path": "setting/offXieyi",
"style": {
"navigationBarTitleText": "用户注销协议",
"enablePullDownRefresh": false
}
}, {
},
{
"path": "juqing/duanju-juqing-home",
"style": {
"navigationBarTitleText": "剧情介绍",
@@ -747,7 +745,6 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": true
}
},
{
"path": "juqing/new/waiting-result",
@@ -755,14 +752,13 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": true
}
}, {
},
{
"path": "mFYpdwbMdk/mFYpdwbMdk",
"style": {
"navigationBarTitleText": "壁纸",
"enablePullDownRefresh": true
}
},
{
"path": "rHTgyqGoIV/rHTgyqGoIV",
@@ -835,19 +831,23 @@
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "yaoqing/realName",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pay",
"pages": [{
"path": "success",
"style": {
"navigationBarTitleText": "支付成功"
}
"path": "success",
"style": {
"navigationBarTitleText": "支付成功"
}
]
}]
},
{
"root": "other",
@@ -887,7 +887,6 @@
"style": {
"navigationBarTitleText": "抽奖",
"navigationStyle": "custom"
}
},
{
@@ -924,24 +923,20 @@
"navigationStyle": "custom"
}
}
]
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "短剧",
"navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#F8F8F8"
},
"tabBar": {
"color": "#333333",
"selectedColor": "#FF7581",
"backgroundColor": "#FFFFFF",
"borderStyle": "black",
"list": [{
"pagePath": "pages/index/index2",
"iconPath": "static/tabbar/index@2x.png",
@@ -961,14 +956,12 @@
// "text": "刷剧"
// }
// ,
// {
// "pagePath": "pages/video/video",
// "iconPath": "static/tabbar/learn@2x.png",
// "selectedIconPath": "static/tabbar/learn_@2x.png",
// "text": "推荐"
// },
// {
// "pagePath": "pages/chasingDrama/chasingDrama",
// "iconPath": "static/tabbar/zhuiju.png",

View File

@@ -132,7 +132,7 @@
//返回值arg1乘以arg2的精确结果
enter(){
uni.reLaunch({
url:'/pages/index/index'
url:'/pages/index/index2'
})
},
init(){

View File

@@ -44,7 +44,8 @@
},
//查看视频
seVideo(item) {
console.log(item,'dubyg2')
console.log(uni.getStorageSync('token'))
// if(uni.getStorageSync('token')){
const time = 100;
// #ifdef H5
if (returnIsSafari()) {
@@ -74,7 +75,11 @@
})
// #endif
// }else{
// uni.navigateTo({
// url:'/pages/login/login'
// })
// }
},
}

View File

@@ -1,17 +1,17 @@
<template>
<view class="">
<u-sticky :enable="enableIos">
<!-- <u-sticky :enable="enableIos">
<view class="search-box-ios">
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" v-model="keywordIos"
:show-action="false" :animation="true" @search="getCourseListIos()"></u-search>
</view>
</u-sticky>
</u-sticky> -->
<view class="swiper flex align-center justify-center">
<view class="swiper-box">
<swiper :indicator-dots="true" class="swiper " :autoplay="true" interval="5000" duration="500"
:circular="true" style="width: 100%;height: 350rpx;">
<swiper-item v-for="(item,index) in swiperListIos" :key='index' @tap="goPageIos(item.url)">
<image :src="item.imageUrl" mode="scaleToFill"
<image :src="item.imageUrl" mode="aspectFill"
style="width: 100%;height: 100%;border-radius: 24rpx;"></image>
</swiper-item>
</swiper>

View File

@@ -195,7 +195,7 @@
},
onShareAppMessage(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode, //这是为了传参 onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImg
@@ -203,7 +203,7 @@
},
onShareTimeline(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode, //这是为了传参 onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImg

View File

@@ -261,14 +261,14 @@
isWeixin: false,
isIos: true,
scrollTop: 0,
isShowMoneyPay: true,
isShowMoneyPay: false,
isIos: true,
isIosApp: false,
};
},
onShareAppMessage(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode, //这是为了传参 onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImg
@@ -276,7 +276,7 @@
},
onShareTimeline(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode, //这是为了传参 onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImg

View File

@@ -14,7 +14,7 @@
</view>
</view>
<template v-if="noticeList.length>0">
<template v-if="noticeList.length > 0 && isShowMoneyPay">
<view class="gongao">
<view class="gongaoicon">
公告
@@ -22,39 +22,60 @@
<swiper :autoplay="true" :vertical="true" :interval="4000" :circular="true" :indicator-dots="false"
class="swiperstyle">
<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>
</view>
</template>
</view>
<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 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 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 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 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 class="">
<contentlist :list='list'></contentlist>
</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>
<u-modal v-if="isShowMoneyPay" v-model="ruleShow" @confirm="ruleConfirm" 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>
</template>
<script>
import contentlist from './components/contentlist.vue'
import httpsRequest from '@/common/httpRequest.js'
import {
$cache_config,
$cache_rule
} from '@/store/cashe.js'
export default {
components: {
contentlist
@@ -64,14 +85,20 @@
noticeList: [], //公告列表
list: [],
page: 1,
active:1,
isShowMoneyPay: true,
active: 1,
isShowMoneyPay: false,
ruleShow: false,
rule_title: '',
rule_content: '',
ruleList: "",
ruleIndex: 0,
ruleList: $cache_rule.ruleIndex || []
}
},
onShow() {
this.getMsg()
this.getrecomVideo()
httpsRequest.getT("/app/common/type/919", {}).then(res => {
if (res.code == 0) {
const sysInfo = uni.getSystemInfoSync();
@@ -80,12 +107,51 @@
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
}
});
httpsRequest.getT("/app/announcement", {
type: 0
}).then(res => {
if (res.code == 0 && res.data.length > 0) {
this.ruleShow = true
this.ruleList = res.data
$cache_rule.set('ruleIndex', this.ruleList)
this.ruleInit()
// this.ruleShow = true
// this.rule_title = res.data[0].title
// this.rule_content = res.data[0].content
}
});
},
onPullDownRefresh(){
this.getrecomVideo()
setTimeout(()=>{
uni.stopPullDownRefresh()
},1000)
},
onReachBottom() {
++this.page
this.getrecomVideo()
},
methods: {
ruleInit() {
this.rule_title = this.ruleList[this.ruleIndex].title
this.rule_content = this.ruleList[this.ruleIndex].content
},
ruleConfirm() {
this.ruleIndex++
if (this.ruleIndex >= this.ruleList.length) {
this.ruleIndex = 0
return
}
this.ruleShow = false
setTimeout(res => {
this.ruleInit()
this.ruleShow = true
}, 300)
},
// 跳转公告链接
goMsg(url) {
if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) {
@@ -110,8 +176,8 @@
},
// 列表
//获取推荐视频
getrecomVideo(sort,active=1) {
this.active=active
getrecomVideo(sort, active = 1) {
this.active = active
if (sort) {
this.page = 1
}

View File

@@ -132,7 +132,7 @@
});
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
// window.location.href = res.data.value;
// #endif

View File

@@ -215,7 +215,7 @@
this.$queue.setData("token", res.token);
this.$queue.setData("userId", res.user.userId);
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
_this.isRotate = false;
@@ -245,7 +245,7 @@
}
});
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
});
} else {
uni.showModal({

View File

@@ -186,7 +186,7 @@
that.$queue.setData('token', res.token);
that.$queue.setData('userId', res.user.userId);
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
uni.hideLoading();
@@ -307,7 +307,7 @@
console.log(ress.user.userId)
console.log(ress.token)
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
uni.hideLoading();
@@ -354,7 +354,7 @@
that.$queue.setData('userId', res.user
.userId);
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
uni.hideLoading();
@@ -446,7 +446,7 @@
this.$queue.setData("invitationCode", res.user.invitationCode);
this.$queue.setData("inviterCode", res.user.inviterCode);
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
uni.navigateTo({
@@ -498,7 +498,7 @@
this.$queue.setData("inviterCode", res.user
.inviterCode);
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
uni.navigateTo({
@@ -526,7 +526,7 @@
this.$queue.setData("invitationCode", res.user.invitationCode);
this.$queue.setData("inviterCode", res.user.inviterCode);
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
uni.navigateTo({
@@ -977,7 +977,7 @@
})
setTimeout(function() {
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
});
}, 1000)

View File

@@ -286,6 +286,7 @@ export default {
})
this.$u.post('/app/Login/registerCode?password=' + code + '&phone=' + mobile).then(res => {
if (res.code === 0) {
console.log(res,'userid1')
uni.setStorageSync('token', res.token)
uni.setStorageSync('userId', res.user.userId)
uni.setStorageSync('userName', res.user.userName)

View File

@@ -188,7 +188,7 @@
this.$queue.setData("token", res.token);
this.$queue.setData("userId", res.user.userId);
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
_this.isRotate = false;
@@ -218,7 +218,7 @@
}
});
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
});
} else {
uni.showModal({

View File

@@ -308,7 +308,7 @@
// this.$queue.setData('nickName', res.data.nickName ? res.data.nickName : res.data.phone);
// this.$queue.setData('gender', parseInt(res.data.gender));
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
});
} else {
uni.showModal({

View File

@@ -314,7 +314,7 @@
// this.$queue.setData('nickName', res.data.nickName ? res.data.nickName : res.data.phone);
// this.$queue.setData('gender', parseInt(res.data.gender));
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
});
} else {
uni.showModal({

View File

@@ -224,7 +224,7 @@
this.$queue.setData("token", res.token);
this.$queue.setData("userId", res.user.userId);
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
_this.isRotate = false;
@@ -254,7 +254,7 @@
}
});
uni.switchTab({
url: '/pages/index/index'
url: '/pages/index/index2'
});
} else {
uni.showModal({

View File

@@ -3,7 +3,7 @@
<!-- <u-navbar :background="background" :is-back="isBack" :title="title" :border-bottom="false">
</u-navbar> -->
<!-- 登录信息 -->
<view class="info " style="padding: 20rpx;">
<view class="info " style="padding: 20rpx;padding-top: 120rpx;">
<view
style="background-color: #f5f1f1;padding: 20rpx; display: flex;align-items: center;justify-content: space-between;"
class="">
@@ -47,7 +47,7 @@
我的喜欢
</view>
<view class="statistics-box-item-top">
{{myLoveNum}}
{{myLoveNum?myLoveNum:0}}
</view>
</view>
<view class="statistics-box-item" @click="goNav('/me/jilu/duanju-zhjuiju-jilu')">
@@ -55,7 +55,7 @@
我的追剧
</view>
<view class="statistics-box-item-top">
{{myZhui}}
{{myZhui?myZhui:0}}
</view>
</view>
<!-- <view class="statistics-box-item" @click="goNav('/me/jifen/duanju-jifen')">
@@ -98,8 +98,7 @@
</view>
</view> -->
<!-- 钱包 -->
<view class="money" v-if="isWxIosPay == true" style="position: relative;">
<view class="money" v-if="isWxIosPay == '是'" style="position: relative;">
<view
style="position: relative;background-color: #f2b5b5;width: 700rpx;height: 74rpx;padding:20rpx;border-radius: 14rpx 14rpx 0rpx 0rpx;position: absolute;left: 0;top: 0;display: flex;align-items: center;justify-content: space-between;">
<view class="df">
@@ -118,9 +117,9 @@
</view>
</view>
<view style="margin-top: 40rpx;">观看历史</view>
<view class="df" style=" justify-content: space-between;margin-top: 28rpx;">
<view style="border-radius:21rpx 21rpx 21rpx 21rpx" v-for="(item,index) in list" :key="(item,index)"
<view style="margin-top: 40rpx;">观看历史</view>
<view class="df" style=" margin-top: 28rpx;">
<view style="border-radius:21rpx 21rpx 21rpx 21rpx;margin-left: 28rpx" v-for="(item,index) in list" :key="(item,index)"
@tap="seVideo(item)">
<image :src="item.titleImg"
style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx" mode=""></image>
@@ -304,6 +303,7 @@
import ttMsg from '../../components/ttMsg/ttMsg.vue'
import httpsRequest from '../../common/httpRequest.js'
import otherXuanfu from '@/components/other-xuafu.vue'
import {init} from '@/common/init.js'
import {
returnIsSafari
} from '@/utils/app.js'
@@ -351,7 +351,7 @@
}
},
onLoad() {
this.getBannerList()
// this.getBannerList()
this.zxczxczxczsw(1212, 5)
this.zzzzzzzzzzzzzzzzs(1212.5)
@@ -360,7 +360,7 @@
this.wwrqx(1212, 5)
},
onShow() {
this.ymfgetDataList()
init()
const systemInfo = uni.getSystemInfoSync();
const isIOS = /iOS/.test(systemInfo.platform);
if (!isIOS) {
@@ -372,6 +372,7 @@
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
this.token = uni.getStorageSync('token')
if (this.token) {
this.ymfgetDataList()
this.getMyMoney()
this.getPoints()
this.$u.api.userinfo().then(res => {
@@ -526,9 +527,9 @@
limit: 1,
classify: 2
}
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
this.$Request.getT('/app/courseCollect/collectVideoSummary', data).then(res => {
if (res.code === 0) {
this.myLoveNum = res.data.total
this.myLoveNum = res.data.likeCount
} else {
this.myLoveNum = 0
}
@@ -541,9 +542,9 @@
limit: 1,
classify: 1
}
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
this.$Request.getT('/app/courseCollect/collectVideoSummary', data).then(res => {
if (res.code === 0) {
this.myZhui = res.data.total
this.myZhui = res.data.collectCount
} else {
this.myZhui = 0
}
@@ -749,6 +750,10 @@
uni.navigateTo({
url: '/me/setting/kefu'
})
} else if (kefu == 4) {
uni.navigateTo({
url: '/pages/me/webview'
})
} else if (kefu === 3) {
uni.makePhoneCall({
phoneNumber: kefuPhone //仅为示例

17
pages/me/webview.vue Normal file
View File

@@ -0,0 +1,17 @@
<template>
<web-view :src="url"></web-view>
</template>
<script>
export default {
data() {
return {
url: 'https://chatbot.aliyuncs.com/intl/index.htm?from=pfW5XoA9gt&locale=zh-CN',
};
},
async onLoad(options) {
this.url = uni.getStorageSync('kefuPhone');
console.log(options)
// this.url = options.url
}
};
</script>

View File

@@ -8,9 +8,12 @@
<view class="navTitle">
<view></view>
<view class="title">任务大厅</view>
<image @click="goNav({jumpType:1,buttonUrl:'/pages/me/index'})" class="navTitleIcon"
<view class="">
</view>
<!-- <image @click="goNav({ jumpType: 1, buttonUrl: '/pages/me/index' })" class="navTitleIcon"
src="../../static/images/my.png"></image>
</view>
--> </view>
<view class="icon u-relative padding">
<image class="task_icon1 u-relative" src="../../static/images/me/task_icon1.png"></image>
<view class="icon_title u-font-32 text-bold u-relative">新人好礼送不停</view>
@@ -22,7 +25,7 @@
<image src="../../static/dwbimgs/renwubg.png"
style="width: 100%;height: 78rpx;position: absolute;left: 0;top: 0;z-index:1" mode=""></image>
<view style="z-index: 9999;position: absolute;text-align: center;width: 98%;">已连续签到 <text class="num"
style="color: #EC6F48;margin: 0 10rpx;">{{signDays}}</text> </view>
style="color: #EC6F48;margin: 0 10rpx;">{{ signDays }}</text> </view>
</view>
<!-- <view class="signInList flex justify-between">
<text class="line"></text>
@@ -41,14 +44,14 @@
</view> -->
<view style="margin-top: 100rpx; display: flex;align-items: center; justify-content: space-between;">
<view class="" v-for="item in signInList" :key="item.id" style="position: relative;"
:style="filterDate(item)=='已签到'?'color:#EFA765':'color:#999'">
{{filterDate(item)}}
:style="filterDate(item) == '已签到' ? 'color:#EFA765' : 'color:#999'">
{{ filterDate(item) }}
<view
style="margin-top: 20rpx;;width: 80rpx;height: 94rpx;background: linear-gradient( 180deg, #FFF7E3 0%, #FFFFFF 100%);border-radius: 14rpx 14rpx 0rpx 0rpx;"
:style="filterDate(item)=='已签到'?'color:#999':'color:#EFA765'">
{{item.signDay.substr(5,8)}}
:style="filterDate(item) == '已签到' ? 'color:#999' : 'color:#EFA765'">
{{ item.signDay.substr(5, 8) }}
</view>
<image v-if="item.status==0" src="../../static/dwbimgs/xing (1).png"
<image v-if="item.status == 0" src="../../static/dwbimgs/xing (1).png"
style="width: 52rpx;height: 48rpx;position: absolute;top: 100rpx;left: 14rpx;" mode=""></image>
<image v-else src="../../static/dwbimgs/xing (2).png"
style="width: 52rpx;height: 48rpx;position: absolute;top: 100rpx;left: 14rpx;" mode="">
@@ -63,44 +66,48 @@
</view> -->
</view>
<view class="content margin-lr padding bg-white u-relative" v-if="list.length">
<view class="cell flex justify-between" v-for="(item,index) in list" :key="index"
v-if="(item.buttonUrl=='/me/yaoqing/ymf-yaoqing-home'&&isShowMoneyPay)||item.buttonUrl!='/me/yaoqing/ymf-yaoqing-home'">
<view class="cell flex justify-between" v-for="(item, index) in list" :key="index" v-if="item.shows">
<view class="cell_left flex">
<view class="cell_title flex">
<view class="u-font-28 text-bold title"
:style="{alignSelf: item.rewardImg?'center':'flex-start'}">{{ item.title}}</view>
<u-image v-if="item.rewardImg" class="cell_icon" :src="item.rewardImg "></u-image>
<view class="u-font-24 tip">{{ item.rewardDetail }}</view>
:style="{ alignSelf: item.rewardImg ? 'center' : 'flex-start' }">{{ item.title }}</view>
<u-image v-if="item.rewardImg" class="cell_icon" :src="item.rewardImg"></u-image>
<view class="u-font-24 tip" v-if="isShowMoneyPay">{{ item.rewardDetail }}</view>
</view>
<view class="subhead u-font-24">{{ item.detail }}</view>
</view>
<view class="cell_right flex">
<view v-if=" item.disabled " class="btn u-font-24 text-bold"
:style="{backgroundColor: item.buttonBgColor,color: item.buttonFontColor }"
<view v-if="item.disabled" class="btn u-font-24 text-bold"
:style="{ backgroundColor: item.buttonBgColor, color: item.buttonFontColor }"
@click="goNav(item)">
{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : ( item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}`) }}
{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : (
item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}`) }}
</view>
<view v-else class="btn u-font-24 text-bold disabled">
{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : ( item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}`) }}
{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}`
: (item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}`) }}
</view>
<!-- <view v-else class="btn u-font-24 text-bold" @click="goNav(item)">{{ item.buttonTitle }}</view> -->
<view v-if=" item.buttonUnderContent && item.buttonUnderUrl " class="u-font-20 tip"
@click="goNav({buttonUrl: item.buttonUnderUrl, jumpType: 1,title: item.title})">
{{ item.buttonUnderContent}}
<view v-if="item.buttonUnderContent && item.buttonUnderUrl&&isShowMoneyPay" class="u-font-22 tip"
@click="goNav({ id: item.id, buttonUrl: item.buttonUnderUrl, jumpType: 1, title: item.title, disabled: item.disabled, discNumber: item.discNumber })">
{{ item.buttonUnderContent }}
</view>
</view>
</view>
</view>
<!-- 激励视频广告 -->
<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>
</template>
<script>
import {
import index from '../../tuniao-ui'
import {
data
} from '../../tuniao-ui/libs/mixin/mixin'
@@ -118,6 +125,10 @@
signInList: [],
signInBtn: '点击签到',
isShowMoneyPay: true,
adRewardedVideo: true,
adRewardedVideoloadNum: 0,
urlCallback: null,
}
},
onLoad() {
@@ -135,8 +146,62 @@
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
}
});
this.$nextTick(() => {
this.adRewardedVideoloadNum = 0
this.$refs.adRewardedVideo.load();
})
},
methods: {
onadload(e) {
this.adRewardedVideo = true;
console.log('广告数据加载成功');
},
/**
* 广告加载失败回调
* @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
*/
async onadclose(e) {
const detail = e.detail
if (detail && detail.isEnded) {
// 正常播放结束
// /sqx_fast/app/ad/state
let res = await this.$Request.getT('app/ad/state', {
extraKey: this.urlCallback.extra
})
this.$Request.getT('/app/common/type/921').then(res => {
if (res.code == 0) {
console.log(res)
uni.showToast({
title: '获得' + res.data.value + '分钟免费时长',
icon: 'none'
})
}
})
} else {
// 播放中途退出
}
},
//乘法函数,用来得到精确的乘法结果
//说明javascript的乘法结果会有误差在两个浮点数相乘的时候会比较明显。这个函数返回较为精确的乘法结果。
//调用mul(arg1,arg2)
@@ -277,6 +342,24 @@
// }
// })
} else {
this.signDays = 0
const dateArray = [];
this.signInList=[]
for (let i = 0; i < 7; i++) {
const date = new Date(Date.now() + i * 24 * 60 * 60 * 1000);
const year = date.getFullYear();
const month = date.getMonth() + 1 < 10 ? `0${date.getMonth() + 1}` : date.getMonth() +
1;
const day = date.getDate() < 10 ? `0${date.getDate()}` : date.getDate();
dateArray.push(`${year}-${month}-${day}`);
}
console.log(dateArray, 'debug');
dateArray.forEach(ele => {
this.signInList.push({
"signDay": ele,
"status": "0",
})
})
// uni.showToast({
// title: res.msg,
// icon: 'none'
@@ -300,48 +383,68 @@
// jumpType (integer, optional): 跳转类型 1 内部路径 2 外部路径 ,
// type (integer, optional): 任务类型 1 普通任务 2 打卡任务 9 其它 ,
// buttonUrl
let source, buttonUrl;
buttonUrl = item.buttonUrl
console.log(item)
if (item.buttonUrl == '/me/invite/index') {
buttonUrl = "/me/yaoqing/ymf-yaoqing-home"
}
if (item.buttonUrl == '/me/invite/zhifubao') {
buttonUrl = "/me/yaoqing/zhifubao-tixain"
}
if (item.buttonUrl == '/me/choujiang/choujiang') {
buttonUrl = "/me/VjgyqAzklr/VjgyqAzklr"
}
console.log(item, '调试1')
if (item.jumpType == 0) {
console.log("============", item.buttonTitle);
if (item.buttonTitle.indexOf("领取") != -1) {
this.taskReceive(item.id)
} else if (item.buttonTitle.indexOf("观看视频") != -1) {
// 首次加载广告
this.urlCallback = {
userId: uni.getStorageSync('userId'),
extra: uni.getStorageSync('userId') + "" + new Date().getTime(),
}
this.$refs.adRewardedVideo.show();
} else {
uni.navigateTo({
url: '/pages/index/index'
uni.switchTab({
url: "/pages/index/index2"
})
}
} else if (item.jumpType == 1) {
console.log("--------------");
if (item.title && item.title.indexOf('每周') != -1) {
source = 2
buttonUrl = item.buttonUrl + '?source=' + source
let source, buttonUrl;
buttonUrl = item.buttonUrl
if (buttonUrl == '/me/invite/index') {
buttonUrl = "/me/yaoqing/ymf-yaoqing-home"
}
if (item.title && item.title.indexOf('每月') != -1) {
if (buttonUrl == '/me/invite/zhifubao') {
buttonUrl = "/me/yaoqing/zhifubao-tixain"
}
if (buttonUrl == '/me/choujiang/choujiang') {
buttonUrl = "/me/VjgyqAzklr/VjgyqAzklr"
}
console.log(buttonUrl, 'debug')
if (item.title && item.title.indexOf('每周打卡奖励') != -1) {
// source = 2
buttonUrl = item.buttonUrl + '?source=2'
}
if (item.title && item.title.indexOf('每月打卡奖励1') != -1) {
source = 3
buttonUrl = item.buttonUrl + '?source=' + source
}
console.log(buttonUrl)
uni.navigateTo({
url: buttonUrl
})
if (item.title && item.title.indexOf('每月打卡奖励2') != -1) {
buttonUrl =
`${item.buttonUrl}?standard=${item.discNumber == null ? true : false}&taskId=${item.id}`
}
console.log(buttonUrl, 'debug')
if (buttonUrl == '/me/invite/index') {
uni.navigateTo({
url: '/me/yaoqing/ymf-yaoqing-home'
})
} else {
uni.navigateTo({
url: buttonUrl
})
}
} else if (item.jumpType == 3) {
uni.navigateTo({
url: '/pages/index/index'
uni.switchTab({
url: item.buttonUrl
})
} else if (item.jumpType == 2) {
plus.runtime.openURL(buttonUrl)
plus.runtime.openURL(item.buttonUrl)
}
},
@@ -364,8 +467,8 @@
this.getsignIn()
}, 1000)
} else {
uni.navigateTo({
url: '/pages/index/index'
uni.switchTab({
url: '/pages/index/index2'
})
}
})
@@ -378,7 +481,110 @@
this.$Request.getT('/app/taskCenter/selectTaskCenter', {}).then(res => {
if (res.code == 0) {
this.list = res.data
if (!this.isShowMoneyPay) {
let arrData = []
res.data.forEach(ele => {
if (ele.title.indexOf('分享奖励') == -1 && ele.title.indexOf('新人福利') == -1 &&
ele.title.indexOf('观看视频奖励') == -1) {
arrData.push(ele)
}
})
arrData[0].detail='奖励666金币'
arrData[1].detail='奖励1666金币'
arrData[2].detail='奖励6666金币'
arrData[3].detail='奖励8888金币'
this.list = arrData
} else {
this.list = res.data
}
} else {
this.list = [{
"id": 1,
"title": "每日打卡奖励",
"type": 2,
"detail": "解锁3集视频即可领取",
"rewardDetail": "奖励666金币",
"number": 3,
"buttonTitle": "",
"jumpType": 1,
"buttonUrl": "",
"buttonUnderContent": "",
"buttonUnderUrl": "",
"updateTime": "2025-01-06 18:08:49",
"sort": 0,
"shows": 1,
"discNumber": 0,
"disabled": false
},
{
"id": 17,
"title": "每周打卡奖励",
"type": 2,
"detail": "当月签到满7天即可免费领取",
"rewardImg": "https://short-video.hnsiyao.cn/20241210/8aca569a9d544e819f542ce8aa7e7ce5.png",
"rewardDetail": "",
"number": 7,
"buttonTitle": "立即领取",
"buttonBgColor": "#EC6F48",
"buttonFontColor": "#fff",
"jumpType": 1,
"buttonUrl": "/pages/task/receiveMember",
"buttonUnderContent": "",
"buttonUnderUrl": "/pages/task/receiveMember",
"createTime": "2024-12-10 17:43:42",
"updateTime": "2024-12-25 09:52:09",
"sort": 5,
"shows": 1,
"discNumber": 0,
"disabled": false
},
{
"id": 17,
"title": "每月打卡奖励1",
"type": 2,
"detail": "当月签到满25天即可免费领取",
"rewardImg": "https://short-video.hnsiyao.cn/20241210/8aca569a9d544e819f542ce8aa7e7ce5.png",
"rewardDetail": "会员免费领",
"number": 25,
"buttonTitle": "立即领取",
"buttonBgColor": "#EC6F48",
"buttonFontColor": "#fff",
"jumpType": 1,
"buttonUrl": "/pages/task/receiveMember",
"buttonUnderContent": "",
"buttonUnderUrl": "/pages/task/receiveMember",
"createTime": "2024-12-10 17:43:42",
"updateTime": "2024-12-25 09:52:09",
"sort": 5,
"shows": 1,
"discNumber": 0,
"disabled": false
},
{
"id": 17,
"title": "每月打卡奖励2",
"type": 2,
"detail": "当月签到满25天即可免费领取",
"rewardImg": "https://short-video.hnsiyao.cn/20241210/8aca569a9d544e819f542ce8aa7e7ce5.png",
"rewardDetail": "",
"number": 25,
"buttonTitle": "立即领取",
"buttonBgColor": "#EC6F48",
"buttonFontColor": "#fff",
"jumpType": 1,
"buttonUrl": "/pages/task/receiveMember",
"buttonUnderContent": "",
"buttonUnderUrl": "/pages/task/receiveMember",
"createTime": "2024-12-10 17:43:42",
"updateTime": "2024-12-25 09:52:09",
"sort": 5,
"shows": 1,
"discNumber": 0,
"disabled": false
}
]
}
uni.stopPullDownRefresh();
})

View File

@@ -74,7 +74,7 @@
* 获取列表
*/
getList() {
this.$Request.getT('app/discSpinning/selectDiscSpinning', {source:this.source}).then(res => {
this.$Request.getT('/app/discSpinning/selectDiscSpinning', {source:this.source}).then(res => {
if (res.code == 0 ) {
this.list = res.data.records
}

View File

@@ -85,7 +85,7 @@
* 获取列表
*/
getList() {
this.$Request.getT('app/discSpinning/selectDiscSpinning', {source:this.source}).then(res => {
this.$Request.getT('/app/discSpinning/selectDiscSpinning', {source:this.source}).then(res => {
if (res.code == 0 ) {
this.list = res.data.records
}

View File

@@ -392,7 +392,7 @@
let data = {
page: this.page,
limit: this.limit,
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '',
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '1',
randomNum: this.randomNum
};
httpsRequest.getT('/app/course/selectCourseDetailsList', data).then(res => {

View File

@@ -528,13 +528,13 @@
if (e.detail.currentTime > e.detail.duration * 0.9) {
if (this.playFlag) {
this.playFlag = false
this.$Request.getT('/app/course/viewCourse', {
courseId: this.courseId,
courseDetailsId: this.courseDetailsId,
type: 'end'
}).then(res => {
console.log('播放结束')
})
// this.$Request.getT('/app/course/viewCourse', {
// courseId: this.courseId,
// courseDetailsId: this.courseDetailsId,
// type: 'end'
// }).then(res => {
// console.log('播放结束')
// })
}
}
},
@@ -775,7 +775,7 @@
classify: 3,
type: 1
}
this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
// this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
},
//swiper上下切换事件
change(e) {
@@ -916,14 +916,14 @@
},
//在播放时候的回调
videoPlay(videoId) {
this.$Request.getT('/app/course/viewCourse', {
courseId: this.courseId,
courseDetailsId: this.courseDetailsId,
type: 'start'
}).then(res => {
// this.$Request.getT('/app/course/viewCourse', {
// courseId: this.courseId,
// courseDetailsId: this.courseDetailsId,
// type: 'start'
// }).then(res => {
this.playFlag = true
console.log('播放开始')
})
// console.log('播放开始')
// })
},
//监听视频播放完成
ended() {

143
store/cashe.js Normal file
View File

@@ -0,0 +1,143 @@
import {
data
} from "../tuniao-ui/libs/mixin/mixin"
class CACHE {
constructor(data) {
if (data === '' || data === null || data === undefined) {
throw (new Error('请传入缓存name值:index | {name:index}'))
return
}
if (typeof data === 'string') {
this._name = data
Object.defineProperty(this, '_name', {
writable: false
});
} else {
if (!data.name && !data._name) {
throw (new Error('请传入缓存name值:index | {name:index}'))
return
}
for (let i in data) {
this[i] = data[i]
const canWrite = i.slice(0, 1) !== '_'
Object.defineProperty(this, i, {
writable: canWrite,
writable: canWrite
});
}
}
}
isEmpty(){
return Object.keys(this).length>=2?false:true;
}
get(key) {
return this[key]
}
set(key, val) {
this[key] = val
uni.setStorageSync(this._name, this)
}
clear() {
Object.keys(this).map(v => {
if (v.slice(0, 1) !== '_') {
this[v] = null
delete this[v]
}
})
uni.removeStorageSync(this._name)
}
}
export const $cache_index = new CACHE({
_name: 'CACHE_index',
...uni.getStorageSync('CACHE_index')
})
export const $cache_video = new CACHE({
_name: 'CACHE_video',
...uni.getStorageSync('CACHE_video')
})
export const $cache_renwu = new CACHE({
_name: 'CACHE_renwu',
...uni.getStorageSync('CACHE_renwu')
})
export const $cache_chasingDrama = new CACHE({
_name: 'CACHE_chasingDrama',
...uni.getStorageSync('CACHE_chasingDrama')
})
export const $cache_user = new CACHE({
_name: 'CACHE_user',
...uni.getStorageSync('CACHE_user')
})
export const $cache_rule = new CACHE({
_name: 'CACHE_rule',
...uni.getStorageSync('CACHE_rule')
})
class CACHE_config extends CACHE {
constructor(data) {
super(data)
for (let i in data) {
if(i!=='_name'){
uni.setStorageSync(i,data[i])
}
}
}
set(key, val) {
this[key] = val
uni.setStorageSync(this._name, this)
}
set(key, val) {
this[key] = val
uni.setStorageSync(key, val)
uni.setStorageSync(this._name, this)
}
clear() {
Object.keys(this).map(v => {
if (v.slice(0, 1) !== '_') {
this[v] = null
delete this[v]
}
})
uni.removeStorageSync(this._name)
}
}
export const $cache_config = new CACHE_config({
_name: 'CACHE_config',
...uni.getStorageSync('CACHE_config')
})
const $cache={
index:$cache_index,
video:$cache_video,
renwu:$cache_renwu,
chasingDrama:$cache_chasingDrama,
user:$cache_user,
rule:$cache_rule,
config:$cache_config
}
export function cacheClearAll() {
for(let i in $cache){
$cache[i].clear()
}
}
export function cacheClear(arr){
if(typeof arr==='string'&&$cache[arr]){
$cache[arr].clear()
}
if(Array.isArray(arr)){
for(let i in arr){
const key=[arr[i]]
if($cache[key]){
$cache[key].clear()
}
}
}
}

View File

@@ -251,9 +251,9 @@
const pages = getCurrentPages()
if (pages && pages.length > 0) {
const firstPage = pages[0]
if (pages.length == 1 && (!firstPage.route || firstPage.route != 'pages/index/index')) {
if (pages.length == 1 && (!firstPage.route || firstPage.route != 'pages/index/index2')) {
uni.reLaunch({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
uni.navigateBack({
@@ -262,7 +262,7 @@
}
} else {
uni.reLaunch({
url: '/pages/index/index'
url: '/pages/index/index2'
})
}
}