Compare commits
60 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d42ed54b03 | ||
|
|
4c0766d92b | ||
|
|
a4c26b4801 | ||
|
|
6a6a746334 | ||
|
|
3fbd51a3f2 | ||
|
|
fad0ca9ff0 | ||
|
|
dba6bcd906 | ||
|
|
644f5a446a | ||
|
|
b74fff86a4 | ||
|
|
cbfde6822c | ||
|
|
0b8e005140 | ||
|
|
8803fe81ca | ||
|
|
7a72c1d4fe | ||
|
|
a3b0c66779 | ||
|
|
90a92659b4 | ||
|
|
5d4cb8ccbe | ||
|
|
e3bf3af2d3 | ||
|
|
8ce6713532 | ||
|
|
eddae67fd3 | ||
|
|
15f4dc0e73 | ||
|
|
58ad33a494 | ||
|
|
8a31aa557b | ||
|
|
126a5f6590 | ||
|
|
5172af725a | ||
|
|
5af0821075 | ||
|
|
cb88b8bf54 | ||
|
|
61b4172487 | ||
|
|
7c35389f27 | ||
|
|
ed3d624c2c | ||
|
|
acb8ae772c | ||
|
|
01c486bfcb | ||
|
|
032bda2748 | ||
|
|
9c956be0dc | ||
|
|
383ec3607a | ||
|
|
af3421720b | ||
|
|
6063df73f1 | ||
|
|
302b4779ff | ||
|
|
9fb3e0e16c | ||
|
|
6284515bad | ||
|
|
2a5e686f2e | ||
|
|
3731abf871 | ||
|
|
299a340144 | ||
|
|
1a1c583742 | ||
|
|
f3d8894974 | ||
|
|
18f3badfa1 | ||
|
|
65c8380b1a | ||
|
|
8e283e276b | ||
|
|
cabf7bb175 | ||
|
|
01185edd14 | ||
|
|
d3c28c879e | ||
|
|
c6bd06a8b8 | ||
|
|
4959eea044 | ||
|
|
bfb8add963 | ||
|
|
8e67221c9a | ||
|
|
b48e435644 | ||
|
|
a725d986f6 | ||
|
|
169bc3b4c8 | ||
|
|
a9974eddca | ||
|
|
f6de576a5e | ||
|
|
8e5065a588 |
@@ -18,7 +18,7 @@
|
|||||||
"type" : "uniCloud"
|
"type" : "uniCloud"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"playground" : "custom",
|
"playground" : "standard",
|
||||||
"type" : "uni-app:app-android"
|
"type" : "uni-app:app-android"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
180
App.vue
180
App.vue
@@ -1,6 +1,9 @@
|
|||||||
<script>
|
<script>
|
||||||
import config from '@/common/config.js'
|
import config from '@/common/config.js'
|
||||||
import store from './store/index.js'
|
import store from './store/index.js'
|
||||||
|
import {
|
||||||
|
init
|
||||||
|
} from './common/init.js'
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
let that = this
|
let that = this
|
||||||
@@ -649,7 +652,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
init()
|
||||||
|
|
||||||
// this.$u.get('/app/common/type/109').then(res => { // 是否开启公众号自动注册 109
|
// this.$u.get('/app/common/type/109').then(res => { // 是否开启公众号自动注册 109
|
||||||
// if (res.code == 0 && res.data) {
|
// if (res.code == 0 && res.data) {
|
||||||
@@ -657,181 +660,6 @@
|
|||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
//微信小程序IOS系统支付功能开关 882
|
//微信小程序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
|
// #ifdef H5
|
||||||
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
||||||
|
|||||||
@@ -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/"; //后台服务域名
|
||||||
@@ -11,10 +11,11 @@
|
|||||||
// 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 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 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 = {
|
module.exports = {
|
||||||
|
|||||||
@@ -61,9 +61,21 @@ const install = (Vue, vm) => {
|
|||||||
|
|
||||||
let help = (params = {}) => vm.$u.get('app/helpWord/selectHelpList', params); //帮助中心
|
let help = (params = {}) => vm.$u.get('app/helpWord/selectHelpList', params); //帮助中心
|
||||||
let helpDet = (params = {}) => vm.$u.get('app/helpWord/selectHelpWordDetails', 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(因为vm就是this,也即this.$u.api)下
|
||||||
vm.$u.api = {
|
vm.$u.api = {
|
||||||
@@ -124,4 +136,4 @@ const install = (Vue, vm) => {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
install
|
install
|
||||||
}
|
}
|
||||||
410
common/init.js
Normal file
410
common/init.js
Normal 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)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
goNav() {
|
goNav() {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -424,7 +424,7 @@
|
|||||||
async remoteGetPrizeIndex() {
|
async remoteGetPrizeIndex() {
|
||||||
this.result = ''
|
this.result = ''
|
||||||
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
|
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
|
orderId: this.option.orderId || 2145
|
||||||
})
|
})
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@@ -476,22 +476,22 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = _this.result
|
} = _this.result
|
||||||
_this.$Request.postJson('app/discSpinning/receive', _this.result).then(res => {
|
// _this.$Request.postJson('/app/discSpinning/receive', _this.result).then(res => {
|
||||||
_this.result = ''
|
// _this.result = ''
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: '领取成功',
|
// title: '领取成功',
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
_this.getRedPack()
|
// _this.getRedPack()
|
||||||
} else {
|
// } else {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: '领取失败',
|
// title: '领取失败',
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
complete: () => {
|
complete: () => {
|
||||||
this.prizeing = false
|
this.prizeing = false
|
||||||
|
|||||||
@@ -53,23 +53,23 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = this.result
|
} = this.result
|
||||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||||
this.result = ''
|
// this.result = ''
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: '领取成功',
|
// title: '领取成功',
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
this.$emit('success')
|
// this.$emit('success')
|
||||||
this.close()
|
// this.close()
|
||||||
} else {
|
// } else {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: '领取失败',
|
// title: '领取失败',
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.show = false
|
this.show = false
|
||||||
@@ -80,15 +80,15 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = this.result
|
} = this.result
|
||||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||||
this.result = ''
|
// this.result = ''
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
this.$emit('success')
|
// this.$emit('success')
|
||||||
this.close()
|
// this.close()
|
||||||
} else {
|
// } else {
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,21 +57,21 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = this.result
|
} = this.result
|
||||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||||
this.result = ''
|
// this.result = ''
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
console.log('抽奖领取成功');
|
// console.log('抽奖领取成功');
|
||||||
const key=res.data==0?'isBindAliPay':undefined
|
// const key=res.data==0?'isBindAliPay':undefined
|
||||||
this.$emit('close',key)
|
// this.$emit('close',key)
|
||||||
if(key&&key=='isBindAliPay'){
|
// if(key&&key=='isBindAliPay'){
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url:'/me/yaoqing/zhifubao-tixain'
|
// url:'/me/yaoqing/zhifubao-tixain'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name" : "诗谣短剧",
|
"name" : "顺享短剧",
|
||||||
"appid" : "__UNI__E0B05B1",
|
"appid" : "__UNI__E0B05B1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.5.0",
|
"versionName" : "2.3.2",
|
||||||
"versionCode" : 150,
|
"versionCode" : 232,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -186,14 +186,14 @@ export default {
|
|||||||
},
|
},
|
||||||
toRed() {
|
toRed() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/me/invite/cashDetail'
|
url: '/me/yaoqing/ymg-yaoqing-tixian'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
toGift() {
|
toGift() {
|
||||||
console.log('1');
|
console.log('1');
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/me/gift/gift?source=' + this.source
|
url: '/me/giftczgw/giftczgw?source=' + this.source
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 重新生成
|
// 重新生成
|
||||||
@@ -452,7 +452,7 @@ export default {
|
|||||||
async remoteGetPrizeIndex() {
|
async remoteGetPrizeIndex() {
|
||||||
this.result = '';
|
this.result = '';
|
||||||
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###');
|
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.freeNum--;
|
||||||
// this.getCount()
|
// this.getCount()
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@@ -557,7 +557,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getCount() {
|
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) {
|
if (res.code == 0) {
|
||||||
this.freeNum = res.count || 0;
|
this.freeNum = res.count || 0;
|
||||||
this.freeNumDay = res.sum || 0;
|
this.freeNumDay = res.sum || 0;
|
||||||
|
|||||||
@@ -439,7 +439,7 @@
|
|||||||
async remoteGetPrizeIndex() {
|
async remoteGetPrizeIndex() {
|
||||||
this.result=''
|
this.result=''
|
||||||
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
|
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.freeNum--
|
||||||
// this.getCount()
|
// this.getCount()
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@@ -544,7 +544,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getCount(){
|
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){
|
if(res.code==0){
|
||||||
this.freeNum=res.count||0
|
this.freeNum=res.count||0
|
||||||
this.freeNumDay=res.sum||0
|
this.freeNumDay=res.sum||0
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="subNvueweight">
|
<view class="subNvueweight">
|
||||||
<list :bounce="false" :loadmoreoffset="wHeight*3" :show-scrollbar="false" ref="listBox" :pagingEnabled="true"
|
<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>
|
<image src="components/czgdetail1 (5).JPG" mode=""></image>
|
||||||
<cell v-for="(item,i) in videoList" :key="i" :ref="'list'+item.courseDetailsId">
|
<cell v-for="(item,i) in videoList" :key="i" :ref="'list'+item.courseDetailsId">
|
||||||
<view class="subNvueswipers-items" @longpress="openBs()" @disappear="disappear(item.courseDetailsId,i)"
|
<view class="subNvueswipers-items" @longpress="openBs()" @disappear="disappear(item.courseDetailsId,i)"
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
@ended="ended" :enable-progress-gesture="false" :poster="item.titleImg"
|
@ended="ended" :enable-progress-gesture="false" :poster="item.titleImg"
|
||||||
:ref="'myVideo'+item.courseDetailsId" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl"
|
:ref="'myVideo'+item.courseDetailsId" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl"
|
||||||
:autoplay="item.autoPlay" class="detailswipers-items-video"></video>
|
:autoplay="item.autoPlay" class="detailswipers-items-video"></video>
|
||||||
<image v-else @click="!item.videoUrl?openPay():''" :src="item.titleImg" class="detailswipers-items-imgsbg"
|
<image v-else @click="!item.videoUrl?openPay():''" :src="item.titleImg"
|
||||||
mode="aspectFill">
|
class="detailswipers-items-imgsbg" mode="aspectFill">
|
||||||
</image>
|
</image>
|
||||||
<!-- 返回图标 -->
|
<!-- 返回图标 -->
|
||||||
<image v-if="showBack" src="../static/nvueIcon/backs.png" @click="goBack()"
|
<image v-if="showBack" src="../static/nvueIcon/backs.png" @click="goBack()"
|
||||||
@@ -38,8 +38,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="detailswipers-items-right-item" @click="share()">
|
<view class="detailswipers-items-right-item" @click="share()">
|
||||||
<view class="detailswipers-items-right-item-img">
|
<view class="detailswipers-items-right-item-img">
|
||||||
<image class="detailswipers-items-right-item-imgs" src="../../static/images/me/share.png"
|
<image class="detailswipers-items-right-item-imgs"
|
||||||
mode=""></image>
|
src="../../static/images/me/share.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="detaswipers-items-right-item-txt">
|
<view class="detaswipers-items-right-item-txt">
|
||||||
<text class="detaswipers-items-right-item-txts">
|
<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" v-if="isCollect">
|
||||||
<view class="detailswipers-items-right-item-img" @click.stop="shoucang()">
|
<view class="detailswipers-items-right-item-img" @click.stop="shoucang()">
|
||||||
<image class="detailswipers-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
|
<image class="detailswipers-items-right-item-imgs"
|
||||||
mode=""></image>
|
src="../../static/images/me/shuqian_s.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="detaswipers-items-right-item-txt">
|
<view class="detaswipers-items-right-item-txt">
|
||||||
<text class="detaswipers-items-right-item-txts">
|
<text class="detaswipers-items-right-item-txts">
|
||||||
@@ -61,8 +61,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="detailswipers-items-right-item" v-else>
|
<view class="detailswipers-items-right-item" v-else>
|
||||||
<view class="detailswipers-items-right-item-img" @click.stop="shoucang()">
|
<view class="detailswipers-items-right-item-img" @click.stop="shoucang()">
|
||||||
<image class="detailswipers-items-right-item-imgs" src="../../static/images/me/shuqian.png"
|
<image class="detailswipers-items-right-item-imgs"
|
||||||
mode=""></image>
|
src="../../static/images/me/shuqian.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="detaswipers-items-right-item-txt">
|
<view class="detaswipers-items-right-item-txt">
|
||||||
<text class="detaswipers-items-right-item-txts">
|
<text class="detaswipers-items-right-item-txts">
|
||||||
@@ -497,11 +497,14 @@
|
|||||||
|
|
||||||
this.getDataList(this.courseId, this.courseDetailsId);
|
this.getDataList(this.courseId, this.courseDetailsId);
|
||||||
}
|
}
|
||||||
httpsRequest.getT('/app/course/getRedEnvelopeTips').then(res => {
|
if (uni.getStorageSync('token')) {
|
||||||
if (res.code == 0) {
|
httpsRequest.getT('/app/course/getRedEnvelopeTips').then(res => {
|
||||||
this.getRedEnvelopeTips = res.data
|
if (res.code == 0) {
|
||||||
}
|
this.getRedEnvelopeTips = res.data
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
this.getScale()
|
this.getScale()
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
@@ -535,7 +538,7 @@
|
|||||||
this.getMoneyList()
|
this.getMoneyList()
|
||||||
this.getMyMoney()
|
this.getMyMoney()
|
||||||
} else {
|
} else {
|
||||||
console.log("allId====="+e.allId)
|
console.log("allId=====" + e.allId)
|
||||||
if (e.allId) {
|
if (e.allId) {
|
||||||
const arr = e.allId.split('-')
|
const arr = e.allId.split('-')
|
||||||
this.courseId = arr[0];
|
this.courseId = arr[0];
|
||||||
@@ -602,7 +605,7 @@
|
|||||||
this.courseDetailsId = e;
|
this.courseDetailsId = e;
|
||||||
// 清除已经设置的定时器
|
// 清除已经设置的定时器
|
||||||
clearTimeout(this.appearTimeout);
|
clearTimeout(this.appearTimeout);
|
||||||
|
|
||||||
// 设置一个新的延迟执行的定时器
|
// 设置一个新的延迟执行的定时器
|
||||||
this.appearTimeout = setTimeout(() => {
|
this.appearTimeout = setTimeout(() => {
|
||||||
// 实际要执行的操作
|
// 实际要执行的操作
|
||||||
@@ -616,15 +619,15 @@
|
|||||||
this.scrollIntoView = 'video' + index
|
this.scrollIntoView = 'video' + index
|
||||||
console.log(this.scrollIntoViews, '当前位置')
|
console.log(this.scrollIntoViews, '当前位置')
|
||||||
//播放并更新video的上下文
|
//播放并更新video的上下文
|
||||||
this.startPlay(index)
|
this.startPlay(index)
|
||||||
//插入历史记录
|
//插入历史记录
|
||||||
this.setHistor(this.videoList[index].courseId, this.videoList[index].courseDetailsId);
|
this.setHistor(this.videoList[index].courseId, this.videoList[index].courseDetailsId);
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
}, 500); // 延迟500毫秒执行
|
}, 500); // 延迟500毫秒执行
|
||||||
|
|
||||||
},
|
},
|
||||||
disappear(e, index) {
|
disappear(e, index) {
|
||||||
|
|
||||||
// if (this.videoContext) { //判断之前是否有视频的上下文
|
// if (this.videoContext) { //判断之前是否有视频的上下文
|
||||||
// this.videoContext.stop();
|
// this.videoContext.stop();
|
||||||
// this.videoContext = null;
|
// this.videoContext = null;
|
||||||
@@ -958,7 +961,7 @@
|
|||||||
id: this.courseId,
|
id: this.courseId,
|
||||||
token: uni.getStorageSync('token')
|
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.code == 0) {
|
||||||
if (res.data && res.data.isCollect && res.data.isCollect > 0) {
|
if (res.data && res.data.isCollect && res.data.isCollect > 0) {
|
||||||
this.isCollect = true
|
this.isCollect = true
|
||||||
@@ -1115,8 +1118,8 @@
|
|||||||
this.$refs.popupPya.close()
|
this.$refs.popupPya.close()
|
||||||
},
|
},
|
||||||
//选择播放
|
//选择播放
|
||||||
selectPlay(item,type) {
|
selectPlay(item, type) {
|
||||||
if ( this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type ) {
|
if (this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type) {
|
||||||
this.getDataList(this.courseId, this.courseDetailsId, true, 'select')
|
this.getDataList(this.courseId, this.courseDetailsId, true, 'select')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1245,13 +1248,13 @@
|
|||||||
animated: false
|
animated: false
|
||||||
})
|
})
|
||||||
_this.$forceUpdate()
|
_this.$forceUpdate()
|
||||||
console.log('移动结束', el)
|
console.log('移动结束', el)
|
||||||
// },1000)
|
// },1000)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async getCount() {
|
async getCount() {
|
||||||
console.log('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) {
|
if (res.code == 0) {
|
||||||
this.freeNum = res.count || 0
|
this.freeNum = res.count || 0
|
||||||
}
|
}
|
||||||
@@ -1268,7 +1271,7 @@
|
|||||||
id: courseId,
|
id: courseId,
|
||||||
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : ''
|
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.code == 0) {
|
||||||
if (res.data.listsDetail) {
|
if (res.data.listsDetail) {
|
||||||
this.info = res.data;
|
this.info = res.data;
|
||||||
@@ -1315,7 +1318,7 @@
|
|||||||
this.noBuyVideoIndex = null
|
this.noBuyVideoIndex = null
|
||||||
uni.removeStorageSync('noBuyVideoIndex')
|
uni.removeStorageSync('noBuyVideoIndex')
|
||||||
this.videoContext.stop()
|
this.videoContext.stop()
|
||||||
httpsRequest.getT('app/discSpinning/drawCount').then(res => {
|
httpsRequest.getT('/app/discSpinning/drawCount').then(res => {
|
||||||
console.log('转盘抽奖次数')
|
console.log('转盘抽奖次数')
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.count >= 1) {
|
if (res.count >= 1) {
|
||||||
@@ -1350,7 +1353,7 @@
|
|||||||
if (this.noBuyVideoIndex != null && this.videoList[this
|
if (this.noBuyVideoIndex != null && this.videoList[this
|
||||||
.noBuyVideoIndex].videoUrl) {
|
.noBuyVideoIndex].videoUrl) {
|
||||||
this.videoContext.stop();
|
this.videoContext.stop();
|
||||||
httpsRequest.getT('app/discSpinning/drawCount').then(res => {
|
httpsRequest.getT('/app/discSpinning/drawCount').then(res => {
|
||||||
console.log('转盘抽奖次数')
|
console.log('转盘抽奖次数')
|
||||||
if (res.count >= 1) {
|
if (res.count >= 1) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -1371,8 +1374,8 @@
|
|||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if ( t == 'select') {
|
if (t == 'select') {
|
||||||
this.selectPlay(this.videoList[this.current],true)
|
this.selectPlay(this.videoList[this.current], true)
|
||||||
}
|
}
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
}
|
}
|
||||||
|
|||||||
3990
me/detail/detail.vue
3990
me/detail/detail.vue
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -21,11 +21,12 @@
|
|||||||
v-if="item.parentId == 0"
|
v-if="item.parentId == 0"
|
||||||
>
|
>
|
||||||
<view class="text-item">{{ problemItem.helpWordTitle }}</view>
|
<view class="text-item">{{ problemItem.helpWordTitle }}</view>
|
||||||
|
<view class="text-item">通过手机号注册,注册完成即可登录。</view>
|
||||||
<view class="line" v-if="problemIndex != item.helpWordList.length - 1"></view>
|
<view class="line" v-if="problemIndex != item.helpWordList.length - 1"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bg-box">
|
<!-- <view class="bg-box">
|
||||||
<view class="bg-white-box">
|
<view class="bg-white-box">
|
||||||
<image src="../static/icon-letter.png" class="image"></image>
|
<image src="../static/icon-letter.png" class="image"></image>
|
||||||
<view class="text-feedbackczg" hover-class="hover" @click="toFeedbackList">联系客服</view>
|
<view class="text-feedbackczg" hover-class="hover" @click="toFeedbackList">联系客服</view>
|
||||||
@@ -35,7 +36,7 @@
|
|||||||
<image src="../static/icon-edit.png" class="image"></image>
|
<image src="../static/icon-edit.png" class="image"></image>
|
||||||
<view class="text-feedbackczg" hover-class="hover" @click="toFeedback">我要反馈</view>
|
<view class="text-feedbackczg" hover-class="hover" @click="toFeedback">我要反馈</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<button style="visibility: hidden" @click="SyoDEQPwCtTgyqUUymUI"></button>
|
<button style="visibility: hidden" @click="SyoDEQPwCtTgyqUUymUI"></button>
|
||||||
<button style="visibility: hidden" @click="jcGEREqMgyqxlaDFFLsH"></button>
|
<button style="visibility: hidden" @click="jcGEREqMgyqxlaDFFLsH"></button>
|
||||||
<button style="visibility: hidden" @click="isESEgyqcxldifCTWeyC"></button>
|
<button style="visibility: hidden" @click="isESEgyqcxldifCTWeyC"></button>
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
<view class="min-pageczg bg-gray u-font-28">
|
<view class="min-pageczg bg-gray u-font-28">
|
||||||
<u-navbar :background="background" back-icon-color="#fff" immersive :border-bottom="false"></u-navbar>
|
<u-navbar :background="background" back-icon-color="#fff" immersive :border-bottom="false"></u-navbar>
|
||||||
<view class="gift-bg"></view>
|
<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="list">
|
||||||
<view class="tab">
|
<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 class="tab_item" :class="{ active: item.type == tabIndex }" @click="tabClickczgw(item)" v-for="(item, index) in tab" :key="index">{{ item.label }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item" v-for="(item, index) in list" :key="index">
|
<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="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-m-t-24 u-flex u-row-between">
|
||||||
<view class="u-flex-1 u-flex u-col-top">
|
<view class="u-flex-1 u-flex u-col-top">
|
||||||
@@ -83,7 +83,7 @@ export default {
|
|||||||
getListczg() {
|
getListczg() {
|
||||||
let url = '';
|
let url = '';
|
||||||
if (this.tabIndex == 1) {
|
if (this.tabIndex == 1) {
|
||||||
url = 'app/discSpinningRecord/selectDiscSpinningRecord';
|
url = '/app/discSpinningRecord/selectDiscSpinningRecord';
|
||||||
} else {
|
} else {
|
||||||
url = '/app/userPrizeExchange/page';
|
url = '/app/userPrizeExchange/page';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
// 跳转资源详情
|
// 跳转资源详情
|
||||||
ymfgoCourse(e,courseDetailsId) {
|
ymfgoCourse(e,courseDetailsId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/me/detail/detail?id=' + e+'&courseDetailsId='+courseDetailsId
|
url: '/me/detail/detailIOS?id=' + e+'&courseDetailsId='+courseDetailsId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//获取观看记录
|
//获取观看记录
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
this.userInfo = res1.data
|
this.userInfo = res1.data
|
||||||
uni.setStorageSync('userInfo', res1.data)
|
uni.setStorageSync('userInfo', res1.data)
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/index/index'
|
url:'/pages/index/index2'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,7 +174,7 @@
|
|||||||
return this.init()
|
return this.init()
|
||||||
}
|
}
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -186,7 +186,7 @@
|
|||||||
return
|
return
|
||||||
uni.setStorageSync('first', false)
|
uni.setStorageSync('first', false)
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
popshow(){
|
popshow(){
|
||||||
@@ -216,7 +216,7 @@
|
|||||||
iKnow() {
|
iKnow() {
|
||||||
uni.setStorageSync('first', false)
|
uni.setStorageSync('first', false)
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,7 +154,7 @@
|
|||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
this.timer=setTimeout(()=>{
|
this.timer=setTimeout(()=>{
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/index/index'
|
url:'/pages/index/index2'
|
||||||
})
|
})
|
||||||
},1000)
|
},1000)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -240,7 +240,7 @@
|
|||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
return {
|
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;}
|
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||||
title: this.tuiguang,
|
title: this.tuiguang,
|
||||||
imageUrl: this.bgImgs
|
imageUrl: this.bgImgs
|
||||||
@@ -248,7 +248,7 @@
|
|||||||
},
|
},
|
||||||
onShareTimeline(res) {
|
onShareTimeline(res) {
|
||||||
return {
|
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;}
|
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||||
title: this.tuiguang,
|
title: this.tuiguang,
|
||||||
imageUrl: this.bgImgs
|
imageUrl: this.bgImgs
|
||||||
@@ -298,7 +298,7 @@
|
|||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
url: config.APIHOST +
|
url: config.APIHOST +
|
||||||
'/app/invite/dyCreateQr?invitationCode=' + that
|
'/app/invite/dyCreateQr?invitationCode=' + that
|
||||||
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index',
|
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index2',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.statusCode === 200) {
|
if (res.statusCode === 200) {
|
||||||
|
|||||||
@@ -20,10 +20,10 @@
|
|||||||
<view>隐私协议</view>
|
<view>隐私协议</view>
|
||||||
<view><u-icon name="arrow-right"></u-icon></view>
|
<view><u-icon name="arrow-right"></u-icon></view>
|
||||||
</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>注销账号</view>
|
||||||
<view><u-icon name="arrow-right"></u-icon></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 class="flex justify-between padding bg-white solid-bottom" @click="loginOut">
|
||||||
<view>退出登录</view>
|
<view>退出登录</view>
|
||||||
<view><u-icon name="arrow-right"></u-icon></view>
|
<view><u-icon name="arrow-right"></u-icon></view>
|
||||||
|
|||||||
@@ -155,7 +155,7 @@
|
|||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
return {
|
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;}
|
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||||
title: this.tuiguang,
|
title: this.tuiguang,
|
||||||
imageUrl: this.bgImg
|
imageUrl: this.bgImg
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
},
|
},
|
||||||
onShareTimeline(res) {
|
onShareTimeline(res) {
|
||||||
return {
|
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;}
|
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||||
title: this.tuiguang,
|
title: this.tuiguang,
|
||||||
imageUrl: this.bgImg
|
imageUrl: this.bgImg
|
||||||
@@ -222,7 +222,7 @@
|
|||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
url: config.APIHOST +
|
url: config.APIHOST +
|
||||||
'/app/invite/dyCreateQr?invitationCode=' + that
|
'/app/invite/dyCreateQr?invitationCode=' + that
|
||||||
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index',
|
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index2',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.statusCode === 200) {
|
if (res.statusCode === 200) {
|
||||||
|
|||||||
177
me/yaoqing/realName.vue
Normal file
177
me/yaoqing/realName.vue
Normal 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>
|
||||||
@@ -41,11 +41,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad: function(e) {
|
onLoad: function(e) {
|
||||||
console.log(e)
|
console.log(e,'debug')
|
||||||
if (e.moneyType) {
|
if (e.moneyType) {
|
||||||
this.moneyType = e.moneyType
|
this.moneyType = e.moneyType
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: e.moneyType === 1 ? '红包明细' : '金币明细'
|
title: e.moneyType == 1 ? '红包明细' : '金币明细'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (e.viewType) {
|
if (e.viewType) {
|
||||||
|
|||||||
@@ -220,7 +220,7 @@
|
|||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
return {
|
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;}
|
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||||
title: this.tuiguang,
|
title: this.tuiguang,
|
||||||
imageUrl: this.bgImg
|
imageUrl: this.bgImg
|
||||||
@@ -228,7 +228,7 @@
|
|||||||
},
|
},
|
||||||
onShareTimeline(res) {
|
onShareTimeline(res) {
|
||||||
return {
|
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;}
|
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||||
title: this.tuiguang,
|
title: this.tuiguang,
|
||||||
imageUrl: this.bgImg
|
imageUrl: this.bgImg
|
||||||
@@ -297,7 +297,7 @@
|
|||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
url: config.APIHOST +
|
url: config.APIHOST +
|
||||||
'/app/invite/dyCreateQr?invitationCode=' + that
|
'/app/invite/dyCreateQr?invitationCode=' + that
|
||||||
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index',
|
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index2',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.statusCode === 200) {
|
if (res.statusCode === 200) {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -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>
|
||||||
183
pages.json
183
pages.json
@@ -5,12 +5,18 @@
|
|||||||
},
|
},
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||||
{
|
{
|
||||||
|
"path": "pages/index/index2",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "斯耀短剧",
|
||||||
|
"enablePullDownRefresh": true,
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
"path": "pages/task/index",
|
"path": "pages/task/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "任务",
|
"navigationBarTitleText": "任务",
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -24,9 +30,8 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/task/prizeList",
|
"path": "pages/task/prizeList",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "任务",
|
"navigationBarTitleText": "任务"
|
||||||
"navigationStyle": "custom"
|
// "navigationStyle": "custom"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -34,7 +39,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "任务",
|
"navigationBarTitleText": "任务",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -65,7 +69,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 +84,6 @@
|
|||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/learn/index",
|
"path": "pages/learn/index",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -100,6 +103,12 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/me/webview",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "客服"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/me/userinfo",
|
"path": "pages/me/userinfo",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -111,8 +120,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/me/vip/index",
|
"path": "pages/me/vip/index",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -124,8 +131,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/login/login",
|
"path": "pages/login/login",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -163,7 +168,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/login/bind",
|
"path": "pages/login/bind",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "绑定手机号",
|
"navigationBarTitleText": "绑定手机号",
|
||||||
@@ -176,7 +182,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/login/register",
|
"path": "pages/login/register",
|
||||||
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"navigationBarBackgroundColor": "#f1a48a",
|
"navigationBarBackgroundColor": "#f1a48a",
|
||||||
@@ -201,7 +206,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/yodwbsHlmJ/yodwbsHlmJ",
|
"path": "pages/yodwbsHlmJ/yodwbsHlmJ",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "追剧",
|
"navigationBarTitleText": "追剧",
|
||||||
@@ -211,8 +217,8 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "pages/yodwbsHlmJ/aaacasadwqvb",
|
"path": "pages/yodwbsHlmJ/aaacasadwqvb",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "追剧as",
|
"navigationBarTitleText": "追剧as",
|
||||||
@@ -222,8 +228,8 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "pages/video/video",
|
"path": "pages/video/video",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "推荐",
|
"navigationBarTitleText": "推荐",
|
||||||
@@ -239,9 +245,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 +257,8 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/login/iosmobile",
|
"path": "pages/login/iosmobile",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "手机号绑定"
|
"navigationBarTitleText": "手机号绑定"
|
||||||
@@ -290,14 +295,6 @@
|
|||||||
"navigationBarTitleText": "图片s",
|
"navigationBarTitleText": "图片s",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/index/index2",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "斯耀短剧",
|
|
||||||
"enablePullDownRefresh": true,
|
|
||||||
"navigationStyle": "custom"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"subPackages": [{
|
"subPackages": [{
|
||||||
@@ -308,38 +305,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": "消息中心"
|
||||||
@@ -373,7 +380,7 @@
|
|||||||
"path": "yaoqing/ymf-yaoqing-home",
|
"path": "yaoqing/ymf-yaoqing-home",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "分享好友",
|
"navigationBarTitleText": "分享好友",
|
||||||
"navigationStyle": "custom",
|
// "navigationStyle": "custom",
|
||||||
"h5": {
|
"h5": {
|
||||||
"titleNView": {
|
"titleNView": {
|
||||||
"backgroundColor": "#FFFFFF"
|
"backgroundColor": "#FFFFFF"
|
||||||
@@ -396,9 +403,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 +486,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "setting/kefu",
|
"path": "setting/kefu",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "客服",
|
"navigationBarTitleText": "客服",
|
||||||
@@ -525,8 +537,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "detail/detail",
|
"path": "detail/detail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
@@ -565,12 +577,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 +618,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 +661,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 +675,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "jilu/new/free-create-fenshen",
|
"path": "jilu/new/free-create-fenshen",
|
||||||
@@ -678,7 +682,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "jifen/new/create-zhuanye-fenshen",
|
"path": "jifen/new/create-zhuanye-fenshen",
|
||||||
@@ -686,7 +689,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "jifen/new/fenshen-detail",
|
"path": "jifen/new/fenshen-detail",
|
||||||
@@ -694,7 +696,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "payOrder/duanju-xiadan",
|
"path": "payOrder/duanju-xiadan",
|
||||||
@@ -702,7 +703,6 @@
|
|||||||
"navigationBarTitleText": "下单",
|
"navigationBarTitleText": "下单",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "payOrder/new/index",
|
"path": "payOrder/new/index",
|
||||||
@@ -710,7 +710,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "payOrder/new/newindex",
|
"path": "payOrder/new/newindex",
|
||||||
@@ -718,7 +717,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "setting/logOff",
|
"path": "setting/logOff",
|
||||||
@@ -726,15 +724,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 +745,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "juqing/new/waiting-result",
|
"path": "juqing/new/waiting-result",
|
||||||
@@ -755,14 +752,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",
|
||||||
@@ -835,19 +831,23 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "yaoqing/realName",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pay",
|
"root": "pay",
|
||||||
"pages": [{
|
"pages": [{
|
||||||
"path": "success",
|
"path": "success",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "支付成功"
|
"navigationBarTitleText": "支付成功"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}]
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "other",
|
"root": "other",
|
||||||
@@ -887,7 +887,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "抽奖",
|
"navigationBarTitleText": "抽奖",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -924,24 +923,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 +956,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",
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
//返回值:arg1乘以arg2的精确结果
|
//返回值:arg1乘以arg2的精确结果
|
||||||
enter(){
|
enter(){
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/pages/index/index'
|
url:'/pages/index/index2'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
init(){
|
init(){
|
||||||
|
|||||||
@@ -44,7 +44,8 @@
|
|||||||
},
|
},
|
||||||
//查看视频
|
//查看视频
|
||||||
seVideo(item) {
|
seVideo(item) {
|
||||||
console.log(item,'dubyg2')
|
console.log(uni.getStorageSync('token'))
|
||||||
|
// if(uni.getStorageSync('token')){
|
||||||
const time = 100;
|
const time = 100;
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
if (returnIsSafari()) {
|
if (returnIsSafari()) {
|
||||||
@@ -74,7 +75,11 @@
|
|||||||
})
|
})
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
// }else{
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url:'/pages/login/login'
|
||||||
|
// })
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="">
|
<view class="">
|
||||||
<u-sticky :enable="enableIos">
|
<!-- <u-sticky :enable="enableIos">
|
||||||
<view class="search-box-ios">
|
<view class="search-box-ios">
|
||||||
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" v-model="keywordIos"
|
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" v-model="keywordIos"
|
||||||
:show-action="false" :animation="true" @search="getCourseListIos()"></u-search>
|
:show-action="false" :animation="true" @search="getCourseListIos()"></u-search>
|
||||||
</view>
|
</view>
|
||||||
</u-sticky>
|
</u-sticky> -->
|
||||||
<view class="swiper flex align-center justify-center">
|
<view class="swiper flex align-center justify-center">
|
||||||
<view class="swiper-box">
|
<view class="swiper-box">
|
||||||
<swiper :indicator-dots="true" class="swiper " :autoplay="true" interval="5000" duration="500"
|
<swiper :indicator-dots="true" class="swiper " :autoplay="true" interval="5000" duration="500"
|
||||||
:circular="true" style="width: 100%;height: 350rpx;">
|
:circular="true" style="width: 100%;height: 350rpx;">
|
||||||
<swiper-item v-for="(item,index) in swiperListIos" :key='index' @tap="goPageIos(item.url)">
|
<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>
|
style="width: 100%;height: 100%;border-radius: 24rpx;"></image>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
|
|||||||
@@ -195,7 +195,7 @@
|
|||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
return {
|
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;}
|
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||||
title: this.tuiguang,
|
title: this.tuiguang,
|
||||||
imageUrl: this.bgImg
|
imageUrl: this.bgImg
|
||||||
@@ -203,7 +203,7 @@
|
|||||||
},
|
},
|
||||||
onShareTimeline(res) {
|
onShareTimeline(res) {
|
||||||
return {
|
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;}
|
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||||
title: this.tuiguang,
|
title: this.tuiguang,
|
||||||
imageUrl: this.bgImg
|
imageUrl: this.bgImg
|
||||||
|
|||||||
@@ -261,14 +261,14 @@
|
|||||||
isWeixin: false,
|
isWeixin: false,
|
||||||
isIos: true,
|
isIos: true,
|
||||||
scrollTop: 0,
|
scrollTop: 0,
|
||||||
isShowMoneyPay: true,
|
isShowMoneyPay: false,
|
||||||
isIos: true,
|
isIos: true,
|
||||||
isIosApp: false,
|
isIosApp: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
return {
|
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;}
|
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||||
title: this.tuiguang,
|
title: this.tuiguang,
|
||||||
imageUrl: this.bgImg
|
imageUrl: this.bgImg
|
||||||
@@ -276,7 +276,7 @@
|
|||||||
},
|
},
|
||||||
onShareTimeline(res) {
|
onShareTimeline(res) {
|
||||||
return {
|
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;}
|
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||||
title: this.tuiguang,
|
title: this.tuiguang,
|
||||||
imageUrl: this.bgImg
|
imageUrl: this.bgImg
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<template v-if="noticeList.length>0">
|
<template v-if="noticeList.length > 0 && isShowMoneyPay">
|
||||||
<view class="gongao">
|
<view class="gongao">
|
||||||
<view class="gongaoicon">
|
<view class="gongaoicon">
|
||||||
公告
|
公告
|
||||||
@@ -22,39 +22,60 @@
|
|||||||
<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-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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import contentlist from './components/contentlist.vue'
|
import contentlist from './components/contentlist.vue'
|
||||||
|
import httpsRequest from '@/common/httpRequest.js'
|
||||||
|
import {
|
||||||
|
$cache_config,
|
||||||
|
$cache_rule
|
||||||
|
} from '@/store/cashe.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
contentlist
|
contentlist
|
||||||
@@ -64,14 +85,20 @@
|
|||||||
noticeList: [], //公告列表
|
noticeList: [], //公告列表
|
||||||
list: [],
|
list: [],
|
||||||
page: 1,
|
page: 1,
|
||||||
active:1,
|
active: 1,
|
||||||
isShowMoneyPay: true,
|
isShowMoneyPay: false,
|
||||||
|
ruleShow: false,
|
||||||
|
rule_title: '',
|
||||||
|
rule_content: '',
|
||||||
|
ruleList: "",
|
||||||
|
ruleIndex: 0,
|
||||||
|
ruleList: $cache_rule.ruleIndex || []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getMsg()
|
this.getMsg()
|
||||||
this.getrecomVideo()
|
this.getrecomVideo()
|
||||||
|
|
||||||
httpsRequest.getT("/app/common/type/919", {}).then(res => {
|
httpsRequest.getT("/app/common/type/919", {}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
const sysInfo = uni.getSystemInfoSync();
|
const sysInfo = uni.getSystemInfoSync();
|
||||||
@@ -80,12 +107,50 @@
|
|||||||
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(!uni.getStorageSync('ruleShow')){
|
||||||
|
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()
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
onPullDownRefresh(){
|
||||||
|
this.getrecomVideo()
|
||||||
|
setTimeout(()=>{
|
||||||
|
uni.stopPullDownRefresh()
|
||||||
|
},1000)
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
++this.page
|
++this.page
|
||||||
this.getrecomVideo()
|
this.getrecomVideo()
|
||||||
},
|
},
|
||||||
methods: {
|
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
|
||||||
|
uni.setStorageSync('ruleShow', true)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.ruleShow = false
|
||||||
|
setTimeout(res => {
|
||||||
|
this.ruleInit()
|
||||||
|
this.ruleShow = true
|
||||||
|
}, 300)
|
||||||
|
},
|
||||||
// 跳转公告链接
|
// 跳转公告链接
|
||||||
goMsg(url) {
|
goMsg(url) {
|
||||||
if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) {
|
if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) {
|
||||||
@@ -110,8 +175,8 @@
|
|||||||
},
|
},
|
||||||
// 列表
|
// 列表
|
||||||
//获取推荐视频
|
//获取推荐视频
|
||||||
getrecomVideo(sort,active=1) {
|
getrecomVideo(sort, active = 1) {
|
||||||
this.active=active
|
this.active = active
|
||||||
if (sort) {
|
if (sort) {
|
||||||
this.page = 1
|
this.page = 1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
// window.location.href = res.data.value;
|
// window.location.href = res.data.value;
|
||||||
// #endif
|
// #endif
|
||||||
|
|||||||
@@ -215,7 +215,7 @@
|
|||||||
this.$queue.setData("token", res.token);
|
this.$queue.setData("token", res.token);
|
||||||
this.$queue.setData("userId", res.user.userId);
|
this.$queue.setData("userId", res.user.userId);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
_this.isRotate = false;
|
_this.isRotate = false;
|
||||||
@@ -245,7 +245,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -186,7 +186,7 @@
|
|||||||
that.$queue.setData('token', res.token);
|
that.$queue.setData('token', res.token);
|
||||||
that.$queue.setData('userId', res.user.userId);
|
that.$queue.setData('userId', res.user.userId);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
@@ -307,7 +307,7 @@
|
|||||||
console.log(ress.user.userId)
|
console.log(ress.user.userId)
|
||||||
console.log(ress.token)
|
console.log(ress.token)
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
@@ -354,7 +354,7 @@
|
|||||||
that.$queue.setData('userId', res.user
|
that.$queue.setData('userId', res.user
|
||||||
.userId);
|
.userId);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
@@ -446,7 +446,7 @@
|
|||||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -498,7 +498,7 @@
|
|||||||
this.$queue.setData("inviterCode", res.user
|
this.$queue.setData("inviterCode", res.user
|
||||||
.inviterCode);
|
.inviterCode);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -526,7 +526,7 @@
|
|||||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -977,7 +977,7 @@
|
|||||||
})
|
})
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
});
|
});
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -188,7 +188,7 @@
|
|||||||
this.$queue.setData("token", res.token);
|
this.$queue.setData("token", res.token);
|
||||||
this.$queue.setData("userId", res.user.userId);
|
this.$queue.setData("userId", res.user.userId);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
_this.isRotate = false;
|
_this.isRotate = false;
|
||||||
@@ -218,7 +218,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -308,7 +308,7 @@
|
|||||||
// this.$queue.setData('nickName', res.data.nickName ? res.data.nickName : res.data.phone);
|
// this.$queue.setData('nickName', res.data.nickName ? res.data.nickName : res.data.phone);
|
||||||
// this.$queue.setData('gender', parseInt(res.data.gender));
|
// this.$queue.setData('gender', parseInt(res.data.gender));
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -314,7 +314,7 @@
|
|||||||
// this.$queue.setData('nickName', res.data.nickName ? res.data.nickName : res.data.phone);
|
// this.$queue.setData('nickName', res.data.nickName ? res.data.nickName : res.data.phone);
|
||||||
// this.$queue.setData('gender', parseInt(res.data.gender));
|
// this.$queue.setData('gender', parseInt(res.data.gender));
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -224,7 +224,7 @@
|
|||||||
this.$queue.setData("token", res.token);
|
this.$queue.setData("token", res.token);
|
||||||
this.$queue.setData("userId", res.user.userId);
|
this.$queue.setData("userId", res.user.userId);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
_this.isRotate = false;
|
_this.isRotate = false;
|
||||||
@@ -254,7 +254,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<!-- <u-navbar :background="background" :is-back="isBack" :title="title" :border-bottom="false">
|
<!-- <u-navbar :background="background" :is-back="isBack" :title="title" :border-bottom="false">
|
||||||
</u-navbar> -->
|
</u-navbar> -->
|
||||||
<!-- 登录信息 -->
|
<!-- 登录信息 -->
|
||||||
<view class="info " style="padding: 20rpx;">
|
<view class="info " style="padding: 20rpx;padding-top: 120rpx;">
|
||||||
<view
|
<view
|
||||||
style="background-color: #f5f1f1;padding: 20rpx; display: flex;align-items: center;justify-content: space-between;"
|
style="background-color: #f5f1f1;padding: 20rpx; display: flex;align-items: center;justify-content: space-between;"
|
||||||
class="">
|
class="">
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
我的喜欢
|
我的喜欢
|
||||||
</view>
|
</view>
|
||||||
<view class="statistics-box-item-top">
|
<view class="statistics-box-item-top">
|
||||||
{{myLoveNum}}
|
{{myLoveNum?myLoveNum:0}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="statistics-box-item" @click="goNav('/me/jilu/duanju-zhjuiju-jilu')">
|
<view class="statistics-box-item" @click="goNav('/me/jilu/duanju-zhjuiju-jilu')">
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
我的追剧
|
我的追剧
|
||||||
</view>
|
</view>
|
||||||
<view class="statistics-box-item-top">
|
<view class="statistics-box-item-top">
|
||||||
{{myZhui}}
|
{{myZhui?myZhui:0}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="statistics-box-item" @click="goNav('/me/jifen/duanju-jifen')">
|
<!-- <view class="statistics-box-item" @click="goNav('/me/jifen/duanju-jifen')">
|
||||||
@@ -98,8 +98,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<!-- 钱包 -->
|
<!-- 钱包 -->
|
||||||
|
<view class="money" v-if="isWxIosPay == '是'" style="position: relative;">
|
||||||
<view class="money" v-if="isWxIosPay == true" style="position: relative;">
|
|
||||||
<view
|
<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;">
|
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">
|
<view class="df">
|
||||||
@@ -118,9 +117,9 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="margin-top: 40rpx;">观看历史</view>
|
<view style="margin-top: 40rpx;">观看历史</view>
|
||||||
<view class="df" style=" justify-content: space-between;margin-top: 28rpx;">
|
<view class="df" style=" margin-top: 28rpx;">
|
||||||
<view style="border-radius:21rpx 21rpx 21rpx 21rpx" v-for="(item,index) in list" :key="(item,index)"
|
<view style="border-radius:21rpx 21rpx 21rpx 21rpx;margin-left: 28rpx" v-for="(item,index) in list" :key="(item,index)"
|
||||||
@tap="seVideo(item)">
|
@tap="seVideo(item)">
|
||||||
<image :src="item.titleImg"
|
<image :src="item.titleImg"
|
||||||
style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx" mode=""></image>
|
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 ttMsg from '../../components/ttMsg/ttMsg.vue'
|
||||||
import httpsRequest from '../../common/httpRequest.js'
|
import httpsRequest from '../../common/httpRequest.js'
|
||||||
import otherXuanfu from '@/components/other-xuafu.vue'
|
import otherXuanfu from '@/components/other-xuafu.vue'
|
||||||
|
import {init} from '@/common/init.js'
|
||||||
import {
|
import {
|
||||||
returnIsSafari
|
returnIsSafari
|
||||||
} from '@/utils/app.js'
|
} from '@/utils/app.js'
|
||||||
@@ -351,7 +351,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.getBannerList()
|
// this.getBannerList()
|
||||||
|
|
||||||
this.zxczxczxczsw(1212, 5)
|
this.zxczxczxczsw(1212, 5)
|
||||||
this.zzzzzzzzzzzzzzzzs(1212.5)
|
this.zzzzzzzzzzzzzzzzs(1212.5)
|
||||||
@@ -360,7 +360,7 @@
|
|||||||
this.wwrqx(1212, 5)
|
this.wwrqx(1212, 5)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.ymfgetDataList()
|
init()
|
||||||
const systemInfo = uni.getSystemInfoSync();
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
const isIOS = /iOS/.test(systemInfo.platform);
|
const isIOS = /iOS/.test(systemInfo.platform);
|
||||||
if (!isIOS) {
|
if (!isIOS) {
|
||||||
@@ -372,6 +372,7 @@
|
|||||||
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
|
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
|
||||||
this.token = uni.getStorageSync('token')
|
this.token = uni.getStorageSync('token')
|
||||||
if (this.token) {
|
if (this.token) {
|
||||||
|
this.ymfgetDataList()
|
||||||
this.getMyMoney()
|
this.getMyMoney()
|
||||||
this.getPoints()
|
this.getPoints()
|
||||||
this.$u.api.userinfo().then(res => {
|
this.$u.api.userinfo().then(res => {
|
||||||
@@ -526,9 +527,9 @@
|
|||||||
limit: 1,
|
limit: 1,
|
||||||
classify: 2
|
classify: 2
|
||||||
}
|
}
|
||||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
this.$Request.getT('/app/courseCollect/collectVideoSummary', data).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.myLoveNum = res.data.total
|
this.myLoveNum = res.data.likeCount
|
||||||
} else {
|
} else {
|
||||||
this.myLoveNum = 0
|
this.myLoveNum = 0
|
||||||
}
|
}
|
||||||
@@ -541,9 +542,9 @@
|
|||||||
limit: 1,
|
limit: 1,
|
||||||
classify: 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) {
|
if (res.code === 0) {
|
||||||
this.myZhui = res.data.total
|
this.myZhui = res.data.collectCount
|
||||||
} else {
|
} else {
|
||||||
this.myZhui = 0
|
this.myZhui = 0
|
||||||
}
|
}
|
||||||
@@ -749,6 +750,10 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/me/setting/kefu'
|
url: '/me/setting/kefu'
|
||||||
})
|
})
|
||||||
|
} else if (kefu == 4) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/me/webview'
|
||||||
|
})
|
||||||
} else if (kefu === 3) {
|
} else if (kefu === 3) {
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: kefuPhone //仅为示例
|
phoneNumber: kefuPhone //仅为示例
|
||||||
|
|||||||
17
pages/me/webview.vue
Normal file
17
pages/me/webview.vue
Normal 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>
|
||||||
@@ -8,9 +8,12 @@
|
|||||||
<view class="navTitle">
|
<view class="navTitle">
|
||||||
<view></view>
|
<view></view>
|
||||||
<view class="title">任务大厅</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>
|
src="../../static/images/my.png"></image>
|
||||||
</view>
|
--> </view>
|
||||||
<view class="icon u-relative padding">
|
<view class="icon u-relative padding">
|
||||||
<image class="task_icon1 u-relative" src="../../static/images/me/task_icon1.png"></image>
|
<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>
|
<view class="icon_title u-font-32 text-bold u-relative">新人好礼送不停</view>
|
||||||
@@ -22,7 +25,7 @@
|
|||||||
<image src="../../static/dwbimgs/renwubg.png"
|
<image src="../../static/dwbimgs/renwubg.png"
|
||||||
style="width: 100%;height: 78rpx;position: absolute;left: 0;top: 0;z-index:1" mode=""></image>
|
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"
|
<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>
|
||||||
<!-- <view class="signInList flex justify-between">
|
<!-- <view class="signInList flex justify-between">
|
||||||
<text class="line"></text>
|
<text class="line"></text>
|
||||||
@@ -41,14 +44,14 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
<view style="margin-top: 100rpx; display: flex;align-items: center; justify-content: space-between;">
|
<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;"
|
<view class="" v-for="item in signInList" :key="item.id" style="position: relative;"
|
||||||
:style="filterDate(item)=='已签到'?'color:#EFA765':'color:#999'">
|
:style="filterDate(item) == '已签到' ? 'color:#EFA765' : 'color:#999'">
|
||||||
{{filterDate(item)}}
|
{{ filterDate(item) }}
|
||||||
<view
|
<view
|
||||||
style="margin-top: 20rpx;;width: 80rpx;height: 94rpx;background: linear-gradient( 180deg, #FFF7E3 0%, #FFFFFF 100%);border-radius: 14rpx 14rpx 0rpx 0rpx;"
|
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'">
|
:style="filterDate(item) == '已签到' ? 'color:#999' : 'color:#EFA765'">
|
||||||
{{item.signDay.substr(5,8)}}
|
{{ item.signDay.substr(5, 8) }}
|
||||||
</view>
|
</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>
|
style="width: 52rpx;height: 48rpx;position: absolute;top: 100rpx;left: 14rpx;" mode=""></image>
|
||||||
<image v-else src="../../static/dwbimgs/xing (2).png"
|
<image v-else src="../../static/dwbimgs/xing (2).png"
|
||||||
style="width: 52rpx;height: 48rpx;position: absolute;top: 100rpx;left: 14rpx;" mode="">
|
style="width: 52rpx;height: 48rpx;position: absolute;top: 100rpx;left: 14rpx;" mode="">
|
||||||
@@ -63,44 +66,48 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="content margin-lr padding bg-white u-relative" v-if="list.length">
|
<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.shows">
|
||||||
<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_left flex">
|
<view class="cell_left flex">
|
||||||
<view class="cell_title flex">
|
<view class="cell_title flex">
|
||||||
<view class="u-font-28 text-bold title"
|
<view class="u-font-28 text-bold title"
|
||||||
:style="{alignSelf: item.rewardImg?'center':'flex-start'}">{{ item.title}}</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>
|
<u-image v-if="item.rewardImg" class="cell_icon" :src="item.rewardImg"></u-image>
|
||||||
<view class="u-font-24 tip">{{ item.rewardDetail }}</view>
|
<view class="u-font-24 tip" v-if="isShowMoneyPay">{{ item.rewardDetail }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="subhead u-font-24">{{ item.detail }}</view>
|
<view class="subhead u-font-24">{{ item.detail }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cell_right flex">
|
<view class="cell_right flex">
|
||||||
<view v-if=" item.disabled " class="btn u-font-24 text-bold"
|
<view v-if="item.disabled" class="btn u-font-24 text-bold"
|
||||||
:style="{backgroundColor: item.buttonBgColor,color: item.buttonFontColor }"
|
:style="{ backgroundColor: item.buttonBgColor, color: item.buttonFontColor }"
|
||||||
@click="goNav(item)">
|
@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>
|
||||||
<view v-else class="btn u-font-24 text-bold disabled">
|
<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>
|
||||||
<!-- <view v-else class="btn u-font-24 text-bold" @click="goNav(item)">{{ item.buttonTitle }}</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"
|
<view v-if="item.buttonUnderContent && item.buttonUnderUrl&&isShowMoneyPay" class="u-font-22 tip"
|
||||||
@click="goNav({buttonUrl: item.buttonUnderUrl, jumpType: 1,title: item.title})">
|
@click="goNav({ id: item.id, buttonUrl: item.buttonUnderUrl, jumpType: 1, title: item.title, disabled: item.disabled, discNumber: item.discNumber })">
|
||||||
{{ item.buttonUnderContent}}
|
{{ item.buttonUnderContent }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import index from '../../tuniao-ui'
|
||||||
|
import {
|
||||||
data
|
data
|
||||||
} from '../../tuniao-ui/libs/mixin/mixin'
|
} from '../../tuniao-ui/libs/mixin/mixin'
|
||||||
|
|
||||||
@@ -118,6 +125,10 @@
|
|||||||
signInList: [],
|
signInList: [],
|
||||||
signInBtn: '点击签到',
|
signInBtn: '点击签到',
|
||||||
isShowMoneyPay: true,
|
isShowMoneyPay: true,
|
||||||
|
adRewardedVideo: true,
|
||||||
|
adRewardedVideoloadNum: 0,
|
||||||
|
urlCallback: null,
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -135,8 +146,62 @@
|
|||||||
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.adRewardedVideoloadNum = 0
|
||||||
|
this.$refs.adRewardedVideo.load();
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
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的乘法结果会有误差,在两个浮点数相乘的时候会比较明显。这个函数返回较为精确的乘法结果。
|
//说明:javascript的乘法结果会有误差,在两个浮点数相乘的时候会比较明显。这个函数返回较为精确的乘法结果。
|
||||||
//调用:mul(arg1,arg2)
|
//调用:mul(arg1,arg2)
|
||||||
@@ -277,6 +342,24 @@
|
|||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
} else {
|
} 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({
|
// uni.showToast({
|
||||||
// title: res.msg,
|
// title: res.msg,
|
||||||
// icon: 'none'
|
// icon: 'none'
|
||||||
@@ -300,48 +383,68 @@
|
|||||||
// jumpType (integer, optional): 跳转类型 1 内部路径 2 外部路径 ,
|
// jumpType (integer, optional): 跳转类型 1 内部路径 2 外部路径 ,
|
||||||
// type (integer, optional): 任务类型 1 普通任务 2 打卡任务 9 其它 ,
|
// type (integer, optional): 任务类型 1 普通任务 2 打卡任务 9 其它 ,
|
||||||
// buttonUrl
|
// buttonUrl
|
||||||
let source, buttonUrl;
|
console.log(item, '调试1')
|
||||||
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"
|
|
||||||
}
|
|
||||||
if (item.jumpType == 0) {
|
if (item.jumpType == 0) {
|
||||||
console.log("============", item.buttonTitle);
|
|
||||||
if (item.buttonTitle.indexOf("领取") != -1) {
|
if (item.buttonTitle.indexOf("领取") != -1) {
|
||||||
this.taskReceive(item.id)
|
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 {
|
} else {
|
||||||
uni.navigateTo({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: "/pages/index/index2"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (item.jumpType == 1) {
|
} else if (item.jumpType == 1) {
|
||||||
console.log("--------------");
|
let source, buttonUrl;
|
||||||
if (item.title && item.title.indexOf('每周') != -1) {
|
|
||||||
source = 2
|
buttonUrl = item.buttonUrl
|
||||||
buttonUrl = item.buttonUrl + '?source=' + source
|
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
|
source = 3
|
||||||
buttonUrl = item.buttonUrl + '?source=' + source
|
buttonUrl = item.buttonUrl + '?source=' + source
|
||||||
}
|
}
|
||||||
console.log(buttonUrl)
|
if (item.title && item.title.indexOf('每月打卡奖励2') != -1) {
|
||||||
uni.navigateTo({
|
buttonUrl =
|
||||||
url: 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) {
|
} else if (item.jumpType == 3) {
|
||||||
uni.navigateTo({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: item.buttonUrl
|
||||||
})
|
})
|
||||||
} else if (item.jumpType == 2) {
|
} else if (item.jumpType == 2) {
|
||||||
plus.runtime.openURL(buttonUrl)
|
plus.runtime.openURL(item.buttonUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -364,8 +467,8 @@
|
|||||||
this.getsignIn()
|
this.getsignIn()
|
||||||
}, 1000)
|
}, 1000)
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -378,7 +481,110 @@
|
|||||||
|
|
||||||
this.$Request.getT('/app/taskCenter/selectTaskCenter', {}).then(res => {
|
this.$Request.getT('/app/taskCenter/selectTaskCenter', {}).then(res => {
|
||||||
if (res.code == 0) {
|
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();
|
uni.stopPullDownRefresh();
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
* 获取列表
|
* 获取列表
|
||||||
*/
|
*/
|
||||||
getList() {
|
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 ) {
|
if (res.code == 0 ) {
|
||||||
this.list = res.data.records
|
this.list = res.data.records
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
* 获取列表
|
* 获取列表
|
||||||
*/
|
*/
|
||||||
getList() {
|
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 ) {
|
if (res.code == 0 ) {
|
||||||
this.list = res.data.records
|
this.list = res.data.records
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -392,7 +392,7 @@
|
|||||||
let data = {
|
let data = {
|
||||||
page: this.page,
|
page: this.page,
|
||||||
limit: this.limit,
|
limit: this.limit,
|
||||||
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '',
|
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '1',
|
||||||
randomNum: this.randomNum
|
randomNum: this.randomNum
|
||||||
};
|
};
|
||||||
httpsRequest.getT('/app/course/selectCourseDetailsList', data).then(res => {
|
httpsRequest.getT('/app/course/selectCourseDetailsList', data).then(res => {
|
||||||
|
|||||||
@@ -528,13 +528,13 @@
|
|||||||
if (e.detail.currentTime > e.detail.duration * 0.9) {
|
if (e.detail.currentTime > e.detail.duration * 0.9) {
|
||||||
if (this.playFlag) {
|
if (this.playFlag) {
|
||||||
this.playFlag = false
|
this.playFlag = false
|
||||||
this.$Request.getT('/app/course/viewCourse', {
|
// this.$Request.getT('/app/course/viewCourse', {
|
||||||
courseId: this.courseId,
|
// courseId: this.courseId,
|
||||||
courseDetailsId: this.courseDetailsId,
|
// courseDetailsId: this.courseDetailsId,
|
||||||
type: 'end'
|
// type: 'end'
|
||||||
}).then(res => {
|
// }).then(res => {
|
||||||
console.log('播放结束')
|
// console.log('播放结束')
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -775,7 +775,7 @@
|
|||||||
classify: 3,
|
classify: 3,
|
||||||
type: 1
|
type: 1
|
||||||
}
|
}
|
||||||
this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
|
// this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
|
||||||
},
|
},
|
||||||
//swiper上下切换事件
|
//swiper上下切换事件
|
||||||
change(e) {
|
change(e) {
|
||||||
@@ -916,14 +916,14 @@
|
|||||||
},
|
},
|
||||||
//在播放时候的回调
|
//在播放时候的回调
|
||||||
videoPlay(videoId) {
|
videoPlay(videoId) {
|
||||||
this.$Request.getT('/app/course/viewCourse', {
|
// this.$Request.getT('/app/course/viewCourse', {
|
||||||
courseId: this.courseId,
|
// courseId: this.courseId,
|
||||||
courseDetailsId: this.courseDetailsId,
|
// courseDetailsId: this.courseDetailsId,
|
||||||
type: 'start'
|
// type: 'start'
|
||||||
}).then(res => {
|
// }).then(res => {
|
||||||
this.playFlag = true
|
this.playFlag = true
|
||||||
console.log('播放开始')
|
// console.log('播放开始')
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
//监听视频播放完成
|
//监听视频播放完成
|
||||||
ended() {
|
ended() {
|
||||||
|
|||||||
143
store/cashe.js
Normal file
143
store/cashe.js
Normal 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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -251,9 +251,9 @@
|
|||||||
const pages = getCurrentPages()
|
const pages = getCurrentPages()
|
||||||
if (pages && pages.length > 0) {
|
if (pages && pages.length > 0) {
|
||||||
const firstPage = pages[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({
|
uni.reLaunch({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
@@ -262,7 +262,7 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index2'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user