Compare commits
72 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 | ||
|
|
3b3e167089 | ||
|
|
8775b23f6a | ||
|
|
75a0fa06bd | ||
|
|
adee64f460 | ||
|
|
2aa9070b0e | ||
|
|
48f83a14cb | ||
|
|
32d10cc470 | ||
|
|
e6aaa97adb | ||
|
|
c978fab954 | ||
|
|
9a52daeffe | ||
|
|
be007cd908 | ||
|
|
8fec7cc90d | ||
|
|
a9078dd4eb |
@@ -18,7 +18,7 @@
|
||||
"type" : "uniCloud"
|
||||
},
|
||||
{
|
||||
"playground" : "custom",
|
||||
"playground" : "standard",
|
||||
"type" : "uni-app:app-android"
|
||||
},
|
||||
{
|
||||
|
||||
500
App.vue
@@ -1,6 +1,9 @@
|
||||
<script>
|
||||
import config from '@/common/config.js'
|
||||
import store from './store/index.js'
|
||||
import {
|
||||
init
|
||||
} from './common/init.js'
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
let that = this
|
||||
@@ -461,168 +464,168 @@
|
||||
} else {
|
||||
//不是热更新是在线更新 校验是否强制升级
|
||||
|
||||
if (res.method == "true") {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '发现新版本',
|
||||
confirmText: '立即更新',
|
||||
content: res.des,
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
plus.runtime.openURL(config.APIHOST2 +
|
||||
'/pages/login/appEq')
|
||||
return
|
||||
uni.showLoading({
|
||||
title: '下载中...',
|
||||
mask: true
|
||||
});
|
||||
if (uni.getSystemInfoSync().platform ==
|
||||
'android') {
|
||||
uni.downloadFile({
|
||||
url: androidLink,
|
||||
success: downloadResult => {
|
||||
console.log(
|
||||
downloadResult
|
||||
)
|
||||
if (downloadResult
|
||||
.statusCode ===
|
||||
200) {
|
||||
plus.runtime
|
||||
.install(
|
||||
downloadResult
|
||||
.tempFilePath, {
|
||||
force: false
|
||||
},
|
||||
d => {
|
||||
console
|
||||
.log(
|
||||
'install success...'
|
||||
);
|
||||
plus.runtime
|
||||
.restart();
|
||||
},
|
||||
e => {
|
||||
console
|
||||
.log(
|
||||
e
|
||||
)
|
||||
console
|
||||
.error(
|
||||
'install fail...'
|
||||
);
|
||||
}
|
||||
);
|
||||
// plus.io.resolveLocalFileSystemURL(downloadResult.tempFilePath, entry => {
|
||||
// entry.getParent(_oldFile=>{
|
||||
// entry.moveTo(_oldFile,'.apk',newFilePath=>{
|
||||
// console.log('newFilePath',newFilePath.fullPath)
|
||||
// if (res.method == "true") {
|
||||
// uni.showModal({
|
||||
// showCancel: false,
|
||||
// title: '发现新版本',
|
||||
// confirmText: '立即更新',
|
||||
// content: res.des,
|
||||
// success: res => {
|
||||
// if (res.confirm) {
|
||||
// plus.runtime.openURL(config.APIHOST2 +
|
||||
// '/pages/login/appEq')
|
||||
// return
|
||||
// uni.showLoading({
|
||||
// title: '下载中...',
|
||||
// mask: true
|
||||
// });
|
||||
// if (uni.getSystemInfoSync().platform ==
|
||||
// 'android') {
|
||||
// uni.downloadFile({
|
||||
// url: androidLink,
|
||||
// success: downloadResult => {
|
||||
// console.log(
|
||||
// downloadResult
|
||||
// )
|
||||
// if (downloadResult
|
||||
// .statusCode ===
|
||||
// 200) {
|
||||
// plus.runtime
|
||||
// .install(
|
||||
// downloadResult
|
||||
// .tempFilePath, {
|
||||
// force: false
|
||||
// },
|
||||
// d => {
|
||||
// console
|
||||
// .log(
|
||||
// 'install success...'
|
||||
// );
|
||||
// plus.runtime
|
||||
// .restart();
|
||||
// },
|
||||
// e => {
|
||||
// console
|
||||
// .log(
|
||||
// e
|
||||
// )
|
||||
// console
|
||||
// .error(
|
||||
// 'install fail...'
|
||||
// );
|
||||
// }
|
||||
// );
|
||||
// // plus.io.resolveLocalFileSystemURL(downloadResult.tempFilePath, entry => {
|
||||
// // entry.getParent(_oldFile=>{
|
||||
// // entry.moveTo(_oldFile,'.apk',newFilePath=>{
|
||||
// // console.log('newFilePath',newFilePath.fullPath)
|
||||
|
||||
// })
|
||||
// })
|
||||
// })
|
||||
// // })
|
||||
// // })
|
||||
// // })
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
if (uni.getSystemInfoSync().platform ==
|
||||
'ios') {
|
||||
plus.runtime.openURL(iosLink, function(
|
||||
res) {});
|
||||
}
|
||||
} else if (res.cancel) {
|
||||
console.log('取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '发现新版本',
|
||||
confirmText: '立即更新',
|
||||
cancelText: '下次更新',
|
||||
content: res.des,
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
plus.runtime.openURL(config.APIHOST2 +
|
||||
'/pages/login/appEq')
|
||||
return
|
||||
uni.showLoading({
|
||||
title: '下载中...',
|
||||
mask: true
|
||||
});
|
||||
if (uni.getSystemInfoSync().platform ==
|
||||
'android') {
|
||||
uni.downloadFile({
|
||||
url: androidLink,
|
||||
success: downloadResult => {
|
||||
if (downloadResult
|
||||
.statusCode ===
|
||||
200) {
|
||||
plus.runtime
|
||||
.install(
|
||||
downloadResult
|
||||
.tempFilePath, {
|
||||
force: false
|
||||
},
|
||||
d => {
|
||||
console
|
||||
.log(
|
||||
'install success...'
|
||||
);
|
||||
plus.runtime
|
||||
.restart();
|
||||
},
|
||||
e => {
|
||||
console
|
||||
.log(
|
||||
e
|
||||
)
|
||||
console
|
||||
.error(
|
||||
'install fail...'
|
||||
);
|
||||
}
|
||||
);
|
||||
// plus.io.resolveLocalFileSystemURL(downloadResult.tempFilePath, entry => {
|
||||
// entry.getParent(_oldFile=>{
|
||||
// entry.moveTo(_oldFile,'.apk',newFilePath=>{
|
||||
// console.log('newFilePath',newFilePath.fullPath)
|
||||
// plus.runtime
|
||||
// .install(newFilePath.fullPath, { force: false },
|
||||
// d => {
|
||||
// console
|
||||
// .log(
|
||||
// 'install success...'
|
||||
// );
|
||||
// plus.runtime
|
||||
// .restart();
|
||||
// },
|
||||
// e => {
|
||||
// console.log(e)
|
||||
// console
|
||||
// .error(
|
||||
// 'install fail...'
|
||||
// );
|
||||
// }
|
||||
// );
|
||||
// })
|
||||
// })
|
||||
// })
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
if (uni.getSystemInfoSync().platform ==
|
||||
'ios') {
|
||||
plus.runtime.openURL(iosLink, function(
|
||||
res) {});
|
||||
}
|
||||
} else if (res.cancel) {
|
||||
console.log('取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// if (uni.getSystemInfoSync().platform ==
|
||||
// 'ios') {
|
||||
// plus.runtime.openURL(iosLink, function(
|
||||
// res) {});
|
||||
// }
|
||||
// } else if (res.cancel) {
|
||||
// console.log('取消');
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// } else {
|
||||
// uni.showModal({
|
||||
// title: '发现新版本',
|
||||
// confirmText: '立即更新',
|
||||
// cancelText: '下次更新',
|
||||
// content: res.des,
|
||||
// success: res => {
|
||||
// if (res.confirm) {
|
||||
// plus.runtime.openURL(config.APIHOST2 +
|
||||
// '/pages/login/appEq')
|
||||
// return
|
||||
// uni.showLoading({
|
||||
// title: '下载中...',
|
||||
// mask: true
|
||||
// });
|
||||
// if (uni.getSystemInfoSync().platform ==
|
||||
// 'android') {
|
||||
// uni.downloadFile({
|
||||
// url: androidLink,
|
||||
// success: downloadResult => {
|
||||
// if (downloadResult
|
||||
// .statusCode ===
|
||||
// 200) {
|
||||
// plus.runtime
|
||||
// .install(
|
||||
// downloadResult
|
||||
// .tempFilePath, {
|
||||
// force: false
|
||||
// },
|
||||
// d => {
|
||||
// console
|
||||
// .log(
|
||||
// 'install success...'
|
||||
// );
|
||||
// plus.runtime
|
||||
// .restart();
|
||||
// },
|
||||
// e => {
|
||||
// console
|
||||
// .log(
|
||||
// e
|
||||
// )
|
||||
// console
|
||||
// .error(
|
||||
// 'install fail...'
|
||||
// );
|
||||
// }
|
||||
// );
|
||||
// // plus.io.resolveLocalFileSystemURL(downloadResult.tempFilePath, entry => {
|
||||
// // entry.getParent(_oldFile=>{
|
||||
// // entry.moveTo(_oldFile,'.apk',newFilePath=>{
|
||||
// // console.log('newFilePath',newFilePath.fullPath)
|
||||
// // plus.runtime
|
||||
// // .install(newFilePath.fullPath, { force: false },
|
||||
// // d => {
|
||||
// // console
|
||||
// // .log(
|
||||
// // 'install success...'
|
||||
// // );
|
||||
// // plus.runtime
|
||||
// // .restart();
|
||||
// // },
|
||||
// // e => {
|
||||
// // console.log(e)
|
||||
// // console
|
||||
// // .error(
|
||||
// // 'install fail...'
|
||||
// // );
|
||||
// // }
|
||||
// // );
|
||||
// // })
|
||||
// // })
|
||||
// // })
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// if (uni.getSystemInfoSync().platform ==
|
||||
// 'ios') {
|
||||
// plus.runtime.openURL(iosLink, function(
|
||||
// res) {});
|
||||
// }
|
||||
// } else if (res.cancel) {
|
||||
// console.log('取消');
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -649,7 +652,7 @@
|
||||
});
|
||||
}
|
||||
// #endif
|
||||
|
||||
init()
|
||||
|
||||
// this.$u.get('/app/common/type/109').then(res => { // 是否开启公众号自动注册 109
|
||||
// if (res.code == 0 && res.data) {
|
||||
@@ -657,181 +660,6 @@
|
||||
// }
|
||||
// });
|
||||
//微信小程序IOS系统支付功能开关 882
|
||||
this.$u.get('/app/common/type/882').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
let value = res.data.value
|
||||
const sysInfo = uni.getSystemInfoSync()
|
||||
// #ifdef MP-WEIXIN
|
||||
if (sysInfo.osName == 'ios') { //是ios系统
|
||||
if (value == '是') { //开启
|
||||
uni.setStorageSync('isWxIosPay', true)
|
||||
} else { //关闭
|
||||
uni.setStorageSync('isWxIosPay', false)
|
||||
}
|
||||
} else { //不是ios下,直接打开
|
||||
uni.setStorageSync('isWxIosPay', true)
|
||||
}
|
||||
// #endif
|
||||
//不在微信小程序也直接打开
|
||||
// #ifndef MP-WEIXIN
|
||||
uni.setStorageSync('isWxIosPay', true)
|
||||
// #endif
|
||||
}
|
||||
});
|
||||
//是否开启苹果登录 833
|
||||
this.$u.get('/app/common/type/833').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('checkIosLogin', res.data.value)
|
||||
}
|
||||
});
|
||||
//是否开启苹果支付 834
|
||||
this.$u.get('/app/common/type/834').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('checkIosPay', res.data.value)
|
||||
}
|
||||
});
|
||||
//是否开启微信登录 835
|
||||
this.$u.get('/app/common/type/835').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('checkWxLogin', res.data.value)
|
||||
}
|
||||
});
|
||||
//是否开启手机号一键登录 836
|
||||
this.$u.get('/app/common/type/836').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('checkPhoneLogin', res.data.value)
|
||||
}
|
||||
});
|
||||
this.$u.get('/app/common/type/817').then(res => { //是否开启购买整部视频 817
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('zhengbu', res.data.value)
|
||||
}
|
||||
});
|
||||
|
||||
this.$u.get('/app/common/type/818').then(res => { //是否开启购买单集视频 818
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('danbu', res.data.value)
|
||||
}
|
||||
});
|
||||
// 微信激励广告id 252
|
||||
this.$u.get('/app/common/type/252').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('adUnitId', res.data.value)
|
||||
}
|
||||
});
|
||||
// 播放类型 1:抖音云 2:三方云
|
||||
this.$u.get('/app/common/type/821').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('playType', res.data.value)
|
||||
}
|
||||
});
|
||||
// 是否开启看广告(微信) 251
|
||||
this.$u.get('/app/common/type/251').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data && res.data.value) {
|
||||
uni.setStorageSync('isGuanggao', res.data.value)
|
||||
}
|
||||
}
|
||||
});
|
||||
// 是否开启看广告(抖音) 254
|
||||
this.$u.get('/app/common/type/254').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data && res.data.value) {
|
||||
uni.setStorageSync('isGuanggaody', res.data.value)
|
||||
}
|
||||
}
|
||||
});
|
||||
this.$u.get('/app/common/type/202').then(res => { //客服配置 1 二维码客服 2 微信公众号客服 3电话客服
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('kefu', res.data.value)
|
||||
}
|
||||
});
|
||||
this.$u.get('/app/common/type/206').then(res => { //客服电话
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('kefuPhone', res.data.value)
|
||||
}
|
||||
});
|
||||
this.$u.get('/app/common/type/204').then(res => { //微信客服链接
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('kefuUrl', res.data.value)
|
||||
}
|
||||
});
|
||||
this.$u.get('/app/common/type/203').then(res => { //微信客服appid
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('kefuAppId', res.data.value)
|
||||
}
|
||||
});
|
||||
//会员开关
|
||||
this.$u.get('/app/common/type/248').then(res => { //会员开关
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('isVips', res.data.value)
|
||||
}
|
||||
});
|
||||
//热搜词 249
|
||||
this.$u.get('/app/common/type/249').then(res => { //热搜词
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('moreSearch', res.data.value)
|
||||
}
|
||||
});
|
||||
//安卓下载地址 49
|
||||
this.$u.get('/app/common/type/49').then(res => { //热搜词
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('AppUrl', res.data.value)
|
||||
}
|
||||
});
|
||||
//微信虚拟支付OfferID 823
|
||||
this.$u.get('/app/common/type/823').then(res => { //热搜词
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('OfferID', res.data.value)
|
||||
}
|
||||
});
|
||||
//微信虚拟支付环境(0 米大师正式环境, 1 米大师沙箱环境) 824
|
||||
this.$u.get('/app/common/type/824').then(res => { //热搜词
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('payEnv', res.data.value)
|
||||
}
|
||||
});
|
||||
//充值提示 825
|
||||
this.$u.get('/app/common/type/825').then(res => { //热搜词
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('moneyTips', res.data.value)
|
||||
}
|
||||
});
|
||||
//是否开启卡密充值 855
|
||||
this.$u.get('/app/common/type/855').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('kmPaySel', res.data.value)
|
||||
}
|
||||
});
|
||||
//是否开启分类 849
|
||||
this.$u.get('/app/common/type/849').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('homeTypeSel', res.data.value)
|
||||
}
|
||||
});
|
||||
//是否开启收益充值余额 856
|
||||
this.$u.get('/app/common/type/856').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('syPaySel', res.data.value)
|
||||
}
|
||||
});
|
||||
//抖音im客服 857
|
||||
this.$u.get('/app/common/type/857').then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('imId', res.data.value)
|
||||
}
|
||||
});
|
||||
this.$u.get('/app/common/type/858').then(res => { //是否开启公众号充值
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('isAccountPay', res.data.value)
|
||||
}
|
||||
});
|
||||
//抖音广告id
|
||||
this.$u.get('/app/common/type/860').then(res => { //抖音广告
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('dyadUnitId', res.data.value)
|
||||
}
|
||||
});
|
||||
|
||||
// #ifdef H5
|
||||
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
||||
|
||||
@@ -1,15 +1,23 @@
|
||||
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
|
||||
// const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg"; //
|
||||
const ROOTPATH = "https://dj-api.hnsiyao.cn/czg"; //后台服务域名
|
||||
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||
|
||||
const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
||||
const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
||||
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||
|
||||
// const ROOTPATH1 = "http://192.168.1.5:8100/sqx_fast/"; //
|
||||
// const ROOTPATH = "http://192.168.1.5:8100/sqx_fast/"; //后台服务域名
|
||||
// const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
|
||||
|
||||
// const ROOTPATH1 = "http://192.168.1.41:8100/czg"; //
|
||||
// const ROOTPATH = "http://192.168.1.41:8100/czg"; //后台服务域名
|
||||
// 测试
|
||||
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg"; //
|
||||
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg"; //后台服务域名
|
||||
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||
|
||||
|
||||
module.exports = {
|
||||
APIHOST: ROOTPATH,
|
||||
APIHOST1: ROOTPATH1,
|
||||
|
||||
@@ -57,13 +57,25 @@ const install = (Vue, vm) => {
|
||||
let type = (params = {}) => vm.$u.get('app/common/type', params); //钱包明细
|
||||
|
||||
let myPurseDet = (params = {}) => vm.$u.get('app/moneyDetails/queryUserMoneyDetails', params); //我的钱包
|
||||
let myPurse = (params = {}) => vm.$u.get('app/moneyDetails/selectUserMoney', params); //钱包明细
|
||||
let myPurse = (params = {}) => vm.$u.get('/app/moneyDetails/selectUserMoney', params); //钱包明细
|
||||
|
||||
let help = (params = {}) => vm.$u.get('app/helpWord/selectHelpList', params); //帮助中心
|
||||
let helpDet = (params = {}) => vm.$u.get('app/helpWord/selectHelpWordDetails', params); //帮助中心 详情
|
||||
|
||||
|
||||
//获取视频
|
||||
let selectCourseDetailsById = (params = {}) => vm.$u.get('app/course/selectCourseDetailsById', params);
|
||||
let selectCourseDetailsById = (params = {}) => {
|
||||
let obj = {}
|
||||
if (params.token) {
|
||||
obj = params
|
||||
} else {
|
||||
obj = {
|
||||
courseId:params.courseId,
|
||||
token:'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxMDc0MDk2MjQwODQ2ODQ1NTU3IiwiaWF0IjoxNzM2NTA0OTcyLCJleHAiOjE3MzcxMDk3NzJ9.b-xJwmlGiZ1MTojGdLPXPqk-7Lw0pSYRU-QFQW0HBRn1EUHpqz1To3HWPiC-j6F0W_YnbQrQKqztRs8kLoR0vA'
|
||||
|
||||
}
|
||||
}
|
||||
return vm.$u.get('app/course/courseSets', obj)
|
||||
};
|
||||
|
||||
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
|
||||
vm.$u.api = {
|
||||
@@ -124,4 +136,4 @@ const install = (Vue, vm) => {
|
||||
|
||||
export default {
|
||||
install
|
||||
}
|
||||
}
|
||||
@@ -308,7 +308,8 @@ module.exports = {
|
||||
data: data,
|
||||
method: "GET",
|
||||
header: {
|
||||
"content-type": header
|
||||
"content-type": header,
|
||||
token: uni.getStorageSync("token")
|
||||
},
|
||||
success: function(result) {
|
||||
if (result.data.code == 401) {
|
||||
|
||||
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: {
|
||||
goNav() {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -424,7 +424,7 @@
|
||||
async remoteGetPrizeIndex() {
|
||||
this.result = ''
|
||||
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
|
||||
const res = await this.$Request.getT('app/discSpinning/draw', {
|
||||
const res = await this.$Request.getT('/app/discSpinning/draw', {
|
||||
orderId: this.option.orderId || 2145
|
||||
})
|
||||
console.log(res);
|
||||
@@ -476,22 +476,22 @@
|
||||
orderId,
|
||||
id
|
||||
} = _this.result
|
||||
_this.$Request.postJson('app/discSpinning/receive', _this.result).then(res => {
|
||||
_this.result = ''
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
uni.showToast({
|
||||
title: '领取成功',
|
||||
icon: 'none'
|
||||
})
|
||||
_this.getRedPack()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '领取失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
// _this.$Request.postJson('/app/discSpinning/receive', _this.result).then(res => {
|
||||
// _this.result = ''
|
||||
// console.log(res)
|
||||
// if (res.code == 0) {
|
||||
// uni.showToast({
|
||||
// title: '领取成功',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// _this.getRedPack()
|
||||
// } else {
|
||||
// uni.showToast({
|
||||
// title: '领取失败',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
},
|
||||
complete: () => {
|
||||
this.prizeing = false
|
||||
@@ -521,7 +521,7 @@
|
||||
}, 50)
|
||||
},
|
||||
async getRedPack() {
|
||||
const res = await this.$Request.getT('app/moneyDetails/selectUserMoney')
|
||||
const res = await this.$Request.getT('/app/moneyDetails/selectUserMoney')
|
||||
if (res.code == 0) {
|
||||
this.totalMoney = res.data.amount
|
||||
}
|
||||
|
||||
@@ -53,23 +53,23 @@
|
||||
orderId,
|
||||
id
|
||||
} = this.result
|
||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
||||
this.result = ''
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
uni.showToast({
|
||||
title: '领取成功',
|
||||
icon: 'none'
|
||||
})
|
||||
this.$emit('success')
|
||||
this.close()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '领取失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||
// this.result = ''
|
||||
// console.log(res)
|
||||
// if (res.code == 0) {
|
||||
// uni.showToast({
|
||||
// title: '领取成功',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// this.$emit('success')
|
||||
// this.close()
|
||||
// } else {
|
||||
// uni.showToast({
|
||||
// title: '领取失败',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
},
|
||||
close() {
|
||||
this.show = false
|
||||
@@ -80,15 +80,15 @@
|
||||
orderId,
|
||||
id
|
||||
} = this.result
|
||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
||||
this.result = ''
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
this.$emit('success')
|
||||
this.close()
|
||||
} else {
|
||||
}
|
||||
})
|
||||
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||
// this.result = ''
|
||||
// console.log(res)
|
||||
// if (res.code == 0) {
|
||||
// this.$emit('success')
|
||||
// this.close()
|
||||
// } else {
|
||||
// }
|
||||
// })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,21 +57,21 @@
|
||||
orderId,
|
||||
id
|
||||
} = this.result
|
||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
||||
this.result = ''
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
console.log('抽奖领取成功');
|
||||
const key=res.data==0?'isBindAliPay':undefined
|
||||
this.$emit('close',key)
|
||||
if(key&&key=='isBindAliPay'){
|
||||
uni.navigateTo({
|
||||
url:'/me/yaoqing/zhifubao-tixain'
|
||||
})
|
||||
}
|
||||
} else {
|
||||
}
|
||||
})
|
||||
// this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||
// this.result = ''
|
||||
// console.log(res)
|
||||
// if (res.code == 0) {
|
||||
// console.log('抽奖领取成功');
|
||||
// const key=res.data==0?'isBindAliPay':undefined
|
||||
// this.$emit('close',key)
|
||||
// if(key&&key=='isBindAliPay'){
|
||||
// uni.navigateTo({
|
||||
// url:'/me/yaoqing/zhifubao-tixain'
|
||||
// })
|
||||
// }
|
||||
// } else {
|
||||
// }
|
||||
// })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name" : "斯耀短剧",
|
||||
"name" : "顺享短剧",
|
||||
"appid" : "__UNI__E0B05B1",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.8",
|
||||
"versionCode" : 108,
|
||||
"versionName" : "2.3.2",
|
||||
"versionCode" : 232,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
@@ -64,7 +64,7 @@
|
||||
/* ios打包配置 */
|
||||
"ios" : {
|
||||
"dSYMs" : false,
|
||||
"urltypes" : "com.hnsiyao.duanju",
|
||||
"urltypes" : "com.hunan.dj.video",
|
||||
"privacyDescription" : {
|
||||
"NSPhotoLibraryUsageDescription" : "获取您的相册读取权限,目的是为了在我的资料页面使用相册读取功能,修改上传头像",
|
||||
"NSCameraUsageDescription" : "获取您的摄像头权限,目的是为了在我的资料页面使用摄像头功能,修改上传头像"
|
||||
@@ -83,15 +83,7 @@
|
||||
},
|
||||
"appleiap" : {}
|
||||
},
|
||||
"oauth" : {
|
||||
"apple" : {},
|
||||
"univerify" : {},
|
||||
"weixin" : {
|
||||
"appid" : "wxeaffcaea958472d3",
|
||||
"appsecret" : "32f6f3ce599abff2fa0191a36780c66c",
|
||||
"UniversalLinks" : "https://maxiong.xianmxkj.com/"
|
||||
}
|
||||
},
|
||||
"oauth" : {},
|
||||
"ad" : {},
|
||||
"push" : {
|
||||
"unipush" : {}
|
||||
|
||||
@@ -85,7 +85,7 @@ export default {
|
||||
* 获取当前钱包信息
|
||||
*/
|
||||
getAmount() {
|
||||
this.$Request.getT('app/moneyDetails/selectUserMoney').then((res) => {
|
||||
this.$Request.getT('/app/moneyDetails/selectUserMoney').then((res) => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.code === 0) {
|
||||
this.amount = res.data.amount || 0;
|
||||
@@ -119,7 +119,7 @@ export default {
|
||||
page: this.page,
|
||||
limit: this.limit
|
||||
};
|
||||
this.$Request.getT('app/moneyDetails/queryUserMoneyDetails', data).then((res) => {
|
||||
this.$Request.getT('/app/moneyDetails/queryUserMoneyDetails', data).then((res) => {
|
||||
setTimeout(() => {
|
||||
this.refresherTriggered = false;
|
||||
}, 1500);
|
||||
|
||||
@@ -186,14 +186,14 @@ export default {
|
||||
},
|
||||
toRed() {
|
||||
uni.navigateTo({
|
||||
url: '/me/invite/cashDetail'
|
||||
url: '/me/yaoqing/ymg-yaoqing-tixian'
|
||||
});
|
||||
},
|
||||
toGift() {
|
||||
console.log('1');
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/me/gift/gift?source=' + this.source
|
||||
url: '/me/giftczgw/giftczgw?source=' + this.source
|
||||
});
|
||||
},
|
||||
// 重新生成
|
||||
@@ -452,7 +452,7 @@ export default {
|
||||
async remoteGetPrizeIndex() {
|
||||
this.result = '';
|
||||
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###');
|
||||
const res = await this.$Request.getT('app/discSpinning/draw', { source: this.source });
|
||||
const res = await this.$Request.getT('/app/discSpinning/draw', { source: this.source });
|
||||
this.freeNum--;
|
||||
// this.getCount()
|
||||
console.log(res);
|
||||
@@ -551,13 +551,13 @@ export default {
|
||||
}, 50);
|
||||
},
|
||||
async getRedPack() {
|
||||
const res = await this.$Request.getT('app/moneyDetails/selectUserMoney');
|
||||
const res = await this.$Request.getT('/app/moneyDetails/selectUserMoney');
|
||||
if (res.code == 0) {
|
||||
this.totalMoney = res.data.amount;
|
||||
}
|
||||
},
|
||||
async getCount() {
|
||||
const res = await this.$Request.getT('app/discSpinning/drawCount', { source: this.source });
|
||||
const res = await this.$Request.getT('/app/discSpinning/drawCount', { source: this.source });
|
||||
if (res.code == 0) {
|
||||
this.freeNum = res.count || 0;
|
||||
this.freeNumDay = res.sum || 0;
|
||||
|
||||
@@ -439,7 +439,7 @@
|
||||
async remoteGetPrizeIndex() {
|
||||
this.result=''
|
||||
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
|
||||
const res = await this.$Request.getT('app/discSpinning/draw',{source:this.source})
|
||||
const res = await this.$Request.getT('/app/discSpinning/draw',{source:this.source})
|
||||
this.freeNum--
|
||||
// this.getCount()
|
||||
console.log(res);
|
||||
@@ -538,13 +538,13 @@
|
||||
}, 50)
|
||||
},
|
||||
async getRedPack(){
|
||||
const res=await this.$Request.getT('app/moneyDetails/selectUserMoney')
|
||||
const res=await this.$Request.getT('/app/moneyDetails/selectUserMoney')
|
||||
if(res.code==0){
|
||||
this.totalMoney=res.data.amount
|
||||
}
|
||||
},
|
||||
async getCount(){
|
||||
const res=await this.$Request.getT('app/discSpinning/drawCount',{source:this.source})
|
||||
const res=await this.$Request.getT('/app/discSpinning/drawCount',{source:this.source})
|
||||
if(res.code==0){
|
||||
this.freeNum=res.count||0
|
||||
this.freeNumDay=res.sum||0
|
||||
|
||||
@@ -291,6 +291,9 @@
|
||||
uni.canvasToTempFilePath({
|
||||
canvasId: _this.CanvasID,
|
||||
quality: 1,
|
||||
fail: (err) => {
|
||||
console.log("-----", err);
|
||||
},
|
||||
complete: res => {
|
||||
console.log(res)
|
||||
if ( res.tempFilePath) {
|
||||
|
||||
@@ -80,7 +80,6 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-datetime-picker :show="showpicker" mode="date" @cancel="showpicker = !showpicker" @confirm="confirmpicker"></u-datetime-picker>
|
||||
<button style="visibility: hidden;" @click="gyqlWPSevVnclLaBUECO"></button>
|
||||
<button style="visibility: hidden;" @click="fEJEnAgyqMtQoJgfGmVV"></button>
|
||||
<button style="visibility: hidden;" @click="wAIaTsgyqKfOzJNuPsQX"></button>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="subNvueweight">
|
||||
<list :bounce="false" :loadmoreoffset="wHeight*3" :show-scrollbar="false" ref="listBox" :pagingEnabled="true"
|
||||
:scrollable="true">
|
||||
:scrollable="true">
|
||||
<image src="components/czgdetail1 (5).JPG" mode=""></image>
|
||||
<cell v-for="(item,i) in videoList" :key="i" :ref="'list'+item.courseDetailsId">
|
||||
<view class="subNvueswipers-items" @longpress="openBs()" @disappear="disappear(item.courseDetailsId,i)"
|
||||
@@ -14,8 +14,8 @@
|
||||
@ended="ended" :enable-progress-gesture="false" :poster="item.titleImg"
|
||||
:ref="'myVideo'+item.courseDetailsId" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl"
|
||||
:autoplay="item.autoPlay" class="detailswipers-items-video"></video>
|
||||
<image v-else @click="!item.videoUrl?openPay():''" :src="item.titleImg" class="detailswipers-items-imgsbg"
|
||||
mode="aspectFill">
|
||||
<image v-else @click="!item.videoUrl?openPay():''" :src="item.titleImg"
|
||||
class="detailswipers-items-imgsbg" mode="aspectFill">
|
||||
</image>
|
||||
<!-- 返回图标 -->
|
||||
<image v-if="showBack" src="../static/nvueIcon/backs.png" @click="goBack()"
|
||||
@@ -38,8 +38,8 @@
|
||||
</view>
|
||||
<view class="detailswipers-items-right-item" @click="share()">
|
||||
<view class="detailswipers-items-right-item-img">
|
||||
<image class="detailswipers-items-right-item-imgs" src="../../static/images/me/share.png"
|
||||
mode=""></image>
|
||||
<image class="detailswipers-items-right-item-imgs"
|
||||
src="../../static/images/me/share.png" mode=""></image>
|
||||
</view>
|
||||
<view class="detaswipers-items-right-item-txt">
|
||||
<text class="detaswipers-items-right-item-txts">
|
||||
@@ -50,8 +50,8 @@
|
||||
|
||||
<view class="detailswipers-items-right-item" v-if="isCollect">
|
||||
<view class="detailswipers-items-right-item-img" @click.stop="shoucang()">
|
||||
<image class="detailswipers-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
|
||||
mode=""></image>
|
||||
<image class="detailswipers-items-right-item-imgs"
|
||||
src="../../static/images/me/shuqian_s.png" mode=""></image>
|
||||
</view>
|
||||
<view class="detaswipers-items-right-item-txt">
|
||||
<text class="detaswipers-items-right-item-txts">
|
||||
@@ -61,8 +61,8 @@
|
||||
</view>
|
||||
<view class="detailswipers-items-right-item" v-else>
|
||||
<view class="detailswipers-items-right-item-img" @click.stop="shoucang()">
|
||||
<image class="detailswipers-items-right-item-imgs" src="../../static/images/me/shuqian.png"
|
||||
mode=""></image>
|
||||
<image class="detailswipers-items-right-item-imgs"
|
||||
src="../../static/images/me/shuqian.png" mode=""></image>
|
||||
</view>
|
||||
<view class="detaswipers-items-right-item-txt">
|
||||
<text class="detaswipers-items-right-item-txts">
|
||||
@@ -497,11 +497,14 @@
|
||||
|
||||
this.getDataList(this.courseId, this.courseDetailsId);
|
||||
}
|
||||
httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.getRedEnvelopeTips = res.data
|
||||
}
|
||||
})
|
||||
if (uni.getStorageSync('token')) {
|
||||
httpsRequest.getT('/app/course/getRedEnvelopeTips').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.getRedEnvelopeTips = res.data
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
this.getScale()
|
||||
},
|
||||
onLoad(e) {
|
||||
@@ -535,7 +538,7 @@
|
||||
this.getMoneyList()
|
||||
this.getMyMoney()
|
||||
} else {
|
||||
console.log("allId====="+e.allId)
|
||||
console.log("allId=====" + e.allId)
|
||||
if (e.allId) {
|
||||
const arr = e.allId.split('-')
|
||||
this.courseId = arr[0];
|
||||
@@ -559,7 +562,7 @@
|
||||
* 获取金币比例
|
||||
*/
|
||||
getScale() {
|
||||
httpsRequest.getT("app/common/type/914", {}).then(res => {
|
||||
httpsRequest.getT("/app/common/type/914", {}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.scale = Number(res.data.value)
|
||||
}
|
||||
@@ -571,7 +574,7 @@
|
||||
// this.courseDetailsId = courseDetailsId
|
||||
if (!this.playFlag) {
|
||||
this.playFlag = true
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: courseDetailsId,
|
||||
type: 'start'
|
||||
@@ -587,7 +590,7 @@
|
||||
if (e.detail.currentTime > e.detail.duration * 0.9) {
|
||||
if (this.playFlag) {
|
||||
this.playFlag = false
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
@@ -602,7 +605,7 @@
|
||||
this.courseDetailsId = e;
|
||||
// 清除已经设置的定时器
|
||||
clearTimeout(this.appearTimeout);
|
||||
|
||||
|
||||
// 设置一个新的延迟执行的定时器
|
||||
this.appearTimeout = setTimeout(() => {
|
||||
// 实际要执行的操作
|
||||
@@ -616,15 +619,15 @@
|
||||
this.scrollIntoView = 'video' + index
|
||||
console.log(this.scrollIntoViews, '当前位置')
|
||||
//播放并更新video的上下文
|
||||
this.startPlay(index)
|
||||
this.startPlay(index)
|
||||
//插入历史记录
|
||||
this.setHistor(this.videoList[index].courseId, this.videoList[index].courseDetailsId);
|
||||
this.$forceUpdate()
|
||||
}, 500); // 延迟500毫秒执行
|
||||
|
||||
|
||||
},
|
||||
disappear(e, index) {
|
||||
|
||||
|
||||
// if (this.videoContext) { //判断之前是否有视频的上下文
|
||||
// this.videoContext.stop();
|
||||
// this.videoContext = null;
|
||||
@@ -958,7 +961,7 @@
|
||||
id: this.courseId,
|
||||
token: uni.getStorageSync('token')
|
||||
}
|
||||
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
|
||||
httpsRequest.getT('/app/course/courseSets', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data && res.data.isCollect && res.data.isCollect > 0) {
|
||||
this.isCollect = true
|
||||
@@ -1115,8 +1118,8 @@
|
||||
this.$refs.popupPya.close()
|
||||
},
|
||||
//选择播放
|
||||
selectPlay(item,type) {
|
||||
if ( this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type ) {
|
||||
selectPlay(item, type) {
|
||||
if (this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type) {
|
||||
this.getDataList(this.courseId, this.courseDetailsId, true, 'select')
|
||||
return;
|
||||
}
|
||||
@@ -1245,13 +1248,13 @@
|
||||
animated: false
|
||||
})
|
||||
_this.$forceUpdate()
|
||||
console.log('移动结束', el)
|
||||
console.log('移动结束', el)
|
||||
// },1000)
|
||||
})
|
||||
},
|
||||
async getCount() {
|
||||
console.log('getCount')
|
||||
const res = await this.$Request.getT('app/discSpinning/drawCount')
|
||||
const res = await this.$Request.getT('/app/discSpinning/drawCount')
|
||||
if (res.code == 0) {
|
||||
this.freeNum = res.count || 0
|
||||
}
|
||||
@@ -1268,7 +1271,7 @@
|
||||
id: courseId,
|
||||
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : ''
|
||||
};
|
||||
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
|
||||
httpsRequest.getT('/app/course/courseSets', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data.listsDetail) {
|
||||
this.info = res.data;
|
||||
@@ -1315,7 +1318,7 @@
|
||||
this.noBuyVideoIndex = null
|
||||
uni.removeStorageSync('noBuyVideoIndex')
|
||||
this.videoContext.stop()
|
||||
httpsRequest.getT('app/discSpinning/drawCount').then(res => {
|
||||
httpsRequest.getT('/app/discSpinning/drawCount').then(res => {
|
||||
console.log('转盘抽奖次数')
|
||||
console.log(res)
|
||||
if (res.count >= 1) {
|
||||
@@ -1350,7 +1353,7 @@
|
||||
if (this.noBuyVideoIndex != null && this.videoList[this
|
||||
.noBuyVideoIndex].videoUrl) {
|
||||
this.videoContext.stop();
|
||||
httpsRequest.getT('app/discSpinning/drawCount').then(res => {
|
||||
httpsRequest.getT('/app/discSpinning/drawCount').then(res => {
|
||||
console.log('转盘抽奖次数')
|
||||
if (res.count >= 1) {
|
||||
uni.navigateTo({
|
||||
@@ -1371,8 +1374,8 @@
|
||||
this.$forceUpdate();
|
||||
})
|
||||
}
|
||||
if ( t == 'select') {
|
||||
this.selectPlay(this.videoList[this.current],true)
|
||||
if (t == 'select') {
|
||||
this.selectPlay(this.videoList[this.current], true)
|
||||
}
|
||||
this.$forceUpdate();
|
||||
}
|
||||
|
||||
3990
me/detail/detail.vue
@@ -118,7 +118,7 @@ export default {
|
||||
title: '加载中...'
|
||||
});
|
||||
this.$u
|
||||
.post('/app/message/insertMessage', {
|
||||
.post('/app/message/sendMessage', {
|
||||
title: this.sendDate.contact,
|
||||
content: JSON.stringify(this.sendDate),
|
||||
state: 2
|
||||
|
||||
@@ -155,7 +155,6 @@
|
||||
<view class="content_boxt_towtexts" @click="setClipboardData">复制</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-datetime-picker :show="showpicker" mode="date" @cancel="showpicker = !showpicker" @confirm="confirmpicker"></u-datetime-picker>
|
||||
<button style="visibility: hidden" @click="JXOvaUPLpHdhiOgyqBUm"></button>
|
||||
<button style="visibility: hidden" @click="PgyqGOIbkdegBnnSXYva"></button>
|
||||
<button style="visibility: hidden" @click="XZgyqqzuevfsuPrSTYLS"></button>
|
||||
|
||||
@@ -141,7 +141,6 @@
|
||||
<view class="content_boxt_towtexts" @click="setClipboardData">复制</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-datetime-picker :show="showpicker" mode="date" @cancel="showpicker = !showpicker" @confirm="confirmpicker"></u-datetime-picker>
|
||||
<button style="visibility: hidden" @click="gyqBLkzDTXwhnnksmnEj"></button>
|
||||
<button style="visibility: hidden" @click="PgyqGOIbkdegBnnSXYva"></button>
|
||||
<button style="visibility: hidden" @click="vEXpZydSjylUcgyqOGLk"></button>
|
||||
|
||||
@@ -21,11 +21,12 @@
|
||||
v-if="item.parentId == 0"
|
||||
>
|
||||
<view class="text-item">{{ problemItem.helpWordTitle }}</view>
|
||||
<view class="text-item">通过手机号注册,注册完成即可登录。</view>
|
||||
<view class="line" v-if="problemIndex != item.helpWordList.length - 1"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bg-box">
|
||||
<!-- <view class="bg-box">
|
||||
<view class="bg-white-box">
|
||||
<image src="../static/icon-letter.png" class="image"></image>
|
||||
<view class="text-feedbackczg" hover-class="hover" @click="toFeedbackList">联系客服</view>
|
||||
@@ -35,7 +36,7 @@
|
||||
<image src="../static/icon-edit.png" class="image"></image>
|
||||
<view class="text-feedbackczg" hover-class="hover" @click="toFeedback">我要反馈</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<button style="visibility: hidden" @click="SyoDEQPwCtTgyqUUymUI"></button>
|
||||
<button style="visibility: hidden" @click="jcGEREqMgyqxlaDFFLsH"></button>
|
||||
<button style="visibility: hidden" @click="isESEgyqcxldifCTWeyC"></button>
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
<view class="min-pageczg bg-gray u-font-28">
|
||||
<u-navbar :background="background" back-icon-color="#fff" immersive :border-bottom="false"></u-navbar>
|
||||
<view class="gift-bg"></view>
|
||||
<image src="components/czgdetail1 (3).JPG" mode=""></image>
|
||||
<!-- <image src="components/czgdetail1 (3).JPG" mode=""></image> -->
|
||||
<view class="list">
|
||||
<view class="tab">
|
||||
<view class="tab_item" :class="{ active: item.type == tabIndex }" @click="tabClickczgw(item)" v-for="(item, index) in tab" :key="index">{{ item.label }}</view>
|
||||
</view>
|
||||
<view class="item" v-for="(item, index) in list" :key="index">
|
||||
<image src="components/czgdetail1 (4).JPG" mode=""></image>
|
||||
<!-- <image src="components/czgdetail1 (4).JPG" mode=""></image> -->
|
||||
<view class="color-666 u-font-24">中奖时间 2024-09-11 10:20:11</view>
|
||||
<view class="u-m-t-24 u-flex u-row-between">
|
||||
<view class="u-flex-1 u-flex u-col-top">
|
||||
@@ -83,7 +83,7 @@ export default {
|
||||
getListczg() {
|
||||
let url = '';
|
||||
if (this.tabIndex == 1) {
|
||||
url = 'app/discSpinningRecord/selectDiscSpinningRecord';
|
||||
url = '/app/discSpinningRecord/selectDiscSpinningRecord';
|
||||
} else {
|
||||
url = '/app/userPrizeExchange/page';
|
||||
}
|
||||
|
||||
@@ -101,8 +101,6 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-datetime-picker :show="showpicker" mode="date" @cancel="showpicker = !showpicker"
|
||||
@confirm="confirmpicker"></u-datetime-picker>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
// 跳转资源详情
|
||||
ymfgoCourse(e,courseDetailsId) {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + e+'&courseDetailsId='+courseDetailsId
|
||||
url: '/me/detail/detailIOS?id=' + e+'&courseDetailsId='+courseDetailsId
|
||||
})
|
||||
},
|
||||
//获取观看记录
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
this.userInfo = res1.data
|
||||
uni.setStorageSync('userInfo', res1.data)
|
||||
uni.switchTab({
|
||||
url:'/pages/index/index'
|
||||
url:'/pages/index/index2'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
return this.init()
|
||||
}
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
@@ -186,7 +186,7 @@
|
||||
return
|
||||
uni.setStorageSync('first', false)
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
},
|
||||
popshow(){
|
||||
@@ -216,7 +216,7 @@
|
||||
iKnow() {
|
||||
uni.setStorageSync('first', false)
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
if(res.code==200){
|
||||
this.timer=setTimeout(()=>{
|
||||
uni.switchTab({
|
||||
url:'/pages/index/index'
|
||||
url:'/pages/index/index2'
|
||||
})
|
||||
},1000)
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImgs
|
||||
@@ -248,7 +248,7 @@
|
||||
},
|
||||
onShareTimeline(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImgs
|
||||
@@ -298,7 +298,7 @@
|
||||
uni.downloadFile({
|
||||
url: config.APIHOST +
|
||||
'/app/invite/dyCreateQr?invitationCode=' + that
|
||||
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index',
|
||||
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index2',
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
if (res.statusCode === 200) {
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
content: '我要注销账号',
|
||||
userId: uni.getStorageSync('userId')
|
||||
}
|
||||
that.$Request.postJson('/app/message/insertMessage', data).then(res => {
|
||||
that.$Request.postJson('/app/message/sendMessage', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImg
|
||||
@@ -163,7 +163,7 @@
|
||||
},
|
||||
onShareTimeline(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImg
|
||||
@@ -222,7 +222,7 @@
|
||||
uni.downloadFile({
|
||||
url: config.APIHOST +
|
||||
'/app/invite/dyCreateQr?invitationCode=' + that
|
||||
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index',
|
||||
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index2',
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
if (res.statusCode === 200) {
|
||||
|
||||
177
me/yaoqing/realName.vue
Normal file
@@ -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) {
|
||||
console.log(e)
|
||||
console.log(e,'debug')
|
||||
if (e.moneyType) {
|
||||
this.moneyType = e.moneyType
|
||||
uni.setNavigationBarTitle({
|
||||
title: e.moneyType === 1 ? '红包明细' : '金币明细'
|
||||
title: e.moneyType == 1 ? '红包明细' : '金币明细'
|
||||
});
|
||||
}
|
||||
if (e.viewType) {
|
||||
@@ -67,7 +67,7 @@
|
||||
viewType: this.viewType,
|
||||
}
|
||||
|
||||
this.$Request.getT('app/moneyDetails/queryUserMoneyDetails', data).then(res => {
|
||||
this.$Request.getT('/app/moneyDetails/queryUserMoneyDetails', data).then(res => {
|
||||
this.totalCount = res.data.total;
|
||||
if ( res.data.records.length > 0) {
|
||||
this.list = [...this.list,...res.data.records];
|
||||
|
||||
@@ -220,7 +220,7 @@
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImg
|
||||
@@ -228,7 +228,7 @@
|
||||
},
|
||||
onShareTimeline(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImg
|
||||
@@ -297,7 +297,7 @@
|
||||
uni.downloadFile({
|
||||
url: config.APIHOST +
|
||||
'/app/invite/dyCreateQr?invitationCode=' + that
|
||||
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index',
|
||||
.invitationCode + ',' + that.qdCode + '&page=/pages/index/index2',
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
if (res.statusCode === 200) {
|
||||
@@ -375,7 +375,8 @@
|
||||
});
|
||||
},
|
||||
ymfposterSuccess(haibaoImg) {
|
||||
this.haibaoImg = haibaoImg;
|
||||
console.log("ssssssssssssssss", haibaoImg);
|
||||
this.haibaoImg = haibaoImg.tempFilePath;
|
||||
this.modalName = 'Image';
|
||||
uni.hideLoading();
|
||||
},
|
||||
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
page: this.page,
|
||||
limit: this.limit
|
||||
}
|
||||
this.$Request.getT('app/cash/selectPayDetails', data).then(res => {
|
||||
this.$Request.getT('/app/cash/selectPayDetails', data).then(res => {
|
||||
this.total = res.data.total;
|
||||
if (res.data.list.length > 0) {
|
||||
this.list = [...this.list, ...res.data.list];
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
|
||||
<list-cell title="支付宝账号" type="text" placeholder="请输入要绑定的支付宝手机号" v-model="zhiFuBao"></list-cell>
|
||||
|
||||
<list-cell title="身份证号码" type="text" placeholder="请输入要绑定身份证号码" v-model="certNum"></list-cell>
|
||||
|
||||
<button :class="zhiFuBao&&zhiFuBaoName?'confirm-btn':'ymf-confirm-btn1'" @click="ymftoLogin"
|
||||
<button :class="zhiFuBao && zhiFuBaoName ? 'confirm-btn' : 'ymf-confirm-btn1'" @click="ymftoLogin"
|
||||
:disabled="logining">绑定账户</button>
|
||||
<view style="padding: 32upx 64upx;font-size: 24upx;color: #999999;">提示:请正确填写收款人的支付宝账户和真实的收款人姓名,否则将无法正常收款</view>
|
||||
|
||||
@@ -13,166 +14,177 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import listCell from '@/me/components/com-input';
|
||||
export default {
|
||||
components: {
|
||||
listCell
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
zhiFuBao: '',
|
||||
zhiFuBaoName: '',
|
||||
logining: false
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
let userId = uni.getStorageSync('userId');
|
||||
import listCell from '@/me/components/com-input';
|
||||
export default {
|
||||
components: {
|
||||
listCell
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
zhiFuBao: '',
|
||||
zhiFuBaoName: '',
|
||||
logining: false,
|
||||
certNum: '',
|
||||
|
||||
if (userId) {
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code === 0) {
|
||||
if (res.data.zhiFuBao) {
|
||||
this.zhiFuBao = res.data.zhiFuBao;
|
||||
}
|
||||
if (res.data.zhiFuBaoName) {
|
||||
this.zhiFuBaoName = res.data.zhiFuBaoName;
|
||||
}
|
||||
// console.log(this.zhiFuBao )
|
||||
// console.log(this.zhiFuBaoName )
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
let userId = uni.getStorageSync('userId');
|
||||
this.certNum = uni.getStorageSync('certNum')
|
||||
|
||||
if (userId) {
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code === 0) {
|
||||
if (res.data.zhiFuBao) {
|
||||
this.zhiFuBao = res.data.zhiFuBao;
|
||||
}
|
||||
if (res.data.zhiFuBaoName) {
|
||||
this.zhiFuBaoName = res.data.zhiFuBaoName;
|
||||
}
|
||||
if (res.data.certNo) {
|
||||
this.certNum = res.data.certNo;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
inputChange(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
ymfnavBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
||||
ymftoLogin() {
|
||||
// console.log(this.zhiFuBao )
|
||||
// console.log(this.zhiFuBaoName )
|
||||
// const {
|
||||
// zhiFuBao,
|
||||
// zhiFuBaoName
|
||||
// } = this;
|
||||
let zhiFuBao = this.zhiFuBao
|
||||
let zhiFuBaoName = this.zhiFuBaoName
|
||||
console.log(zhiFuBao)
|
||||
console.log(zhiFuBaoName)
|
||||
if (!zhiFuBao) {
|
||||
uni.showToast({
|
||||
title: '请设置收款人姓名',
|
||||
icon: 'none'
|
||||
})
|
||||
} else if (!zhiFuBaoName) {
|
||||
uni.showToast({
|
||||
title: '请设置收款人支付宝账号',
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&zhiFuBaoName=' + zhiFuBaoName).then(
|
||||
res => {
|
||||
console.log(res);
|
||||
if(res.code===0){
|
||||
uni.setStorageSync('zhiFuBao', zhiFuBao)
|
||||
uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
|
||||
uni.showToast({
|
||||
title: '修改成功',
|
||||
icon: 'none',
|
||||
complete() {
|
||||
setTimeout(function() {
|
||||
uni.navigateBack();
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
}else{
|
||||
uni.showToast({
|
||||
title:res.msg||'修改失败',
|
||||
icon:'none'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
// if (!zhifubao) {
|
||||
// this.$queue.showToast("请设置收款人支付宝账号");
|
||||
// } else if (!zhifubaoName) {
|
||||
// this.$queue.showToast("请设置收款人姓名");
|
||||
// } else {
|
||||
// this.$queue.showLoading("修改中...");
|
||||
// this.$Request.postT("/cash/userinfo?userId=" + userId + "&zhifubao=" + zhifubao + "&zhifubaoName=" + zhifubaoName).then(
|
||||
// res => {
|
||||
// if (res.status === 0) {
|
||||
// if (res.data.zhifubao) {
|
||||
// this.zhifubao = res.data.zhifubao;
|
||||
// }
|
||||
// if (res.data.zhifubaoName) {
|
||||
// this.zhifubaoName = res.data.zhifubaoName;
|
||||
// }
|
||||
// this.ymfnavBack();
|
||||
// } else {
|
||||
// // this.$queue.showToast(res.msg)
|
||||
// }
|
||||
// uni.hideLoading();
|
||||
// });
|
||||
// }
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
inputChange(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
ymfnavBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
||||
}
|
||||
ymftoLogin() {
|
||||
// console.log(this.zhiFuBao )
|
||||
// console.log(this.zhiFuBaoName )
|
||||
// const {
|
||||
// zhiFuBao,
|
||||
// zhiFuBaoName
|
||||
// } = this;
|
||||
let zhiFuBao = this.zhiFuBao
|
||||
let zhiFuBaoName = this.zhiFuBaoName
|
||||
let certNum = this.certNum
|
||||
|
||||
if (!zhiFuBao) {
|
||||
uni.showToast({
|
||||
title: '请设置收款人姓名',
|
||||
icon: 'none'
|
||||
})
|
||||
} else if (!certNum) {
|
||||
uni.showToast({
|
||||
title: '请设置收款人身份证账号',
|
||||
icon: 'none'
|
||||
})
|
||||
} else if (!zhiFuBaoName) {
|
||||
uni.showToast({
|
||||
title: '请设置收款人支付宝账号',
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName + '&certNum=' + certNum).then(
|
||||
res => {
|
||||
console.log(res);
|
||||
if (res.code === 0) {
|
||||
uni.setStorageSync('zhiFuBao', zhiFuBao)
|
||||
uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
|
||||
uni.setStorageSync('certNum', certNum)
|
||||
|
||||
uni.showToast({
|
||||
title: '修改成功',
|
||||
icon: 'none',
|
||||
complete() {
|
||||
setTimeout(function () {
|
||||
uni.navigateBack();
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg || '修改失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
// if (!zhifubao) {
|
||||
// this.$queue.showToast("请设置收款人支付宝账号");
|
||||
// } else if (!zhifubaoName) {
|
||||
// this.$queue.showToast("请设置收款人姓名");
|
||||
// } else {
|
||||
// this.$queue.showLoading("修改中...");
|
||||
// this.$Request.postT("/cash/userinfo?userId=" + userId + "&zhifubao=" + zhifubao + "&zhifubaoName=" + zhifubaoName).then(
|
||||
// res => {
|
||||
// if (res.status === 0) {
|
||||
// if (res.data.zhifubao) {
|
||||
// this.zhifubao = res.data.zhifubao;
|
||||
// }
|
||||
// if (res.data.zhifubaoName) {
|
||||
// this.zhifubaoName = res.data.zhifubaoName;
|
||||
// }
|
||||
// this.ymfnavBack();
|
||||
// } else {
|
||||
// // this.$queue.showToast(res.msg)
|
||||
// }
|
||||
// uni.hideLoading();
|
||||
// });
|
||||
// }
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
page {
|
||||
background: #FFFFFF;
|
||||
page {
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.page {
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.ymf-confirm-btn1 {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
border-radius: 30px;
|
||||
margin-top: 70upx;
|
||||
/* background: whitesmoke; */
|
||||
background: #ff7581;
|
||||
color: #FFFFFF;
|
||||
font-size: 32rpx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
.page {
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.ymf-confirm-btn1 {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
border-radius: 30px;
|
||||
margin-top: 70upx;
|
||||
/* background: whitesmoke; */
|
||||
background: #ff7581;
|
||||
color: #FFFFFF;
|
||||
font-size: 32rpx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
border-radius: 30px;
|
||||
margin-top: 70upx;
|
||||
background: #ff7581;
|
||||
color: #ffffff;
|
||||
font-size: 32rpx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
border-radius: 30px;
|
||||
margin-top: 70upx;
|
||||
background: #ff7581;
|
||||
color: #ffffff;
|
||||
font-size: 32rpx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
12
package-lock.json
generated
@@ -1,11 +1,5 @@
|
||||
{
|
||||
"requires": true,
|
||||
"lockfileVersion": 1,
|
||||
"dependencies": {
|
||||
"qrcode-svg": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/qrcode-svg/-/qrcode-svg-1.1.0.tgz",
|
||||
"integrity": "sha512-XyQCIXux1zEIA3NPb0AeR8UMYvXZzWEhgdBgBjH9gO7M48H9uoHzviNz8pXw3UzrAcxRRRn9gxHewAVK7bn9qw=="
|
||||
}
|
||||
}
|
||||
"name": "悬浮球_自动吸边_延迟隐藏",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1
|
||||
}
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
"keywords": [
|
||||
"悬浮球,拖拽,浮标,拖动,renderjs"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
213
pages.json
@@ -5,12 +5,18 @@
|
||||
},
|
||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||
{
|
||||
"path": "pages/index/index2",
|
||||
"style": {
|
||||
"navigationBarTitleText": "斯耀短剧",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/task/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "任务",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom"
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -24,9 +30,8 @@
|
||||
{
|
||||
"path": "pages/task/prizeList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "任务",
|
||||
"navigationStyle": "custom"
|
||||
|
||||
"navigationBarTitleText": "任务"
|
||||
// "navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -34,7 +39,6 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "任务",
|
||||
"navigationStyle": "custom"
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -65,7 +69,8 @@
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "pages/index/course/orderDet",
|
||||
"style": {
|
||||
"navigationBarTitleText": "确认订单",
|
||||
@@ -79,8 +84,6 @@
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"path": "pages/learn/index",
|
||||
"style": {
|
||||
@@ -100,6 +103,12 @@
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/me/webview",
|
||||
"style": {
|
||||
"navigationBarTitleText": "客服"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/me/userinfo",
|
||||
"style": {
|
||||
@@ -111,8 +120,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"path": "pages/me/vip/index",
|
||||
"style": {
|
||||
@@ -124,8 +131,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"path": "pages/login/login",
|
||||
"style": {
|
||||
@@ -163,7 +168,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "pages/login/bind",
|
||||
"style": {
|
||||
"navigationBarTitleText": "绑定手机号",
|
||||
@@ -176,7 +182,6 @@
|
||||
},
|
||||
{
|
||||
"path": "pages/login/register",
|
||||
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationBarBackgroundColor": "#f1a48a",
|
||||
@@ -201,7 +206,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "pages/yodwbsHlmJ/yodwbsHlmJ",
|
||||
"style": {
|
||||
"navigationBarTitleText": "追剧",
|
||||
@@ -211,8 +217,8 @@
|
||||
"navigationStyle": "custom"
|
||||
// #endif
|
||||
}
|
||||
|
||||
},{
|
||||
},
|
||||
{
|
||||
"path": "pages/yodwbsHlmJ/aaacasadwqvb",
|
||||
"style": {
|
||||
"navigationBarTitleText": "追剧as",
|
||||
@@ -222,8 +228,8 @@
|
||||
"navigationStyle": "custom"
|
||||
// #endif
|
||||
}
|
||||
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "pages/video/video",
|
||||
"style": {
|
||||
"navigationBarTitleText": "推荐",
|
||||
@@ -239,9 +245,7 @@
|
||||
"video-player": "ext://industry/video-player"
|
||||
}
|
||||
// #endif
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"path": "pages/login/appEq",
|
||||
@@ -253,7 +257,8 @@
|
||||
"navigationStyle": "custom"
|
||||
// #endif
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "pages/login/iosmobile",
|
||||
"style": {
|
||||
"navigationBarTitleText": "手机号绑定"
|
||||
@@ -300,37 +305,48 @@
|
||||
"navigationBarTitleText": "意见反馈",
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "HEWZtgyqRH/HEWZtgyqRH",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的余额"
|
||||
}
|
||||
}, {"path": "HEWZtgyqRH/YGivHgyqkI"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "HEWZtgyqRH/YGivHgyqkI"
|
||||
},
|
||||
{
|
||||
"path": "HEWZtgyqRH/EsBgyqacOi"
|
||||
},{
|
||||
},
|
||||
{
|
||||
"path": "feedbackIndexczgw/issuer"
|
||||
},{
|
||||
},
|
||||
{
|
||||
"path": "feedbackIndexczgw/Invoicedgoods"
|
||||
},{
|
||||
},
|
||||
{
|
||||
"path": "feedback/toexamine"
|
||||
},{
|
||||
},
|
||||
{
|
||||
"path": "feedback/orderinquiry"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "feedbackIndexczgw/feedbackIndexczgw",
|
||||
"style": {
|
||||
"navigationBarTitleText": "帮助中心",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "helpDetail/helpDetail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "帮助详情",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "message/duanju-message-home",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息中心"
|
||||
@@ -364,7 +380,7 @@
|
||||
"path": "yaoqing/ymf-yaoqing-home",
|
||||
"style": {
|
||||
"navigationBarTitleText": "分享好友",
|
||||
"navigationStyle": "custom",
|
||||
// "navigationStyle": "custom",
|
||||
"h5": {
|
||||
"titleNView": {
|
||||
"backgroundColor": "#FFFFFF"
|
||||
@@ -387,9 +403,13 @@
|
||||
"path": "yaoqing/ymg-yaoqing-tixian",
|
||||
"style": {
|
||||
"navigationBarTitleText": "申请提现",
|
||||
"h5": {
|
||||
// "navigationStyle": "custom",
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"backgroundColor": "#FFFFFF"
|
||||
"buttons": [{
|
||||
"text": "规则",
|
||||
"fontSize": "30rpx"
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -466,7 +486,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "setting/kefu",
|
||||
"style": {
|
||||
"navigationBarTitleText": "客服",
|
||||
@@ -516,8 +537,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
|
||||
},
|
||||
{
|
||||
"path": "detail/detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
@@ -556,12 +577,9 @@
|
||||
"video-player": "ext://industry/video-player"
|
||||
}
|
||||
// #endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
}, {
|
||||
|
||||
},
|
||||
{
|
||||
"path": "detail/detailIOS",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
@@ -600,45 +618,42 @@
|
||||
"video-player": "ext://industry/video-player"
|
||||
}
|
||||
// #endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "FrdwbsihPr/FrdwbsihPr",
|
||||
"style": {
|
||||
"navigationBarTitleText": "金币充值",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "FrdwbsihPr/RSKjJIdwbH",
|
||||
"style": {
|
||||
"navigationBarTitleText": "金币明细",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "jilu/duanju-zuijin-guankan",
|
||||
"style": {
|
||||
"navigationBarTitleText": "最近观看",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "jilu/duanju-zhjuiju-jilu",
|
||||
"style": {
|
||||
"navigationBarTitleText": "追剧记录",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "jifen/duanju-jifen",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的积分",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"path": "jifen/duanju-jifen-duihuan",
|
||||
@@ -646,14 +661,13 @@
|
||||
"navigationBarTitleText": "积分兑换",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "jilu/duanju-love",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的喜欢",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"path": "jilu/new/fensehn-first",
|
||||
@@ -661,7 +675,6 @@
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"path": "jilu/new/free-create-fenshen",
|
||||
@@ -669,7 +682,6 @@
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"path": "jifen/new/create-zhuanye-fenshen",
|
||||
@@ -677,7 +689,6 @@
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"path": "jifen/new/fenshen-detail",
|
||||
@@ -685,7 +696,6 @@
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"path": "payOrder/duanju-xiadan",
|
||||
@@ -693,39 +703,36 @@
|
||||
"navigationBarTitleText": "下单",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
{
|
||||
"path": "payOrder/new/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
{
|
||||
"path": "payOrder/new/newindex",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
{
|
||||
"path": "setting/logOff",
|
||||
"style": {
|
||||
"navigationBarTitleText": "注销账号",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "setting/offXieyi",
|
||||
"style": {
|
||||
"navigationBarTitleText": "用户注销协议",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "juqing/duanju-juqing-home",
|
||||
"style": {
|
||||
"navigationBarTitleText": "剧情介绍",
|
||||
@@ -738,7 +745,6 @@
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"path": "juqing/new/waiting-result",
|
||||
@@ -746,14 +752,13 @@
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
|
||||
},{
|
||||
},
|
||||
{
|
||||
"path": "mFYpdwbMdk/mFYpdwbMdk",
|
||||
"style": {
|
||||
"navigationBarTitleText": "壁纸",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"path": "rHTgyqGoIV/rHTgyqGoIV",
|
||||
@@ -796,7 +801,9 @@
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{"path": "VjgyqAzklr/mEfjXGgyqJ"},
|
||||
{
|
||||
"path": "VjgyqAzklr/mEfjXGgyqJ"
|
||||
},
|
||||
{
|
||||
"path": "VjgyqAzklr/YQqgyqeKub"
|
||||
},
|
||||
@@ -824,19 +831,23 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "yaoqing/realName",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pay",
|
||||
"pages": [{
|
||||
"path": "success",
|
||||
"style": {
|
||||
"navigationBarTitleText": "支付成功"
|
||||
}
|
||||
"path": "success",
|
||||
"style": {
|
||||
"navigationBarTitleText": "支付成功"
|
||||
}
|
||||
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"root": "other",
|
||||
@@ -876,7 +887,6 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "抽奖",
|
||||
"navigationStyle": "custom"
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -913,62 +923,57 @@
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "短剧",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#333333",
|
||||
"selectedColor": "#FF7581",
|
||||
"backgroundColor": "#FFFFFF",
|
||||
"borderStyle": "black",
|
||||
|
||||
"list": [{
|
||||
"pagePath": "pages/index/index2",
|
||||
"iconPath": "static/tabbar/index@2x.png",
|
||||
"selectedIconPath": "static/tabbar/index_@2x.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/task/index",
|
||||
"iconPath": "static/tabbar/task@2x.png",
|
||||
"selectedIconPath": "static/tabbar/task_@2x.png",
|
||||
"text": "任务"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/video/video",
|
||||
"iconPath": "static/tabbar/index@2x.png",
|
||||
"selectedIconPath": "static/tabbar/index_@2x.png",
|
||||
"text": "刷剧"
|
||||
}
|
||||
// ,
|
||||
// {
|
||||
// "pagePath": "pages/index/index",
|
||||
// "pagePath": "pages/video/video",
|
||||
// "iconPath": "static/tabbar/index@2x.png",
|
||||
// "selectedIconPath": "static/tabbar/index_@2x.png",
|
||||
// "text": "刷剧"
|
||||
// }
|
||||
// ,
|
||||
// {
|
||||
// "pagePath": "pages/video/video",
|
||||
// "iconPath": "static/tabbar/learn@2x.png",
|
||||
// "selectedIconPath": "static/tabbar/learn_@2x.png",
|
||||
// "text": "推荐"
|
||||
// },
|
||||
|
||||
// {
|
||||
// "pagePath": "pages/chasingDrama/chasingDrama",
|
||||
// "iconPath": "static/tabbar/zhuiju.png",
|
||||
// "selectedIconPath": "static/tabbar/zhuiju_.png",
|
||||
// "text": "追剧"
|
||||
// },
|
||||
// {
|
||||
// "pagePath": "pages/me/index",
|
||||
// "iconPath": "static/tabbar/me@2x.png",
|
||||
// "selectedIconPath": "static/tabbar/me_@2x.png",
|
||||
// "text": "我的"
|
||||
// }
|
||||
{
|
||||
"pagePath": "pages/me/index",
|
||||
"iconPath": "static/tabbar/me@2x.png",
|
||||
"selectedIconPath": "static/tabbar/me_@2x.png",
|
||||
"text": "我的"
|
||||
}
|
||||
]
|
||||
},
|
||||
"condition": { //模式配置,仅开发期间生效
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
//返回值:arg1乘以arg2的精确结果
|
||||
enter(){
|
||||
uni.reLaunch({
|
||||
url:'/pages/index/index'
|
||||
url:'/pages/index/index2'
|
||||
})
|
||||
},
|
||||
init(){
|
||||
|
||||
178
pages/index/components/contentlist.vue
Normal file
@@ -0,0 +1,178 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="df" style=" justify-content: space-around;flex-wrap: wrap; margin-top: 10rpx;">
|
||||
<view style="border-radius:21rpx 21rpx 21rpx 21rpx;width: 33%;text-align: center;margin-top: 20rpx;padding:0 26rpx;"
|
||||
class="liststyle" v-for="item in $props.list" :key="item.course_id" @tap="seVideo(item)">
|
||||
<image :src="item.titleImg" style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx"
|
||||
mode=""></image>
|
||||
<view style="font-weight: 400;font-size: 25rpx;color: #333333;text-align: left;">
|
||||
{{item.title.slice(0,6)}}
|
||||
</view>
|
||||
<view style="font-weight: 400;font-size: 21rpx;color: #999999;text-align: left;">
|
||||
{{item.courseLabel}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
returnIsSafari
|
||||
} from '@/utils/app.js'
|
||||
export default {
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: []
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
pageScrollTo(time = 100) {
|
||||
uni.pageScrollTo({
|
||||
scrollTop: this.scrollTop - 50,
|
||||
duration: time,
|
||||
complete() {
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
//查看视频
|
||||
seVideo(item) {
|
||||
console.log(uni.getStorageSync('token'))
|
||||
// if(uni.getStorageSync('token')){
|
||||
const time = 100;
|
||||
// #ifdef H5
|
||||
if (returnIsSafari()) {
|
||||
this.pageScrollTo(time)
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item
|
||||
.courseDetailsId +
|
||||
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
|
||||
.dyEpisodeId
|
||||
})
|
||||
}, time)
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId +
|
||||
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
|
||||
.dyEpisodeId
|
||||
})
|
||||
}
|
||||
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId +
|
||||
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
|
||||
.dyEpisodeId
|
||||
})
|
||||
// #endif
|
||||
|
||||
// }else{
|
||||
// uni.navigateTo({
|
||||
// url:'/pages/login/login'
|
||||
// })
|
||||
// }
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.zuijin {
|
||||
width: 100%;
|
||||
margin-top: 26rpx;
|
||||
|
||||
.GpkmladwbU {
|
||||
width: 700rpx;
|
||||
height: 100%;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.kjFVivdwbz {
|
||||
width: calc((700rpx - 40rpx) / 3);
|
||||
height: 100%;
|
||||
margin-bottom: 30rpx;
|
||||
margin-right: calc(40rpx / 2);
|
||||
}
|
||||
|
||||
.kjFVivdwbz:nth-of-type(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.MXdwbIHrMo {
|
||||
width: 100%;
|
||||
// height: 204rpx;
|
||||
height: 204rpx;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
position: relative;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
}
|
||||
|
||||
.kpdwbbDLKT {
|
||||
position: absolute;
|
||||
bottom: 10rpx;
|
||||
right: 0;
|
||||
max-width: 80%;
|
||||
border-radius: 10rpx;
|
||||
background-color: rgba(51, 51, 51, 0.7);
|
||||
color: #FFFFFF;
|
||||
font-size: 22rpx;
|
||||
padding: 10rpx;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.gSSSCWdwbD {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 0 0 24rpx 24rpx;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.dwbkFoLNxI {
|
||||
width: 100%;
|
||||
padding: 0 20rpx;
|
||||
color: #333333;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
}
|
||||
|
||||
.kemrdwbYSM {
|
||||
width: 100%;
|
||||
padding: 0 20rpx;
|
||||
color: #999999;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.liststyle:last-child {
|
||||
margin-right: auto;
|
||||
margin-left: 6rpx;
|
||||
}
|
||||
|
||||
.df {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
@@ -1,17 +1,17 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<u-sticky :enable="enableIos">
|
||||
<!-- <u-sticky :enable="enableIos">
|
||||
<view class="search-box-ios">
|
||||
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" v-model="keywordIos"
|
||||
:show-action="false" :animation="true" @search="getCourseListIos()"></u-search>
|
||||
</view>
|
||||
</u-sticky>
|
||||
</u-sticky> -->
|
||||
<view class="swiper flex align-center justify-center">
|
||||
<view class="swiper-box">
|
||||
<swiper :indicator-dots="true" class="swiper " :autoplay="true" interval="5000" duration="500"
|
||||
:circular="true" style="width: 100%;height: 350rpx;">
|
||||
<swiper-item v-for="(item,index) in swiperListIos" :key='index' @tap="goPageIos(item.url)">
|
||||
<image :src="item.imageUrl" mode="scaleToFill"
|
||||
<image :src="item.imageUrl" mode="aspectFill"
|
||||
style="width: 100%;height: 100%;border-radius: 24rpx;"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
|
||||
@@ -195,7 +195,7 @@
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImg
|
||||
@@ -203,7 +203,7 @@
|
||||
},
|
||||
onShareTimeline(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImg
|
||||
|
||||
@@ -261,14 +261,14 @@
|
||||
isWeixin: false,
|
||||
isIos: true,
|
||||
scrollTop: 0,
|
||||
isShowMoneyPay: true,
|
||||
isShowMoneyPay: false,
|
||||
isIos: true,
|
||||
isIosApp: false,
|
||||
};
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImg
|
||||
@@ -276,7 +276,7 @@
|
||||
},
|
||||
onShareTimeline(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
path: '/pages/index/index2?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImg
|
||||
@@ -445,7 +445,7 @@
|
||||
this.videoInfo = []
|
||||
}
|
||||
|
||||
httpsRequest.getT("app/common/type/919", {}).then(res => {
|
||||
httpsRequest.getT("/app/common/type/919", {}).then(res => {
|
||||
if (res.code == 0) {
|
||||
const sysInfo = uni.getSystemInfoSync();
|
||||
let isIos = sysInfo.platform == 'ios'
|
||||
|
||||
257
pages/index/index2.vue
Normal file
@@ -0,0 +1,257 @@
|
||||
<template>
|
||||
<view>
|
||||
<view style="height: 555rpx;position: relative;">
|
||||
<image src="../../static/indexbh.png" style="width: 100%;height: 555rpx;position: absolute;" mode="">
|
||||
</image>
|
||||
<view style="display: flex;align-items: center;justify-content: space-between; padding: 88rpx 25rpx;">
|
||||
<image src="../../static/logo.png" style="width: 187rpx;height:50rpx;" mode=""></image>
|
||||
<view style="z-index: 50;width: 236rpx;line-height: 43rpx;background: rgba(255,255,255,0.29);border-radius: 7rpx 7rpx 7rpx 7rpx;
|
||||
font-weight: 400;font-size: 21rpx;color: rgba(255,255,255,0.85);display: flex;align-items: center;"
|
||||
@tap="moreVideo">
|
||||
<!-- <uni-icons type="search" size="16" style="color: rgba(255,255,255,0.85);"></uni-icons> -->
|
||||
<image src="../../static/dwbimgs/sosuo.png" style="height: 34rpx;width: 34rpx;" mode=""></image>
|
||||
点击搜索更多好剧
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<template v-if="noticeList.length > 0 && isShowMoneyPay">
|
||||
<view class="gongao">
|
||||
<view class="gongaoicon">
|
||||
公告
|
||||
</view>
|
||||
<swiper :autoplay="true" :vertical="true" :interval="4000" :circular="true" :indicator-dots="false"
|
||||
class="swiperstyle">
|
||||
<swiper-item @tap='goMsg(item.url)' v-for="(item, index) in noticeList" :key="index">
|
||||
<view style="height: 80rpx;line-height: 80rpx;">{{ item.title }}</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
<view style="display: flex;align-items: center;justify-content: space-between;padding:0 20rpx;">
|
||||
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx"
|
||||
:style="active == 1 ? 'color:#ff6b7f' : ''" @tap="getrecomVideo('', 1)">
|
||||
最新
|
||||
</view>
|
||||
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx"
|
||||
:style="active == 2 ? 'color:#ff6b7f' : ''" @tap="getrecomVideo('1', 2)">
|
||||
排行
|
||||
</view>
|
||||
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx"
|
||||
:style="active == 3 ? 'color:#ff6b7f' : ''" @tap="getrecomVideo('2', 3)">
|
||||
最热
|
||||
</view>
|
||||
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx"
|
||||
:style="active == 4 ? 'color:#ff6b7f' : ''" @tap="getrecomVideo('1', 4)">
|
||||
剧情
|
||||
</view>
|
||||
<view style="background-color: #f0f0f0;margin-left:20rpx;padding:6rpx 20rpx"
|
||||
:style="active == 5 ? 'color:#ff6b7f' : ''" @tap="getrecomVideo('2', 5)">
|
||||
飙升
|
||||
</view>
|
||||
</view>
|
||||
<view class="">
|
||||
<contentlist :list='list'></contentlist>
|
||||
</view>
|
||||
<u-image v-if="isShowMoneyPay" @click="goMsg('/me/VjgyqAzklr/VjgyqAzklr')"
|
||||
:src="`../../static/red-pack-new.gif`"
|
||||
style="width: 200rpx;height: 200rpx;position: fixed;right: 10rpx;bottom: 180rpx;"></u-image>
|
||||
|
||||
<u-modal v-if="isShowMoneyPay" v-model="ruleShow" @confirm="ruleConfirm" confirm-text="知道了" :title="rule_title"
|
||||
:title-style="{ fontWeight: '700' }" confirm-color="rgb(255, 117, 129)">
|
||||
<view class="u-p-30 u-text-left">
|
||||
<scroll-view scroll-y="true" style="max-height: 50vh;">
|
||||
<rich-text class="color-666" :nodes="rule_content"></rich-text>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
</u-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import contentlist from './components/contentlist.vue'
|
||||
import httpsRequest from '@/common/httpRequest.js'
|
||||
import {
|
||||
$cache_config,
|
||||
$cache_rule
|
||||
} from '@/store/cashe.js'
|
||||
export default {
|
||||
components: {
|
||||
contentlist
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
noticeList: [], //公告列表
|
||||
list: [],
|
||||
page: 1,
|
||||
active: 1,
|
||||
isShowMoneyPay: false,
|
||||
ruleShow: false,
|
||||
rule_title: '',
|
||||
rule_content: '',
|
||||
ruleList: "",
|
||||
ruleIndex: 0,
|
||||
ruleList: $cache_rule.ruleIndex || []
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getMsg()
|
||||
this.getrecomVideo()
|
||||
|
||||
httpsRequest.getT("/app/common/type/919", {}).then(res => {
|
||||
if (res.code == 0) {
|
||||
const sysInfo = uni.getSystemInfoSync();
|
||||
let isIos = sysInfo.platform == 'ios'
|
||||
this.isIosApp = isIos
|
||||
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
||||
}
|
||||
});
|
||||
|
||||
httpsRequest.getT("/app/announcement", {
|
||||
type: 0
|
||||
}).then(res => {
|
||||
if (res.code == 0 && res.data.length > 0) {
|
||||
this.ruleShow = true
|
||||
this.ruleList = res.data
|
||||
$cache_rule.set('ruleIndex', this.ruleList)
|
||||
this.ruleInit()
|
||||
|
||||
|
||||
// this.ruleShow = true
|
||||
// this.rule_title = res.data[0].title
|
||||
// this.rule_content = res.data[0].content
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
onPullDownRefresh(){
|
||||
this.getrecomVideo()
|
||||
setTimeout(()=>{
|
||||
uni.stopPullDownRefresh()
|
||||
},1000)
|
||||
},
|
||||
onReachBottom() {
|
||||
++this.page
|
||||
this.getrecomVideo()
|
||||
},
|
||||
methods: {
|
||||
ruleInit() {
|
||||
this.rule_title = this.ruleList[this.ruleIndex].title
|
||||
this.rule_content = this.ruleList[this.ruleIndex].content
|
||||
},
|
||||
ruleConfirm() {
|
||||
this.ruleIndex++
|
||||
if (this.ruleIndex >= this.ruleList.length) {
|
||||
this.ruleIndex = 0
|
||||
return
|
||||
}
|
||||
this.ruleShow = false
|
||||
setTimeout(res => {
|
||||
this.ruleInit()
|
||||
this.ruleShow = true
|
||||
}, 300)
|
||||
},
|
||||
// 跳转公告链接
|
||||
goMsg(url) {
|
||||
if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
});
|
||||
} else {
|
||||
//#ifndef H5
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/webView?url=' + url
|
||||
});
|
||||
//#endif
|
||||
//#ifdef H5
|
||||
window.location.href = url;
|
||||
//#endif
|
||||
}
|
||||
},
|
||||
moreVideo() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/course/courseList?title=最新热播'
|
||||
})
|
||||
},
|
||||
// 列表
|
||||
//获取推荐视频
|
||||
getrecomVideo(sort, active = 1) {
|
||||
this.active = active
|
||||
if (sort) {
|
||||
this.page = 1
|
||||
}
|
||||
let data = {
|
||||
page: this.page,
|
||||
limit: 12,
|
||||
sort: sort,
|
||||
classifyId: ''
|
||||
}
|
||||
this.$Request.getT('/app/course/selectCourse', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (this.page == 1) {
|
||||
this.list = res.data.list
|
||||
} else {
|
||||
this.list = [...this.list, ...res.data.list]
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
// 公告
|
||||
getMsg() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 5,
|
||||
state: 1
|
||||
}
|
||||
this.$u.api.msg(data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.notice = res.data.list
|
||||
res.data.list.forEach(res => {
|
||||
this.noticeList.push(res)
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
duration: 1000,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.gongao {
|
||||
position: absolute;
|
||||
bottom: 75rpx;
|
||||
left: 70rpx;
|
||||
border-radius: 21rpx 21rpx 21rpx 21rpx;
|
||||
width: 611rpx;
|
||||
height: 78rpx;
|
||||
background-color: rgba(255, 255, 255, .65);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 12rpx;
|
||||
|
||||
.gongaoicon {
|
||||
color: #ffffff;
|
||||
width: 98rpx;
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
text-align: center;
|
||||
background-image: url('../../static/gonggaobg.png');
|
||||
background-size: 98rpx 50rpx;
|
||||
}
|
||||
|
||||
.swiperstyle {
|
||||
height: 78rpx;
|
||||
width: 80%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -132,7 +132,7 @@
|
||||
});
|
||||
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
// window.location.href = res.data.value;
|
||||
// #endif
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
this.$queue.setData("token", res.token);
|
||||
this.$queue.setData("userId", res.user.userId);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
} else {
|
||||
_this.isRotate = false;
|
||||
@@ -245,7 +245,7 @@
|
||||
}
|
||||
});
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
that.$queue.setData('token', res.token);
|
||||
that.$queue.setData('userId', res.user.userId);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
@@ -307,7 +307,7 @@
|
||||
console.log(ress.user.userId)
|
||||
console.log(ress.token)
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
@@ -354,7 +354,7 @@
|
||||
that.$queue.setData('userId', res.user
|
||||
.userId);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
@@ -446,7 +446,7 @@
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
@@ -498,7 +498,7 @@
|
||||
this.$queue.setData("inviterCode", res.user
|
||||
.inviterCode);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
@@ -526,7 +526,7 @@
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
@@ -977,7 +977,7 @@
|
||||
})
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
});
|
||||
}, 1000)
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
this.$queue.setData("token", res.token);
|
||||
this.$queue.setData("userId", res.user.userId);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
} else {
|
||||
_this.isRotate = false;
|
||||
@@ -218,7 +218,7 @@
|
||||
}
|
||||
});
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
|
||||
@@ -257,17 +257,22 @@
|
||||
})
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
});
|
||||
}, 1000)
|
||||
// this.getUserInfo(res.userId, res.token);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '注册失败',
|
||||
content: res.msg
|
||||
});
|
||||
setTimeout(function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
});
|
||||
}, 1000)
|
||||
// uni.showModal({
|
||||
// showCancel: false,
|
||||
// title: '注册失败',
|
||||
// content: res.msg
|
||||
// });
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -303,7 +308,7 @@
|
||||
// this.$queue.setData('nickName', res.data.nickName ? res.data.nickName : res.data.phone);
|
||||
// this.$queue.setData('gender', parseInt(res.data.gender));
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
|
||||
@@ -269,11 +269,16 @@
|
||||
}, 1000)
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '注册失败',
|
||||
content: res.msg
|
||||
});
|
||||
setTimeout(function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
});
|
||||
}, 1000)
|
||||
// uni.showModal({
|
||||
// showCancel: false,
|
||||
// title: '注册失败',
|
||||
// content: res.msg
|
||||
// });
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -309,7 +314,7 @@
|
||||
// this.$queue.setData('nickName', res.data.nickName ? res.data.nickName : res.data.phone);
|
||||
// this.$queue.setData('gender', parseInt(res.data.gender));
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
this.$queue.setData("token", res.token);
|
||||
this.$queue.setData("userId", res.user.userId);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
} else {
|
||||
_this.isRotate = false;
|
||||
@@ -254,7 +254,7 @@
|
||||
}
|
||||
});
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
|
||||
@@ -1,9 +1,22 @@
|
||||
<template>
|
||||
<view style="padding-bottom: 40rpx;">
|
||||
<u-navbar :background="background" :is-back="isBack" :title="title" :border-bottom="false">
|
||||
</u-navbar>
|
||||
<!-- <u-navbar :background="background" :is-back="isBack" :title="title" :border-bottom="false">
|
||||
</u-navbar> -->
|
||||
<!-- 登录信息 -->
|
||||
<view class="info flex align-center justify-center">
|
||||
<view class="info " style="padding: 20rpx;padding-top: 120rpx;">
|
||||
<view
|
||||
style="background-color: #f5f1f1;padding: 20rpx; display: flex;align-items: center;justify-content: space-between;"
|
||||
class="">
|
||||
<image src="../../static/logo.png" style="width: 170rpx;height: 51rpx;z-index: 999;" mode=""></image>
|
||||
<!-- <view class="">
|
||||
<image src="../../static/dwbimgs/one.png" style="width: 46rpx;height: 46rpx;z-index: 999;" mode="">
|
||||
</image>
|
||||
<image src="../../static/dwbimgs/two.png" style="width: 46rpx;height: 46rpx;z-index: 999;" mode="">
|
||||
</image>
|
||||
<image src="../../static/dwbimgs/three.png" style="width: 46rpx;height: 46rpx;z-index: 999;"
|
||||
mode=""></image>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="info-box">
|
||||
<view @click="token?goNav('/pages/me/userinfo'):goNav('/pages/login/login')"
|
||||
class="info-box-c flex align-center justify-between">
|
||||
@@ -15,9 +28,9 @@
|
||||
<view class="info-box-c-l-name-t">
|
||||
{{userName?userName:'未登录'}}
|
||||
</view>
|
||||
<view class="info-box-c-l-name-b" v-if="invitationCode">
|
||||
<!-- <view class="info-box-c-l-name-b" v-if="invitationCode">
|
||||
ID:{{invitationCode}}
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-box-c-r">
|
||||
@@ -28,22 +41,22 @@
|
||||
</view>
|
||||
<!-- 统计 -->
|
||||
<view class="statistics flex align-center justify-center">
|
||||
<view class="statistics-box flex align-center justify-between">
|
||||
<view class="statistics-box flex align-center justify-between" style="margin: 0 100rpx;">
|
||||
<view class="statistics-box-item" @click="goNav('/me/jilu/duanju-love')">
|
||||
<view class="statistics-box-item-top">
|
||||
{{myLoveNum}}
|
||||
</view>
|
||||
<view class="statistics-box-item-btn">
|
||||
我的喜欢
|
||||
</view>
|
||||
<view class="statistics-box-item-top">
|
||||
{{myLoveNum?myLoveNum:0}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="statistics-box-item" @click="goNav('/me/jilu/duanju-zhjuiju-jilu')">
|
||||
<view class="statistics-box-item-top">
|
||||
{{myZhui}}
|
||||
</view>
|
||||
<view class="statistics-box-item-btn">
|
||||
我的追剧
|
||||
</view>
|
||||
<view class="statistics-box-item-top">
|
||||
{{myZhui?myZhui:0}}
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="statistics-box-item" @click="goNav('/me/jifen/duanju-jifen')">
|
||||
<view class="statistics-box-item-top">
|
||||
@@ -53,13 +66,13 @@
|
||||
我的积分
|
||||
</view>
|
||||
</view> -->
|
||||
<view v-if="isShowMoneyPay" class="statistics-box-item" @click="goNav('/me/yaoqing/ymg-yaoqing-tixian')">
|
||||
<view class="statistics-box-item-top">
|
||||
{{userInfo.amount || '0.00'}}
|
||||
</view>
|
||||
<view v-if="isiosExamine" class="statistics-box-item" @click="goNav('/me/yaoqing/ymg-yaoqing-tixian')">
|
||||
<view class="statistics-box-item-btn">
|
||||
我的红包
|
||||
</view>
|
||||
<view class="statistics-box-item-top">
|
||||
{{userInfo.amount || '0.00'}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -85,16 +98,47 @@
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 钱包 -->
|
||||
<view class="money flex align-center justify-center" v-if="isWxIosPay == true">
|
||||
<view class="money" v-if="isWxIosPay == '是'" style="position: relative;">
|
||||
<view
|
||||
style="position: relative;background-color: #f2b5b5;width: 700rpx;height: 74rpx;padding:20rpx;border-radius: 14rpx 14rpx 0rpx 0rpx;position: absolute;left: 0;top: 0;display: flex;align-items: center;justify-content: space-between;">
|
||||
<view class="df">
|
||||
<image src="../../static/dwbimgs/money.png" style="width: 47rpx;height: 47rpx;margin-right: 28rpx;"
|
||||
mode=""></image>
|
||||
<view style="font-weight: bold;font-size: 36rpx;color: #FFFFFF;">
|
||||
{{formatNumber(moneyNum)}}
|
||||
</view>
|
||||
</view>
|
||||
<view @tap="goNav('/me/yaoqing/redPack-mingxi?moneyType=2&viewType=2')"
|
||||
style="font-weight: bold;font-size: 25rpx;color: #977641;width: 160rpx;text-align:center;line-height: 50rpx;background: linear-gradient( 90deg, #FEE7BC 0%, #FDCC89 100%);border-radius: 46rpx 46rpx 46rpx 46rpx;">
|
||||
金币明细
|
||||
</view>
|
||||
<view
|
||||
style="position: absolute;background-color: #fff;width: 40rpx;height: 40rpx;transform: rotate(45deg);bottom: -10rpx;left: 48%;background-color: #f2b5b5;">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view style="margin-top: 40rpx;">观看历史</view>
|
||||
<view class="df" style=" margin-top: 28rpx;">
|
||||
<view style="border-radius:21rpx 21rpx 21rpx 21rpx;margin-left: 28rpx" v-for="(item,index) in list" :key="(item,index)"
|
||||
@tap="seVideo(item)">
|
||||
<image :src="item.titleImg"
|
||||
style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx" mode=""></image>
|
||||
<view style="font-weight: 400;font-size: 25rpx;color: #333333;">
|
||||
{{item.title.substr(0,8)}}
|
||||
</view>
|
||||
<view style="font-weight: 400;font-size: 21rpx;color: #999999;">
|
||||
看到{{item.courseDetailsName}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="money flex align-center justify-center" v-if="isWxIosPay == true">
|
||||
<view class="money-box flex align-center justify-between">
|
||||
<view class="">
|
||||
<view class="money-box-title flex align-center">
|
||||
<view class="money-box-title-l">
|
||||
金币余额
|
||||
</view>
|
||||
<!-- <view @click="isShoMoney = !isShoMoney" class="money-box-title-r" style="margin-left: 12rpx;">
|
||||
<u-icon :name="isShoMoney?'eye':'eye-off'" color="#5A4A32" size="40"></u-icon>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="money-box-price">
|
||||
<block v-if="isShoMoney">
|
||||
@@ -108,11 +152,8 @@
|
||||
<view class="money-box-btn" @click="goNav('/me/yaoqing/redPack-mingxi?moneyType=2&viewType=2')">
|
||||
金币明细
|
||||
</view>
|
||||
<!-- <view class="money-box-btn" @click="goNav('/me/wallet/wallet')">
|
||||
立即充值
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 常用工具 -->
|
||||
<view class="tool flex align-center justify-center">
|
||||
<view class="tool-box">
|
||||
@@ -184,7 +225,8 @@
|
||||
观看历史
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="rate>0 && isShowMoneyPay" class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
<view v-if="rate>0 && isShowMoneyPay"
|
||||
class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/me/yaoqing/ymf-my-team')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<image src="../../static/images/me/vtd.png" mode=""></image>
|
||||
@@ -251,8 +293,8 @@
|
||||
</u-popup>
|
||||
<!-- 抖音im客服 -->
|
||||
<ttMsg />
|
||||
|
||||
|
||||
|
||||
|
||||
<other-xuanfu></other-xuanfu>
|
||||
</view>
|
||||
</template>
|
||||
@@ -261,11 +303,15 @@
|
||||
import ttMsg from '../../components/ttMsg/ttMsg.vue'
|
||||
import httpsRequest from '../../common/httpRequest.js'
|
||||
import otherXuanfu from '@/components/other-xuafu.vue'
|
||||
|
||||
|
||||
import {init} from '@/common/init.js'
|
||||
import {
|
||||
returnIsSafari
|
||||
} from '@/utils/app.js'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
ttMsg,otherXuanfu
|
||||
ttMsg,
|
||||
otherXuanfu
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -283,6 +329,7 @@
|
||||
}],
|
||||
isLogin: false,
|
||||
userName: '未登录',
|
||||
list: [],
|
||||
isVIP: false,
|
||||
invitationCode: '',
|
||||
token: '',
|
||||
@@ -295,27 +342,28 @@
|
||||
showCard: false,
|
||||
numCount: 0,
|
||||
rate: 0,
|
||||
twoRate:0,
|
||||
twoRate: 0,
|
||||
kmPaySel: '否',
|
||||
isWxIosPay: true, //微信下是否显示支付功能
|
||||
userInfo: {},
|
||||
isShowMoneyPay: true,
|
||||
isiosExamine: false, // 我的金币审核
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getBannerList()
|
||||
|
||||
this.zxczxczxczsw(1212,5)
|
||||
this.zzzzzzzzzzzzzzzzs(1212.5)
|
||||
this.zxcee(1212,5)
|
||||
this.aaaaccx(1212,5)
|
||||
this.wwrqx(1212,5)
|
||||
// this.getBannerList()
|
||||
|
||||
this.zxczxczxczsw(1212, 5)
|
||||
this.zzzzzzzzzzzzzzzzs(1212.5)
|
||||
this.zxcee(1212, 5)
|
||||
this.aaaaccx(1212, 5)
|
||||
this.wwrqx(1212, 5)
|
||||
},
|
||||
onShow() {
|
||||
|
||||
init()
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
const isIOS = /iOS/.test(systemInfo.platform);
|
||||
if ( !isIOS ) {
|
||||
if (!isIOS) {
|
||||
this.isBack = true
|
||||
}
|
||||
this.isWxIosPay = uni.getStorageSync('isWxIosPay')
|
||||
@@ -324,6 +372,7 @@
|
||||
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
|
||||
this.token = uni.getStorageSync('token')
|
||||
if (this.token) {
|
||||
this.ymfgetDataList()
|
||||
this.getMyMoney()
|
||||
this.getPoints()
|
||||
this.$u.api.userinfo().then(res => {
|
||||
@@ -335,8 +384,8 @@
|
||||
this.userName = res.data.userName
|
||||
this.avatar = res.data.avatar
|
||||
this.invitationCode = res.data.invitationCode
|
||||
this.rate = res.data.rate||0
|
||||
this.twoRate = res.data.twoRate||0
|
||||
this.rate = res.data.rate || 0
|
||||
this.twoRate = res.data.twoRate || 0
|
||||
}
|
||||
})
|
||||
|
||||
@@ -374,12 +423,17 @@
|
||||
}
|
||||
this.avatar = uni.getStorageSync('avatar') ? uni.getStorageSync('avatar') : '../../static/images/logo.png'
|
||||
|
||||
httpsRequest.getT("app/common/type/919", {}).then(res => {
|
||||
httpsRequest.getT("/app/common/type/919", {}).then(res => {
|
||||
console.log(res);
|
||||
if (res.code === 0) {
|
||||
const sysInfo = uni.getSystemInfoSync();
|
||||
let isIos = sysInfo.platform === 'ios'
|
||||
this.isShowMoneyPay = !(res.data.value === '1' && isIos)
|
||||
if (res.data.value == 1) {
|
||||
this.isiosExamine = false
|
||||
} else {
|
||||
this.isiosExamine = true
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -434,6 +488,38 @@
|
||||
}
|
||||
|
||||
},
|
||||
pageScrollTo(time = 100) {
|
||||
uni.pageScrollTo({
|
||||
scrollTop: this.scrollTop - 50,
|
||||
duration: time,
|
||||
complete() {
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
//查看视频
|
||||
seVideo(item) {
|
||||
const time = 100;
|
||||
console.log(item, '调试1')
|
||||
if (returnIsSafari()) {
|
||||
this.pageScrollTo(time)
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item
|
||||
.courseDetailsId +
|
||||
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
|
||||
.dyEpisodeId
|
||||
})
|
||||
}, time)
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId +
|
||||
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
|
||||
.dyEpisodeId
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//获取我喜欢的数量
|
||||
getMyLoveNum() {
|
||||
let data = {
|
||||
@@ -441,9 +527,9 @@
|
||||
limit: 1,
|
||||
classify: 2
|
||||
}
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||
this.$Request.getT('/app/courseCollect/collectVideoSummary', data).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.myLoveNum = res.data.total
|
||||
this.myLoveNum = res.data.likeCount
|
||||
} else {
|
||||
this.myLoveNum = 0
|
||||
}
|
||||
@@ -456,14 +542,33 @@
|
||||
limit: 1,
|
||||
classify: 1
|
||||
}
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||
this.$Request.getT('/app/courseCollect/collectVideoSummary', data).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.myZhui = res.data.total
|
||||
this.myZhui = res.data.collectCount
|
||||
} else {
|
||||
this.myZhui = 0
|
||||
}
|
||||
})
|
||||
},
|
||||
//获取观看记录
|
||||
ymfgetDataList() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 3,
|
||||
classify: 3
|
||||
}
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||
if (res.code === 0) {
|
||||
let arr = []
|
||||
res.data.records.forEach((ele, index) => {
|
||||
if (index < 3) {
|
||||
arr.push(ele)
|
||||
}
|
||||
})
|
||||
this.list = arr
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 获取积分
|
||||
*/
|
||||
@@ -553,7 +658,7 @@
|
||||
}
|
||||
r1 = Number(arg1.toString().replace(".", ""));
|
||||
r2 = Number(arg2.toString().replace(".", ""));
|
||||
|
||||
|
||||
},
|
||||
/**
|
||||
* 保留小数n位,不进行四舍五入
|
||||
@@ -576,7 +681,7 @@
|
||||
return parseFloat(num).toFixed(decimal);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
//乘法函数,用来得到精确的乘法结果
|
||||
//说明:javascript的乘法结果会有误差,在两个浮点数相乘的时候会比较明显。这个函数返回较为精确的乘法结果。
|
||||
//调用:mul(arg1,arg2)
|
||||
@@ -645,6 +750,10 @@
|
||||
uni.navigateTo({
|
||||
url: '/me/setting/kefu'
|
||||
})
|
||||
} else if (kefu == 4) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/me/webview'
|
||||
})
|
||||
} else if (kefu === 3) {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: kefuPhone //仅为示例
|
||||
@@ -689,7 +798,7 @@
|
||||
// #endif
|
||||
}
|
||||
},
|
||||
goNav(e,type) {
|
||||
goNav(e, type) {
|
||||
console.log(e)
|
||||
let token = uni.getStorageSync('token')
|
||||
if (token) {
|
||||
@@ -702,7 +811,7 @@
|
||||
url: e
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
@@ -881,7 +990,7 @@
|
||||
.statistics-box-item-btn {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #999999;
|
||||
color: #333;
|
||||
font-size: 26rpx;
|
||||
// margin-top: 20rpx
|
||||
}
|
||||
@@ -933,41 +1042,45 @@
|
||||
}
|
||||
|
||||
.money {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 20rpx;
|
||||
|
||||
.money-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
border-radius: 24rpx;
|
||||
background: #ffffff;
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.money-box-btn {
|
||||
background: linear-gradient(90deg, #FF7581 0%, #F8A5AF 100%);
|
||||
border-radius: 44rpx;
|
||||
padding: 18rpx 30rpx;
|
||||
font-size: 24rpx;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.money-box-title-l {
|
||||
color: #333333;
|
||||
font-size: 28rpx;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.money-box-price {
|
||||
color: #333333;
|
||||
font-size: 48rpx;
|
||||
font-weight: 800;
|
||||
margin-top: 20rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
margin: 30rpx;
|
||||
padding: 55rpx 24rpx;
|
||||
|
||||
|
||||
}
|
||||
// .money-box {
|
||||
// width: 686rpx;
|
||||
// height: 100%;
|
||||
// border-radius: 24rpx;
|
||||
// background: #ffffff;
|
||||
// padding: 30rpx;
|
||||
// }
|
||||
|
||||
// .money-box-btn {
|
||||
// background: linear-gradient(90deg, #FF7581 0%, #F8A5AF 100%);
|
||||
// border-radius: 44rpx;
|
||||
// padding: 18rpx 30rpx;
|
||||
// font-size: 24rpx;
|
||||
// color: #ffffff;
|
||||
// font-weight: bold;
|
||||
// }
|
||||
|
||||
// .money-box-title-l {
|
||||
// color: #333333;
|
||||
// font-size: 28rpx;
|
||||
// font-weight: normal;
|
||||
// }
|
||||
|
||||
// .money-box-price {
|
||||
// color: #333333;
|
||||
// font-size: 48rpx;
|
||||
// font-weight: 800;
|
||||
// margin-top: 20rpx;
|
||||
|
||||
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
@@ -1015,4 +1128,9 @@
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.df {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
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,24 +8,26 @@
|
||||
<view class="navTitle">
|
||||
<view></view>
|
||||
<view class="title">任务大厅</view>
|
||||
<image @click="goNav({jumpType:1,buttonUrl:'/pages/iSiAnfghCC/abKTySghjA'})" class="navTitleIcon"
|
||||
<view class="">
|
||||
|
||||
</view>
|
||||
<!-- <image @click="goNav({ jumpType: 1, buttonUrl: '/pages/me/index' })" class="navTitleIcon"
|
||||
src="../../static/images/my.png"></image>
|
||||
</view>
|
||||
--> </view>
|
||||
<view class="icon u-relative padding">
|
||||
<image class="task_icon1 u-relative" src="../../static/images/me/task_icon1.png"></image>
|
||||
<view class="icon_title u-font-32 text-bold u-relative">新人好礼送不停</view>
|
||||
<image class="task_icon2 u-relative" src="../../static/images/me/task_icon2.png"></image>
|
||||
</view>
|
||||
|
||||
<view class="content signIn margin-lr padding bg-white u-relative" style="margin-bottom: 32rpx;">
|
||||
<view class="title flex justify-between">
|
||||
<view>已连续签到 <text class="num">{{signDays}}</text> 天</view>
|
||||
<!-- <view class="dk flex">
|
||||
<text style="margin-right: 20rpx;">打卡提醒</text>
|
||||
<u-switch v-model="checked" size="35" active-color="#EA9EA8 "></u-switch>
|
||||
</view> -->
|
||||
<view class="content signIn margin-lr bg-white u-relative" style="margin-bottom: 32rpx;">
|
||||
<view class="">
|
||||
<image src="../../static/dwbimgs/renwubg.png"
|
||||
style="width: 100%;height: 78rpx;position: absolute;left: 0;top: 0;z-index:1" mode=""></image>
|
||||
<view style="z-index: 9999;position: absolute;text-align: center;width: 98%;">已连续签到 <text class="num"
|
||||
style="color: #EC6F48;margin: 0 10rpx;">{{ signDays }}</text> 天</view>
|
||||
</view>
|
||||
<view class="signInList flex justify-between">
|
||||
<!-- <view class="signInList flex justify-between">
|
||||
<text class="line"></text>
|
||||
<view class="signIn-Item"
|
||||
:class="{active: item.showText == '待签到'||item.showText == '未签到'||item.showText == '已签到'}"
|
||||
@@ -39,9 +41,24 @@
|
||||
<view class="radius"></view>
|
||||
<view class="_label">{{item.showText}}</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view style="margin-top: 100rpx; display: flex;align-items: center; justify-content: space-between;">
|
||||
<view class="" v-for="item in signInList" :key="item.id" style="position: relative;"
|
||||
:style="filterDate(item) == '已签到' ? 'color:#EFA765' : 'color:#999'">
|
||||
{{ filterDate(item) }}
|
||||
<view
|
||||
style="margin-top: 20rpx;;width: 80rpx;height: 94rpx;background: linear-gradient( 180deg, #FFF7E3 0%, #FFFFFF 100%);border-radius: 14rpx 14rpx 0rpx 0rpx;"
|
||||
:style="filterDate(item) == '已签到' ? 'color:#999' : 'color:#EFA765'">
|
||||
{{ item.signDay.substr(5, 8) }}
|
||||
</view>
|
||||
<image v-if="item.status == 0" src="../../static/dwbimgs/xing (1).png"
|
||||
style="width: 52rpx;height: 48rpx;position: absolute;top: 100rpx;left: 14rpx;" mode=""></image>
|
||||
<image v-else src="../../static/dwbimgs/xing (2).png"
|
||||
style="width: 52rpx;height: 48rpx;position: absolute;top: 100rpx;left: 14rpx;" mode="">
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="tishi">连续签到7天即可获得7元奖励</view>
|
||||
<!-- <view class="tishi">连续签到7天即可获得7元奖励</view> -->
|
||||
|
||||
<!-- <view class="signInBtn" @click="goNav({jumpType: 0, id:15, buttonTitle: '去领取'})">
|
||||
<view>{{signInBtn}}</view>
|
||||
@@ -49,43 +66,51 @@
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
|
||||
<view class="content margin-lr padding bg-white u-relative" v-if="list.length">
|
||||
|
||||
<view class="cell flex justify-between" v-for="(item,index) in list" :key="index"
|
||||
v-if="(item.buttonUrl=='/me/yaoqing/ymf-yaoqing-home'&&isShowMoneyPay)||item.buttonUrl!='/me/yaoqing/ymf-yaoqing-home'&&item.title!='观看视频奖励'">
|
||||
<view class="cell flex justify-between" v-for="(item, index) in list" :key="index" v-if="item.shows">
|
||||
<view class="cell_left flex">
|
||||
<view class="cell_title flex">
|
||||
<view class="u-font-28 text-bold title"
|
||||
:style="{alignSelf: item.rewardImg?'center':'flex-start'}">{{ item.title}}</view>
|
||||
<u-image v-if="item.rewardImg" class="cell_icon" :src="item.rewardImg "></u-image>
|
||||
<view class="u-font-24 tip">{{ item.rewardDetail }}</view>
|
||||
:style="{ alignSelf: item.rewardImg ? 'center' : 'flex-start' }">{{ item.title }}</view>
|
||||
<u-image v-if="item.rewardImg" class="cell_icon" :src="item.rewardImg"></u-image>
|
||||
<view class="u-font-24 tip" v-if="isShowMoneyPay">{{ item.rewardDetail }}</view>
|
||||
</view>
|
||||
<view class="subhead u-font-24">{{ item.detail }}</view>
|
||||
</view>
|
||||
<view class="cell_right flex">
|
||||
<view v-if=" item.disabled " class="btn u-font-24 text-bold"
|
||||
:style="{backgroundColor: item.buttonBgColor,color: item.buttonFontColor }"
|
||||
<view v-if="item.disabled" class="btn u-font-24 text-bold"
|
||||
:style="{ backgroundColor: item.buttonBgColor, color: item.buttonFontColor }"
|
||||
@click="goNav(item)">
|
||||
{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : ( item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}次`) }}
|
||||
{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : (
|
||||
item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}次`) }}
|
||||
</view>
|
||||
<view v-else class="btn u-font-24 text-bold disabled">
|
||||
{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : ( item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}次`) }}
|
||||
{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}`
|
||||
: (item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}次`) }}
|
||||
</view>
|
||||
<!-- <view v-else class="btn u-font-24 text-bold" @click="goNav(item)">{{ item.buttonTitle }}</view> -->
|
||||
<view v-if=" item.buttonUnderContent && item.buttonUnderUrl " class="u-font-20 tip"
|
||||
@click="goNav({buttonUrl: item.buttonUnderUrl, jumpType: 1,title: item.title})">
|
||||
{{ item.buttonUnderContent}}
|
||||
<view v-if="item.buttonUnderContent && item.buttonUnderUrl&&isShowMoneyPay" class="u-font-22 tip"
|
||||
@click="goNav({ id: item.id, buttonUrl: item.buttonUnderUrl, jumpType: 1, title: item.title, disabled: item.disabled, discNumber: item.discNumber })">
|
||||
{{ item.buttonUnderContent }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<!-- 激励视频广告 -->
|
||||
<ad-rewarded-video v-if="adRewardedVideo" ref="adRewardedVideo" adpid="1531580352" :loadnext="true"
|
||||
v-slot:default="{ loading, error }" :url-callback="urlCallback" @load="onadload" @close="onadclose"
|
||||
@error="onaderror">
|
||||
<view class="ad-error" v-if="error">{{ error }}</view>
|
||||
</ad-rewarded-video>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import index from '../../tuniao-ui'
|
||||
import {
|
||||
data
|
||||
} from '../../tuniao-ui/libs/mixin/mixin'
|
||||
|
||||
export default {
|
||||
|
||||
data() {
|
||||
@@ -97,30 +122,13 @@
|
||||
list: [],
|
||||
checked: false,
|
||||
signDays: 0,
|
||||
signInList: [{
|
||||
name: '第一天'
|
||||
},
|
||||
{
|
||||
name: '第二天'
|
||||
},
|
||||
{
|
||||
name: '第三天'
|
||||
},
|
||||
{
|
||||
name: '第四天'
|
||||
},
|
||||
{
|
||||
name: '第五天'
|
||||
},
|
||||
{
|
||||
name: '第六天'
|
||||
},
|
||||
{
|
||||
name: '第七天'
|
||||
},
|
||||
],
|
||||
signInList: [],
|
||||
signInBtn: '点击签到',
|
||||
isShowMoneyPay: true,
|
||||
adRewardedVideo: true,
|
||||
adRewardedVideoloadNum: 0,
|
||||
urlCallback: null,
|
||||
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -131,20 +139,91 @@
|
||||
onShow() {
|
||||
this.getTaskdata()
|
||||
this.getsignIn()
|
||||
this.$Request.getT("app/common/type/919", {}).then(res => {
|
||||
this.$Request.getT("/app/common/type/919", {}).then(res => {
|
||||
if (res.code == 0) {
|
||||
const sysInfo = uni.getSystemInfoSync();
|
||||
let isIos = sysInfo.platform == 'ios'
|
||||
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
||||
}
|
||||
});
|
||||
this.$nextTick(() => {
|
||||
this.adRewardedVideoloadNum = 0
|
||||
this.$refs.adRewardedVideo.load();
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
||||
onadload(e) {
|
||||
this.adRewardedVideo = true;
|
||||
console.log('广告数据加载成功');
|
||||
},
|
||||
|
||||
/**
|
||||
* 广告加载失败回调
|
||||
* @param {Object} e
|
||||
*/
|
||||
onaderror(e) {
|
||||
if (this.adRewardedVideoloadNum >= 3) {
|
||||
this.adRewardedVideo = false;
|
||||
return
|
||||
}
|
||||
this.adRewardedVideoloadNum++
|
||||
setTimeout(() => {
|
||||
this.$refs.adRewardedVideo.load();
|
||||
}, 1000); // 10
|
||||
console.log("广告加载失败")
|
||||
},
|
||||
|
||||
/**
|
||||
* 广告播放成功回调
|
||||
* @param {Object} e
|
||||
*/
|
||||
async onadclose(e) {
|
||||
const detail = e.detail
|
||||
if (detail && detail.isEnded) {
|
||||
// 正常播放结束
|
||||
// /sqx_fast/app/ad/state
|
||||
let res = await this.$Request.getT('app/ad/state', {
|
||||
extraKey: this.urlCallback.extra
|
||||
})
|
||||
this.$Request.getT('/app/common/type/921').then(res => {
|
||||
if (res.code == 0) {
|
||||
console.log(res)
|
||||
uni.showToast({
|
||||
title: '获得' + res.data.value + '分钟免费时长',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// 播放中途退出
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
//乘法函数,用来得到精确的乘法结果
|
||||
//说明:javascript的乘法结果会有误差,在两个浮点数相乘的时候会比较明显。这个函数返回较为精确的乘法结果。
|
||||
//调用:mul(arg1,arg2)
|
||||
//返回值:arg1乘以arg2的精确结果
|
||||
filterDate(d) {
|
||||
// 获取当前时间
|
||||
// 循环比较,返回字段
|
||||
if (d.status == 1) {
|
||||
return '已签到'
|
||||
} else {
|
||||
return '待签到'
|
||||
// let time1 = d.signDay
|
||||
// let date1 = new Date(time1);
|
||||
// let date2 = new Date().getTime() + 8 * 60 * 60;
|
||||
// if (date1.getTime() < date2) {
|
||||
// return '未签到'
|
||||
// } else if (date1.getTime() > date2) {
|
||||
// return '待签到'
|
||||
// }
|
||||
}
|
||||
|
||||
},
|
||||
mul(arg1, arg2) {
|
||||
var m = 0,
|
||||
s1 = arg1.toString(),
|
||||
@@ -217,7 +296,7 @@
|
||||
}
|
||||
r1 = Number(arg1.toString().replace(".", ""));
|
||||
r2 = Number(arg2.toString().replace(".", ""));
|
||||
|
||||
|
||||
},
|
||||
/**
|
||||
* 保留小数n位,不进行四舍五入
|
||||
@@ -249,20 +328,38 @@
|
||||
|
||||
|
||||
getsignIn() {
|
||||
this.$Request.getT('app/userSignRecord/getUserSignData', {}).then(res => {
|
||||
this.$Request.getT('/app/userSignRecord/getUserSignData', {}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.signInList = res.data.recordList
|
||||
this.signDays = res.data.signDays
|
||||
this.signInList.map((item, index) => {
|
||||
if (item.showText == '待签到' && index > 0) {
|
||||
this.signInBtn = this.signInList[index - 1].status == 0 ? '重新签到' : '点击签到'
|
||||
}
|
||||
let someDate = new Date(item.signDay); // 假设这是需要判断的日期
|
||||
if (item.signDate && this.isToday(someDate)) {
|
||||
this.signInBtn = '已签到'
|
||||
}
|
||||
})
|
||||
// this.signInList.map((item, index) => {
|
||||
// if (item.showText == '待签到' && index > 0) {
|
||||
// this.signInBtn = this.signInList[index - 1].status == 0 ? '重新签到' : '点击签到'
|
||||
// }
|
||||
// let someDate = new Date(item.signDay); // 假设这是需要判断的日期
|
||||
// if (item.signDate && this.isToday(someDate)) {
|
||||
// this.signInBtn = '已签到'
|
||||
// }
|
||||
// })
|
||||
} else {
|
||||
this.signDays = 0
|
||||
const dateArray = [];
|
||||
this.signInList=[]
|
||||
for (let i = 0; i < 7; i++) {
|
||||
const date = new Date(Date.now() + i * 24 * 60 * 60 * 1000);
|
||||
const year = date.getFullYear();
|
||||
const month = date.getMonth() + 1 < 10 ? `0${date.getMonth() + 1}` : date.getMonth() +
|
||||
1;
|
||||
const day = date.getDate() < 10 ? `0${date.getDate()}` : date.getDate();
|
||||
dateArray.push(`${year}-${month}-${day}`);
|
||||
}
|
||||
console.log(dateArray, 'debug');
|
||||
dateArray.forEach(ele => {
|
||||
this.signInList.push({
|
||||
"signDay": ele,
|
||||
"status": "0",
|
||||
})
|
||||
})
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none'
|
||||
@@ -286,48 +383,68 @@
|
||||
// jumpType (integer, optional): 跳转类型 1 内部路径 2 外部路径 ,
|
||||
// type (integer, optional): 任务类型 1 普通任务 2 打卡任务 9 其它 ,
|
||||
// buttonUrl
|
||||
let source, buttonUrl;
|
||||
buttonUrl = item.buttonUrl
|
||||
|
||||
console.log(item)
|
||||
if (item.buttonUrl == '/me/invite/index') {
|
||||
buttonUrl = "/me/yaoqing/ymf-yaoqing-home"
|
||||
}
|
||||
if (item.buttonUrl == '/me/invite/zhifubao') {
|
||||
buttonUrl = "/me/yaoqing/zhifubao-tixain"
|
||||
}
|
||||
if (item.buttonUrl == '/me/choujiang/choujiang') {
|
||||
buttonUrl = "/me/VjgyqAzklr/VjgyqAzklr"
|
||||
}
|
||||
console.log(item, '调试1')
|
||||
if (item.jumpType == 0) {
|
||||
console.log("============", item.buttonTitle);
|
||||
|
||||
if (item.buttonTitle.indexOf("领取") != -1) {
|
||||
this.taskReceive(item.id)
|
||||
} else if (item.buttonTitle.indexOf("观看视频") != -1) {
|
||||
// 首次加载广告
|
||||
this.urlCallback = {
|
||||
userId: uni.getStorageSync('userId'),
|
||||
extra: uni.getStorageSync('userId') + "" + new Date().getTime(),
|
||||
}
|
||||
this.$refs.adRewardedVideo.show();
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/index'
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index2"
|
||||
})
|
||||
}
|
||||
} else if (item.jumpType == 1) {
|
||||
console.log("--------------");
|
||||
if (item.title && item.title.indexOf('每周') != -1) {
|
||||
source = 2
|
||||
buttonUrl = item.buttonUrl + '?source=' + source
|
||||
let source, buttonUrl;
|
||||
|
||||
buttonUrl = item.buttonUrl
|
||||
if (buttonUrl == '/me/invite/index') {
|
||||
buttonUrl = "/me/yaoqing/ymf-yaoqing-home"
|
||||
}
|
||||
if (item.title && item.title.indexOf('每月') != -1) {
|
||||
if (buttonUrl == '/me/invite/zhifubao') {
|
||||
buttonUrl = "/me/yaoqing/zhifubao-tixain"
|
||||
}
|
||||
if (buttonUrl == '/me/choujiang/choujiang') {
|
||||
buttonUrl = "/me/VjgyqAzklr/VjgyqAzklr"
|
||||
}
|
||||
console.log(buttonUrl, 'debug')
|
||||
if (item.title && item.title.indexOf('每周打卡奖励') != -1) {
|
||||
// source = 2
|
||||
buttonUrl = item.buttonUrl + '?source=2'
|
||||
}
|
||||
if (item.title && item.title.indexOf('每月打卡奖励1') != -1) {
|
||||
source = 3
|
||||
buttonUrl = item.buttonUrl + '?source=' + source
|
||||
}
|
||||
console.log(buttonUrl)
|
||||
uni.navigateTo({
|
||||
url: buttonUrl
|
||||
})
|
||||
if (item.title && item.title.indexOf('每月打卡奖励2') != -1) {
|
||||
buttonUrl =
|
||||
`${item.buttonUrl}?standard=${item.discNumber == null ? true : false}&taskId=${item.id}`
|
||||
}
|
||||
|
||||
console.log(buttonUrl, 'debug')
|
||||
if (buttonUrl == '/me/invite/index') {
|
||||
uni.navigateTo({
|
||||
url: '/me/yaoqing/ymf-yaoqing-home'
|
||||
})
|
||||
} else {
|
||||
|
||||
uni.navigateTo({
|
||||
url: buttonUrl
|
||||
})
|
||||
}
|
||||
|
||||
} else if (item.jumpType == 3) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/index'
|
||||
uni.switchTab({
|
||||
url: item.buttonUrl
|
||||
})
|
||||
} else if (item.jumpType == 2) {
|
||||
plus.runtime.openURL(buttonUrl)
|
||||
plus.runtime.openURL(item.buttonUrl)
|
||||
}
|
||||
|
||||
},
|
||||
@@ -339,7 +456,7 @@
|
||||
let data = {
|
||||
id: id
|
||||
}
|
||||
this.$Request.getT('app/taskCenter/taskReceive', data).then(res => {
|
||||
this.$Request.getT('/app/taskCenter/taskReceive', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.showToast({
|
||||
title: id == 15 ? '签到成功' : '领取成功',
|
||||
@@ -350,8 +467,8 @@
|
||||
this.getsignIn()
|
||||
}, 1000)
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/index'
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -362,9 +479,112 @@
|
||||
*/
|
||||
getTaskdata() {
|
||||
|
||||
this.$Request.getT('app/taskCenter/selectTaskCenter', {}).then(res => {
|
||||
this.$Request.getT('/app/taskCenter/selectTaskCenter', {}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.list = res.data
|
||||
if (!this.isShowMoneyPay) {
|
||||
let arrData = []
|
||||
res.data.forEach(ele => {
|
||||
if (ele.title.indexOf('分享奖励') == -1 && ele.title.indexOf('新人福利') == -1 &&
|
||||
ele.title.indexOf('观看视频奖励') == -1) {
|
||||
arrData.push(ele)
|
||||
}
|
||||
})
|
||||
arrData[0].detail='奖励666金币'
|
||||
arrData[1].detail='奖励1666金币'
|
||||
arrData[2].detail='奖励6666金币'
|
||||
arrData[3].detail='奖励8888金币'
|
||||
this.list = arrData
|
||||
|
||||
} else {
|
||||
this.list = res.data
|
||||
}
|
||||
} else {
|
||||
this.list = [{
|
||||
"id": 1,
|
||||
"title": "每日打卡奖励",
|
||||
"type": 2,
|
||||
"detail": "解锁3集视频即可领取",
|
||||
"rewardDetail": "奖励666金币",
|
||||
"number": 3,
|
||||
"buttonTitle": "",
|
||||
"jumpType": 1,
|
||||
"buttonUrl": "",
|
||||
"buttonUnderContent": "",
|
||||
"buttonUnderUrl": "",
|
||||
"updateTime": "2025-01-06 18:08:49",
|
||||
"sort": 0,
|
||||
"shows": 1,
|
||||
"discNumber": 0,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"title": "每周打卡奖励",
|
||||
"type": 2,
|
||||
"detail": "当月签到满7天即可免费领取",
|
||||
"rewardImg": "https://short-video.hnsiyao.cn/20241210/8aca569a9d544e819f542ce8aa7e7ce5.png",
|
||||
"rewardDetail": "",
|
||||
"number": 7,
|
||||
"buttonTitle": "立即领取",
|
||||
"buttonBgColor": "#EC6F48",
|
||||
"buttonFontColor": "#fff",
|
||||
"jumpType": 1,
|
||||
"buttonUrl": "/pages/task/receiveMember",
|
||||
"buttonUnderContent": "",
|
||||
"buttonUnderUrl": "/pages/task/receiveMember",
|
||||
"createTime": "2024-12-10 17:43:42",
|
||||
"updateTime": "2024-12-25 09:52:09",
|
||||
"sort": 5,
|
||||
"shows": 1,
|
||||
"discNumber": 0,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"title": "每月打卡奖励1",
|
||||
"type": 2,
|
||||
"detail": "当月签到满25天即可免费领取",
|
||||
"rewardImg": "https://short-video.hnsiyao.cn/20241210/8aca569a9d544e819f542ce8aa7e7ce5.png",
|
||||
"rewardDetail": "会员免费领",
|
||||
"number": 25,
|
||||
"buttonTitle": "立即领取",
|
||||
"buttonBgColor": "#EC6F48",
|
||||
"buttonFontColor": "#fff",
|
||||
"jumpType": 1,
|
||||
"buttonUrl": "/pages/task/receiveMember",
|
||||
"buttonUnderContent": "",
|
||||
"buttonUnderUrl": "/pages/task/receiveMember",
|
||||
"createTime": "2024-12-10 17:43:42",
|
||||
"updateTime": "2024-12-25 09:52:09",
|
||||
"sort": 5,
|
||||
"shows": 1,
|
||||
"discNumber": 0,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"title": "每月打卡奖励2",
|
||||
"type": 2,
|
||||
"detail": "当月签到满25天即可免费领取",
|
||||
"rewardImg": "https://short-video.hnsiyao.cn/20241210/8aca569a9d544e819f542ce8aa7e7ce5.png",
|
||||
"rewardDetail": "",
|
||||
"number": 25,
|
||||
"buttonTitle": "立即领取",
|
||||
"buttonBgColor": "#EC6F48",
|
||||
"buttonFontColor": "#fff",
|
||||
"jumpType": 1,
|
||||
"buttonUrl": "/pages/task/receiveMember",
|
||||
"buttonUnderContent": "",
|
||||
"buttonUnderUrl": "/pages/task/receiveMember",
|
||||
"createTime": "2024-12-10 17:43:42",
|
||||
"updateTime": "2024-12-25 09:52:09",
|
||||
"sort": 5,
|
||||
"shows": 1,
|
||||
"discNumber": 0,
|
||||
"disabled": false
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
uni.stopPullDownRefresh();
|
||||
})
|
||||
@@ -596,6 +816,7 @@
|
||||
font-weight: 400;
|
||||
font-size: 20rpx;
|
||||
color: #7F7F7F;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.signInBtn {
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
* 获取列表
|
||||
*/
|
||||
getList() {
|
||||
this.$Request.getT('app/discSpinning/selectDiscSpinning', {source:this.source}).then(res => {
|
||||
this.$Request.getT('/app/discSpinning/selectDiscSpinning', {source:this.source}).then(res => {
|
||||
if (res.code == 0 ) {
|
||||
this.list = res.data.records
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
* 获取列表
|
||||
*/
|
||||
getList() {
|
||||
this.$Request.getT('app/discSpinning/selectDiscSpinning', {source:this.source}).then(res => {
|
||||
this.$Request.getT('/app/discSpinning/selectDiscSpinning', {source:this.source}).then(res => {
|
||||
if (res.code == 0 ) {
|
||||
this.list = res.data.records
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@
|
||||
this.courseDetailsId = courseDetailsId
|
||||
if ( !this.playFlag ) {
|
||||
this.playFlag = true
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: courseDetailsId,
|
||||
type: 'start'
|
||||
@@ -229,7 +229,7 @@
|
||||
if (e.detail.currentTime > e.detail.duration*0.9) {
|
||||
if ( this.playFlag) {
|
||||
this.playFlag = false
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
@@ -392,7 +392,7 @@
|
||||
let data = {
|
||||
page: this.page,
|
||||
limit: this.limit,
|
||||
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '',
|
||||
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : '1',
|
||||
randomNum: this.randomNum
|
||||
};
|
||||
httpsRequest.getT('/app/course/selectCourseDetailsList', data).then(res => {
|
||||
|
||||
@@ -528,13 +528,13 @@
|
||||
if (e.detail.currentTime > e.detail.duration * 0.9) {
|
||||
if (this.playFlag) {
|
||||
this.playFlag = false
|
||||
this.$Request.getT('app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
}).then(res => {
|
||||
console.log('播放结束')
|
||||
})
|
||||
// this.$Request.getT('/app/course/viewCourse', {
|
||||
// courseId: this.courseId,
|
||||
// courseDetailsId: this.courseDetailsId,
|
||||
// type: 'end'
|
||||
// }).then(res => {
|
||||
// console.log('播放结束')
|
||||
// })
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -775,7 +775,7 @@
|
||||
classify: 3,
|
||||
type: 1
|
||||
}
|
||||
this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
|
||||
// this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
|
||||
},
|
||||
//swiper上下切换事件
|
||||
change(e) {
|
||||
@@ -916,14 +916,14 @@
|
||||
},
|
||||
//在播放时候的回调
|
||||
videoPlay(videoId) {
|
||||
this.$Request.getT('app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'start'
|
||||
}).then(res => {
|
||||
// this.$Request.getT('/app/course/viewCourse', {
|
||||
// courseId: this.courseId,
|
||||
// courseDetailsId: this.courseDetailsId,
|
||||
// type: 'start'
|
||||
// }).then(res => {
|
||||
this.playFlag = true
|
||||
console.log('播放开始')
|
||||
})
|
||||
// console.log('播放开始')
|
||||
// })
|
||||
},
|
||||
//监听视频播放完成
|
||||
ended() {
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
this.courseDetailsId = courseDetailsId
|
||||
if ( !this.playFlag ) {
|
||||
this.playFlag = true
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: courseDetailsId,
|
||||
type: 'start'
|
||||
@@ -225,7 +225,7 @@
|
||||
if (e.detail.currentTime > e.detail.duration*0.9) {
|
||||
if ( this.playFlag) {
|
||||
this.playFlag = false
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
|
||||
BIN
static/dwbimgs/money.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
static/dwbimgs/one.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
static/dwbimgs/renwubg.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
static/dwbimgs/sosuo.png
Normal file
|
After Width: | Height: | Size: 405 B |
BIN
static/dwbimgs/three.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
static/dwbimgs/two.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
static/dwbimgs/xing (1).png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
static/dwbimgs/xing (2).png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
static/gonggaobg.png
Normal file
|
After Width: | Height: | Size: 588 B |
BIN
static/indexbh.png
Normal file
|
After Width: | Height: | Size: 258 KiB |
BIN
static/logo.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
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()
|
||||
if (pages && pages.length > 0) {
|
||||
const firstPage = pages[0]
|
||||
if (pages.length == 1 && (!firstPage.route || firstPage.route != 'pages/index/index')) {
|
||||
if (pages.length == 1 && (!firstPage.route || firstPage.route != 'pages/index/index2')) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
} else {
|
||||
uni.navigateBack({
|
||||
@@ -262,7 +262,7 @@
|
||||
}
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
42
uni_modules/uni-icons/changelog.md
Normal file
@@ -0,0 +1,42 @@
|
||||
## 2.0.10(2024-06-07)
|
||||
- 优化 uni-app x 中,size 属性的类型
|
||||
## 2.0.9(2024-01-12)
|
||||
fix: 修复图标大小默认值错误的问题
|
||||
## 2.0.8(2023-12-14)
|
||||
- 修复 项目未使用 ts 情况下,打包报错的bug
|
||||
## 2.0.7(2023-12-14)
|
||||
- 修复 size 属性为 string 时,不加单位导致尺寸异常的bug
|
||||
## 2.0.6(2023-12-11)
|
||||
- 优化 兼容老版本icon类型,如 top ,bottom 等
|
||||
## 2.0.5(2023-12-11)
|
||||
- 优化 兼容老版本icon类型,如 top ,bottom 等
|
||||
## 2.0.4(2023-12-06)
|
||||
- 优化 uni-app x 下示例项目图标排序
|
||||
## 2.0.3(2023-12-06)
|
||||
- 修复 nvue下引入组件报错的bug
|
||||
## 2.0.2(2023-12-05)
|
||||
-优化 size 属性支持单位
|
||||
## 2.0.1(2023-12-05)
|
||||
- 新增 uni-app x 支持定义图标
|
||||
## 1.3.5(2022-01-24)
|
||||
- 优化 size 属性可以传入不带单位的字符串数值
|
||||
## 1.3.4(2022-01-24)
|
||||
- 优化 size 支持其他单位
|
||||
## 1.3.3(2022-01-17)
|
||||
- 修复 nvue 有些图标不显示的bug,兼容老版本图标
|
||||
## 1.3.2(2021-12-01)
|
||||
- 优化 示例可复制图标名称
|
||||
## 1.3.1(2021-11-23)
|
||||
- 优化 兼容旧组件 type 值
|
||||
## 1.3.0(2021-11-19)
|
||||
- 新增 更多图标
|
||||
- 优化 自定义图标使用方式
|
||||
- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
|
||||
- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-icons](https://uniapp.dcloud.io/component/uniui/uni-icons)
|
||||
## 1.1.7(2021-11-08)
|
||||
## 1.2.0(2021-07-30)
|
||||
- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834)
|
||||
## 1.1.5(2021-05-12)
|
||||
- 新增 组件示例地址
|
||||
## 1.1.4(2021-02-05)
|
||||
- 调整为uni_modules目录规范
|
||||
91
uni_modules/uni-icons/components/uni-icons/uni-icons.uvue
Normal file
@@ -0,0 +1,91 @@
|
||||
<template>
|
||||
<text class="uni-icons" :style="styleObj">
|
||||
<slot>{{unicode}}</slot>
|
||||
</text>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { fontData, IconsDataItem } from './uniicons_file'
|
||||
|
||||
/**
|
||||
* Icons 图标
|
||||
* @description 用于展示 icon 图标
|
||||
* @tutorial https://ext.dcloud.net.cn/plugin?id=28
|
||||
* @property {Number,String} size 图标大小
|
||||
* @property {String} type 图标图案,参考示例
|
||||
* @property {String} color 图标颜色
|
||||
* @property {String} customPrefix 自定义图标
|
||||
* @event {Function} click 点击 Icon 触发事件
|
||||
*/
|
||||
export default {
|
||||
name: "uni-icons",
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
default: '#333333'
|
||||
},
|
||||
size: {
|
||||
type: [Number, String],
|
||||
default: 16
|
||||
},
|
||||
fontFamily: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
computed: {
|
||||
unicode() : string {
|
||||
let codes = fontData.find((item : IconsDataItem) : boolean => { return item.font_class == this.type })
|
||||
if (codes !== null) {
|
||||
return codes.unicode
|
||||
}
|
||||
return ''
|
||||
},
|
||||
iconSize() : string {
|
||||
const size = this.size
|
||||
if (typeof size == 'string') {
|
||||
const reg = /^[0-9]*$/g
|
||||
return reg.test(size as string) ? '' + size + 'px' : '' + size;
|
||||
// return '' + this.size
|
||||
}
|
||||
return this.getFontSize(size as number)
|
||||
},
|
||||
styleObj() : UTSJSONObject {
|
||||
if (this.fontFamily !== '') {
|
||||
return { color: this.color, fontSize: this.iconSize, fontFamily: this.fontFamily }
|
||||
}
|
||||
return { color: this.color, fontSize: this.iconSize }
|
||||
}
|
||||
},
|
||||
created() { },
|
||||
methods: {
|
||||
/**
|
||||
* 字体大小
|
||||
*/
|
||||
getFontSize(size : number) : string {
|
||||
return size + 'px';
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@font-face {
|
||||
font-family: UniIconsFontFamily;
|
||||
src: url('./uniicons.ttf');
|
||||
}
|
||||
|
||||
.uni-icons {
|
||||
font-family: UniIconsFontFamily;
|
||||
font-size: 18px;
|
||||
font-style: normal;
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
110
uni_modules/uni-icons/components/uni-icons/uni-icons.vue
Normal file
@@ -0,0 +1,110 @@
|
||||
<template>
|
||||
<!-- #ifdef APP-NVUE -->
|
||||
<text :style="styleObj" class="uni-icons" @click="_onClick">{{unicode}}</text>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef APP-NVUE -->
|
||||
<text :style="styleObj" class="uni-icons" :class="['uniui-'+type,customPrefix,customPrefix?type:'']" @click="_onClick">
|
||||
<slot></slot>
|
||||
</text>
|
||||
<!-- #endif -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { fontData } from './uniicons_file_vue.js';
|
||||
|
||||
const getVal = (val) => {
|
||||
const reg = /^[0-9]*$/g
|
||||
return (typeof val === 'number' || reg.test(val)) ? val + 'px' : val;
|
||||
}
|
||||
|
||||
// #ifdef APP-NVUE
|
||||
var domModule = weex.requireModule('dom');
|
||||
import iconUrl from './uniicons.ttf'
|
||||
domModule.addRule('fontFace', {
|
||||
'fontFamily': "uniicons",
|
||||
'src': "url('" + iconUrl + "')"
|
||||
});
|
||||
// #endif
|
||||
|
||||
/**
|
||||
* Icons 图标
|
||||
* @description 用于展示 icons 图标
|
||||
* @tutorial https://ext.dcloud.net.cn/plugin?id=28
|
||||
* @property {Number} size 图标大小
|
||||
* @property {String} type 图标图案,参考示例
|
||||
* @property {String} color 图标颜色
|
||||
* @property {String} customPrefix 自定义图标
|
||||
* @event {Function} click 点击 Icon 触发事件
|
||||
*/
|
||||
export default {
|
||||
name: 'UniIcons',
|
||||
emits: ['click'],
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
default: '#333333'
|
||||
},
|
||||
size: {
|
||||
type: [Number, String],
|
||||
default: 16
|
||||
},
|
||||
customPrefix: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
fontFamily: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
icons: fontData
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
unicode() {
|
||||
let code = this.icons.find(v => v.font_class === this.type)
|
||||
if (code) {
|
||||
return code.unicode
|
||||
}
|
||||
return ''
|
||||
},
|
||||
iconSize() {
|
||||
return getVal(this.size)
|
||||
},
|
||||
styleObj() {
|
||||
if (this.fontFamily !== '') {
|
||||
return `color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`
|
||||
}
|
||||
return `color: ${this.color}; font-size: ${this.iconSize};`
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
_onClick() {
|
||||
this.$emit('click')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
/* #ifndef APP-NVUE */
|
||||
@import './uniicons.css';
|
||||
|
||||
@font-face {
|
||||
font-family: uniicons;
|
||||
src: url('./uniicons.ttf');
|
||||
}
|
||||
|
||||
/* #endif */
|
||||
.uni-icons {
|
||||
font-family: uniicons;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
664
uni_modules/uni-icons/components/uni-icons/uniicons.css
Normal file
@@ -0,0 +1,664 @@
|
||||
|
||||
.uniui-cart-filled:before {
|
||||
content: "\e6d0";
|
||||
}
|
||||
|
||||
.uniui-gift-filled:before {
|
||||
content: "\e6c4";
|
||||
}
|
||||
|
||||
.uniui-color:before {
|
||||
content: "\e6cf";
|
||||
}
|
||||
|
||||
.uniui-wallet:before {
|
||||
content: "\e6b1";
|
||||
}
|
||||
|
||||
.uniui-settings-filled:before {
|
||||
content: "\e6ce";
|
||||
}
|
||||
|
||||
.uniui-auth-filled:before {
|
||||
content: "\e6cc";
|
||||
}
|
||||
|
||||
.uniui-shop-filled:before {
|
||||
content: "\e6cd";
|
||||
}
|
||||
|
||||
.uniui-staff-filled:before {
|
||||
content: "\e6cb";
|
||||
}
|
||||
|
||||
.uniui-vip-filled:before {
|
||||
content: "\e6c6";
|
||||
}
|
||||
|
||||
.uniui-plus-filled:before {
|
||||
content: "\e6c7";
|
||||
}
|
||||
|
||||
.uniui-folder-add-filled:before {
|
||||
content: "\e6c8";
|
||||
}
|
||||
|
||||
.uniui-color-filled:before {
|
||||
content: "\e6c9";
|
||||
}
|
||||
|
||||
.uniui-tune-filled:before {
|
||||
content: "\e6ca";
|
||||
}
|
||||
|
||||
.uniui-calendar-filled:before {
|
||||
content: "\e6c0";
|
||||
}
|
||||
|
||||
.uniui-notification-filled:before {
|
||||
content: "\e6c1";
|
||||
}
|
||||
|
||||
.uniui-wallet-filled:before {
|
||||
content: "\e6c2";
|
||||
}
|
||||
|
||||
.uniui-medal-filled:before {
|
||||
content: "\e6c3";
|
||||
}
|
||||
|
||||
.uniui-fire-filled:before {
|
||||
content: "\e6c5";
|
||||
}
|
||||
|
||||
.uniui-refreshempty:before {
|
||||
content: "\e6bf";
|
||||
}
|
||||
|
||||
.uniui-location-filled:before {
|
||||
content: "\e6af";
|
||||
}
|
||||
|
||||
.uniui-person-filled:before {
|
||||
content: "\e69d";
|
||||
}
|
||||
|
||||
.uniui-personadd-filled:before {
|
||||
content: "\e698";
|
||||
}
|
||||
|
||||
.uniui-arrowthinleft:before {
|
||||
content: "\e6d2";
|
||||
}
|
||||
|
||||
.uniui-arrowthinup:before {
|
||||
content: "\e6d3";
|
||||
}
|
||||
|
||||
.uniui-arrowthindown:before {
|
||||
content: "\e6d4";
|
||||
}
|
||||
|
||||
.uniui-back:before {
|
||||
content: "\e6b9";
|
||||
}
|
||||
|
||||
.uniui-forward:before {
|
||||
content: "\e6ba";
|
||||
}
|
||||
|
||||
.uniui-arrow-right:before {
|
||||
content: "\e6bb";
|
||||
}
|
||||
|
||||
.uniui-arrow-left:before {
|
||||
content: "\e6bc";
|
||||
}
|
||||
|
||||
.uniui-arrow-up:before {
|
||||
content: "\e6bd";
|
||||
}
|
||||
|
||||
.uniui-arrow-down:before {
|
||||
content: "\e6be";
|
||||
}
|
||||
|
||||
.uniui-arrowthinright:before {
|
||||
content: "\e6d1";
|
||||
}
|
||||
|
||||
.uniui-down:before {
|
||||
content: "\e6b8";
|
||||
}
|
||||
|
||||
.uniui-bottom:before {
|
||||
content: "\e6b8";
|
||||
}
|
||||
|
||||
.uniui-arrowright:before {
|
||||
content: "\e6d5";
|
||||
}
|
||||
|
||||
.uniui-right:before {
|
||||
content: "\e6b5";
|
||||
}
|
||||
|
||||
.uniui-up:before {
|
||||
content: "\e6b6";
|
||||
}
|
||||
|
||||
.uniui-top:before {
|
||||
content: "\e6b6";
|
||||
}
|
||||
|
||||
.uniui-left:before {
|
||||
content: "\e6b7";
|
||||
}
|
||||
|
||||
.uniui-arrowup:before {
|
||||
content: "\e6d6";
|
||||
}
|
||||
|
||||
.uniui-eye:before {
|
||||
content: "\e651";
|
||||
}
|
||||
|
||||
.uniui-eye-filled:before {
|
||||
content: "\e66a";
|
||||
}
|
||||
|
||||
.uniui-eye-slash:before {
|
||||
content: "\e6b3";
|
||||
}
|
||||
|
||||
.uniui-eye-slash-filled:before {
|
||||
content: "\e6b4";
|
||||
}
|
||||
|
||||
.uniui-info-filled:before {
|
||||
content: "\e649";
|
||||
}
|
||||
|
||||
.uniui-reload:before {
|
||||
content: "\e6b2";
|
||||
}
|
||||
|
||||
.uniui-micoff-filled:before {
|
||||
content: "\e6b0";
|
||||
}
|
||||
|
||||
.uniui-map-pin-ellipse:before {
|
||||
content: "\e6ac";
|
||||
}
|
||||
|
||||
.uniui-map-pin:before {
|
||||
content: "\e6ad";
|
||||
}
|
||||
|
||||
.uniui-location:before {
|
||||
content: "\e6ae";
|
||||
}
|
||||
|
||||
.uniui-starhalf:before {
|
||||
content: "\e683";
|
||||
}
|
||||
|
||||
.uniui-star:before {
|
||||
content: "\e688";
|
||||
}
|
||||
|
||||
.uniui-star-filled:before {
|
||||
content: "\e68f";
|
||||
}
|
||||
|
||||
.uniui-calendar:before {
|
||||
content: "\e6a0";
|
||||
}
|
||||
|
||||
.uniui-fire:before {
|
||||
content: "\e6a1";
|
||||
}
|
||||
|
||||
.uniui-medal:before {
|
||||
content: "\e6a2";
|
||||
}
|
||||
|
||||
.uniui-font:before {
|
||||
content: "\e6a3";
|
||||
}
|
||||
|
||||
.uniui-gift:before {
|
||||
content: "\e6a4";
|
||||
}
|
||||
|
||||
.uniui-link:before {
|
||||
content: "\e6a5";
|
||||
}
|
||||
|
||||
.uniui-notification:before {
|
||||
content: "\e6a6";
|
||||
}
|
||||
|
||||
.uniui-staff:before {
|
||||
content: "\e6a7";
|
||||
}
|
||||
|
||||
.uniui-vip:before {
|
||||
content: "\e6a8";
|
||||
}
|
||||
|
||||
.uniui-folder-add:before {
|
||||
content: "\e6a9";
|
||||
}
|
||||
|
||||
.uniui-tune:before {
|
||||
content: "\e6aa";
|
||||
}
|
||||
|
||||
.uniui-auth:before {
|
||||
content: "\e6ab";
|
||||
}
|
||||
|
||||
.uniui-person:before {
|
||||
content: "\e699";
|
||||
}
|
||||
|
||||
.uniui-email-filled:before {
|
||||
content: "\e69a";
|
||||
}
|
||||
|
||||
.uniui-phone-filled:before {
|
||||
content: "\e69b";
|
||||
}
|
||||
|
||||
.uniui-phone:before {
|
||||
content: "\e69c";
|
||||
}
|
||||
|
||||
.uniui-email:before {
|
||||
content: "\e69e";
|
||||
}
|
||||
|
||||
.uniui-personadd:before {
|
||||
content: "\e69f";
|
||||
}
|
||||
|
||||
.uniui-chatboxes-filled:before {
|
||||
content: "\e692";
|
||||
}
|
||||
|
||||
.uniui-contact:before {
|
||||
content: "\e693";
|
||||
}
|
||||
|
||||
.uniui-chatbubble-filled:before {
|
||||
content: "\e694";
|
||||
}
|
||||
|
||||
.uniui-contact-filled:before {
|
||||
content: "\e695";
|
||||
}
|
||||
|
||||
.uniui-chatboxes:before {
|
||||
content: "\e696";
|
||||
}
|
||||
|
||||
.uniui-chatbubble:before {
|
||||
content: "\e697";
|
||||
}
|
||||
|
||||
.uniui-upload-filled:before {
|
||||
content: "\e68e";
|
||||
}
|
||||
|
||||
.uniui-upload:before {
|
||||
content: "\e690";
|
||||
}
|
||||
|
||||
.uniui-weixin:before {
|
||||
content: "\e691";
|
||||
}
|
||||
|
||||
.uniui-compose:before {
|
||||
content: "\e67f";
|
||||
}
|
||||
|
||||
.uniui-qq:before {
|
||||
content: "\e680";
|
||||
}
|
||||
|
||||
.uniui-download-filled:before {
|
||||
content: "\e681";
|
||||
}
|
||||
|
||||
.uniui-pyq:before {
|
||||
content: "\e682";
|
||||
}
|
||||
|
||||
.uniui-sound:before {
|
||||
content: "\e684";
|
||||
}
|
||||
|
||||
.uniui-trash-filled:before {
|
||||
content: "\e685";
|
||||
}
|
||||
|
||||
.uniui-sound-filled:before {
|
||||
content: "\e686";
|
||||
}
|
||||
|
||||
.uniui-trash:before {
|
||||
content: "\e687";
|
||||
}
|
||||
|
||||
.uniui-videocam-filled:before {
|
||||
content: "\e689";
|
||||
}
|
||||
|
||||
.uniui-spinner-cycle:before {
|
||||
content: "\e68a";
|
||||
}
|
||||
|
||||
.uniui-weibo:before {
|
||||
content: "\e68b";
|
||||
}
|
||||
|
||||
.uniui-videocam:before {
|
||||
content: "\e68c";
|
||||
}
|
||||
|
||||
.uniui-download:before {
|
||||
content: "\e68d";
|
||||
}
|
||||
|
||||
.uniui-help:before {
|
||||
content: "\e679";
|
||||
}
|
||||
|
||||
.uniui-navigate-filled:before {
|
||||
content: "\e67a";
|
||||
}
|
||||
|
||||
.uniui-plusempty:before {
|
||||
content: "\e67b";
|
||||
}
|
||||
|
||||
.uniui-smallcircle:before {
|
||||
content: "\e67c";
|
||||
}
|
||||
|
||||
.uniui-minus-filled:before {
|
||||
content: "\e67d";
|
||||
}
|
||||
|
||||
.uniui-micoff:before {
|
||||
content: "\e67e";
|
||||
}
|
||||
|
||||
.uniui-closeempty:before {
|
||||
content: "\e66c";
|
||||
}
|
||||
|
||||
.uniui-clear:before {
|
||||
content: "\e66d";
|
||||
}
|
||||
|
||||
.uniui-navigate:before {
|
||||
content: "\e66e";
|
||||
}
|
||||
|
||||
.uniui-minus:before {
|
||||
content: "\e66f";
|
||||
}
|
||||
|
||||
.uniui-image:before {
|
||||
content: "\e670";
|
||||
}
|
||||
|
||||
.uniui-mic:before {
|
||||
content: "\e671";
|
||||
}
|
||||
|
||||
.uniui-paperplane:before {
|
||||
content: "\e672";
|
||||
}
|
||||
|
||||
.uniui-close:before {
|
||||
content: "\e673";
|
||||
}
|
||||
|
||||
.uniui-help-filled:before {
|
||||
content: "\e674";
|
||||
}
|
||||
|
||||
.uniui-paperplane-filled:before {
|
||||
content: "\e675";
|
||||
}
|
||||
|
||||
.uniui-plus:before {
|
||||
content: "\e676";
|
||||
}
|
||||
|
||||
.uniui-mic-filled:before {
|
||||
content: "\e677";
|
||||
}
|
||||
|
||||
.uniui-image-filled:before {
|
||||
content: "\e678";
|
||||
}
|
||||
|
||||
.uniui-locked-filled:before {
|
||||
content: "\e668";
|
||||
}
|
||||
|
||||
.uniui-info:before {
|
||||
content: "\e669";
|
||||
}
|
||||
|
||||
.uniui-locked:before {
|
||||
content: "\e66b";
|
||||
}
|
||||
|
||||
.uniui-camera-filled:before {
|
||||
content: "\e658";
|
||||
}
|
||||
|
||||
.uniui-chat-filled:before {
|
||||
content: "\e659";
|
||||
}
|
||||
|
||||
.uniui-camera:before {
|
||||
content: "\e65a";
|
||||
}
|
||||
|
||||
.uniui-circle:before {
|
||||
content: "\e65b";
|
||||
}
|
||||
|
||||
.uniui-checkmarkempty:before {
|
||||
content: "\e65c";
|
||||
}
|
||||
|
||||
.uniui-chat:before {
|
||||
content: "\e65d";
|
||||
}
|
||||
|
||||
.uniui-circle-filled:before {
|
||||
content: "\e65e";
|
||||
}
|
||||
|
||||
.uniui-flag:before {
|
||||
content: "\e65f";
|
||||
}
|
||||
|
||||
.uniui-flag-filled:before {
|
||||
content: "\e660";
|
||||
}
|
||||
|
||||
.uniui-gear-filled:before {
|
||||
content: "\e661";
|
||||
}
|
||||
|
||||
.uniui-home:before {
|
||||
content: "\e662";
|
||||
}
|
||||
|
||||
.uniui-home-filled:before {
|
||||
content: "\e663";
|
||||
}
|
||||
|
||||
.uniui-gear:before {
|
||||
content: "\e664";
|
||||
}
|
||||
|
||||
.uniui-smallcircle-filled:before {
|
||||
content: "\e665";
|
||||
}
|
||||
|
||||
.uniui-map-filled:before {
|
||||
content: "\e666";
|
||||
}
|
||||
|
||||
.uniui-map:before {
|
||||
content: "\e667";
|
||||
}
|
||||
|
||||
.uniui-refresh-filled:before {
|
||||
content: "\e656";
|
||||
}
|
||||
|
||||
.uniui-refresh:before {
|
||||
content: "\e657";
|
||||
}
|
||||
|
||||
.uniui-cloud-upload:before {
|
||||
content: "\e645";
|
||||
}
|
||||
|
||||
.uniui-cloud-download-filled:before {
|
||||
content: "\e646";
|
||||
}
|
||||
|
||||
.uniui-cloud-download:before {
|
||||
content: "\e647";
|
||||
}
|
||||
|
||||
.uniui-cloud-upload-filled:before {
|
||||
content: "\e648";
|
||||
}
|
||||
|
||||
.uniui-redo:before {
|
||||
content: "\e64a";
|
||||
}
|
||||
|
||||
.uniui-images-filled:before {
|
||||
content: "\e64b";
|
||||
}
|
||||
|
||||
.uniui-undo-filled:before {
|
||||
content: "\e64c";
|
||||
}
|
||||
|
||||
.uniui-more:before {
|
||||
content: "\e64d";
|
||||
}
|
||||
|
||||
.uniui-more-filled:before {
|
||||
content: "\e64e";
|
||||
}
|
||||
|
||||
.uniui-undo:before {
|
||||
content: "\e64f";
|
||||
}
|
||||
|
||||
.uniui-images:before {
|
||||
content: "\e650";
|
||||
}
|
||||
|
||||
.uniui-paperclip:before {
|
||||
content: "\e652";
|
||||
}
|
||||
|
||||
.uniui-settings:before {
|
||||
content: "\e653";
|
||||
}
|
||||
|
||||
.uniui-search:before {
|
||||
content: "\e654";
|
||||
}
|
||||
|
||||
.uniui-redo-filled:before {
|
||||
content: "\e655";
|
||||
}
|
||||
|
||||
.uniui-list:before {
|
||||
content: "\e644";
|
||||
}
|
||||
|
||||
.uniui-mail-open-filled:before {
|
||||
content: "\e63a";
|
||||
}
|
||||
|
||||
.uniui-hand-down-filled:before {
|
||||
content: "\e63c";
|
||||
}
|
||||
|
||||
.uniui-hand-down:before {
|
||||
content: "\e63d";
|
||||
}
|
||||
|
||||
.uniui-hand-up-filled:before {
|
||||
content: "\e63e";
|
||||
}
|
||||
|
||||
.uniui-hand-up:before {
|
||||
content: "\e63f";
|
||||
}
|
||||
|
||||
.uniui-heart-filled:before {
|
||||
content: "\e641";
|
||||
}
|
||||
|
||||
.uniui-mail-open:before {
|
||||
content: "\e643";
|
||||
}
|
||||
|
||||
.uniui-heart:before {
|
||||
content: "\e639";
|
||||
}
|
||||
|
||||
.uniui-loop:before {
|
||||
content: "\e633";
|
||||
}
|
||||
|
||||
.uniui-pulldown:before {
|
||||
content: "\e632";
|
||||
}
|
||||
|
||||
.uniui-scan:before {
|
||||
content: "\e62a";
|
||||
}
|
||||
|
||||
.uniui-bars:before {
|
||||
content: "\e627";
|
||||
}
|
||||
|
||||
.uniui-checkbox:before {
|
||||
content: "\e62b";
|
||||
}
|
||||
|
||||
.uniui-checkbox-filled:before {
|
||||
content: "\e62c";
|
||||
}
|
||||
|
||||
.uniui-shop:before {
|
||||
content: "\e62f";
|
||||
}
|
||||
|
||||
.uniui-headphones:before {
|
||||
content: "\e630";
|
||||
}
|
||||
|
||||
.uniui-cart:before {
|
||||
content: "\e631";
|
||||
}
|
||||
BIN
uni_modules/uni-icons/components/uni-icons/uniicons.ttf
Normal file
664
uni_modules/uni-icons/components/uni-icons/uniicons_file.ts
Normal file
@@ -0,0 +1,664 @@
|
||||
|
||||
export type IconsData = {
|
||||
id : string
|
||||
name : string
|
||||
font_family : string
|
||||
css_prefix_text : string
|
||||
description : string
|
||||
glyphs : Array<IconsDataItem>
|
||||
}
|
||||
|
||||
export type IconsDataItem = {
|
||||
font_class : string
|
||||
unicode : string
|
||||
}
|
||||
|
||||
|
||||
export const fontData = [
|
||||
{
|
||||
"font_class": "arrow-down",
|
||||
"unicode": "\ue6be"
|
||||
},
|
||||
{
|
||||
"font_class": "arrow-left",
|
||||
"unicode": "\ue6bc"
|
||||
},
|
||||
{
|
||||
"font_class": "arrow-right",
|
||||
"unicode": "\ue6bb"
|
||||
},
|
||||
{
|
||||
"font_class": "arrow-up",
|
||||
"unicode": "\ue6bd"
|
||||
},
|
||||
{
|
||||
"font_class": "auth",
|
||||
"unicode": "\ue6ab"
|
||||
},
|
||||
{
|
||||
"font_class": "auth-filled",
|
||||
"unicode": "\ue6cc"
|
||||
},
|
||||
{
|
||||
"font_class": "back",
|
||||
"unicode": "\ue6b9"
|
||||
},
|
||||
{
|
||||
"font_class": "bars",
|
||||
"unicode": "\ue627"
|
||||
},
|
||||
{
|
||||
"font_class": "calendar",
|
||||
"unicode": "\ue6a0"
|
||||
},
|
||||
{
|
||||
"font_class": "calendar-filled",
|
||||
"unicode": "\ue6c0"
|
||||
},
|
||||
{
|
||||
"font_class": "camera",
|
||||
"unicode": "\ue65a"
|
||||
},
|
||||
{
|
||||
"font_class": "camera-filled",
|
||||
"unicode": "\ue658"
|
||||
},
|
||||
{
|
||||
"font_class": "cart",
|
||||
"unicode": "\ue631"
|
||||
},
|
||||
{
|
||||
"font_class": "cart-filled",
|
||||
"unicode": "\ue6d0"
|
||||
},
|
||||
{
|
||||
"font_class": "chat",
|
||||
"unicode": "\ue65d"
|
||||
},
|
||||
{
|
||||
"font_class": "chat-filled",
|
||||
"unicode": "\ue659"
|
||||
},
|
||||
{
|
||||
"font_class": "chatboxes",
|
||||
"unicode": "\ue696"
|
||||
},
|
||||
{
|
||||
"font_class": "chatboxes-filled",
|
||||
"unicode": "\ue692"
|
||||
},
|
||||
{
|
||||
"font_class": "chatbubble",
|
||||
"unicode": "\ue697"
|
||||
},
|
||||
{
|
||||
"font_class": "chatbubble-filled",
|
||||
"unicode": "\ue694"
|
||||
},
|
||||
{
|
||||
"font_class": "checkbox",
|
||||
"unicode": "\ue62b"
|
||||
},
|
||||
{
|
||||
"font_class": "checkbox-filled",
|
||||
"unicode": "\ue62c"
|
||||
},
|
||||
{
|
||||
"font_class": "checkmarkempty",
|
||||
"unicode": "\ue65c"
|
||||
},
|
||||
{
|
||||
"font_class": "circle",
|
||||
"unicode": "\ue65b"
|
||||
},
|
||||
{
|
||||
"font_class": "circle-filled",
|
||||
"unicode": "\ue65e"
|
||||
},
|
||||
{
|
||||
"font_class": "clear",
|
||||
"unicode": "\ue66d"
|
||||
},
|
||||
{
|
||||
"font_class": "close",
|
||||
"unicode": "\ue673"
|
||||
},
|
||||
{
|
||||
"font_class": "closeempty",
|
||||
"unicode": "\ue66c"
|
||||
},
|
||||
{
|
||||
"font_class": "cloud-download",
|
||||
"unicode": "\ue647"
|
||||
},
|
||||
{
|
||||
"font_class": "cloud-download-filled",
|
||||
"unicode": "\ue646"
|
||||
},
|
||||
{
|
||||
"font_class": "cloud-upload",
|
||||
"unicode": "\ue645"
|
||||
},
|
||||
{
|
||||
"font_class": "cloud-upload-filled",
|
||||
"unicode": "\ue648"
|
||||
},
|
||||
{
|
||||
"font_class": "color",
|
||||
"unicode": "\ue6cf"
|
||||
},
|
||||
{
|
||||
"font_class": "color-filled",
|
||||
"unicode": "\ue6c9"
|
||||
},
|
||||
{
|
||||
"font_class": "compose",
|
||||
"unicode": "\ue67f"
|
||||
},
|
||||
{
|
||||
"font_class": "contact",
|
||||
"unicode": "\ue693"
|
||||
},
|
||||
{
|
||||
"font_class": "contact-filled",
|
||||
"unicode": "\ue695"
|
||||
},
|
||||
{
|
||||
"font_class": "down",
|
||||
"unicode": "\ue6b8"
|
||||
},
|
||||
{
|
||||
"font_class": "bottom",
|
||||
"unicode": "\ue6b8"
|
||||
},
|
||||
{
|
||||
"font_class": "download",
|
||||
"unicode": "\ue68d"
|
||||
},
|
||||
{
|
||||
"font_class": "download-filled",
|
||||
"unicode": "\ue681"
|
||||
},
|
||||
{
|
||||
"font_class": "email",
|
||||
"unicode": "\ue69e"
|
||||
},
|
||||
{
|
||||
"font_class": "email-filled",
|
||||
"unicode": "\ue69a"
|
||||
},
|
||||
{
|
||||
"font_class": "eye",
|
||||
"unicode": "\ue651"
|
||||
},
|
||||
{
|
||||
"font_class": "eye-filled",
|
||||
"unicode": "\ue66a"
|
||||
},
|
||||
{
|
||||
"font_class": "eye-slash",
|
||||
"unicode": "\ue6b3"
|
||||
},
|
||||
{
|
||||
"font_class": "eye-slash-filled",
|
||||
"unicode": "\ue6b4"
|
||||
},
|
||||
{
|
||||
"font_class": "fire",
|
||||
"unicode": "\ue6a1"
|
||||
},
|
||||
{
|
||||
"font_class": "fire-filled",
|
||||
"unicode": "\ue6c5"
|
||||
},
|
||||
{
|
||||
"font_class": "flag",
|
||||
"unicode": "\ue65f"
|
||||
},
|
||||
{
|
||||
"font_class": "flag-filled",
|
||||
"unicode": "\ue660"
|
||||
},
|
||||
{
|
||||
"font_class": "folder-add",
|
||||
"unicode": "\ue6a9"
|
||||
},
|
||||
{
|
||||
"font_class": "folder-add-filled",
|
||||
"unicode": "\ue6c8"
|
||||
},
|
||||
{
|
||||
"font_class": "font",
|
||||
"unicode": "\ue6a3"
|
||||
},
|
||||
{
|
||||
"font_class": "forward",
|
||||
"unicode": "\ue6ba"
|
||||
},
|
||||
{
|
||||
"font_class": "gear",
|
||||
"unicode": "\ue664"
|
||||
},
|
||||
{
|
||||
"font_class": "gear-filled",
|
||||
"unicode": "\ue661"
|
||||
},
|
||||
{
|
||||
"font_class": "gift",
|
||||
"unicode": "\ue6a4"
|
||||
},
|
||||
{
|
||||
"font_class": "gift-filled",
|
||||
"unicode": "\ue6c4"
|
||||
},
|
||||
{
|
||||
"font_class": "hand-down",
|
||||
"unicode": "\ue63d"
|
||||
},
|
||||
{
|
||||
"font_class": "hand-down-filled",
|
||||
"unicode": "\ue63c"
|
||||
},
|
||||
{
|
||||
"font_class": "hand-up",
|
||||
"unicode": "\ue63f"
|
||||
},
|
||||
{
|
||||
"font_class": "hand-up-filled",
|
||||
"unicode": "\ue63e"
|
||||
},
|
||||
{
|
||||
"font_class": "headphones",
|
||||
"unicode": "\ue630"
|
||||
},
|
||||
{
|
||||
"font_class": "heart",
|
||||
"unicode": "\ue639"
|
||||
},
|
||||
{
|
||||
"font_class": "heart-filled",
|
||||
"unicode": "\ue641"
|
||||
},
|
||||
{
|
||||
"font_class": "help",
|
||||
"unicode": "\ue679"
|
||||
},
|
||||
{
|
||||
"font_class": "help-filled",
|
||||
"unicode": "\ue674"
|
||||
},
|
||||
{
|
||||
"font_class": "home",
|
||||
"unicode": "\ue662"
|
||||
},
|
||||
{
|
||||
"font_class": "home-filled",
|
||||
"unicode": "\ue663"
|
||||
},
|
||||
{
|
||||
"font_class": "image",
|
||||
"unicode": "\ue670"
|
||||
},
|
||||
{
|
||||
"font_class": "image-filled",
|
||||
"unicode": "\ue678"
|
||||
},
|
||||
{
|
||||
"font_class": "images",
|
||||
"unicode": "\ue650"
|
||||
},
|
||||
{
|
||||
"font_class": "images-filled",
|
||||
"unicode": "\ue64b"
|
||||
},
|
||||
{
|
||||
"font_class": "info",
|
||||
"unicode": "\ue669"
|
||||
},
|
||||
{
|
||||
"font_class": "info-filled",
|
||||
"unicode": "\ue649"
|
||||
},
|
||||
{
|
||||
"font_class": "left",
|
||||
"unicode": "\ue6b7"
|
||||
},
|
||||
{
|
||||
"font_class": "link",
|
||||
"unicode": "\ue6a5"
|
||||
},
|
||||
{
|
||||
"font_class": "list",
|
||||
"unicode": "\ue644"
|
||||
},
|
||||
{
|
||||
"font_class": "location",
|
||||
"unicode": "\ue6ae"
|
||||
},
|
||||
{
|
||||
"font_class": "location-filled",
|
||||
"unicode": "\ue6af"
|
||||
},
|
||||
{
|
||||
"font_class": "locked",
|
||||
"unicode": "\ue66b"
|
||||
},
|
||||
{
|
||||
"font_class": "locked-filled",
|
||||
"unicode": "\ue668"
|
||||
},
|
||||
{
|
||||
"font_class": "loop",
|
||||
"unicode": "\ue633"
|
||||
},
|
||||
{
|
||||
"font_class": "mail-open",
|
||||
"unicode": "\ue643"
|
||||
},
|
||||
{
|
||||
"font_class": "mail-open-filled",
|
||||
"unicode": "\ue63a"
|
||||
},
|
||||
{
|
||||
"font_class": "map",
|
||||
"unicode": "\ue667"
|
||||
},
|
||||
{
|
||||
"font_class": "map-filled",
|
||||
"unicode": "\ue666"
|
||||
},
|
||||
{
|
||||
"font_class": "map-pin",
|
||||
"unicode": "\ue6ad"
|
||||
},
|
||||
{
|
||||
"font_class": "map-pin-ellipse",
|
||||
"unicode": "\ue6ac"
|
||||
},
|
||||
{
|
||||
"font_class": "medal",
|
||||
"unicode": "\ue6a2"
|
||||
},
|
||||
{
|
||||
"font_class": "medal-filled",
|
||||
"unicode": "\ue6c3"
|
||||
},
|
||||
{
|
||||
"font_class": "mic",
|
||||
"unicode": "\ue671"
|
||||
},
|
||||
{
|
||||
"font_class": "mic-filled",
|
||||
"unicode": "\ue677"
|
||||
},
|
||||
{
|
||||
"font_class": "micoff",
|
||||
"unicode": "\ue67e"
|
||||
},
|
||||
{
|
||||
"font_class": "micoff-filled",
|
||||
"unicode": "\ue6b0"
|
||||
},
|
||||
{
|
||||
"font_class": "minus",
|
||||
"unicode": "\ue66f"
|
||||
},
|
||||
{
|
||||
"font_class": "minus-filled",
|
||||
"unicode": "\ue67d"
|
||||
},
|
||||
{
|
||||
"font_class": "more",
|
||||
"unicode": "\ue64d"
|
||||
},
|
||||
{
|
||||
"font_class": "more-filled",
|
||||
"unicode": "\ue64e"
|
||||
},
|
||||
{
|
||||
"font_class": "navigate",
|
||||
"unicode": "\ue66e"
|
||||
},
|
||||
{
|
||||
"font_class": "navigate-filled",
|
||||
"unicode": "\ue67a"
|
||||
},
|
||||
{
|
||||
"font_class": "notification",
|
||||
"unicode": "\ue6a6"
|
||||
},
|
||||
{
|
||||
"font_class": "notification-filled",
|
||||
"unicode": "\ue6c1"
|
||||
},
|
||||
{
|
||||
"font_class": "paperclip",
|
||||
"unicode": "\ue652"
|
||||
},
|
||||
{
|
||||
"font_class": "paperplane",
|
||||
"unicode": "\ue672"
|
||||
},
|
||||
{
|
||||
"font_class": "paperplane-filled",
|
||||
"unicode": "\ue675"
|
||||
},
|
||||
{
|
||||
"font_class": "person",
|
||||
"unicode": "\ue699"
|
||||
},
|
||||
{
|
||||
"font_class": "person-filled",
|
||||
"unicode": "\ue69d"
|
||||
},
|
||||
{
|
||||
"font_class": "personadd",
|
||||
"unicode": "\ue69f"
|
||||
},
|
||||
{
|
||||
"font_class": "personadd-filled",
|
||||
"unicode": "\ue698"
|
||||
},
|
||||
{
|
||||
"font_class": "personadd-filled-copy",
|
||||
"unicode": "\ue6d1"
|
||||
},
|
||||
{
|
||||
"font_class": "phone",
|
||||
"unicode": "\ue69c"
|
||||
},
|
||||
{
|
||||
"font_class": "phone-filled",
|
||||
"unicode": "\ue69b"
|
||||
},
|
||||
{
|
||||
"font_class": "plus",
|
||||
"unicode": "\ue676"
|
||||
},
|
||||
{
|
||||
"font_class": "plus-filled",
|
||||
"unicode": "\ue6c7"
|
||||
},
|
||||
{
|
||||
"font_class": "plusempty",
|
||||
"unicode": "\ue67b"
|
||||
},
|
||||
{
|
||||
"font_class": "pulldown",
|
||||
"unicode": "\ue632"
|
||||
},
|
||||
{
|
||||
"font_class": "pyq",
|
||||
"unicode": "\ue682"
|
||||
},
|
||||
{
|
||||
"font_class": "qq",
|
||||
"unicode": "\ue680"
|
||||
},
|
||||
{
|
||||
"font_class": "redo",
|
||||
"unicode": "\ue64a"
|
||||
},
|
||||
{
|
||||
"font_class": "redo-filled",
|
||||
"unicode": "\ue655"
|
||||
},
|
||||
{
|
||||
"font_class": "refresh",
|
||||
"unicode": "\ue657"
|
||||
},
|
||||
{
|
||||
"font_class": "refresh-filled",
|
||||
"unicode": "\ue656"
|
||||
},
|
||||
{
|
||||
"font_class": "refreshempty",
|
||||
"unicode": "\ue6bf"
|
||||
},
|
||||
{
|
||||
"font_class": "reload",
|
||||
"unicode": "\ue6b2"
|
||||
},
|
||||
{
|
||||
"font_class": "right",
|
||||
"unicode": "\ue6b5"
|
||||
},
|
||||
{
|
||||
"font_class": "scan",
|
||||
"unicode": "\ue62a"
|
||||
},
|
||||
{
|
||||
"font_class": "search",
|
||||
"unicode": "\ue654"
|
||||
},
|
||||
{
|
||||
"font_class": "settings",
|
||||
"unicode": "\ue653"
|
||||
},
|
||||
{
|
||||
"font_class": "settings-filled",
|
||||
"unicode": "\ue6ce"
|
||||
},
|
||||
{
|
||||
"font_class": "shop",
|
||||
"unicode": "\ue62f"
|
||||
},
|
||||
{
|
||||
"font_class": "shop-filled",
|
||||
"unicode": "\ue6cd"
|
||||
},
|
||||
{
|
||||
"font_class": "smallcircle",
|
||||
"unicode": "\ue67c"
|
||||
},
|
||||
{
|
||||
"font_class": "smallcircle-filled",
|
||||
"unicode": "\ue665"
|
||||
},
|
||||
{
|
||||
"font_class": "sound",
|
||||
"unicode": "\ue684"
|
||||
},
|
||||
{
|
||||
"font_class": "sound-filled",
|
||||
"unicode": "\ue686"
|
||||
},
|
||||
{
|
||||
"font_class": "spinner-cycle",
|
||||
"unicode": "\ue68a"
|
||||
},
|
||||
{
|
||||
"font_class": "staff",
|
||||
"unicode": "\ue6a7"
|
||||
},
|
||||
{
|
||||
"font_class": "staff-filled",
|
||||
"unicode": "\ue6cb"
|
||||
},
|
||||
{
|
||||
"font_class": "star",
|
||||
"unicode": "\ue688"
|
||||
},
|
||||
{
|
||||
"font_class": "star-filled",
|
||||
"unicode": "\ue68f"
|
||||
},
|
||||
{
|
||||
"font_class": "starhalf",
|
||||
"unicode": "\ue683"
|
||||
},
|
||||
{
|
||||
"font_class": "trash",
|
||||
"unicode": "\ue687"
|
||||
},
|
||||
{
|
||||
"font_class": "trash-filled",
|
||||
"unicode": "\ue685"
|
||||
},
|
||||
{
|
||||
"font_class": "tune",
|
||||
"unicode": "\ue6aa"
|
||||
},
|
||||
{
|
||||
"font_class": "tune-filled",
|
||||
"unicode": "\ue6ca"
|
||||
},
|
||||
{
|
||||
"font_class": "undo",
|
||||
"unicode": "\ue64f"
|
||||
},
|
||||
{
|
||||
"font_class": "undo-filled",
|
||||
"unicode": "\ue64c"
|
||||
},
|
||||
{
|
||||
"font_class": "up",
|
||||
"unicode": "\ue6b6"
|
||||
},
|
||||
{
|
||||
"font_class": "top",
|
||||
"unicode": "\ue6b6"
|
||||
},
|
||||
{
|
||||
"font_class": "upload",
|
||||
"unicode": "\ue690"
|
||||
},
|
||||
{
|
||||
"font_class": "upload-filled",
|
||||
"unicode": "\ue68e"
|
||||
},
|
||||
{
|
||||
"font_class": "videocam",
|
||||
"unicode": "\ue68c"
|
||||
},
|
||||
{
|
||||
"font_class": "videocam-filled",
|
||||
"unicode": "\ue689"
|
||||
},
|
||||
{
|
||||
"font_class": "vip",
|
||||
"unicode": "\ue6a8"
|
||||
},
|
||||
{
|
||||
"font_class": "vip-filled",
|
||||
"unicode": "\ue6c6"
|
||||
},
|
||||
{
|
||||
"font_class": "wallet",
|
||||
"unicode": "\ue6b1"
|
||||
},
|
||||
{
|
||||
"font_class": "wallet-filled",
|
||||
"unicode": "\ue6c2"
|
||||
},
|
||||
{
|
||||
"font_class": "weibo",
|
||||
"unicode": "\ue68b"
|
||||
},
|
||||
{
|
||||
"font_class": "weixin",
|
||||
"unicode": "\ue691"
|
||||
}
|
||||
] as IconsDataItem[]
|
||||
|
||||
// export const fontData = JSON.parse<IconsDataItem>(fontDataJson)
|
||||
649
uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js
Normal file
@@ -0,0 +1,649 @@
|
||||
|
||||
export const fontData = [
|
||||
{
|
||||
"font_class": "arrow-down",
|
||||
"unicode": "\ue6be"
|
||||
},
|
||||
{
|
||||
"font_class": "arrow-left",
|
||||
"unicode": "\ue6bc"
|
||||
},
|
||||
{
|
||||
"font_class": "arrow-right",
|
||||
"unicode": "\ue6bb"
|
||||
},
|
||||
{
|
||||
"font_class": "arrow-up",
|
||||
"unicode": "\ue6bd"
|
||||
},
|
||||
{
|
||||
"font_class": "auth",
|
||||
"unicode": "\ue6ab"
|
||||
},
|
||||
{
|
||||
"font_class": "auth-filled",
|
||||
"unicode": "\ue6cc"
|
||||
},
|
||||
{
|
||||
"font_class": "back",
|
||||
"unicode": "\ue6b9"
|
||||
},
|
||||
{
|
||||
"font_class": "bars",
|
||||
"unicode": "\ue627"
|
||||
},
|
||||
{
|
||||
"font_class": "calendar",
|
||||
"unicode": "\ue6a0"
|
||||
},
|
||||
{
|
||||
"font_class": "calendar-filled",
|
||||
"unicode": "\ue6c0"
|
||||
},
|
||||
{
|
||||
"font_class": "camera",
|
||||
"unicode": "\ue65a"
|
||||
},
|
||||
{
|
||||
"font_class": "camera-filled",
|
||||
"unicode": "\ue658"
|
||||
},
|
||||
{
|
||||
"font_class": "cart",
|
||||
"unicode": "\ue631"
|
||||
},
|
||||
{
|
||||
"font_class": "cart-filled",
|
||||
"unicode": "\ue6d0"
|
||||
},
|
||||
{
|
||||
"font_class": "chat",
|
||||
"unicode": "\ue65d"
|
||||
},
|
||||
{
|
||||
"font_class": "chat-filled",
|
||||
"unicode": "\ue659"
|
||||
},
|
||||
{
|
||||
"font_class": "chatboxes",
|
||||
"unicode": "\ue696"
|
||||
},
|
||||
{
|
||||
"font_class": "chatboxes-filled",
|
||||
"unicode": "\ue692"
|
||||
},
|
||||
{
|
||||
"font_class": "chatbubble",
|
||||
"unicode": "\ue697"
|
||||
},
|
||||
{
|
||||
"font_class": "chatbubble-filled",
|
||||
"unicode": "\ue694"
|
||||
},
|
||||
{
|
||||
"font_class": "checkbox",
|
||||
"unicode": "\ue62b"
|
||||
},
|
||||
{
|
||||
"font_class": "checkbox-filled",
|
||||
"unicode": "\ue62c"
|
||||
},
|
||||
{
|
||||
"font_class": "checkmarkempty",
|
||||
"unicode": "\ue65c"
|
||||
},
|
||||
{
|
||||
"font_class": "circle",
|
||||
"unicode": "\ue65b"
|
||||
},
|
||||
{
|
||||
"font_class": "circle-filled",
|
||||
"unicode": "\ue65e"
|
||||
},
|
||||
{
|
||||
"font_class": "clear",
|
||||
"unicode": "\ue66d"
|
||||
},
|
||||
{
|
||||
"font_class": "close",
|
||||
"unicode": "\ue673"
|
||||
},
|
||||
{
|
||||
"font_class": "closeempty",
|
||||
"unicode": "\ue66c"
|
||||
},
|
||||
{
|
||||
"font_class": "cloud-download",
|
||||
"unicode": "\ue647"
|
||||
},
|
||||
{
|
||||
"font_class": "cloud-download-filled",
|
||||
"unicode": "\ue646"
|
||||
},
|
||||
{
|
||||
"font_class": "cloud-upload",
|
||||
"unicode": "\ue645"
|
||||
},
|
||||
{
|
||||
"font_class": "cloud-upload-filled",
|
||||
"unicode": "\ue648"
|
||||
},
|
||||
{
|
||||
"font_class": "color",
|
||||
"unicode": "\ue6cf"
|
||||
},
|
||||
{
|
||||
"font_class": "color-filled",
|
||||
"unicode": "\ue6c9"
|
||||
},
|
||||
{
|
||||
"font_class": "compose",
|
||||
"unicode": "\ue67f"
|
||||
},
|
||||
{
|
||||
"font_class": "contact",
|
||||
"unicode": "\ue693"
|
||||
},
|
||||
{
|
||||
"font_class": "contact-filled",
|
||||
"unicode": "\ue695"
|
||||
},
|
||||
{
|
||||
"font_class": "down",
|
||||
"unicode": "\ue6b8"
|
||||
},
|
||||
{
|
||||
"font_class": "bottom",
|
||||
"unicode": "\ue6b8"
|
||||
},
|
||||
{
|
||||
"font_class": "download",
|
||||
"unicode": "\ue68d"
|
||||
},
|
||||
{
|
||||
"font_class": "download-filled",
|
||||
"unicode": "\ue681"
|
||||
},
|
||||
{
|
||||
"font_class": "email",
|
||||
"unicode": "\ue69e"
|
||||
},
|
||||
{
|
||||
"font_class": "email-filled",
|
||||
"unicode": "\ue69a"
|
||||
},
|
||||
{
|
||||
"font_class": "eye",
|
||||
"unicode": "\ue651"
|
||||
},
|
||||
{
|
||||
"font_class": "eye-filled",
|
||||
"unicode": "\ue66a"
|
||||
},
|
||||
{
|
||||
"font_class": "eye-slash",
|
||||
"unicode": "\ue6b3"
|
||||
},
|
||||
{
|
||||
"font_class": "eye-slash-filled",
|
||||
"unicode": "\ue6b4"
|
||||
},
|
||||
{
|
||||
"font_class": "fire",
|
||||
"unicode": "\ue6a1"
|
||||
},
|
||||
{
|
||||
"font_class": "fire-filled",
|
||||
"unicode": "\ue6c5"
|
||||
},
|
||||
{
|
||||
"font_class": "flag",
|
||||
"unicode": "\ue65f"
|
||||
},
|
||||
{
|
||||
"font_class": "flag-filled",
|
||||
"unicode": "\ue660"
|
||||
},
|
||||
{
|
||||
"font_class": "folder-add",
|
||||
"unicode": "\ue6a9"
|
||||
},
|
||||
{
|
||||
"font_class": "folder-add-filled",
|
||||
"unicode": "\ue6c8"
|
||||
},
|
||||
{
|
||||
"font_class": "font",
|
||||
"unicode": "\ue6a3"
|
||||
},
|
||||
{
|
||||
"font_class": "forward",
|
||||
"unicode": "\ue6ba"
|
||||
},
|
||||
{
|
||||
"font_class": "gear",
|
||||
"unicode": "\ue664"
|
||||
},
|
||||
{
|
||||
"font_class": "gear-filled",
|
||||
"unicode": "\ue661"
|
||||
},
|
||||
{
|
||||
"font_class": "gift",
|
||||
"unicode": "\ue6a4"
|
||||
},
|
||||
{
|
||||
"font_class": "gift-filled",
|
||||
"unicode": "\ue6c4"
|
||||
},
|
||||
{
|
||||
"font_class": "hand-down",
|
||||
"unicode": "\ue63d"
|
||||
},
|
||||
{
|
||||
"font_class": "hand-down-filled",
|
||||
"unicode": "\ue63c"
|
||||
},
|
||||
{
|
||||
"font_class": "hand-up",
|
||||
"unicode": "\ue63f"
|
||||
},
|
||||
{
|
||||
"font_class": "hand-up-filled",
|
||||
"unicode": "\ue63e"
|
||||
},
|
||||
{
|
||||
"font_class": "headphones",
|
||||
"unicode": "\ue630"
|
||||
},
|
||||
{
|
||||
"font_class": "heart",
|
||||
"unicode": "\ue639"
|
||||
},
|
||||
{
|
||||
"font_class": "heart-filled",
|
||||
"unicode": "\ue641"
|
||||
},
|
||||
{
|
||||
"font_class": "help",
|
||||
"unicode": "\ue679"
|
||||
},
|
||||
{
|
||||
"font_class": "help-filled",
|
||||
"unicode": "\ue674"
|
||||
},
|
||||
{
|
||||
"font_class": "home",
|
||||
"unicode": "\ue662"
|
||||
},
|
||||
{
|
||||
"font_class": "home-filled",
|
||||
"unicode": "\ue663"
|
||||
},
|
||||
{
|
||||
"font_class": "image",
|
||||
"unicode": "\ue670"
|
||||
},
|
||||
{
|
||||
"font_class": "image-filled",
|
||||
"unicode": "\ue678"
|
||||
},
|
||||
{
|
||||
"font_class": "images",
|
||||
"unicode": "\ue650"
|
||||
},
|
||||
{
|
||||
"font_class": "images-filled",
|
||||
"unicode": "\ue64b"
|
||||
},
|
||||
{
|
||||
"font_class": "info",
|
||||
"unicode": "\ue669"
|
||||
},
|
||||
{
|
||||
"font_class": "info-filled",
|
||||
"unicode": "\ue649"
|
||||
},
|
||||
{
|
||||
"font_class": "left",
|
||||
"unicode": "\ue6b7"
|
||||
},
|
||||
{
|
||||
"font_class": "link",
|
||||
"unicode": "\ue6a5"
|
||||
},
|
||||
{
|
||||
"font_class": "list",
|
||||
"unicode": "\ue644"
|
||||
},
|
||||
{
|
||||
"font_class": "location",
|
||||
"unicode": "\ue6ae"
|
||||
},
|
||||
{
|
||||
"font_class": "location-filled",
|
||||
"unicode": "\ue6af"
|
||||
},
|
||||
{
|
||||
"font_class": "locked",
|
||||
"unicode": "\ue66b"
|
||||
},
|
||||
{
|
||||
"font_class": "locked-filled",
|
||||
"unicode": "\ue668"
|
||||
},
|
||||
{
|
||||
"font_class": "loop",
|
||||
"unicode": "\ue633"
|
||||
},
|
||||
{
|
||||
"font_class": "mail-open",
|
||||
"unicode": "\ue643"
|
||||
},
|
||||
{
|
||||
"font_class": "mail-open-filled",
|
||||
"unicode": "\ue63a"
|
||||
},
|
||||
{
|
||||
"font_class": "map",
|
||||
"unicode": "\ue667"
|
||||
},
|
||||
{
|
||||
"font_class": "map-filled",
|
||||
"unicode": "\ue666"
|
||||
},
|
||||
{
|
||||
"font_class": "map-pin",
|
||||
"unicode": "\ue6ad"
|
||||
},
|
||||
{
|
||||
"font_class": "map-pin-ellipse",
|
||||
"unicode": "\ue6ac"
|
||||
},
|
||||
{
|
||||
"font_class": "medal",
|
||||
"unicode": "\ue6a2"
|
||||
},
|
||||
{
|
||||
"font_class": "medal-filled",
|
||||
"unicode": "\ue6c3"
|
||||
},
|
||||
{
|
||||
"font_class": "mic",
|
||||
"unicode": "\ue671"
|
||||
},
|
||||
{
|
||||
"font_class": "mic-filled",
|
||||
"unicode": "\ue677"
|
||||
},
|
||||
{
|
||||
"font_class": "micoff",
|
||||
"unicode": "\ue67e"
|
||||
},
|
||||
{
|
||||
"font_class": "micoff-filled",
|
||||
"unicode": "\ue6b0"
|
||||
},
|
||||
{
|
||||
"font_class": "minus",
|
||||
"unicode": "\ue66f"
|
||||
},
|
||||
{
|
||||
"font_class": "minus-filled",
|
||||
"unicode": "\ue67d"
|
||||
},
|
||||
{
|
||||
"font_class": "more",
|
||||
"unicode": "\ue64d"
|
||||
},
|
||||
{
|
||||
"font_class": "more-filled",
|
||||
"unicode": "\ue64e"
|
||||
},
|
||||
{
|
||||
"font_class": "navigate",
|
||||
"unicode": "\ue66e"
|
||||
},
|
||||
{
|
||||
"font_class": "navigate-filled",
|
||||
"unicode": "\ue67a"
|
||||
},
|
||||
{
|
||||
"font_class": "notification",
|
||||
"unicode": "\ue6a6"
|
||||
},
|
||||
{
|
||||
"font_class": "notification-filled",
|
||||
"unicode": "\ue6c1"
|
||||
},
|
||||
{
|
||||
"font_class": "paperclip",
|
||||
"unicode": "\ue652"
|
||||
},
|
||||
{
|
||||
"font_class": "paperplane",
|
||||
"unicode": "\ue672"
|
||||
},
|
||||
{
|
||||
"font_class": "paperplane-filled",
|
||||
"unicode": "\ue675"
|
||||
},
|
||||
{
|
||||
"font_class": "person",
|
||||
"unicode": "\ue699"
|
||||
},
|
||||
{
|
||||
"font_class": "person-filled",
|
||||
"unicode": "\ue69d"
|
||||
},
|
||||
{
|
||||
"font_class": "personadd",
|
||||
"unicode": "\ue69f"
|
||||
},
|
||||
{
|
||||
"font_class": "personadd-filled",
|
||||
"unicode": "\ue698"
|
||||
},
|
||||
{
|
||||
"font_class": "personadd-filled-copy",
|
||||
"unicode": "\ue6d1"
|
||||
},
|
||||
{
|
||||
"font_class": "phone",
|
||||
"unicode": "\ue69c"
|
||||
},
|
||||
{
|
||||
"font_class": "phone-filled",
|
||||
"unicode": "\ue69b"
|
||||
},
|
||||
{
|
||||
"font_class": "plus",
|
||||
"unicode": "\ue676"
|
||||
},
|
||||
{
|
||||
"font_class": "plus-filled",
|
||||
"unicode": "\ue6c7"
|
||||
},
|
||||
{
|
||||
"font_class": "plusempty",
|
||||
"unicode": "\ue67b"
|
||||
},
|
||||
{
|
||||
"font_class": "pulldown",
|
||||
"unicode": "\ue632"
|
||||
},
|
||||
{
|
||||
"font_class": "pyq",
|
||||
"unicode": "\ue682"
|
||||
},
|
||||
{
|
||||
"font_class": "qq",
|
||||
"unicode": "\ue680"
|
||||
},
|
||||
{
|
||||
"font_class": "redo",
|
||||
"unicode": "\ue64a"
|
||||
},
|
||||
{
|
||||
"font_class": "redo-filled",
|
||||
"unicode": "\ue655"
|
||||
},
|
||||
{
|
||||
"font_class": "refresh",
|
||||
"unicode": "\ue657"
|
||||
},
|
||||
{
|
||||
"font_class": "refresh-filled",
|
||||
"unicode": "\ue656"
|
||||
},
|
||||
{
|
||||
"font_class": "refreshempty",
|
||||
"unicode": "\ue6bf"
|
||||
},
|
||||
{
|
||||
"font_class": "reload",
|
||||
"unicode": "\ue6b2"
|
||||
},
|
||||
{
|
||||
"font_class": "right",
|
||||
"unicode": "\ue6b5"
|
||||
},
|
||||
{
|
||||
"font_class": "scan",
|
||||
"unicode": "\ue62a"
|
||||
},
|
||||
{
|
||||
"font_class": "search",
|
||||
"unicode": "\ue654"
|
||||
},
|
||||
{
|
||||
"font_class": "settings",
|
||||
"unicode": "\ue653"
|
||||
},
|
||||
{
|
||||
"font_class": "settings-filled",
|
||||
"unicode": "\ue6ce"
|
||||
},
|
||||
{
|
||||
"font_class": "shop",
|
||||
"unicode": "\ue62f"
|
||||
},
|
||||
{
|
||||
"font_class": "shop-filled",
|
||||
"unicode": "\ue6cd"
|
||||
},
|
||||
{
|
||||
"font_class": "smallcircle",
|
||||
"unicode": "\ue67c"
|
||||
},
|
||||
{
|
||||
"font_class": "smallcircle-filled",
|
||||
"unicode": "\ue665"
|
||||
},
|
||||
{
|
||||
"font_class": "sound",
|
||||
"unicode": "\ue684"
|
||||
},
|
||||
{
|
||||
"font_class": "sound-filled",
|
||||
"unicode": "\ue686"
|
||||
},
|
||||
{
|
||||
"font_class": "spinner-cycle",
|
||||
"unicode": "\ue68a"
|
||||
},
|
||||
{
|
||||
"font_class": "staff",
|
||||
"unicode": "\ue6a7"
|
||||
},
|
||||
{
|
||||
"font_class": "staff-filled",
|
||||
"unicode": "\ue6cb"
|
||||
},
|
||||
{
|
||||
"font_class": "star",
|
||||
"unicode": "\ue688"
|
||||
},
|
||||
{
|
||||
"font_class": "star-filled",
|
||||
"unicode": "\ue68f"
|
||||
},
|
||||
{
|
||||
"font_class": "starhalf",
|
||||
"unicode": "\ue683"
|
||||
},
|
||||
{
|
||||
"font_class": "trash",
|
||||
"unicode": "\ue687"
|
||||
},
|
||||
{
|
||||
"font_class": "trash-filled",
|
||||
"unicode": "\ue685"
|
||||
},
|
||||
{
|
||||
"font_class": "tune",
|
||||
"unicode": "\ue6aa"
|
||||
},
|
||||
{
|
||||
"font_class": "tune-filled",
|
||||
"unicode": "\ue6ca"
|
||||
},
|
||||
{
|
||||
"font_class": "undo",
|
||||
"unicode": "\ue64f"
|
||||
},
|
||||
{
|
||||
"font_class": "undo-filled",
|
||||
"unicode": "\ue64c"
|
||||
},
|
||||
{
|
||||
"font_class": "up",
|
||||
"unicode": "\ue6b6"
|
||||
},
|
||||
{
|
||||
"font_class": "top",
|
||||
"unicode": "\ue6b6"
|
||||
},
|
||||
{
|
||||
"font_class": "upload",
|
||||
"unicode": "\ue690"
|
||||
},
|
||||
{
|
||||
"font_class": "upload-filled",
|
||||
"unicode": "\ue68e"
|
||||
},
|
||||
{
|
||||
"font_class": "videocam",
|
||||
"unicode": "\ue68c"
|
||||
},
|
||||
{
|
||||
"font_class": "videocam-filled",
|
||||
"unicode": "\ue689"
|
||||
},
|
||||
{
|
||||
"font_class": "vip",
|
||||
"unicode": "\ue6a8"
|
||||
},
|
||||
{
|
||||
"font_class": "vip-filled",
|
||||
"unicode": "\ue6c6"
|
||||
},
|
||||
{
|
||||
"font_class": "wallet",
|
||||
"unicode": "\ue6b1"
|
||||
},
|
||||
{
|
||||
"font_class": "wallet-filled",
|
||||
"unicode": "\ue6c2"
|
||||
},
|
||||
{
|
||||
"font_class": "weibo",
|
||||
"unicode": "\ue68b"
|
||||
},
|
||||
{
|
||||
"font_class": "weixin",
|
||||
"unicode": "\ue691"
|
||||
}
|
||||
]
|
||||
|
||||
// export const fontData = JSON.parse<IconsDataItem>(fontDataJson)
|
||||
89
uni_modules/uni-icons/package.json
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"id": "uni-icons",
|
||||
"displayName": "uni-icons 图标",
|
||||
"version": "2.0.10",
|
||||
"description": "图标组件,用于展示移动端常见的图标,可自定义颜色、大小。",
|
||||
"keywords": [
|
||||
"uni-ui",
|
||||
"uniui",
|
||||
"icon",
|
||||
"图标"
|
||||
],
|
||||
"repository": "https://github.com/dcloudio/uni-ui",
|
||||
"engines": {
|
||||
"HBuilderX": "^3.2.14"
|
||||
},
|
||||
"directories": {
|
||||
"example": "../../temps/example_temps"
|
||||
},
|
||||
"dcloudext": {
|
||||
"sale": {
|
||||
"regular": {
|
||||
"price": "0.00"
|
||||
},
|
||||
"sourcecode": {
|
||||
"price": "0.00"
|
||||
}
|
||||
},
|
||||
"contact": {
|
||||
"qq": ""
|
||||
},
|
||||
"declaration": {
|
||||
"ads": "无",
|
||||
"data": "无",
|
||||
"permissions": "无"
|
||||
},
|
||||
"npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui",
|
||||
"type": "component-vue"
|
||||
},
|
||||
"uni_modules": {
|
||||
"dependencies": ["uni-scss"],
|
||||
"encrypt": [],
|
||||
"platforms": {
|
||||
"cloud": {
|
||||
"tcb": "y",
|
||||
"aliyun": "y",
|
||||
"alipay": "n"
|
||||
},
|
||||
"client": {
|
||||
"App": {
|
||||
"app-vue": "y",
|
||||
"app-nvue": "y",
|
||||
"app-uvue": "y"
|
||||
},
|
||||
"H5-mobile": {
|
||||
"Safari": "y",
|
||||
"Android Browser": "y",
|
||||
"微信浏览器(Android)": "y",
|
||||
"QQ浏览器(Android)": "y"
|
||||
},
|
||||
"H5-pc": {
|
||||
"Chrome": "y",
|
||||
"IE": "y",
|
||||
"Edge": "y",
|
||||
"Firefox": "y",
|
||||
"Safari": "y"
|
||||
},
|
||||
"小程序": {
|
||||
"微信": "y",
|
||||
"阿里": "y",
|
||||
"百度": "y",
|
||||
"字节跳动": "y",
|
||||
"QQ": "y",
|
||||
"钉钉": "y",
|
||||
"快手": "y",
|
||||
"飞书": "y",
|
||||
"京东": "y"
|
||||
},
|
||||
"快应用": {
|
||||
"华为": "y",
|
||||
"联盟": "y"
|
||||
},
|
||||
"Vue": {
|
||||
"vue2": "y",
|
||||
"vue3": "y"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
8
uni_modules/uni-icons/readme.md
Normal file
@@ -0,0 +1,8 @@
|
||||
## Icons 图标
|
||||
> **组件名:uni-icons**
|
||||
> 代码块: `uIcons`
|
||||
|
||||
用于展示 icons 图标 。
|
||||
|
||||
### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-icons)
|
||||
#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
|
||||
@@ -1,9 +1,9 @@
|
||||
/* #ifndef APP-NVUE */
|
||||
|
||||
$-color-white:#ffffff;
|
||||
$-color-white:#fff;
|
||||
$-color-black:#000;
|
||||
@mixin base-style($color) {
|
||||
color: #ffffff;
|
||||
color: #fff;
|
||||
background-color: $color;
|
||||
border-color: mix($-color-black, $color, 8%);
|
||||
&:not([hover-class]):active {
|
||||
|
||||
@@ -6,26 +6,26 @@ $uni-radius-root:5px;
|
||||
|
||||
// 主色
|
||||
$uni-primary: #2979ff;
|
||||
$uni-primary-disable:mix(#ffffff,$uni-primary,50%);
|
||||
$uni-primary-light: mix(#ffffff,$uni-primary,80%);
|
||||
$uni-primary-disable:mix(#fff,$uni-primary,50%);
|
||||
$uni-primary-light: mix(#fff,$uni-primary,80%);
|
||||
|
||||
// 辅助色
|
||||
// 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。
|
||||
$uni-success: #18bc37;
|
||||
$uni-success-disable:mix(#ffffff,$uni-success,50%);
|
||||
$uni-success-light: mix(#ffffff,$uni-success,80%);
|
||||
$uni-success-disable:mix(#fff,$uni-success,50%);
|
||||
$uni-success-light: mix(#fff,$uni-success,80%);
|
||||
|
||||
$uni-warning: #f3a73f;
|
||||
$uni-warning-disable:mix(#ffffff,$uni-warning,50%);
|
||||
$uni-warning-light: mix(#ffffff,$uni-warning,80%);
|
||||
$uni-warning-disable:mix(#fff,$uni-warning,50%);
|
||||
$uni-warning-light: mix(#fff,$uni-warning,80%);
|
||||
|
||||
$uni-error: #e43d33;
|
||||
$uni-error-disable:mix(#ffffff,$uni-error,50%);
|
||||
$uni-error-light: mix(#ffffff,$uni-error,80%);
|
||||
$uni-error-disable:mix(#fff,$uni-error,50%);
|
||||
$uni-error-light: mix(#fff,$uni-error,80%);
|
||||
|
||||
$uni-info: #8f939c;
|
||||
$uni-info-disable:mix(#ffffff,$uni-info,50%);
|
||||
$uni-info-light: mix(#ffffff,$uni-info,80%);
|
||||
$uni-info-disable:mix(#fff,$uni-info,50%);
|
||||
$uni-info-light: mix(#fff,$uni-info,80%);
|
||||
|
||||
// 中性色
|
||||
// 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import httpsRequest from '@/common/httpRequest.js'
|
||||
//是否处于审核中
|
||||
const $API_shenhe='app/common/type/919'
|
||||
const $API_shenhe='/app/common/type/919'
|
||||
export async function returnIsShenhe(data){
|
||||
let isShenHe=false
|
||||
const res=await httpsRequest.getT($API_shenhe,{...data})
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="">
|
||||
<view class="u-navbar" :style="[navbarStyle]" :class="{ 'u-navbar-fixed': isFixed, 'u-border-bottom': borderBottom }">
|
||||
<view class="u-status-bar" :style="{ height: statusBarHeight + 'px' }"></view>
|
||||
<view class="u-navbar-inner" :style="[navbarInnerStyle]">
|
||||
<!-- <view class="u-navbar-inner" :style="[navbarInnerStyle]">
|
||||
<view class="u-back-wrap" v-if="isBack" @tap="goBack">
|
||||
<view class="u-icon-wrap">
|
||||
<u-icon :name="backIconName" :color="backIconColor" :size="backIconSize"></u-icon>
|
||||
@@ -20,13 +20,13 @@
|
||||
{{ title }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-slot-content">
|
||||
<view class="u-slot-content">
|
||||
<slot></slot>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-slot-right">
|
||||
<slot name="right"></slot>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<!-- 解决fixed定位后导航栏塌陷的问题 -->
|
||||
<view class="u-navbar-placeholder" v-if="isFixed && !immersive" :style="{ width: '100%', height: Number(navbarHeight) + statusBarHeight + 'px' }"></view>
|
||||
|
||||