更改随机名字
This commit is contained in:
31
pages/QopeXhghCn/HqCpPYSghe.vue
Normal file
31
pages/QopeXhghCn/HqCpPYSghe.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6770.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6771.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
31
pages/QopeXhghCn/KnGghZxKTo.vue
Normal file
31
pages/QopeXhghCn/KnGghZxKTo.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6768.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6769.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
542
pages/QopeXhghCn/index.vue
Normal file
542
pages/QopeXhghCn/index.vue
Normal file
@@ -0,0 +1,542 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="wrap-DEghTTorsp">
|
||||
<view class="headDEghTTorsp">
|
||||
<scroll-view scroll-x class="bg nav bg-white u-border-bottom">
|
||||
<view class="flex text-center">
|
||||
<view class="cu-item flex-sub text-bold" :class="item.name===TabCur?' cur ':'text-black'"
|
||||
v-for="(item,index) in tabList" :key="index" :data-id="item.name" @tap="tabSelectDEghTTorsp">
|
||||
{{item.name}}
|
||||
<view v-if="item.name===TabCur"
|
||||
style="width: 64rpx;height: 8rpx;;background: #5074FF;margin: -20rpx auto;border-radius: 10rpx;">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="headLenDEghTTorsp">
|
||||
<view v-if="TabCur === tabList[0].name">
|
||||
<view class="page-box-DEghTTorsp" v-if="latelyCourseList.length && userId">
|
||||
<view class="orderView-DEghTTorsp" v-for="(item, index) in latelyCourseList" :key="index"
|
||||
@click="goCourseDetDEghTTorsp(item)">
|
||||
<view class="item">
|
||||
<view class="left">
|
||||
<image :src="item.titleImg" mode="aspectFill"
|
||||
style="border-radius: 10rpx;width: 180rpx;height: 180rpx;"></image>
|
||||
</view>
|
||||
<view class="flex-sub content flex flex-direction justify-between"
|
||||
style="width:420rpx;">
|
||||
<view class="text-bold text-black margin-top-xs u-line-1 text-lg">{{item.title}}
|
||||
</view>
|
||||
<view class="text-gray text-26 margin-top">最近{{item.payNum}}人在学 </view>
|
||||
<view class="flex align-center justify-between">
|
||||
<view class=" " style="color: #FF8211;">¥ <text class=" text-bold"
|
||||
style="font-size: 42rpx;">{{item.price}}</text></view>
|
||||
<view class="btn">马上学习</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 空数据 -->
|
||||
<empty v-else-if="!latelyCourseList.length && userId"></empty>
|
||||
<noLogin v-if="userId === ''"></noLogin>
|
||||
</view>
|
||||
<view v-if="TabCur == tabList[1].name">
|
||||
<view class="page-box-DEghTTorsp" v-if="selectCourseList.length && userId">
|
||||
<view class="order" v-for="(item, index) in selectCourseList" :key="index"
|
||||
@click="goCourseDetDEghTTorsp(item)">
|
||||
<view class="item">
|
||||
<view class="left">
|
||||
<image :src="item.titleImg" mode="aspectFill"
|
||||
style="border-radius: 10rpx;width: 180rpx;height: 180rpx;"></image>
|
||||
</view>
|
||||
<view class="flex-sub content flex flex-direction justify-between"
|
||||
style="width:420rpx;">
|
||||
<view class="text-bold text-black margin-top-xs u-line-1 text-lg">{{item.title}}
|
||||
</view>
|
||||
<view class="text-gray text-26 margin-top">最近{{item.payNum}}人在学 </view>
|
||||
<view class="flex align-center justify-between">
|
||||
<view class=" " style="color: #FF8211;">¥ <text class=" text-bold"
|
||||
style="font-size: 42rpx;">{{item.price}}</text></view>
|
||||
<view class="btn">马上学习</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 空数据 -->
|
||||
<empty v-else-if="!selectCourseList.length && userId"></empty>
|
||||
<noLogin v-if="userId === ''"></noLogin>
|
||||
</view>
|
||||
<view v-if="TabCur == tabList[2].name">
|
||||
<view class="page-box-DEghTTorsp" v-if="collectList.length && userId">
|
||||
<view class="orderView-DEghTTorsp" v-for="(item,index) in collectList" :key='index' @click="goCourseDetDEghTTorsp(item)">
|
||||
<view class="item">
|
||||
<view class="left">
|
||||
<image :src="item.titleImg" mode="aspectFill"
|
||||
style="border-radius: 10rpx;width: 180rpx;height: 180rpx;"></image>
|
||||
</view>
|
||||
<view class="flex-sub content flex flex-direction justify-between"
|
||||
style="width:420rpx;">
|
||||
<view class="text-bold text-black margin-top-xs u-line-1 text-lg">{{item.title}}
|
||||
</view>
|
||||
<view class="text-gray text-26 margin-top">最近{{item.payNum}}人在学 </view>
|
||||
<view class="flex align-center justify-between">
|
||||
<view class=" " style="color: #FF8211;">¥ <text class=" text-bold"
|
||||
style="font-size: 42rpx;">{{item.price}}</text></view>
|
||||
<view class="btn">马上学习</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 空数据 -->
|
||||
<empty v-else-if="!collectList.length && userId" content="去添加"></empty>
|
||||
<noLogin v-if="userId === ''"></noLogin>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import empty from '@/components/empty.vue'
|
||||
import noLogin from '@/components/noLogin.vue'
|
||||
export default {
|
||||
components: {
|
||||
empty,
|
||||
noLogin
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
TabCur: '最近学习',
|
||||
orderList: [
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
],
|
||||
tabList: [{
|
||||
name: '最近学习'
|
||||
},
|
||||
{
|
||||
name: '已购资源'
|
||||
},
|
||||
{
|
||||
name: '收藏资源'
|
||||
}
|
||||
],
|
||||
current: 0,
|
||||
swiperCurrent: 0,
|
||||
tabsHeight: 0,
|
||||
dx: 0,
|
||||
loadStatus: ['loadmore', 'loadmore', 'loadmore', 'loadmore'],
|
||||
userId: '',
|
||||
|
||||
limit: 10,
|
||||
latelyCourseList: [], //最近学习
|
||||
latelyCoursePage: 1,
|
||||
selectCourseList: [], //已购资源
|
||||
selectCoursePage: 1,
|
||||
collectList: [], //收藏资源
|
||||
collectPage: 1,
|
||||
totalCount: 0
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
onShow() {
|
||||
console.log(this.latelyCourseList)
|
||||
this.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
|
||||
if (this.userId) {
|
||||
// this.latelyCourseList = []
|
||||
// this.selectCourseList = []
|
||||
// this.collectList = []
|
||||
this.getLatelyCourseDEghTTorsp()
|
||||
this.getSelectCourseDEghTTorsp()
|
||||
this.getCollectListDEghTTorsp()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
tabSelectDEghTTorsp(e) {
|
||||
// console.log(e.currentTarget.dataset)
|
||||
this.TabCur = e.currentTarget.dataset.id;
|
||||
this.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
|
||||
// console.log("this.userId____:" + this.userId)
|
||||
if (this.userId) {
|
||||
switch (this.TabCur) {
|
||||
case '最近学习': //最近学习
|
||||
this.latelyCoursePage = 1
|
||||
this.getLatelyCourseDEghTTorsp()
|
||||
break;
|
||||
case '已购资源': //已购资源
|
||||
this.selectCoursePage = 1
|
||||
this.getSelectCourseDEghTTorsp()
|
||||
break;
|
||||
case '收藏资源': //已购资源
|
||||
this.collectPage = 1;
|
||||
this.getCollectListDEghTTorsp()
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
// 最近学习
|
||||
getLatelyCourseDEghTTorsp() {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
})
|
||||
let data = {
|
||||
userId: this.userId,
|
||||
page: this.latelyCoursePage,
|
||||
limit: this.limit,
|
||||
}
|
||||
this.$u.api.latelyCourse(data).then(res => {
|
||||
uni.hideLoading()
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.code == 0) {
|
||||
res.data.list.forEach(ret => {
|
||||
if (ret.avatar) {
|
||||
ret.avatar = ret.avatar.split(',')
|
||||
}
|
||||
})
|
||||
this.totalCount = res.data.totalCount
|
||||
if (this.latelyCoursePage == 1) {
|
||||
this.latelyCourseList = res.data.list;
|
||||
} else {
|
||||
this.latelyCourseList = [...this.latelyCourseList, ...res.data.list]
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
duration: 1000,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
},
|
||||
// 已购资源
|
||||
getSelectCourseDEghTTorsp() {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
})
|
||||
let data = {
|
||||
userId: this.userId,
|
||||
page: this.selectCoursePage,
|
||||
limit: this.limit,
|
||||
}
|
||||
this.$u.api.selectCourse(data).then(res => {
|
||||
uni.hideLoading()
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.code == 0) {
|
||||
res.data.list.forEach(ret => {
|
||||
if (ret.avatar) {
|
||||
ret.avatar = ret.avatar.split(',')
|
||||
}
|
||||
})
|
||||
this.totalCount = res.data.totalCount
|
||||
if (this.selectCoursePage == 1) {
|
||||
this.selectCourseList = res.data.list;
|
||||
} else {
|
||||
this.selectCourseList = [...this.selectCourseList, ...res.data.list]
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
duration: 1000,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
// 获取收藏信息
|
||||
getCollectListDEghTTorsp() {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
})
|
||||
let data = {
|
||||
userId: this.userId,
|
||||
page: this.collectPage,
|
||||
limit: this.limit,
|
||||
}
|
||||
this.$u.api.collectList(data).then(res => {
|
||||
uni.hideLoading()
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.code == 0) {
|
||||
this.totalCount = res.data.totalCount
|
||||
if (this.collectPage == 1) {
|
||||
this.collectList = res.data.records;
|
||||
} else {
|
||||
this.collectList = [...this.collectList, ...res.data.records]
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
duration: 1000,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
// 查看资源详情
|
||||
goCourseDetDEghTTorsp(e) {
|
||||
let userId = uni.getStorageSync('userId')
|
||||
if (userId) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/mggghRAnkh/courseDet?id=' + e.courseId
|
||||
});
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
computed: {
|
||||
// 价格整数
|
||||
priceInt() {
|
||||
return val => {
|
||||
// if (val !== parseInt(val)) return val.split('.')[0];
|
||||
// else return val;
|
||||
return val
|
||||
};
|
||||
}
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
|
||||
if (this.userId) {
|
||||
if (this.TabCur == '最近学习') { //最近学习
|
||||
if (this.totalCount == this.latelyCourseList.length) {
|
||||
uni.showToast({
|
||||
title: '已经到底了~',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
} else {
|
||||
this.latelyCoursePage = this.latelyCoursePage + 1;
|
||||
this.getLatelyCourseDEghTTorsp()
|
||||
}
|
||||
} else if (this.TabCur == '已购资源') { //已购资源
|
||||
if (this.totalCount == this.selectCourseList.length) {
|
||||
uni.showToast({
|
||||
title: '已经到底了~',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
} else {
|
||||
this.selectCoursePage = this.selectCoursePage + 1;
|
||||
this.getSelectCourseDEghTTorsp()
|
||||
}
|
||||
} else if (this.TabCur == '收藏资源') { //收藏资源
|
||||
if (this.totalCount == this.collectList.length) {
|
||||
uni.showToast({
|
||||
title: '已经到底了~',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
} else {
|
||||
this.collectPage = this.collectPage + 1;
|
||||
this.getCollectListDEghTTorsp()
|
||||
}
|
||||
}
|
||||
// switch (this.TabCur) {
|
||||
// case '最近学习': //最近学习
|
||||
// this.latelyCoursePage = this.latelyCoursePage + 1;
|
||||
// this.getLatelyCourseDEghTTorsp()
|
||||
// break;
|
||||
// case '已购资源': //已购资源
|
||||
// this.selectCoursePage = this.selectCoursePage + 1;
|
||||
// this.getSelectCourseDEghTTorsp()
|
||||
// break;
|
||||
// case '收藏资源': //评论
|
||||
// this.collectPage = this.collectPage + 1;
|
||||
// this.getCollectListDEghTTorsp()
|
||||
// break;
|
||||
// }
|
||||
}
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
this.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
|
||||
if (this.userId) {
|
||||
if (this.TabCur == '最近学习') { //最近学习
|
||||
if (this.totalCount == this.latelyCourseList.length) {
|
||||
uni.showToast({
|
||||
title: '已经到底了~',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
} else {
|
||||
this.latelyCoursePage = 1
|
||||
this.getLatelyCourseDEghTTorsp()
|
||||
}
|
||||
} else if (this.TabCur == '已购资源') { //已购资源
|
||||
if (this.totalCount == this.selectCourseList.length) {
|
||||
uni.showToast({
|
||||
title: '已经到底了~',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
} else {
|
||||
this.selectCoursePage = 1
|
||||
this.getSelectCourseDEghTTorsp()
|
||||
}
|
||||
} else if (this.TabCur == '收藏资源') { //收藏资源
|
||||
if (this.totalCount == this.collectList.length) {
|
||||
uni.showToast({
|
||||
title: '已经到底了~',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
} else {
|
||||
this.collectPage = 1
|
||||
this.getCollectListDEghTTorsp()
|
||||
}
|
||||
}
|
||||
// switch (this.TabCur) {
|
||||
// case '最近学习': //最近学习
|
||||
// this.latelyCoursePage = 1
|
||||
// // this.latelyCourseList = []
|
||||
// this.getLatelyCourseDEghTTorsp()
|
||||
// break;
|
||||
// case '已购资源': //已购资源
|
||||
// this.selectCoursePage = 1
|
||||
// // this.selectCourseList = []
|
||||
// this.getSelectCourseDEghTTorsp()
|
||||
// break;
|
||||
// case '收藏资源': //已购资源
|
||||
// this.collectPage = 1;
|
||||
// // this.collectList = []
|
||||
// this.getCollectListDEghTTorsp()
|
||||
// break;
|
||||
// }
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/* #ifndef H5 */
|
||||
page {
|
||||
height: 100%;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
/* #endif */
|
||||
</style>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.headDEghTTorsp {
|
||||
position: fixed;
|
||||
/* #ifdef H5 */
|
||||
top: 0rpx;
|
||||
/* #endif */
|
||||
/* #ifndef H5 */
|
||||
top: 0;
|
||||
/* #endif */
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.headLenDEghTTorsp {
|
||||
/* #ifdef H5 */
|
||||
margin-top: 80rpx;
|
||||
/* #endif */
|
||||
/* #ifndef H5 */
|
||||
margin-top: 90rpx;
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
.page-box-DEghTTorsp {
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
|
||||
.orderView-DEghTTorsp {
|
||||
width: 700rpx;
|
||||
background-color: #ffffff;
|
||||
margin: 20rpx auto;
|
||||
border-radius: 20rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 20rpx;
|
||||
font-size: 28rpx;
|
||||
|
||||
.top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.store {
|
||||
margin: 0 10rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
color: $u-type-warning-dark;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
display: flex;
|
||||
|
||||
.left {
|
||||
margin-right: 20rpx;
|
||||
|
||||
image {
|
||||
width: 280rpx;
|
||||
height: 240rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
.title {
|
||||
font-size: 16px;
|
||||
line-height: 50rpx;
|
||||
font-weight: bold;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.wrap-DEghTTorsp {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: calc(100vh - var(--window-top));
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.btn {
|
||||
width: 150upx;
|
||||
height: 60upx;
|
||||
background: #5074FF;
|
||||
border-radius: 30upx;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
line-height: 60rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
</style>
|
||||
484
pages/chasingDrama/chasingDrama.vue
Normal file
484
pages/chasingDrama/chasingDrama.vue
Normal file
@@ -0,0 +1,484 @@
|
||||
<template>
|
||||
<view style="padding-bottom: 100rpx;">
|
||||
<!-- <view class="title flex align-center justify-center">
|
||||
<view class="title-box">
|
||||
<view class="title-box-title flex align-center justify-between">
|
||||
<view class="title-box-title-l">
|
||||
你已连续签到
|
||||
<text style="color: #ff7581;margin: 0 10rpx;">{{day}}</text>
|
||||
天
|
||||
</view>
|
||||
<view v-if="isQd" class="title-box-title-r flex align-center justify-center">
|
||||
今日已签到
|
||||
</view>
|
||||
<view v-else class="title-box-title-r flex align-center justify-center" @click="signIn()">
|
||||
立即签到
|
||||
</view>
|
||||
</view>
|
||||
<view class="title-box-tishi">
|
||||
签到领积分,新剧抢先看。连续签到7天领惊喜礼包
|
||||
</view>
|
||||
<view class="title-box-day flex align-center justify-center">
|
||||
<view class="title-box-day-item flex" v-for="(item,index) in numList" :key="index">
|
||||
<view>
|
||||
<view v-if="index == 0 && isErQd"
|
||||
class="title-box-day-item-num flex align-center justify-center"
|
||||
style="background-color: #ff7581;border: none;">
|
||||
<image src="../../static/images/index/qd_.png" mode="">
|
||||
</image>
|
||||
</view>
|
||||
<view v-else-if="index == 1 && isQd" style="background-color: #ff7581;border: none;"
|
||||
class="title-box-day-item-num flex align-center justify-center">
|
||||
<image src="../../static/images/index/qd_.png" mode="">
|
||||
</image>
|
||||
</view>
|
||||
<view v-else class="title-box-day-item-num flex align-center justify-center">
|
||||
<image src="../../static/images/index/qd.png" mode="">
|
||||
</image>
|
||||
</view>
|
||||
<view class="title-box-day-item-day">
|
||||
{{index==1?'今日':item}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="title-box-day-item-lin" v-if="index < numList.length-1"></view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view v-if="list.length>0" class="itemTitle flex align-center justify-center">
|
||||
<view class="itemTitle-box flex align-center justify-between">
|
||||
<view class="itemTitle-box-l">
|
||||
最近观看
|
||||
</view>
|
||||
<view class="itemTitle-box-r" @click="goNav('/me/jilu/record')">
|
||||
更多
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="list.length>0" class="zuijin flex align-center justify-center">
|
||||
<view class="zuijin-box flex justify-between">
|
||||
<view class="zuijin-box-item" @click="goCourse(item.courseId,item.courseDetailsId)"
|
||||
v-for="(item,index) in list" :key="index">
|
||||
<view class="zuijin-box-item-img">
|
||||
<image :src="item.titleImg" mode="aspectFill"></image>
|
||||
<view class="zuijin-box-item-img-t" v-if="item.courseDetailsName">
|
||||
{{item.courseDetailsName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="zuijin-box-item-txt flex align-center flex-wrap">
|
||||
<view class="zuijin-box-item-txt-t">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="zuijin-box-item-txt-l" v-if="item.courseLabel">
|
||||
{{item.courseLabel}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="zhuiju.length>0" class="itemTitle flex align-center justify-center">
|
||||
<view class="itemTitle-box flex align-center justify-between">
|
||||
<view class="itemTitle-box-l">
|
||||
我的追剧
|
||||
</view>
|
||||
<view class="itemTitle-box-r" @click="goNav('/me/jilu/histor')">
|
||||
更多
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="zhuiju.length>0" class="zuijin flex align-center justify-center">
|
||||
<view class="zuijin-box flex justify-between">
|
||||
<view @click="goCourse(item.courseId,item.courseDetailsId)" class="zuijin-box-item"
|
||||
v-for="(item,index) in zhuiju" :key="index">
|
||||
<view class="zuijin-box-item-img">
|
||||
<image :src="item.titleImg" mode="aspectFill"></image>
|
||||
<view class="zuijin-box-item-img-t" v-if="item.courseDetailsName">
|
||||
{{item.courseDetailsName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="zuijin-box-item-txt flex align-center flex-wrap">
|
||||
<view class="zuijin-box-item-txt-t">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="zuijin-box-item-txt-l" v-if="item.courseLabel">
|
||||
{{item.courseLabel}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isErQd: false, //昨天是否签到
|
||||
isQd: false, //今日是否已签到
|
||||
day: 0, //签到天数
|
||||
numList: this.getThisWeekDates(),
|
||||
list: [],
|
||||
zhuiju: [],
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
|
||||
},
|
||||
onShow() {
|
||||
if (uni.getStorageSync('token')) {
|
||||
this.newLook()
|
||||
this.myVideo()
|
||||
this.myQianInfo()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 跳转资源详情
|
||||
goCourse(e, courseDetailsId) {
|
||||
if (uni.getStorageSync('token')) {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + e + '&courseDetailsId=' + courseDetailsId
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//获取签到信息
|
||||
myQianInfo() {
|
||||
let data = {
|
||||
userId: uni.getStorageSync('userId')
|
||||
}
|
||||
this.$Request.getT('/app/integral/selectIntegralDay', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data.nowIntegral) { //判断今天是否签到
|
||||
this.day = res.data.nowIntegral.day
|
||||
this.isQd = true
|
||||
}
|
||||
if (res.data.yesterdayIntegral) { //判断昨天是否签到
|
||||
if (!this.day) {
|
||||
this.day = res.data.yesterdayIntegral.day
|
||||
}
|
||||
this.isErQd = true
|
||||
}
|
||||
if (res.data.nowIntegral == null && res.data.yesterdayIntegral == null) {
|
||||
this.day = 0
|
||||
this.isQd = false
|
||||
this.isErQd = false
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
//跳转
|
||||
goNav(url) {
|
||||
if (uni.getStorageSync('token')) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
})
|
||||
}
|
||||
},
|
||||
//我的追剧
|
||||
myVideo() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 6,
|
||||
classify: 1, //1收藏 2点赞 3历史记录
|
||||
}
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.zhuiju = res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
//最近观看
|
||||
newLook() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 6,
|
||||
classify: 3, //1收藏 2点赞 3历史记录
|
||||
}
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.list = res.data.records
|
||||
this.$nextTick(() => {
|
||||
this.videPage = 1
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
//签到
|
||||
signIn() {
|
||||
if (uni.getStorageSync('token')) {
|
||||
this.$Request.getT('/app/integral/signIn').then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.showToast({
|
||||
title: '今日已签到'
|
||||
})
|
||||
this.myQianInfo()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//获取这一周的日期,如果如期相同则替换为今日
|
||||
getThisWeekDates() {
|
||||
// const result = [];
|
||||
// const today = new Date();
|
||||
// const startDate = new Date(today.getFullYear(), today.getMonth(), today.getDate() - today.getDay() + 1);
|
||||
|
||||
// for (let i = 0; i < 7; i++) {
|
||||
// const currentDate = new Date(startDate.getFullYear(), startDate.getMonth(), startDate.getDate() + i);
|
||||
// let dateString = currentDate.toLocaleDateString('en-US', {
|
||||
// month: '2-digit',
|
||||
// day: '2-digit'
|
||||
// });
|
||||
|
||||
// if (currentDate.toDateString() === today.toDateString()) {
|
||||
// dateString = "今日";
|
||||
// }
|
||||
// let obj = {
|
||||
// name: dateString
|
||||
// }
|
||||
// result.push(obj);
|
||||
// }
|
||||
|
||||
// return result;
|
||||
const result = [];
|
||||
const today = new Date();
|
||||
const yesterday = new Date(today.getFullYear(), today.getMonth(), today.getDate() - 1);
|
||||
|
||||
result.push(this.formatDate(yesterday));
|
||||
|
||||
let i = 1;
|
||||
while (i < 7) {
|
||||
const currentDate = new Date(yesterday.getFullYear(), yesterday.getMonth(), yesterday.getDate() + i);
|
||||
result.push(this.formatDate(currentDate));
|
||||
i++;
|
||||
}
|
||||
return result;
|
||||
},
|
||||
formatDate(date) {
|
||||
const year = date.getFullYear();
|
||||
const month = this.padNumber(date.getMonth() + 1);
|
||||
const day = this.padNumber(date.getDate());
|
||||
return `${month}/${day}`;
|
||||
},
|
||||
padNumber(number) {
|
||||
return number < 10 ? '0' + number : number;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #F5F7FF;
|
||||
}
|
||||
|
||||
.itemTitle {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 46rpx;
|
||||
|
||||
.itemTitle-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
|
||||
}
|
||||
|
||||
.itemTitle-box-l {
|
||||
color: #333333;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.itemTitle-box-r {
|
||||
color: #999999;
|
||||
font-size: 28rpx;
|
||||
|
||||
}
|
||||
}
|
||||
.zuijin-box.justify-between{
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.zuijin {
|
||||
width: 100%;
|
||||
margin-top: 26rpx;
|
||||
|
||||
.zuijin-box {
|
||||
width: 700rpx;
|
||||
height: 100%;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.zuijin-box-item {
|
||||
width: calc((700rpx - 40rpx) / 3);
|
||||
height: 100%;
|
||||
margin-bottom: 30rpx;
|
||||
margin-right: calc(40rpx / 2);
|
||||
}
|
||||
.zuijin-box-item:nth-of-type(3n){
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.zuijin-box-item-img {
|
||||
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;
|
||||
}
|
||||
|
||||
.zuijin-box-item-img-t {
|
||||
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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.zuijin-box-item-txt {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 0 0 24rpx 24rpx;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.zuijin-box-item-txt-t {
|
||||
width: 100%;
|
||||
padding: 0 20rpx;
|
||||
color: #333333;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
}
|
||||
|
||||
.zuijin-box-item-txt-l {
|
||||
width: 100%;
|
||||
padding: 0 20rpx;
|
||||
color: #999999;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
padding-top: 30rpx;
|
||||
|
||||
.title-box {
|
||||
width: 686rpx;
|
||||
background-color: rgba(255, 117, 129, 0.1);
|
||||
border-radius: 24rpx;
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
.title-box-title {
|
||||
font-size: 36rpx;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.title-box-title-r {
|
||||
background-color: #ff7581;
|
||||
font-size: 26rpx;
|
||||
color: #ffffff;
|
||||
font-weight: 500;
|
||||
border-radius: 40rpx;
|
||||
padding: 20rpx 0;
|
||||
width: 166rpx;
|
||||
}
|
||||
|
||||
.title-box-tishi {
|
||||
font-size: 24rpx;
|
||||
margin-top: 20rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.title-box-day {
|
||||
width: 100%;
|
||||
margin-top: 30rpx;
|
||||
|
||||
.title-box-day-item-lin {
|
||||
width: 30rpx;
|
||||
height: 4rpx;
|
||||
background: #bfbfbf;
|
||||
margin: 0 4rpx;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
.title-box-day-item-num {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 50%;
|
||||
// border: 1px solid #999999;
|
||||
color: #999999;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.title-box-day-item-day {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 24rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.title-box-btn {
|
||||
margin-top: 30rpx;
|
||||
width: 100%;
|
||||
border-radius: 44rpx;
|
||||
background-color: #ff7581;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
padding: 22rpx 0;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
77
pages/first/first.vue
Normal file
77
pages/first/first.vue
Normal file
@@ -0,0 +1,77 @@
|
||||
<template>
|
||||
<view class="u-relative bg-gray fixed position-all">
|
||||
<view class="time btn" v-if="time<=0" @click="enter"><text>进入</text></view>
|
||||
<view class="time" v-else ><text>{{time}}</text></view>
|
||||
<view class="w-full box">
|
||||
<image src="/static/images/share_bg2.png" class="img"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
time:3
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.init()
|
||||
},
|
||||
methods: {
|
||||
enter(){
|
||||
uni.reLaunch({
|
||||
url:'/pages/index/index'
|
||||
})
|
||||
},
|
||||
init(){
|
||||
this.timer=setInterval(()=>{
|
||||
this.time--
|
||||
if(this.time<=0){
|
||||
clearInterval(this.timer)
|
||||
}
|
||||
},1000)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.position-all{
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
.time{
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
align-items: center;
|
||||
right: 30rpx;
|
||||
border-radius: 50%;
|
||||
background-color: rgba(255, 255, 255, .5);
|
||||
border: 1px solid rgba(255, 255, 255, .8);
|
||||
top: calc(var(--status-bar-height) + 20rpx );
|
||||
}
|
||||
.btn{
|
||||
border-radius: 100rpx;
|
||||
white-space: nowrap;
|
||||
width: auto;
|
||||
height: auto;
|
||||
padding: 4rpx 20rpx;
|
||||
}
|
||||
.box{
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
.img{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -1,45 +1,45 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="wrapper">
|
||||
<view class="input-content">
|
||||
<view class="containerDEghTTorsp">
|
||||
<view class="wrapperDEghTTorsp">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view class="cu-form-group"
|
||||
style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;">
|
||||
<view class="title text-black">手机号</view>
|
||||
<input type="number" :value="phone" placeholder="请输入手机号" maxlength="11" data-key="phone"
|
||||
@input="inputChange" />
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group padding-right-xs"
|
||||
style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;">
|
||||
<text class="title text-black">验证码</text>
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
||||
@input="inputChange" @confirm="startReg" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
||||
@input="inputChangeDEghTTorsp" @confirm="startRegDEghTTorsp" />
|
||||
<button class="send-msgDEghTTorsp" @click="sendMsgDEghTTorsp" :disabled="sending">{{ sendTime }}</button>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group"
|
||||
style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;">
|
||||
<text class="title text-black">设置密码</text>
|
||||
<input type="password" :value="password" placeholder="请设置密码" placeholder-class="input-empty"
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChange" @confirm="startReg" />
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChangeDEghTTorsp" @confirm="startRegDEghTTorsp" />
|
||||
</view>
|
||||
<!-- <view class="cu-form-group"
|
||||
style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;"
|
||||
v-if="required == '是'">
|
||||
<text class="title text-black">邀请码</text>
|
||||
<input type="" maxlength="6" :value="invitation" placeholder="请填写邀请码(必填)" data-key="invitation"
|
||||
@input="inputChange" @confirm="startReg" />
|
||||
@input="inputChangeDEghTTorsp" @confirm="startRegDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group"
|
||||
style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;"
|
||||
v-if="required == '否'">
|
||||
<text class="title text-black">邀请码</text>
|
||||
<input type="" maxlength="6" :value="invitation" placeholder="请填写邀请码(选填)" data-key="invitation"
|
||||
@input="inputChange" @confirm="startReg" />
|
||||
@input="inputChangeDEghTTorsp" @confirm="startRegDEghTTorsp" />
|
||||
</view> -->
|
||||
</view>
|
||||
<button class="confirm-btn" @click="startReg">立即注册</button>
|
||||
<view class="footer">
|
||||
<text @tap="isShowAgree" class="cuIcon"
|
||||
<button class="confirm-btnDEghTTorsp" @click="startRegDEghTTorsp">立即注册</button>
|
||||
<view class="footerDEghTTorsp">
|
||||
<text @tap="isShowAgreeDEghTTorsp" class="cuIcon"
|
||||
:class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">同意</text>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/me/setting/mimi" open-type="navigate">《隐私政策》</navigator>
|
||||
@@ -77,7 +77,7 @@
|
||||
if (a) {
|
||||
this.isEnable = a;
|
||||
}
|
||||
this.invitationMa();
|
||||
this.invitationMaDEghTTorsp();
|
||||
// #ifdef APP-PLUS
|
||||
switch (uni.getSystemInfoSync().platform) {
|
||||
case 'android':
|
||||
@@ -95,17 +95,8 @@
|
||||
_this = this;
|
||||
},
|
||||
methods: {
|
||||
showMa() {
|
||||
//查询官方邀请码
|
||||
this.$Request.getT('/app/common/type/4').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.invitationCode = res.data.value;
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
// 注册邀请码必填
|
||||
invitationMa() {
|
||||
invitationMaDEghTTorsp() {
|
||||
this.$Request.getT('/app/common/type/3').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.required = res.data.value;
|
||||
@@ -113,13 +104,10 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
inputChange(e) {
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
@@ -135,7 +123,7 @@
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
sendMsg() {
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
phone
|
||||
} = this;
|
||||
@@ -163,11 +151,11 @@
|
||||
});
|
||||
}
|
||||
},
|
||||
isShowAgree() {
|
||||
isShowAgreeDEghTTorsp() {
|
||||
//是否选择协议
|
||||
_this.showAgree = !_this.showAgree;
|
||||
},
|
||||
startReg() {
|
||||
startRegDEghTTorsp() {
|
||||
if (this.phone.length != 11) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
@@ -236,36 +224,6 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
getUserInfo(userId, token) {
|
||||
this.$Request.get("/app/user/selectUserById").then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync('token', token)
|
||||
uni.setStorageSync('userId', res.data.userId)
|
||||
uni.setStorageSync('avatar', res.data.avatar)
|
||||
uni.setStorageSync('invitationCode', res.data.invitationCode)
|
||||
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
||||
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
||||
this.$Request.get("/app/UserVip/isUserVip").then(res => {
|
||||
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
||||
uni.setStorageSync('isVIP', true)
|
||||
} else {
|
||||
uni.setStorageSync('isVIP', false)
|
||||
}
|
||||
});
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg
|
||||
});
|
||||
this.$queue.logout();
|
||||
}
|
||||
uni.hideLoading();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -277,7 +235,7 @@
|
||||
background: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.footer {
|
||||
.footerDEghTTorsp {
|
||||
padding-left: 140upx;
|
||||
margin-top: 32upx;
|
||||
text-align: center;
|
||||
@@ -285,7 +243,7 @@
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
.send-msgDEghTTorsp {
|
||||
border-radius: 30px;
|
||||
color: white;
|
||||
height: 30px;
|
||||
@@ -295,7 +253,7 @@
|
||||
}
|
||||
|
||||
|
||||
.container {
|
||||
.containerDEghTTorsp {
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
@@ -303,7 +261,7 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #FFFFFF;
|
||||
@@ -311,12 +269,12 @@
|
||||
}
|
||||
|
||||
|
||||
.input-content {
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 32upx 80upx;
|
||||
}
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 600upx;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
31
pages/ghtwwlkXYG/DpMpwBghOD.vue
Normal file
31
pages/ghtwwlkXYG/DpMpwBghOD.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6772.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6773.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
235
pages/ghtwwlkXYG/EAkIghCGJS.vue
Normal file
235
pages/ghtwwlkXYG/EAkIghCGJS.vue
Normal file
@@ -0,0 +1,235 @@
|
||||
<template>
|
||||
<view class="containerDEghTTorsp">
|
||||
<view class="wrapperDEghTTorsp">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title">手机号</view>
|
||||
<input type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">验证码</text>
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<button class="send-msgDEghTTorsp" @click="sendMsgDEghTTorsp" :disabled="sendIng">{{sendTime}}</button>
|
||||
</view>
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">设置密码</text>
|
||||
<input type="password" :value="password" placeholder="请设置新密码" placeholder-class="input-empty"
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view>
|
||||
</view>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">立即重置</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: '',
|
||||
mobile: '',
|
||||
password: '',
|
||||
sendIng: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
loginIng: false
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (mobile.length !== 11) {
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else {
|
||||
uni.showLoading({
|
||||
title: '正在发送验证码...'
|
||||
})
|
||||
this.$u.get('/app/Login/sendMsg/' + mobile + '/forget').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sendIng = true;
|
||||
uni.showToast({
|
||||
title: '验证码发送成功请注意查收',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sendIng = false;
|
||||
this.sendTime = '获取验证码'
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sendIng = true;
|
||||
this.sendTime = count - 1 + '秒后获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBackDEghTTorsp() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
||||
|
||||
navToDEghTTorsp(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
},
|
||||
toLoginDEghTTorsp() {
|
||||
const {
|
||||
mobile,
|
||||
password,
|
||||
code
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
// this.$queue.showToast("请输入手机号");
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (!code) {
|
||||
// this.$queue.showToast("密码位数必须大于六位");
|
||||
uni.showToast({
|
||||
title: '请输入验证码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (!password) {
|
||||
// this.$queue.showToast("请设置密码");
|
||||
uni.showToast({
|
||||
title: '请输入密码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else {
|
||||
this.loginIng = true;
|
||||
// this.$queue.showLoading("正在修改密码中...");
|
||||
uni.showLoading({
|
||||
title: '正在修改密码中...'
|
||||
})
|
||||
this.$u.post('/app/Login/forgetPwd?pwd=' + password + '&phone=' + mobile + '&msg=' + code).then(
|
||||
res => {
|
||||
// this.$Request.postJson("/appLogin/forgetPwd",{
|
||||
// pwd: password,
|
||||
// phone: mobile,
|
||||
// msg: code
|
||||
// }).then(res => {
|
||||
uni.hideLoading();
|
||||
if (res.code === 0) {
|
||||
uni.showToast({
|
||||
title: '密码找回成功',
|
||||
icon: 'none'
|
||||
});
|
||||
setTimeout(function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
});
|
||||
}, 1000)
|
||||
|
||||
} else {
|
||||
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '密码找回失败',
|
||||
content: res.msg,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
page {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.send-msgDEghTTorsp {
|
||||
border-radius: 30px;
|
||||
color: white;
|
||||
height: 30px;
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
background: #ff7581;
|
||||
}
|
||||
|
||||
.containerDEghTTorsp {
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #ffffff;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
border-radius: 30px;
|
||||
margin-top: 40px;
|
||||
background: #ff7581;
|
||||
/* background: linear-gradient(to left, #3a55b9 0, #5074FF 100%); */
|
||||
color: #ffffff;
|
||||
font-size: 32rpx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
368
pages/ghtwwlkXYG/GmyPpJyghK.vue
Normal file
368
pages/ghtwwlkXYG/GmyPpJyghK.vue
Normal file
@@ -0,0 +1,368 @@
|
||||
<template>
|
||||
<view class="containerDEghTTorsp">
|
||||
<view class="bg u-absolute" style="width: 100%;height: 100%;overflow: hidden;top: 0;">
|
||||
<u-image src="../../static/images/i_bg.png" style="width: 100%;height:100%" mode=""></u-image>
|
||||
</view>
|
||||
<view class="wrapperDEghTTorsp u-relative" style="padding-top: 48rpx;box-sizing: border-box;">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view style="font-size: 58rpx;font-weight: bold;color: #333;margin-bottom: 48rpx;">注册</view>
|
||||
<view class="cu-form-groupDEghTTorsp" >
|
||||
<view class="title">手机号</view>
|
||||
<input class="input" type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-groupDEghTTorsp" >
|
||||
<text class="title">验证码</text>
|
||||
<view class="input flex">
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<button class="send-msgDEghTTorsp" @click="sendMsgDEghTTorsp" :disabled="sending">{{ sendTime }}</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="cu-form-groupDEghTTorsp" >
|
||||
<text class="title">设置密码</text>
|
||||
<input class="input" type="password" :value="password" placeholder="请设置新密码" placeholder-class="input-empty"
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view>
|
||||
<!-- <view class="cu-form-groupDEghTTorsp"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">邀请码</text>
|
||||
<input type="text" v-if="registerCode == '是'" :value="invitation" placeholder="请填写邀请码"
|
||||
data-key="invitation" maxlength="20" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<input type="text" v-if="registerCode == '否'" :value="invitation" placeholder="请填写邀请码(选填)"
|
||||
data-key="invitation" maxlength="20" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view> -->
|
||||
<button class="confirm-btnDEghTTorsp" @click="toRegisterDEghTTorsp">注册</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">登录</button>
|
||||
</view>
|
||||
<view class="footerViewDEghTTorsp">
|
||||
<text @tap="isShowAgreeDEghTTorsp" class="cuIcon"
|
||||
:class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">同意</text>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/me/setting/mimi" open-type="navigate" style="color: #37A6FF;">《隐私政策》</navigator>
|
||||
和
|
||||
<navigator url="/me/setting/xieyi" open-type="navigate" style="color: #37A6FF;">《用户协议》</navigator>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #ifdef H5 -->
|
||||
<!-- <div v-if="isWeixin" style="width: 100%;height: 100%;position: fixed;top: 0;z-index: 999;background: url('../../static/images/open_guide.png') no-repeat center bottom / cover;"></div> -->
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showAgree: false,
|
||||
code: '',
|
||||
mobile: '',
|
||||
password: '',
|
||||
sending: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
relation: "",
|
||||
invitation: '',
|
||||
registerCode: '',
|
||||
qdCodeion: '',
|
||||
isWeixin: false,
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
let relation = e.invitation
|
||||
if (relation) {
|
||||
this.relation = relation;
|
||||
this.invitation = relation;
|
||||
}
|
||||
if (e.qdCode) {
|
||||
this.qdCodeion = e.qdCode
|
||||
}
|
||||
this.$u.get('/app/common/type/3').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.registerCode = res.data.value
|
||||
}
|
||||
});
|
||||
let u = navigator.userAgent;
|
||||
if ( u.toLowerCase().indexOf('micromessenger') !== -1) {
|
||||
this.isWeixin = true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
isShowAgreeDEghTTorsp() {
|
||||
//是否选择协议
|
||||
this.showAgree = !this.showAgree;
|
||||
},
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (mobile.length !== 11) {
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else {
|
||||
uni.showLoading({
|
||||
title: '正在发送验证码...'
|
||||
})
|
||||
this.$u.get('/app/Login/sendMsg/' + mobile + '/login').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
uni.showToast({
|
||||
title: '验证码发送成功请注意查收',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码';
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
|
||||
|
||||
toLoginDEghTTorsp() {
|
||||
console.log("123");
|
||||
uni.reLaunch({
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
});
|
||||
},
|
||||
toRegisterDEghTTorsp() {
|
||||
const {
|
||||
mobile,
|
||||
password,
|
||||
code,
|
||||
showAgree,
|
||||
invitation,
|
||||
registerCode,
|
||||
qdCodeion
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
uni.showToast({
|
||||
title: '请输入账号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!code) {
|
||||
uni.showToast({
|
||||
title: '请输入验证码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!password) {
|
||||
uni.showToast({
|
||||
title: '请设置密码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (password.length < 6) {
|
||||
uni.showToast({
|
||||
title: '密码位数必须大于六位',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (invitation.length == 0 && registerCode == '是') {
|
||||
uni.showToast({
|
||||
title: '请输入邀请码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!showAgree) {
|
||||
uni.showToast({
|
||||
title: '请先同意《隐私政策》和《用户协议》',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
this.logining = true;
|
||||
uni.showLoading({
|
||||
title: '注册中...'
|
||||
})
|
||||
let platform = ''
|
||||
// #ifdef APP
|
||||
platform = 'app'
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
platform = 'h5'
|
||||
// #endif
|
||||
this.$u.post('/app/Login/registerCode?password=' + password + '&phone=' + mobile + '&msg=' + code +
|
||||
'&inviterCode=' + invitation + '&platform=' + platform + '&qdCode=' + qdCodeion).then(res => {
|
||||
if (res.code === 0) {
|
||||
// this.$queue.remove('invitation');
|
||||
uni.setStorageSync('token', res.token)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
//设置渠道码
|
||||
if (res.user.qdCode) {
|
||||
uni.setStorageSync('qdCode', res.user.qdCode)
|
||||
}
|
||||
uni.showToast({
|
||||
title: '注册成功',
|
||||
icon: 'none'
|
||||
})
|
||||
setTimeout(function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ghtwwlkXYG/YEZelghNit'
|
||||
})
|
||||
}, 1000)
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '注册失败',
|
||||
content: res.msg
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.footerViewDEghTTorsp {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 178rpx;
|
||||
.cuIcon::before{
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
.cuIcon-round::before {
|
||||
content: "\e6d7";
|
||||
}
|
||||
.cuIcon-radiobox:before {
|
||||
content: "\e75b";
|
||||
color: #37A6FF;
|
||||
}
|
||||
}
|
||||
|
||||
.send-msgDEghTTorsp {
|
||||
line-height: initial;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #EC6F48;
|
||||
border: none;
|
||||
background-color: transparent!important;
|
||||
}
|
||||
.send-msgDEghTTorsp::after{
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.containerDEghTTorsp {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 56rpx;
|
||||
.cu-form-groupDEghTTorsp{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 48rpx;
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
.title{
|
||||
margin-bottom: 32rpx;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.input{
|
||||
width: 100%;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
background-color: #fff;
|
||||
align-items: center;
|
||||
padding: 22rpx 32rpx 22rpx 24rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
border-radius: 16rpx;
|
||||
margin-top: 40rpx;
|
||||
background: #EC6F48;
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
|
||||
&:after {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
31
pages/ghtwwlkXYG/HghnYVfNmN.vue
Normal file
31
pages/ghtwwlkXYG/HghnYVfNmN.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6774.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6775.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -1,20 +1,20 @@
|
||||
<template>
|
||||
<view class="containerView">
|
||||
<view class="containerViewDEghTTorsp">
|
||||
<view class="cu-form-group"
|
||||
style="margin: 30upx;border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title">手机号</view>
|
||||
<input type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChange" />
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group"
|
||||
style="margin: 30upx;border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">验证码</text>
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code" @input="inputChange"
|
||||
@confirm="toLogin" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sendIng">{{ sendTime }}</button>
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code" @input="inputChangeDEghTTorsp"
|
||||
@confirm="toLoginDEghTTorsp" />
|
||||
<button class="send-msgDEghTTorsp" @click="sendMsgDEghTTorsp" :disabled="sendIng">{{ sendTime }}</button>
|
||||
</view>
|
||||
|
||||
<button class="confirm-btn" @click="toLogin" :disabled="loginIng">立即绑定</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp" :disabled="loginIng">立即绑定</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -41,11 +41,11 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
inputChange(e) {
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
navBackDEghTTorsp() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
countDown() {
|
||||
@@ -63,7 +63,7 @@
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
sendMsg() {
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
@@ -90,7 +90,7 @@
|
||||
});
|
||||
}
|
||||
},
|
||||
toLogin() {
|
||||
toLoginDEghTTorsp() {
|
||||
const {
|
||||
mobile,
|
||||
code
|
||||
@@ -152,7 +152,7 @@
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
.send-msgDEghTTorsp {
|
||||
border-radius: 30px;
|
||||
color: white;
|
||||
height: 30px;
|
||||
@@ -161,7 +161,7 @@
|
||||
background: #557EFD;
|
||||
}
|
||||
|
||||
.containerView {
|
||||
.containerViewDEghTTorsp {
|
||||
top: 0;
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
@@ -174,7 +174,7 @@
|
||||
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 600upx;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
@@ -1,44 +1,44 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="containerDEghTTorsp">
|
||||
<view class="bg u-absolute" style="width: 100%;height: 100%;overflow: hidden;top: 0;">
|
||||
<u-image src="../../static/images/i_bg.png" style="width: 100%;height:100%" mode=""></u-image>
|
||||
</view>
|
||||
<view class="wrapper u-relative" style="padding-top: 48rpx;box-sizing: border-box;">
|
||||
<view class="input-content">
|
||||
<view class="wrapperDEghTTorsp u-relative" style="padding-top: 48rpx;box-sizing: border-box;">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view style="font-size: 58rpx;font-weight: bold;color: #333;margin-bottom: 48rpx;">注册</view>
|
||||
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<view class="title">手机号</view>
|
||||
<input class="input" type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChange" />
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<text class="title">验证码</text>
|
||||
<view class="input flex">
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
||||
@input="inputChange" @confirm="toLogin" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<button class="send-msgDEghTTorsp" @click="sendMsgDEghTTorsp" :disabled="sending">{{ sendTime }}</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<text class="title">设置密码</text>
|
||||
<input class="input" type="password" :value="password" placeholder="请设置新密码" placeholder-class="input-empty"
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChange" @confirm="toLogin" />
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view>
|
||||
<!-- <view class="cu-form-group"
|
||||
<!-- <view class="cu-form-groupDEghTTorsp"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">邀请码</text>
|
||||
<input type="text" v-if="registerCode == '是'" :value="invitation" placeholder="请填写邀请码"
|
||||
data-key="invitation" maxlength="20" @input="inputChange" @confirm="toLogin" />
|
||||
data-key="invitation" maxlength="20" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<input type="text" v-if="registerCode == '否'" :value="invitation" placeholder="请填写邀请码(选填)"
|
||||
data-key="invitation" maxlength="20" @input="inputChange" @confirm="toLogin" />
|
||||
data-key="invitation" maxlength="20" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view> -->
|
||||
<button class="confirm-btn" @click="toRegister">注册</button>
|
||||
<button class="confirm-btn" @click="toLogin">登录</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toRegisterDEghTTorsp">注册</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">登录</button>
|
||||
</view>
|
||||
<view class="footerView">
|
||||
<text @tap="isShowAgree" class="cuIcon"
|
||||
<view class="footerViewDEghTTorsp">
|
||||
<text @tap="isShowAgreeDEghTTorsp" class="cuIcon"
|
||||
:class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">注册即同意</text>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/me/setting/mimi" open-type="navigate" style="color: #37A6FF;">《隐私政策》</navigator>
|
||||
@@ -82,19 +82,11 @@
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
isShowAgree() {
|
||||
isShowAgreeDEghTTorsp() {
|
||||
//是否选择协议
|
||||
this.showAgree = !this.showAgree;
|
||||
},
|
||||
showMa() {
|
||||
//查询官方邀请码
|
||||
this.$Request.getT('/common/type/88').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.invitation = res.data.value;
|
||||
}
|
||||
});
|
||||
},
|
||||
sendMsg() {
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
@@ -150,26 +142,18 @@
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
inputChange(e) {
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
||||
|
||||
navTo(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
});
|
||||
},
|
||||
toLogin() {
|
||||
console.log("123");
|
||||
toLoginDEghTTorsp() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/login'
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
});
|
||||
},
|
||||
toRegister() {
|
||||
toRegisterDEghTTorsp() {
|
||||
const {
|
||||
mobile,
|
||||
password,
|
||||
@@ -260,7 +244,7 @@
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
}, 1000)
|
||||
// this.getUserInfo(res.userId, res.token);
|
||||
// this.getUserInfoDEghTTorsp(res.userId, res.token);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
@@ -271,7 +255,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
getUserInfo(userId, token) {
|
||||
getUserInfoDEghTTorsp(userId, token) {
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code === 0) {
|
||||
// #ifdef APP-PLUS
|
||||
@@ -356,7 +340,7 @@
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.footerView {
|
||||
.footerViewDEghTTorsp {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@@ -381,7 +365,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
.send-msgDEghTTorsp {
|
||||
line-height: initial;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
@@ -389,12 +373,12 @@
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
.send-msg::after{
|
||||
.send-msgDEghTTorsp::after{
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.container {
|
||||
.containerDEghTTorsp {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -403,16 +387,16 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
.wrapperDEghTTorsp {
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
}
|
||||
|
||||
.input-content {
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 56rpx;
|
||||
}
|
||||
.cu-form-group{
|
||||
.cu-form-groupDEghTTorsp{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
@@ -435,7 +419,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.confirm-btn {
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
text-align: center;
|
||||
437
pages/ghtwwlkXYG/WVEtZeeghKApp.vue
Normal file
437
pages/ghtwwlkXYG/WVEtZeeghKApp.vue
Normal file
@@ -0,0 +1,437 @@
|
||||
<template>
|
||||
<view class="containerDEghTTorsp">
|
||||
<view class="bg u-absolute" style="width: 100%;height: 100%;overflow: hidden;top: 0;">
|
||||
<u-image src="../../static/images/i_bg.png" style="width: 100%;height:100%" mode=""></u-image>
|
||||
</view>
|
||||
<view class="wrapperDEghTTorsp u-relative" style="padding-top: 48rpx;box-sizing: border-box;">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view style="font-size: 58rpx;font-weight: bold;color: #333;margin-bottom: 48rpx;">注册</view>
|
||||
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<view class="title">手机号</view>
|
||||
<input class="input" type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<text class="title">验证码</text>
|
||||
<view class="input flex">
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<button class="send-msgDEghTTorsp" @click="sendMsgDEghTTorsp" :disabled="sending">{{ sendTime }}</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<text class="title">设置密码</text>
|
||||
<input class="input" type="password" :value="password" placeholder="请设置新密码" placeholder-class="input-empty"
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view>
|
||||
<!-- <view class="cu-form-groupDEghTTorsp"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">邀请码</text>
|
||||
<input type="text" v-if="registerCode == '是'" :value="invitation" placeholder="请填写邀请码"
|
||||
data-key="invitation" maxlength="20" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<input type="text" v-if="registerCode == '否'" :value="invitation" placeholder="请填写邀请码(选填)"
|
||||
data-key="invitation" maxlength="20" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view> -->
|
||||
<button class="confirm-btnDEghTTorsp" @click="toRegisterDEghTTorsp">注册</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">登录</button>
|
||||
</view>
|
||||
<view class="footerViewDEghTTorsp">
|
||||
<text @tap="isShowAgreeDEghTTorsp" class="cuIcon"
|
||||
:class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">注册即同意</text>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/me/setting/mimi" open-type="navigate" style="color: #37A6FF;">《隐私政策》</navigator>
|
||||
与
|
||||
<navigator url="/me/setting/xieyi" open-type="navigate" style="color: #37A6FF;">《用户协议》</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showAgree: false,
|
||||
code: '',
|
||||
mobile: '',
|
||||
password: '',
|
||||
sending: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
relation: "",
|
||||
invitation: '',
|
||||
registerCode: '',
|
||||
qdCodeion: '', //渠道码
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
if (uni.getStorageSync('qdCodeion')) {
|
||||
this.qdCodeion = uni.getStorageSync('qdCodeion')
|
||||
}
|
||||
let relation = uni.getStorageSync('invitation')
|
||||
if (relation) {
|
||||
this.relation = relation;
|
||||
this.invitation = relation;
|
||||
}
|
||||
this.$u.get('/app/common/type/3').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.registerCode = res.data.value
|
||||
}
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
isShowAgreeDEghTTorsp() {
|
||||
//是否选择协议
|
||||
this.showAgree = !this.showAgree;
|
||||
},
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (mobile.length !== 11) {
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else {
|
||||
uni.showLoading({
|
||||
title: '正在发送验证码...'
|
||||
})
|
||||
this.$u.get('/app/Login/sendMsg/' + mobile + '/login').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
uni.showToast({
|
||||
title: '验证码发送成功请注意查收',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码';
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
|
||||
|
||||
toLoginDEghTTorsp() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
});
|
||||
},
|
||||
toRegisterDEghTTorsp() {
|
||||
const {
|
||||
mobile,
|
||||
password,
|
||||
code,
|
||||
showAgree,
|
||||
invitation,
|
||||
registerCode,
|
||||
qdCodeion
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
uni.showToast({
|
||||
title: '请输入账号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!code) {
|
||||
uni.showToast({
|
||||
title: '请输入验证码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!password) {
|
||||
uni.showToast({
|
||||
title: '请设置密码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (password.length < 6) {
|
||||
uni.showToast({
|
||||
title: '密码位数必须大于六位',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (invitation.length === 0 && registerCode === '是') {
|
||||
uni.showToast({
|
||||
title: '请输入邀请码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!showAgree) {
|
||||
uni.showToast({
|
||||
title: '请先同意《隐私政策》和《用户协议》',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
this.logining = true;
|
||||
uni.showLoading({
|
||||
title: '注册中...'
|
||||
})
|
||||
let platform = ''
|
||||
// #ifdef APP
|
||||
platform = 'app'
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
platform = 'h5'
|
||||
// #endif
|
||||
this.$u.post('/app/Login/registerCode?password=' + password + '&phone=' + mobile + '&msg=' + code +
|
||||
'&inviterCode=' + invitation + '&platform=' + platform + '&qdCode=' + qdCodeion).then(res => {
|
||||
if (res.code === 0) {
|
||||
// this.$queue.remove('invitation');
|
||||
uni.setStorageSync('token', res.token)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
//设置渠道码
|
||||
if (res.user.qdCod) {
|
||||
uni.setStorageSync('qdCod', res.user.qdCod)
|
||||
}
|
||||
|
||||
uni.showToast({
|
||||
title: '注册成功',
|
||||
icon: 'none'
|
||||
})
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
}, 1000)
|
||||
// this.getUserInfoDEghTTorsp(res.userId, res.token);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '注册失败',
|
||||
content: res.msg
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
getUserInfoDEghTTorsp(userId, token) {
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code === 0) {
|
||||
// #ifdef APP-PLUS
|
||||
if (uni.getSystemInfoSync().platform == "android") {
|
||||
let clientid = plus.push.getClientInfo().clientid;
|
||||
this.$Request.postT('/appLogin/updateClientId?clientId=' + clientid + '&userId=' +
|
||||
userId).then(res => {
|
||||
|
||||
});
|
||||
}
|
||||
// #endif
|
||||
uni.setStorageSync('image_url', res.data.imageUrl ? res.data.imageUrl :
|
||||
'/static/img/common/logo.jpg')
|
||||
uni.setStorageSync('relation_id', res.data.relationId)
|
||||
uni.setStorageSync('relation', res.data.invitationCode)
|
||||
uni.setStorageSync('grade', res.data.grade)
|
||||
uni.setStorageSync('phone', res.data.phone)
|
||||
uni.setStorageSync('token', res.token)
|
||||
uni.setStorageSync('userId', res.data.userId)
|
||||
uni.setStorageSync('isInvitation', res.data.isInvitation)
|
||||
uni.setStorageSync('userName', res.data.userName ? res.data.userName : res.data.phone)
|
||||
|
||||
// this.$queue.setData('image_url', res.data.imageUrl ? res.data.imageUrl : '/static/img/common/logo.jpg');
|
||||
// this.$queue.setData('relation_id', res.data.relationId);
|
||||
// this.$queue.setData('relation', res.data.invitationCode);
|
||||
// this.$queue.setData('grade', res.data.grade);
|
||||
// this.$queue.setData('mobile', res.data.mobile);
|
||||
// this.$queue.setData('isInvitation', res.data.isInvitation);
|
||||
// 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'
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg
|
||||
});
|
||||
this.$queue.logout();
|
||||
}
|
||||
uni.hideLoading();
|
||||
})
|
||||
// this.$Request.postJson('/app/selectUserById?userId=' + userId).then(res => {
|
||||
// if (res.code === 0) {
|
||||
// // #ifdef APP-PLUS
|
||||
// if (uni.getSystemInfoSync().platform == "android") {
|
||||
// let clientid = plus.push.getClientInfo().clientid;
|
||||
// this.$Request.postT('/appLogin/updateClientId?clientId=' + clientid + '&userId=' + userId).then(res => {
|
||||
|
||||
// });
|
||||
// }
|
||||
// // #endif
|
||||
// this.$queue.setData('image_url', res.data.imageUrl ? res.data.imageUrl : '/static/img/common/logo.jpg');
|
||||
// this.$queue.setData('relation_id', res.data.relationId);
|
||||
// this.$queue.setData('relation', res.data.invitationCode);
|
||||
// this.$queue.setData('grade', res.data.grade);
|
||||
// this.$queue.setData('mobile', res.data.mobile);
|
||||
// this.$queue.setData('isInvitation', res.data.isInvitation);
|
||||
// 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'
|
||||
// });
|
||||
// } else {
|
||||
// uni.showModal({
|
||||
// showCancel: false,
|
||||
// title: '登录失败',
|
||||
// content: res.msg
|
||||
// });
|
||||
// this.$queue.logout();
|
||||
// }
|
||||
// uni.hideLoading();
|
||||
// });
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" >
|
||||
page {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.footerViewDEghTTorsp {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 78rpx;
|
||||
.cuIcon::before{
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
.cuIcon-round::before {
|
||||
content: "\e6d7";
|
||||
}
|
||||
.cuIcon-radiobox:before {
|
||||
content: "\e75b";
|
||||
color: #37A6FF;
|
||||
}
|
||||
}
|
||||
|
||||
.send-msgDEghTTorsp {
|
||||
line-height: initial;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #EC6F48;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
.send-msgDEghTTorsp::after{
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.containerDEghTTorsp {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.wrapperDEghTTorsp {
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
}
|
||||
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 56rpx;
|
||||
}
|
||||
.cu-form-groupDEghTTorsp{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 48rpx;
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
.title{
|
||||
margin-bottom: 32rpx;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.input{
|
||||
width: 100%;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
background-color: #fff;
|
||||
align-items: center;
|
||||
padding: 22rpx 32rpx 22rpx 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
border-radius: 16rpx;
|
||||
margin-top: 40rpx;
|
||||
background: #EC6F48;
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
|
||||
&:after {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,18 +1,18 @@
|
||||
<template>
|
||||
<view class="containersView">
|
||||
<view class="containersViewDEghTTorsp">
|
||||
<div style="width: 100%;height: 85%;position: absolute;background: url('../../static/images/appeq_bg.png') no-repeat center bottom / cover;"></div>
|
||||
|
||||
<view style="text-align: center;position: relative;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;">
|
||||
<image style="width: 124rpx;height: 124rpx;margin-top: -920rpx;border-radius:20upx;" src="../../static/images/appLogo.png"></image>
|
||||
<view style="font-size: 40rpx;margin-top: 22rpx;color: #FFFFFF;font-weight: bold;">斯耀短剧APP{{isWeixin}}</view>
|
||||
<view style="font-size: 28rpx;margin-top: 16rpx;color: #FFFFFF;font-weight: bold;">海量电子榨菜 免费又过瘾</view>
|
||||
<button class="confirm-btn" @click="taobaoLogin">{{confirmBtn}}</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="taobaoLoginDEghTTorsp">{{confirmBtn}}</button>
|
||||
|
||||
</view>
|
||||
<view id="shareit" v-if="show_share" @tap="closeShare">
|
||||
<image class="arrow" src="https://renwu.xiansqx.com/img/20210813/9aa484db4c60458f86deb2a8ab6fe400.png">
|
||||
<view id="shareitDEghTTorsp" v-if="show_share" @tap="closeShareDEghTTorsp">
|
||||
<image class="arrowDEghTTorsp" src="https://renwu.xiansqx.com/img/20210813/9aa484db4c60458f86deb2a8ab6fe400.png">
|
||||
</image>
|
||||
<view id="follow">点击右上角按钮,选择浏览器打开下载!</view>
|
||||
<view id="followDEghTTorsp">点击右上角按钮,选择浏览器打开下载!</view>
|
||||
</view>
|
||||
<!-- #ifdef H5 -->
|
||||
<div v-if="isWeixin" style="width: 100%;height: 100%;position: absolute;top: 0;background: url('../../static/images/open_guide.png') no-repeat center bottom / cover;"></div>
|
||||
@@ -49,10 +49,10 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
closeShare() {
|
||||
closeShareDEghTTorsp() {
|
||||
this.show_share = false;
|
||||
},
|
||||
taobaoLogin() {
|
||||
taobaoLoginDEghTTorsp() {
|
||||
|
||||
var u = navigator.userAgent;
|
||||
if (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1) {
|
||||
@@ -151,11 +151,11 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.containersView {
|
||||
.containersViewDEghTTorsp {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
#shareit {
|
||||
#shareitDEghTTorsp {
|
||||
-webkit-user-select: none;
|
||||
position: fixed;
|
||||
/*width: 100%;*/
|
||||
@@ -167,11 +167,11 @@
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
#shareit img {
|
||||
#shareitDEghTTorsp img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
.arrowDEghTTorsp {
|
||||
width: 100px;
|
||||
height: 150px;
|
||||
position: absolute;
|
||||
@@ -179,7 +179,7 @@
|
||||
top: 1%;
|
||||
}
|
||||
|
||||
#follow {
|
||||
#followDEghTTorsp {
|
||||
margin-right: 60px;
|
||||
margin-left: 30px;
|
||||
width: 90%;
|
||||
@@ -193,99 +193,13 @@
|
||||
margin-top: 160px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
padding-left: 140upx;
|
||||
margin-top: 32upx;
|
||||
font-size: 24upx;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
page {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
border-radius: 30px;
|
||||
color: black;
|
||||
background: white;
|
||||
height: 30px;
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.container {
|
||||
top: 0;
|
||||
padding-top: 50px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #fff;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
.right-top-sign {
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
right: -15px;
|
||||
z-index: 95;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
display: block;
|
||||
content: '';
|
||||
width: 20px;
|
||||
height: 40px;
|
||||
background: #e10a07;
|
||||
}
|
||||
|
||||
&:before {
|
||||
transform: rotate(50deg);
|
||||
border-radius: 0 50px 0 0;
|
||||
}
|
||||
|
||||
&:after {
|
||||
position: absolute;
|
||||
right: -198px;
|
||||
top: 0;
|
||||
transform: rotate(-50deg);
|
||||
border-radius: 50px 0 0 0;
|
||||
/* background: pink; */
|
||||
}
|
||||
}
|
||||
|
||||
.left-bottom-sign {
|
||||
position: absolute;
|
||||
left: -270px;
|
||||
bottom: -320px;
|
||||
/*border: 100upx solid #d0d1fd;*/
|
||||
border-radius: 50%;
|
||||
padding: 90px;
|
||||
}
|
||||
|
||||
.welcome {
|
||||
position: relative;
|
||||
left: 30px;
|
||||
top: -55px;
|
||||
font-size: 28px;
|
||||
color: #555;
|
||||
text-shadow: 1px 0px 1px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.input-content {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.confirm-btn {
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 416rpx;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="wrapper">
|
||||
<view class="input-content">
|
||||
<view class="containerDEghTTorsp">
|
||||
<view class="wrapperDEghTTorsp">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view class="cu-form-group" style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;">
|
||||
<view class="title text-black">手机号</view>
|
||||
<input type="number" :value="phone" placeholder="请输入手机号" maxlength="11" data-key="phone"
|
||||
@@ -12,7 +12,7 @@
|
||||
<text class="title text-black">验证码</text>
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
||||
@input="inputChange" @confirm="startReg" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
||||
<button class="send-msgDEghTTorsp" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group" style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;">
|
||||
@@ -33,8 +33,8 @@
|
||||
@input="inputChange" @confirm="startReg" />
|
||||
</view> -->
|
||||
</view>
|
||||
<button class="confirm-btn" @click="startReg">立即注册</button>
|
||||
<view class="footer">
|
||||
<button class="confirm-btnDEghTTorsp" @click="startReg">立即注册</button>
|
||||
<view class="footerDEghTTorsp">
|
||||
<text @tap="isShowAgree" class="cuIcon"
|
||||
:class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">同意</text>
|
||||
<!-- 协议地址 -->
|
||||
@@ -268,7 +268,7 @@
|
||||
background: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.footer {
|
||||
.footerDEghTTorsp {
|
||||
padding-left: 140upx;
|
||||
margin-top: 32upx;
|
||||
text-align: center;
|
||||
@@ -276,7 +276,7 @@
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
.send-msgDEghTTorsp {
|
||||
border-radius: 30px;
|
||||
color: white;
|
||||
height: 30px;
|
||||
@@ -286,7 +286,7 @@
|
||||
}
|
||||
|
||||
|
||||
.container {
|
||||
.containerDEghTTorsp {
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
@@ -295,7 +295,7 @@
|
||||
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #FFFFFF;
|
||||
@@ -303,12 +303,12 @@
|
||||
}
|
||||
|
||||
|
||||
.input-content {
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 32upx 80upx;
|
||||
}
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 600upx;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
@@ -1,26 +1,26 @@
|
||||
<template>
|
||||
<view class="register">
|
||||
<view class="wrapper">
|
||||
<view class="input-content">
|
||||
<view class="wrapperDEghTTorsp">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view class="cu-form-group" style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;">
|
||||
<view class="title">手机号</view>
|
||||
<input type="number" :disabled="true" :value="phone" placeholder="请输入手机号" maxlength="11" data-key="phone" @input="inputChange" />
|
||||
<input type="number" :disabled="true" :value="phone" placeholder="请输入手机号" maxlength="11" data-key="phone" @input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group" style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;">
|
||||
<text class="title">设置密码</text>
|
||||
<input type="password" :value="password" placeholder="请设置密码" placeholder-class="input-empty" maxlength="20"
|
||||
minlength="6" data-key="password" @input="inputChange" />
|
||||
minlength="6" data-key="password" @input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<!-- <view class="cu-form-group" style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;" v-if="required == '是'">
|
||||
<text class="title">邀请码</text>
|
||||
<input type="number" maxlength="6" :value="invitation" placeholder="请填写邀请码(必填)" data-key="invitation" @input="inputChange" />
|
||||
<input type="number" maxlength="6" :value="invitation" placeholder="请填写邀请码(必填)" data-key="invitation" @input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group" style="border-bottom: 2upx solid whitesmoke;margin-bottom: 20px;" v-if="required == '否'">
|
||||
<text class="title">邀请码</text>
|
||||
<input type="number" maxlength="6" :value="invitation" placeholder="请填写邀请码(选填)" data-key="invitation" @input="inputChange" />
|
||||
<input type="number" maxlength="6" :value="invitation" placeholder="请填写邀请码(选填)" data-key="invitation" @input="inputChangeDEghTTorsp" />
|
||||
</view> -->
|
||||
</view>
|
||||
<button class="confirm-btn" @click="startReg">绑定手机号</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="startRegDEghTTorsp">绑定手机号</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -51,7 +51,7 @@
|
||||
if(d.phone){
|
||||
this.phone = d.phone;
|
||||
}
|
||||
this.invitationMa();
|
||||
this.invitationMaDEghTTorsp();
|
||||
let a = this.$queue.getData("isEnable")
|
||||
if (a) {
|
||||
this.isEnable = a;
|
||||
@@ -73,17 +73,9 @@
|
||||
_this = this;
|
||||
},
|
||||
methods: {
|
||||
showMa() {
|
||||
//查询官方邀请码
|
||||
this.$Request.getT('/app/common/type/4').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.invitationCode = res.data.value;
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 注册邀请码必填
|
||||
invitationMa() {
|
||||
invitationMaDEghTTorsp() {
|
||||
this.$Request.getT('/app/common/type/3').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.required = res.data.value;
|
||||
@@ -91,61 +83,12 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
inputChange(e) {
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码';
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
sendMsg() {
|
||||
const {
|
||||
phone
|
||||
} = this;
|
||||
if (!phone) {
|
||||
this.$queue.showToast("请输入手机号");
|
||||
} else if (phone.length !== 11) {
|
||||
this.$queue.showToast("请输入正确的手机号");
|
||||
} else {
|
||||
this.$queue.showLoading("正在发送验证码...");
|
||||
this.$Request.getT("/msg/sendMsg/" + phone + "/weixin").then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
this.$queue.showToast('验证码发送成功请注意查收');
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
console.log(JSON.stringify(res))
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码',
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
isShowAgree() {
|
||||
//是否选择协议
|
||||
_this.showAgree = !_this.showAgree;
|
||||
},
|
||||
startReg() {
|
||||
|
||||
startRegDEghTTorsp() {
|
||||
if (this.phone.length != 11) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
@@ -201,36 +144,7 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
getUserInfo(userId, token) {
|
||||
this.$Request.get("/app/user/selectUserById").then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync('token', token)
|
||||
uni.setStorageSync('userId', res.data.userId)
|
||||
uni.setStorageSync('avatar', res.data.avatar)
|
||||
uni.setStorageSync('invitationCode', res.data.invitationCode)
|
||||
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
||||
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
||||
this.$Request.get("/app/UserVip/isUserVip").then(res => {
|
||||
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
||||
uni.setStorageSync('isVIP', true)
|
||||
} else {
|
||||
uni.setStorageSync('isVIP', false)
|
||||
}
|
||||
});
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg
|
||||
});
|
||||
this.$queue.logout();
|
||||
}
|
||||
uni.hideLoading();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -241,54 +155,21 @@
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.footer {
|
||||
padding-left: 140upx;
|
||||
margin-top: 32upx;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
|
||||
.send-msg {
|
||||
border-radius: 30px;
|
||||
color: white;
|
||||
height: 30px;
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
background: #5074FF;
|
||||
}
|
||||
|
||||
.send-msgs {
|
||||
border-radius: 30px;
|
||||
color: #999999;
|
||||
height: 30px;
|
||||
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #ffffff;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.input-content {
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
491
pages/ghtwwlkXYG/ghwGgNYLHw.vue
Normal file
491
pages/ghtwwlkXYG/ghwGgNYLHw.vue
Normal file
@@ -0,0 +1,491 @@
|
||||
<template>
|
||||
<view class="containerDEghTTorsp">
|
||||
<!-- 小程序状态下登录 -->
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<view class="mp_wxBoxDEghTTorsp">
|
||||
<view>
|
||||
<view class="headersDEghTTorsp">
|
||||
<image src="../../static/images/logo.png" style="border-radius: 50%;"></image>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view>申请获取以下权限</view>
|
||||
<text>获得你的公开信息(昵称,头像、地区等)</text>
|
||||
</view>
|
||||
<button v-show="weixinPhone" style="background: #ff7581;color: #FFFFFF;" class="bottom"
|
||||
open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
|
||||
授权手机号
|
||||
</button>
|
||||
<button v-show="!weixinPhone" style="background: #ff7581;color: #FFFFFF;" class='bottom'
|
||||
bindtap="getUserProfile" @tap="wxGetUserInfoDEghTTorsp">
|
||||
授权登录
|
||||
</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<view class="wrapperDEghTTorsp">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title">手机号</view>
|
||||
<input type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group" style="border: 2upx solid whitesmoke;border-radius: 30px">
|
||||
<view class="title">密
|
||||
<text style="margin-left: 30rpx;">码</text>
|
||||
</view>
|
||||
<input type="password" placeholder="请输入密码" maxlength="20" :value="code" data-key="code"
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<text class="send-msgDEghTTorsp" @click="forgetDEghTTorsp">忘记密码</text>
|
||||
</view>
|
||||
</view>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">登录</button>
|
||||
|
||||
<view style="margin-top: 32px;text-align: center">
|
||||
<view>
|
||||
没有账号?
|
||||
<text style="color: #ff7581" @click="registerDEghTTorsp()">立即注册</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
<!-- #ifdef MP -->
|
||||
<view class="footerDEghTTorsp">
|
||||
<u-checkbox-group>
|
||||
<u-checkbox v-model="checked" label-size='24upx' shape="circle" @change="radioChangeDEghTTorsp"></u-checkbox>
|
||||
</u-checkbox-group>
|
||||
<view>同意</view>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/me/setting/mimi" open-type="navigate">《隐私政策》</navigator>
|
||||
和
|
||||
<navigator url="/me/setting/xieyi" open-type="navigate">《用户服务协议》</navigator>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
mobile: '',
|
||||
code: '',
|
||||
sessionkey: '',
|
||||
flag: '1',
|
||||
weixinPhone: false,
|
||||
sending: false,
|
||||
sendDataList: {},
|
||||
phone: '',
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
checked: false
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 注册
|
||||
registerDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ghtwwlkXYG/WVEtZeeghK'
|
||||
});
|
||||
},
|
||||
// 忘记密码
|
||||
forgetDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ghtwwlkXYG/EAkIghCGJS'
|
||||
});
|
||||
},
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
radioChangeDEghTTorsp(e) {
|
||||
console.log(e);
|
||||
},
|
||||
//第一授权获取用户信息===》按钮触发
|
||||
wxGetUserInfoDEghTTorsp(e) {
|
||||
let that = this;
|
||||
if (this.checked) {
|
||||
|
||||
|
||||
wx.getUserProfile({
|
||||
desc: '业务需要',
|
||||
success: infoRes => {
|
||||
console.log("infoRes.encryptedData__________:" + JSON.stringify(infoRes.userInfo))
|
||||
let nickName = infoRes.userInfo.nickName; //昵称
|
||||
let avatarUrl = infoRes.userInfo.avatarUrl; //头像
|
||||
let sex = infoRes.userInfo.gender; //头像
|
||||
try {
|
||||
that.loginDEghTTorsp(nickName, avatarUrl, sex);
|
||||
} catch (e) {}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请同意隐私政策和用户服务协议',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
//登录
|
||||
loginDEghTTorsp(nickName, avatarUrl, sex) {
|
||||
let that = this;
|
||||
// 1.wx获取登录用户code
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: function(loginRes) {
|
||||
let data = {
|
||||
code: loginRes.code
|
||||
}
|
||||
that.$u.api.wxLogin(data).then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('openId', res.data.open_id)
|
||||
uni.setStorageSync('unionId', res.data.unionId)
|
||||
that.sessionkey = res.data.session_key;
|
||||
|
||||
let invitationCode = '';
|
||||
if (uni.getStorageSync('invitation')) {
|
||||
invitationCode = uni.getStorageSync('invitation')
|
||||
}
|
||||
let sendData = {
|
||||
openId: uni.getStorageSync('openId'),
|
||||
unionId: uni.getStorageSync('unionId'),
|
||||
userName: nickName,
|
||||
avatar: avatarUrl,
|
||||
sex: sex, //性别
|
||||
inviterCode: invitationCode //别人登录进来携带你的邀请码
|
||||
};
|
||||
that.sendDataList = sendData;
|
||||
that.flag = res.data.flag;
|
||||
if (that.flag == '1') {
|
||||
that.weixinPhone = true;
|
||||
} else {
|
||||
that.getWeixinInfoDEghTTorsp(sendData);
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.msg,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
//小程序微信登录后获取手机号
|
||||
getPhoneNumber: function(e) {
|
||||
if (e.detail.errMsg == 'getPhoneNumber:fail user deny') {
|
||||
console.log('用户拒绝提供手机号');
|
||||
} else {
|
||||
console.log('用户同意提供手机号');
|
||||
this.setPhoneByInsertDEghTTorsp(e.detail.encryptedData, e.detail.iv);
|
||||
}
|
||||
},
|
||||
//小程序微信登录后获取手机号
|
||||
setPhoneByInsertDEghTTorsp(decryptData, iv) {
|
||||
let data = {
|
||||
decryptData: decryptData,
|
||||
key: this.sessionkey,
|
||||
iv: iv
|
||||
};
|
||||
|
||||
this.$u.api.selectPhone(data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.phone = res.data.phoneNumber;
|
||||
this.getWeixinInfoDEghTTorsp(this.sendDataList);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码'
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
sendMsg() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
console.log(mobile)
|
||||
if (!mobile) {
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (mobile.length !== 11) {
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else {
|
||||
uni.showLoading({
|
||||
title: '正在发送验证码...'
|
||||
})
|
||||
this.$u.get('/app/Login/sendMsg/' + mobile + '/login').then(res => {
|
||||
// this.$Request.getT('/appLogin/sendMsg/' + mobile + '/bind').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
uni.showToast({
|
||||
title: '验证码发送成功请注意查收',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
toLoginDEghTTorsp() {
|
||||
// this.$queue.loginClear();
|
||||
// let openid = this.$queue.getData('openid');
|
||||
let openid = uni.getStorageSync('openId')
|
||||
const {
|
||||
mobile,
|
||||
code
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
// this.$queue.showToast('请输入手机号');
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (mobile.length != 11) {
|
||||
// this.$queue.showToast('请输入手机号');
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (!code) {
|
||||
// this.$queue.showToast('请输入密码');
|
||||
uni.showToast({
|
||||
title: '请输入密码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else {
|
||||
uni.showLoading({
|
||||
title: '正在登录中...',
|
||||
})
|
||||
this.$u.post('/app/Login/registerCode?password=' + code + '&phone=' + mobile).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('avatar', res.user.avatar ? res.user.avatar :
|
||||
'../../static/images/logo.png')
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
uni.setStorageSync('sex', res.user.sex)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
//设置渠道码
|
||||
if (res.user.qdCode) {
|
||||
uni.setStorageSync('qdCode', res.user.qdCode)
|
||||
}
|
||||
// uni.setStorageSync('openId', res.user.openId)
|
||||
// this.getWeixinInfoDEghTTorsp(this.sendDataList);
|
||||
uni.showToast({
|
||||
title: '登录成功',
|
||||
icon: 'none'
|
||||
})
|
||||
uni.navigateBack({
|
||||
delta: 2
|
||||
})
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
//获取个人信息
|
||||
getWeixinInfoDEghTTorsp(sendData) {
|
||||
let that = this;
|
||||
uni.showLoading({
|
||||
title: '登录中...'
|
||||
});
|
||||
let postData = {
|
||||
openId: sendData.openId, //小程序openId
|
||||
unionId: sendData.unionId, //unionId
|
||||
userName: sendData.userName, //微信名称
|
||||
avatar: sendData.avatar, //头像
|
||||
sex: sendData.sex, //性别
|
||||
phone: that.phone,
|
||||
inviterCode: sendData.inviterCode
|
||||
};
|
||||
that.$u.api.insertWxUser(postData).then(res => {
|
||||
uni.hideLoading();
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync('token', res.token)
|
||||
uni.setStorageSync('userName', res.user.userName)
|
||||
uni.setStorageSync('avatar', res.user.avatar)
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
uni.setStorageSync('sex', res.user.sex)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
uni.setStorageSync('openId', res.user.openId)
|
||||
let data = {
|
||||
userId: uni.getStorageSync('userId')
|
||||
}
|
||||
that.$u.api.userVip(data).then(res => {
|
||||
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
||||
uni.setStorageSync('isVIP', true)
|
||||
} else {
|
||||
uni.setStorageSync('isVIP', false)
|
||||
}
|
||||
})
|
||||
uni.navigateBack();
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg,
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.headersDEghTTorsp {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.headersDEghTTorsp>image {
|
||||
width: 400upx;
|
||||
height: 400upx;
|
||||
}
|
||||
|
||||
.footerDEghTTorsp {
|
||||
padding-left: 150rpx;
|
||||
margin-top: 32upx;
|
||||
font-size: 24upx;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
page {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.send-msgDEghTTorsp {
|
||||
border-radius: 30px;
|
||||
color: black;
|
||||
background: white;
|
||||
height: 30px;
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.containerDEghTTorsp {
|
||||
top: 0;
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
|
||||
.mp_wxBoxDEghTTorsp {
|
||||
.headersDEghTTorsp {
|
||||
margin: 35% auto 50rpx;
|
||||
text-align: center;
|
||||
border-radius: 60rpx;
|
||||
width: 650rpx;
|
||||
height: 300rpx;
|
||||
line-height: 450rpx;
|
||||
|
||||
image {
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
text {
|
||||
display: block;
|
||||
color: #9d9d9d;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
line-height: 80upx;
|
||||
border-radius: 80upx;
|
||||
margin: 70rpx 50rpx;
|
||||
height: 80upx;
|
||||
font-size: 35rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #ffffff;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
border-radius: 30px;
|
||||
margin-top: 40px;
|
||||
// background: linear-gradient(to left, #3f5ecb 0, #5074FF 100%);
|
||||
background: #ff7581;
|
||||
color: #ffffff;
|
||||
// font-size: $font-lg;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -198,7 +198,7 @@
|
||||
if (res.confirm) {
|
||||
console.log('用户点击确定');
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/wxmobile'
|
||||
url: '/pages/ghtwwlkXYG/AoOwHCZghW'
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
@@ -450,7 +450,7 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/bind'
|
||||
url: '/pages/ghtwwlkXYG/MFkHiQghje'
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -502,7 +502,7 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/bind'
|
||||
url: '/pages/ghtwwlkXYG/MFkHiQghje'
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -530,7 +530,7 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/bind'
|
||||
url: '/pages/ghtwwlkXYG/MFkHiQghje'
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -547,7 +547,7 @@
|
||||
register() {
|
||||
if (this.checked) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/loginPhone'
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQPhone'
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -560,7 +560,7 @@
|
||||
// 忘记密码
|
||||
forget() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/forgetPwd'
|
||||
url: '/pages/ghtwwlkXYG/EAkIghCGJS'
|
||||
});
|
||||
},
|
||||
inputChange(e) {
|
||||
446
pages/ghtwwlkXYG/wVghNzmqkQ.vue
Normal file
446
pages/ghtwwlkXYG/wVghNzmqkQ.vue
Normal file
@@ -0,0 +1,446 @@
|
||||
<template>
|
||||
<view class="containerDEghTTorsp">
|
||||
|
||||
<view class="wrapperDEghTTorsp">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title">手机号</view>
|
||||
<input type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group" style="border: 2upx solid whitesmoke;border-radius: 30px">
|
||||
<view class="title">密
|
||||
<text style="margin-left: 30rpx;">码</text>
|
||||
</view>
|
||||
<input type="password" placeholder="请输入密码" maxlength="20" :value="code" data-key="code"
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<text class="send-msg" @click="forgetDEghTTorsp">忘记密码</text>
|
||||
</view>
|
||||
</view>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">登录</button>
|
||||
|
||||
<view style="margin-top: 32px;text-align: center">
|
||||
<view>
|
||||
没有账号?
|
||||
<text style="color: #ff7581" @click="registerDEghTTorsp()">立即注册</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footerDEghTTorsp">
|
||||
<u-checkbox-group>
|
||||
<u-checkbox v-model="checked" label-size='24upx' shape="circle" @change="radioChangeDEghTTorsp"></u-checkbox>
|
||||
</u-checkbox-group>
|
||||
<view>同意</view>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/me/setting/mimi" open-type="navigate">《隐私政策》</navigator>
|
||||
和
|
||||
<navigator url="/me/setting/xieyi" open-type="navigate">《用户服务协议》</navigator>
|
||||
</view>
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
mobile: '',
|
||||
code: '',
|
||||
sessionkey: '',
|
||||
flag: '1',
|
||||
weixinPhone: false,
|
||||
sending: false,
|
||||
sendDataList: {},
|
||||
phone: '',
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
checked: false
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
if (uni.getStorageSync('isSafeView')) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您正在使用无痕浏览,可能导致登录状态失效,建议切换浏览模式',
|
||||
})
|
||||
uni.setStorageSync("isSafeView", null)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 注册
|
||||
registerDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ghtwwlkXYG/WVEtZeeghK'
|
||||
});
|
||||
},
|
||||
// 忘记密码
|
||||
forgetDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ghtwwlkXYG/EAkIghCGJS'
|
||||
});
|
||||
},
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
radioChangeDEghTTorsp(e) {
|
||||
console.log(e);
|
||||
},
|
||||
//第一授权获取用户信息===》按钮触发
|
||||
wxGetUserInfoDEghTTorsp(e) {
|
||||
let that = this;
|
||||
if (this.checked) {
|
||||
wx.getUserProfile({
|
||||
desc: '业务需要',
|
||||
success: infoRes => {
|
||||
console.log("infoRes.encryptedData__________:" + JSON.stringify(infoRes.userInfo))
|
||||
let nickName = infoRes.userInfo.nickName; //昵称
|
||||
let avatarUrl = infoRes.userInfo.avatarUrl; //头像
|
||||
let sex = infoRes.userInfo.gender; //头像
|
||||
try {
|
||||
that.loginDEghTTorsp(nickName, avatarUrl, sex);
|
||||
} catch (e) {}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请同意隐私政策和用户服务协议',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
//登录
|
||||
loginDEghTTorsp(nickName, avatarUrl, sex) {
|
||||
let that = this;
|
||||
// 1.wx获取登录用户code
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: function(loginRes) {
|
||||
let data = {
|
||||
code: loginRes.code
|
||||
}
|
||||
that.$u.api.wxLogin(data).then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
uni.setStorageSync('openId', res.data.open_id)
|
||||
uni.setStorageSync('unionId', res.data.unionId)
|
||||
that.sessionkey = res.data.session_key;
|
||||
|
||||
let invitationCode = '';
|
||||
if (uni.getStorageSync('invitation')) {
|
||||
invitationCode = uni.getStorageSync('invitation')
|
||||
}
|
||||
let sendData = {
|
||||
openId: uni.getStorageSync('openId'),
|
||||
unionId: uni.getStorageSync('unionId'),
|
||||
userName: nickName,
|
||||
avatar: avatarUrl,
|
||||
sex: sex, //性别
|
||||
inviterCode: invitationCode //别人登录进来携带你的邀请码
|
||||
};
|
||||
that.sendDataList = sendData;
|
||||
that.flag = res.data.flag;
|
||||
if (that.flag == '1') {
|
||||
that.weixinPhone = true;
|
||||
} else {
|
||||
that.getWeixinInfoDEghTTorsp(sendData);
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.msg,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
//小程序微信登录后获取手机号
|
||||
getPhoneNumber: function(e) {
|
||||
if (e.detail.errMsg == 'getPhoneNumber:fail user deny') {
|
||||
console.log('用户拒绝提供手机号');
|
||||
} else {
|
||||
console.log('用户同意提供手机号');
|
||||
this.setPhoneByInsertDEghTTorsp(e.detail.encryptedData, e.detail.iv);
|
||||
}
|
||||
},
|
||||
//小程序微信登录后获取手机号
|
||||
setPhoneByInsertDEghTTorsp(decryptData, iv) {
|
||||
let data = {
|
||||
decryptData: decryptData,
|
||||
key: this.sessionkey,
|
||||
iv: iv
|
||||
};
|
||||
|
||||
this.$u.api.selectPhone(data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.phone = res.data.phoneNumber;
|
||||
this.getWeixinInfoDEghTTorsp(this.sendDataList);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码'
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
console.log(mobile)
|
||||
if (!mobile) {
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (mobile.length !== 11) {
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else {
|
||||
uni.showLoading({
|
||||
title: '正在发送验证码...'
|
||||
})
|
||||
this.$u.get('/app/Login/sendMsg/' + mobile + '/login').then(res => {
|
||||
// this.$Request.getT('/appLogin/sendMsg/' + mobile + '/bind').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
uni.showToast({
|
||||
title: '验证码发送成功请注意查收',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
toLoginDEghTTorsp() {
|
||||
// this.$queue.loginClear();
|
||||
// let openid = this.$queue.getData('openid');
|
||||
if (!this.checked) {
|
||||
return this.$refs.uToast.show({
|
||||
title: '请阅读并同意《隐私政策》和《用户服务协议》',
|
||||
duration: 1500
|
||||
})
|
||||
}
|
||||
|
||||
let openid = uni.getStorageSync('openId')
|
||||
const {
|
||||
mobile,
|
||||
code
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
// this.$queue.showToast('请输入手机号');
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (mobile.length != 11) {
|
||||
// this.$queue.showToast('请输入手机号');
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (!code) {
|
||||
// this.$queue.showToast('请输入密码');
|
||||
uni.showToast({
|
||||
title: '请输入密码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else {
|
||||
uni.showLoading({
|
||||
title: '正在登录中...',
|
||||
})
|
||||
this.$u.post('/app/Login/registerCode?password=' + code + '&phone=' + mobile).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('avatar', res.user.avatar ? res.user.avatar :
|
||||
'../../static/images/logo.png')
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
uni.setStorageSync('sex', res.user.sex)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
//设置渠道码
|
||||
if (res.user.qdCode) {
|
||||
uni.setStorageSync('qdCode', res.user.qdCode)
|
||||
}
|
||||
// uni.setStorageSync('openId', res.user.openId)
|
||||
// this.getWeixinInfoDEghTTorsp(this.sendDataList);
|
||||
uni.showToast({
|
||||
title: '登录成功',
|
||||
icon: 'none'
|
||||
})
|
||||
const arr= getCurrentPages()
|
||||
if(arr.length<=1){
|
||||
return uni.reLaunch({
|
||||
url:'/pages/index/index'
|
||||
})
|
||||
}
|
||||
uni.navigateBack({
|
||||
delta: arr.length<=2?1:2
|
||||
})
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
//获取个人信息
|
||||
getWeixinInfoDEghTTorsp(sendData) {
|
||||
let that = this;
|
||||
uni.showLoading({
|
||||
title: '登录中...'
|
||||
});
|
||||
let postData = {
|
||||
openId: sendData.openId, //小程序openId
|
||||
unionId: sendData.unionId, //unionId
|
||||
userName: sendData.userName, //微信名称
|
||||
avatar: sendData.avatar, //头像
|
||||
sex: sendData.sex, //性别
|
||||
phone: that.phone,
|
||||
inviterCode: sendData.inviterCode
|
||||
};
|
||||
that.$u.api.insertWxUser(postData).then(res => {
|
||||
uni.hideLoading();
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync('token', res.token)
|
||||
uni.setStorageSync('userName', res.user.userName)
|
||||
uni.setStorageSync('avatar', res.user.avatar)
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
uni.setStorageSync('sex', res.user.sex)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
uni.setStorageSync('openId', res.user.openId)
|
||||
let data = {
|
||||
userId: uni.getStorageSync('userId')
|
||||
}
|
||||
that.$u.api.userVip(data).then(res => {
|
||||
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
||||
uni.setStorageSync('isVIP', true)
|
||||
} else {
|
||||
uni.setStorageSync('isVIP', false)
|
||||
}
|
||||
})
|
||||
uni.navigateBack();
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg,
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
|
||||
.footerDEghTTorsp {
|
||||
padding-left: 150rpx;
|
||||
margin-top: 32upx;
|
||||
font-size: 24upx;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
page {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
border-radius: 30px;
|
||||
color: black;
|
||||
background: white;
|
||||
height: 30px;
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.containerDEghTTorsp {
|
||||
top: 0;
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #ffffff;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
border-radius: 30px;
|
||||
margin-top: 40px;
|
||||
// background: linear-gradient(to left, #3f5ecb 0, #5074FF 100%);
|
||||
background: #ff7581;
|
||||
color: #ffffff;
|
||||
// font-size: $font-lg;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="userMain">
|
||||
<view class="userMain-item u-border-bottom">
|
||||
<view class="userMainDEghTTorsp">
|
||||
<view class="userMainDEghTTorsp-item u-border-bottom">
|
||||
<view>头像</view>
|
||||
<view>
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
@@ -11,36 +11,36 @@
|
||||
</button>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<image :src="headImg?headImg:'../../static/images/logo.png'" mode="" @click="uploadImg"
|
||||
<image :src="headImg?headImg:'../../static/images/logo.png'" mode="" @click="uploadImgDEghTTorsp"
|
||||
style="width: 111rpx;height: 111rpx;border-radius: 50%;"></image>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="userMain-item item-padding u-border-bottom">
|
||||
<view class="userMainDEghTTorsp-item item-padding u-border-bottom">
|
||||
<view>用户名</view>
|
||||
<view>
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<input type="nickname" v-model="userName" placeholder="请输入用户名" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="userMain-item item-padding">
|
||||
<!-- <view class="userMainDEghTTorsp-item item-padding">
|
||||
<view >姓名</view>
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<input v-model="realName" placeholder="请填写您的真实姓名" />
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="userMain-item item-padding u-border-bottom">
|
||||
<view class="userMainDEghTTorsp-item item-padding u-border-bottom">
|
||||
<view>手机</view>
|
||||
<view>
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<input v-if="phone" disabled v-model="phone" placeholder="请输入联系电话" />
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<view class="cu-form-group">
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<input v-if="phone" disabled v-model="phone" placeholder="请输入联系电话" />
|
||||
<button v-else
|
||||
style="background-color: #ff7581 !important;color: #FFFFFF;font-size: 22rpx;padding: 10rpx 20rpx;"
|
||||
@@ -52,18 +52,18 @@
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="userMain-item item-padding" @click="goMyAddress">
|
||||
<!-- <view class="userMainDEghTTorsp-item item-padding" @click="goMyAddressDEghTTorsp">
|
||||
|
||||
<view >地址管理</view>
|
||||
<view>
|
||||
<view class="cu-form-group" >
|
||||
<view class="cu-form-groupDEghTTorsp" >
|
||||
<image src="../static/right.png" style="width: 12rpx; height: 19rpx;margin-left: 10rpx;" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="footer-btn">
|
||||
<view class="userMain-btn" @click="messagebtn()">保存</view>
|
||||
<view class="footer-btnDEghTTorsp">
|
||||
<view class="userMainDEghTTorsp-btn" @click="messagebtnDEghTTorsp()">保存</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -91,10 +91,10 @@
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
this.getUserInfo()
|
||||
this.getUserInfoDEghTTorsp()
|
||||
},
|
||||
methods: {
|
||||
getMyPhone(code) {
|
||||
getMyPhoneDEghTTorsp(code) {
|
||||
let data = {
|
||||
code: code
|
||||
}
|
||||
@@ -127,7 +127,7 @@
|
||||
// #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
if (e.detail.code) {
|
||||
this.getMyPhone(e.detail.code)
|
||||
this.getMyPhoneDEghTTorsp(e.detail.code)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '获取手机号失败',
|
||||
@@ -146,7 +146,7 @@
|
||||
// #endif
|
||||
|
||||
},
|
||||
goMyAddress() {
|
||||
goMyAddressDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '../jifen/myaddress'
|
||||
});
|
||||
@@ -178,7 +178,7 @@
|
||||
});
|
||||
|
||||
},
|
||||
uploadImg() {
|
||||
uploadImgDEghTTorsp() {
|
||||
let token = uni.getStorageSync('token')
|
||||
|
||||
if (!token) {
|
||||
@@ -232,7 +232,7 @@
|
||||
// title: '更新成功',
|
||||
// icon: "none"
|
||||
// })
|
||||
// that.getUserInfo();
|
||||
// that.getUserInfoDEghTTorsp();
|
||||
// })
|
||||
// uni.request({
|
||||
// url: 'https://jiaoyu.xianmxkj.com/sqx_fast/app/user/updateUsers',
|
||||
@@ -258,7 +258,7 @@
|
||||
// uni.hideLoading();
|
||||
// if (res.status === 0) {
|
||||
// that.$queue.showToast("更新成功");
|
||||
// that.getUserInfo(userId);
|
||||
// that.getUserInfoDEghTTorsp(userId);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
@@ -269,7 +269,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
config: function(name) {
|
||||
configDEghTTorsp: function(name) {
|
||||
var info = null;
|
||||
if (name) {
|
||||
var name2 = name.split("."); //字符分割
|
||||
@@ -291,7 +291,7 @@
|
||||
}
|
||||
return info;
|
||||
},
|
||||
getUserInfo() {
|
||||
getUserInfoDEghTTorsp() {
|
||||
let userId = uni.getStorageSync('userId')
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code === 0) {
|
||||
@@ -331,11 +331,11 @@
|
||||
// });
|
||||
},
|
||||
//根据正则验证手机号是否正确包括校验长度
|
||||
checkPhone(phone) {
|
||||
checkPhoneDEghTTorsp(phone) {
|
||||
return /^1[3456789]\d{9}$/.test(phone);
|
||||
},
|
||||
// 保存
|
||||
messagebtn() {
|
||||
messagebtnDEghTTorsp() {
|
||||
if (!this.userName) {
|
||||
uni.showToast({
|
||||
title: "用户名不能为空",
|
||||
@@ -351,7 +351,7 @@
|
||||
})
|
||||
return
|
||||
}
|
||||
if (this.checkPhone(this.phone) == false) {
|
||||
if (this.checkPhoneDEghTTorsp(this.phone) == false) {
|
||||
uni.showToast({
|
||||
title: "手机号格式不正确",
|
||||
icon: "none"
|
||||
@@ -427,11 +427,11 @@
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.userMain {
|
||||
.userMainDEghTTorsp {
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.userMain-item {
|
||||
.userMainDEghTTorsp-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 40rpx;
|
||||
@@ -440,28 +440,28 @@
|
||||
/* border-bottom: 2rpx solid #f2f2f2; */
|
||||
}
|
||||
|
||||
.userMain-item.item-padding {
|
||||
.userMainDEghTTorsp-item.item-padding {
|
||||
padding: 0 40rpx 0 0;
|
||||
}
|
||||
|
||||
.cu-form-group {
|
||||
.cu-form-groupDEghTTorsp {
|
||||
padding: 0;
|
||||
background: #FFFFFF;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.cu-form-group input {
|
||||
.cu-form-groupDEghTTorsp input {
|
||||
background: #FFFFFF;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
|
||||
}
|
||||
|
||||
.footer-btn {
|
||||
.footer-btnDEghTTorsp {
|
||||
margin-top: 150rpx;
|
||||
}
|
||||
|
||||
.footer-btn .userMain-btn {
|
||||
.footer-btnDEghTTorsp .userMainDEghTTorsp-btn {
|
||||
color: #FFFFFF;
|
||||
background: #ff7581;
|
||||
text-align: center;
|
||||
907
pages/iSiAnfghCC/abKTySghjA.vue
Normal file
907
pages/iSiAnfghCC/abKTySghjA.vue
Normal file
@@ -0,0 +1,907 @@
|
||||
<template>
|
||||
<view style="padding-bottom: 40rpx;">
|
||||
<u-navbar :background="background" :is-back="isBack" :title="title" :border-bottom="false">
|
||||
</u-navbar>
|
||||
<!-- 登录信息 -->
|
||||
<view class="infoDEghTTorsp flex align-center justify-center">
|
||||
<view class="infoDEghTTorsp-box">
|
||||
<view @click="token?goNavDEghTTorsp('/pages/iSiAnfghCC/GqrTYehghi'):goNavDEghTTorsp('/pages/ghtwwlkXYG/wVghNzmqkQ')"
|
||||
class="infoDEghTTorsp-box-c flex align-center justify-between">
|
||||
<view class="infoDEghTTorsp-box-c-l flex align-center">
|
||||
<view class="infoDEghTTorsp-box-c-l-avatar">
|
||||
<image :src="avatar?avatar:'../../static/images/me/default_avatar.png'" mode=""></image>
|
||||
</view>
|
||||
<view class="infoDEghTTorsp-box-c-l-name">
|
||||
<view class="infoDEghTTorsp-box-c-l-name-t">
|
||||
{{userName?userName:'未登录'}}
|
||||
</view>
|
||||
<view class="infoDEghTTorsp-box-c-l-name-b" v-if="invitationCode">
|
||||
ID:{{invitationCode}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="infoDEghTTorsp-box-c-r">
|
||||
<u-icon name="arrow-right" color="#F6F6F6" size="28"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 统计 -->
|
||||
<view class="statisticsDEghTTorsp flex align-center justify-center">
|
||||
<view class="statisticsDEghTTorsp-box flex align-center justify-between">
|
||||
<view class="statisticsDEghTTorsp-box-item" @click="goNavDEghTTorsp('/me/jilu/myLove')">
|
||||
<view class="statisticsDEghTTorsp-box-item-top">
|
||||
{{myLoveNum}}
|
||||
</view>
|
||||
<view class="statisticsDEghTTorsp-box-item-btn">
|
||||
我的喜欢
|
||||
</view>
|
||||
</view>
|
||||
<view class="statisticsDEghTTorsp-box-item" @click="goNavDEghTTorsp('/me/jilu/histor')">
|
||||
<view class="statisticsDEghTTorsp-box-item-top">
|
||||
{{myZhui}}
|
||||
</view>
|
||||
<view class="statisticsDEghTTorsp-box-item-btn">
|
||||
我的追剧
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="statisticsDEghTTorsp-box-item" @click="goNavDEghTTorsp('/me/jifen/jifen')">
|
||||
<view class="statisticsDEghTTorsp-box-item-top">
|
||||
{{jifen}}
|
||||
</view>
|
||||
<view class="statisticsDEghTTorsp-box-item-btn">
|
||||
我的积分
|
||||
</view>
|
||||
</view> -->
|
||||
<view v-if="isShowMoneyPay" class="statisticsDEghTTorsp-box-item" @click="goNavDEghTTorsp('/me/invite/cashDetail')">
|
||||
<view class="statisticsDEghTTorsp-box-item-top">
|
||||
{{userInfo.amount || '0.00'}}
|
||||
</view>
|
||||
<view class="statisticsDEghTTorsp-box-item-btn">
|
||||
我的红包
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view v-if="isVips == '是' && isWxIosPay == true" class="vipDEghTTorsp flex align-center justify-center">
|
||||
<view class="vipDEghTTorsp-box flex align-center justify-between">
|
||||
<view class="vipDEghTTorsp-box-l">
|
||||
<view class="vipDEghTTorsp-box-l-l flex align-center">
|
||||
{{isVIP?'会员用户':'开通会员'}}
|
||||
<image src="../../static/images/me/Vips.png" mode=""></image>
|
||||
</view>
|
||||
|
||||
<view class="vipDEghTTorsp-box-l-r" v-if="isVIP">
|
||||
{{endTime?endTime+'到期':'您是尊贵的永久会员'}}
|
||||
</view>
|
||||
<view class="vipDEghTTorsp-box-l-r" v-else>
|
||||
{{endTime?endTime+'到期':'升级VIP,省更多钱'}}
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="!isVIP" @click="goNavDEghTTorsp('/pages/iSiAnfghCC/vipDEghTTorsp/index')"
|
||||
class="vipDEghTTorsp-box-r flex align-center justify-center">
|
||||
立即开通
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 钱包 -->
|
||||
<view class="moneyDEghTTorsp flex align-center justify-center" v-if="isWxIosPay == true">
|
||||
<view class="moneyDEghTTorsp-box flex align-center justify-between">
|
||||
<view class="">
|
||||
<view class="moneyDEghTTorsp-box-title flex align-center">
|
||||
<view class="moneyDEghTTorsp-box-title-l">
|
||||
金币余额
|
||||
</view>
|
||||
<!-- <view @click="isShoMoney = !isShoMoney" class="moneyDEghTTorsp-box-title-r" style="margin-left: 12rpx;">
|
||||
<u-icon :name="isShoMoney?'eye':'eye-off'" color="#5A4A32" size="40"></u-icon>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="moneyDEghTTorsp-box-price">
|
||||
<block v-if="isShoMoney">
|
||||
{{formatNumberDEghTTorsp(moneyNum)}}
|
||||
</block>
|
||||
<block v-else>
|
||||
****
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="moneyDEghTTorsp-box-btn" @click="goNavDEghTTorsp('/me/invite/moneyList?moneyType=2&viewType=2')">
|
||||
金币明细
|
||||
</view>
|
||||
<!-- <view class="moneyDEghTTorsp-box-btn" @click="goNavDEghTTorsp('/me/wallet/wallet')">
|
||||
立即充值
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<!-- 常用工具 -->
|
||||
<view class="toolDEghTTorsp flex align-center justify-center">
|
||||
<view class="toolDEghTTorsp-box">
|
||||
<view class="toolDEghTTorsp-box-content flex align-center justify-between flex-wrap">
|
||||
<!-- #ifdef MP-TOUTIAO -->
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/wallet/mingxi')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/mingxi.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
钱包明细
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- <view v-if="kmPaySel != '否'" @click="openKaMiShowDEghTTorsp()"
|
||||
class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/kamiDEghTTorsp.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
卡密兑换
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/choujiang/choujiang')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/zhuanpan.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
转盘抽奖
|
||||
</view>
|
||||
</view> -->
|
||||
<view v-if="isShowMoneyPay" class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/invite/index')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/vfx.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
分享好友
|
||||
</view>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/message/index')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/messige.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
消息中心
|
||||
</view>
|
||||
<u-badge :offset="[0,20]" type="error" :count="numCount"></u-badge>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/pages/task/index','tabbar')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/task.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
任务中心
|
||||
</view>
|
||||
<u-badge :offset="[0,20]" type="error" :count="numCount"></u-badge>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/jilu/record')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/vlishi.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
观看历史
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="rate>0 && isShowMoneyPay" class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/invite/inviteDet')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/vtd.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
我的团队
|
||||
</view>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap" @click="goMsgDEghTTorsp()">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/vkf.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
联系客服
|
||||
</view>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/feedbackIndex/feedbackIndex')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/bangzhu.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
帮助中心
|
||||
</view>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/feedback/index')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/yijian.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
意见反馈
|
||||
</view>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/setting/index')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/setting.png" mode=""></image>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
设置中心
|
||||
</view>
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap" style="height: 0;">
|
||||
</view>
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap" style="height: 0;">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 卡密兑换弹窗 -->
|
||||
<u-popup @close="kamiDEghTTorsp = ''" v-model="showCard" mode="center" border-radius="14" :closeable="true">
|
||||
<view class="kamiDEghTTorsp">
|
||||
<view class="kamiDEghTTorsp-title">
|
||||
卡密兑换
|
||||
</view>
|
||||
<view class="kamiDEghTTorsp-input">
|
||||
<u-input v-model="kamiDEghTTorsp" placeholder="请输入卡密" type="text" :border="true" />
|
||||
</view>
|
||||
<view @click="exchangeKaMiDEghTTorsp()" class="kamiDEghTTorsp-btn flex align-center justify-center">
|
||||
确认兑换
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<!-- 抖音im客服 -->
|
||||
<ttMsg />
|
||||
|
||||
|
||||
<other-xuanfu></other-xuanfu>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ttMsg from '../../components/ttMsg/ttMsg.vue'
|
||||
import httpsRequest from '../../common/httpRequest.js'
|
||||
import otherXuanfu from '@/components/other-xuafu.vue'
|
||||
|
||||
|
||||
export default {
|
||||
components: {
|
||||
ttMsg,otherXuanfu
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
isBack: false,
|
||||
background: {
|
||||
backgroundImage: 'linear-gradient(to right, #FFE5EA 0%, #E4F5FB 49%, #FFF0EE 100%)'
|
||||
},
|
||||
kamiDEghTTorsp: '', //卡密
|
||||
isShoMoney: true, //是否显示余额
|
||||
avatar: '../../static/images/logo.png',
|
||||
img: '../../static/images/me/huiyuan.png',
|
||||
swiperList: [{
|
||||
imageUrl: '../../static/images/me/banner.png',
|
||||
}],
|
||||
isLogin: false,
|
||||
userName: '未登录',
|
||||
isVIP: false,
|
||||
invitationCode: '',
|
||||
token: '',
|
||||
endTime: '', //会员到期时间
|
||||
moneyNum: 0, //余额
|
||||
jifen: 0, //积分
|
||||
isVips: '否', //是否显示会员
|
||||
myLoveNum: 0, //我的喜欢个数
|
||||
myZhui: 0, //我的追剧数量
|
||||
showCard: false,
|
||||
numCount: 0,
|
||||
rate: 0,
|
||||
twoRate:0,
|
||||
kmPaySel: '否',
|
||||
isWxIosPay: true, //微信下是否显示支付功能
|
||||
userInfo: {},
|
||||
isShowMoneyPay: true,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getBannerListDEghTTorsp()
|
||||
},
|
||||
onShow() {
|
||||
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
const isIOS = /iOS/.test(systemInfo.platform);
|
||||
if ( !isIOS ) {
|
||||
this.isBack = true
|
||||
}
|
||||
this.isWxIosPay = uni.getStorageSync('isWxIosPay')
|
||||
this.kmPaySel = this.$queue.getData('kmPaySel');
|
||||
this.numCount = uni.getStorageSync('numCount')
|
||||
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
|
||||
this.token = uni.getStorageSync('token')
|
||||
if (this.token) {
|
||||
this.getMyMoneyDEghTTorsp()
|
||||
this.getPointsDEghTTorsp()
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code === 0 && res.data) {
|
||||
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
||||
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
||||
uni.setStorageSync('userName', res.data.userName)
|
||||
uni.setStorageSync('avatar', res.data.avatar)
|
||||
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
|
||||
}
|
||||
})
|
||||
|
||||
let data = {
|
||||
userId: uni.getStorageSync('userId')
|
||||
}
|
||||
this.$u.api.userVip(data).then(res => {
|
||||
if (res.code === 0 && res.data && res.data.isVip === 2) {
|
||||
this.isVIP = true;
|
||||
this.endTime = res.data.endTime
|
||||
uni.setStorageSync('isVIP', true)
|
||||
} else {
|
||||
this.isVIP = false;
|
||||
this.endTime = ''
|
||||
uni.setStorageSync('isVIP', false)
|
||||
}
|
||||
})
|
||||
|
||||
this.isLogin = true
|
||||
this.userName = uni.getStorageSync('userName')
|
||||
this.isVIP = uni.getStorageSync('isVIP')
|
||||
this.getMyLoveNumDEghTTorsp()
|
||||
this.getMyFansNumDEghTTorsp()
|
||||
} else {
|
||||
this.isLogin = false
|
||||
this.isVIP = false
|
||||
this.endTime = '' //会员到期时间
|
||||
this.moneyNum = 0 //余额
|
||||
this.jifen = 0 //积分
|
||||
this.userName = '未登录'
|
||||
this.invitationCode = ''
|
||||
this.myLoveNum = 0
|
||||
this.myZhui = 0
|
||||
this.rate = 0
|
||||
}
|
||||
this.avatar = uni.getStorageSync('avatar') ? uni.getStorageSync('avatar') : '../../static/images/logo.png'
|
||||
|
||||
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)
|
||||
}
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
//兑换卡密
|
||||
exchangeKaMiDEghTTorsp() {
|
||||
if (!this.kamiDEghTTorsp) {
|
||||
uni.showToast({
|
||||
title: '请输入卡密',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
let data = {
|
||||
sdkContent: this.kamiDEghTTorsp
|
||||
}
|
||||
this.$Request.postT('/app/sdkInfo/sdkExchange', data).then(res => {
|
||||
if (res.code === 0) {
|
||||
uni.showToast({
|
||||
title: '兑换成功'
|
||||
})
|
||||
this.showCard = false
|
||||
let datas = {
|
||||
userId: uni.getStorageSync('userId')
|
||||
}
|
||||
this.$u.api.userVip(datas).then(rest => {
|
||||
if (rest.code === 0 && rest.data && rest.data.isVip === 2) {
|
||||
this.isVIP = true;
|
||||
this.endTime = rest.data.endTime
|
||||
uni.setStorageSync('isVIP', true)
|
||||
} else {
|
||||
this.isVIP = false;
|
||||
this.endTime = ''
|
||||
uni.setStorageSync('isVIP', false)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
openKaMiShowDEghTTorsp() {
|
||||
if (uni.getStorageSync('token')) {
|
||||
this.showCard = true
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//获取我喜欢的数量
|
||||
getMyLoveNumDEghTTorsp() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 1,
|
||||
classify: 2
|
||||
}
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.myLoveNum = res.data.total
|
||||
} else {
|
||||
this.myLoveNum = 0
|
||||
}
|
||||
})
|
||||
},
|
||||
//获取我追剧的数量
|
||||
getMyFansNumDEghTTorsp() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 1,
|
||||
classify: 1
|
||||
}
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.myZhui = res.data.total
|
||||
} else {
|
||||
this.myZhui = 0
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 获取积分
|
||||
*/
|
||||
getPointsDEghTTorsp() {
|
||||
this.$Request.getT('/app/integral/selectByUserId').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.jifen = res.data.integralNum
|
||||
} else {
|
||||
this.jifen = 0
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* @param {Number} num
|
||||
* @param 保留两位小数
|
||||
*/
|
||||
formatNumberDEghTTorsp(num) {
|
||||
// 判断是否为整数
|
||||
if (Number.isInteger(num)) {
|
||||
return num.toFixed(2);
|
||||
} else {
|
||||
return num.toFixed(2).replace(/\.?0+$/, '');
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 获取余额
|
||||
*/
|
||||
getMyMoneyDEghTTorsp() {
|
||||
this.$Request.getT('/app/moneyDetails/selectUserMoney').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.moneyNum = res.data.moneyDEghTTorsp
|
||||
this.userInfo = res.data
|
||||
// this.$Request.getT('/app/invite/selectInviteMoney').then(ret => {
|
||||
// if (ret.code == 0) {
|
||||
// if (ret.data.inviteMoney && ret.data.inviteMoney.moneyDEghTTorsp) {
|
||||
// this.moneyNum = Number(res.data.moneyDEghTTorsp) + Number(ret.data.inviteMoney
|
||||
// .moneyDEghTTorsp)
|
||||
// } else {
|
||||
// this.moneyNum = Number(res.data.moneyDEghTTorsp)
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
} else {
|
||||
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
goPageDEghTTorsp(url) {
|
||||
if (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
|
||||
}
|
||||
}
|
||||
},
|
||||
goMsgDEghTTorsp() {
|
||||
let kefu = uni.getStorageSync('kefu'); // 用户端联系方式 1 手机号 2企业微信
|
||||
let kefuPhone = uni.getStorageSync('kefuPhone');
|
||||
if (kefu === 1) {
|
||||
uni.navigateTo({
|
||||
url: '/me/setting/kefu'
|
||||
})
|
||||
} else if (kefu === 3) {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: kefuPhone //仅为示例
|
||||
});
|
||||
} else if (kefu === 2) {
|
||||
// #ifdef MP-WEIXIN
|
||||
let that = this
|
||||
try {
|
||||
wx.openCustomerServiceChat({
|
||||
extInfo: {
|
||||
url: uni.getStorageSync('kefuUrl')
|
||||
},
|
||||
corpId: uni.getStorageSync('kefuAppId'),
|
||||
success(res) {},
|
||||
fail(res) {
|
||||
console.error(res)
|
||||
}
|
||||
})
|
||||
} catch (error) {
|
||||
console.error("catchcatch" + error)
|
||||
uni.showToast({
|
||||
title: '请更新至微信最新版本'
|
||||
});
|
||||
}
|
||||
// #endif
|
||||
// #ifndef MP-WEIXIN
|
||||
let url = uni.getStorageSync('kefuUrl');
|
||||
if (url.indexOf('/pages/') !== -1 || url.indexOf('/my/') !== -1) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
});
|
||||
} else {
|
||||
//#ifndef H5
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/webView?url=' + url
|
||||
});
|
||||
//#endif
|
||||
//#ifdef H5
|
||||
window.location.href = url;
|
||||
//#endif
|
||||
}
|
||||
// #endif
|
||||
}
|
||||
},
|
||||
goNavDEghTTorsp(e,type) {
|
||||
console.log(e)
|
||||
let token = uni.getStorageSync('token')
|
||||
if (token) {
|
||||
if (type === 'tabbar') {
|
||||
uni.switchTab({
|
||||
url: e
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: e
|
||||
})
|
||||
}
|
||||
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
// 获取轮播图列表
|
||||
getBannerListDEghTTorsp() {
|
||||
this.$u.api.bannerList({
|
||||
classify: '3'
|
||||
}).then(res => {
|
||||
if (res.code === 0 && res.data) {
|
||||
let arr = []
|
||||
res.data.forEach(ret => {
|
||||
if (ret.state === 1) {
|
||||
arr.push(ret)
|
||||
}
|
||||
})
|
||||
this.swiperList = arr
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #F5F7FF;
|
||||
}
|
||||
|
||||
/deep/.u-navbar-inner {
|
||||
/* #ifdef H5 */
|
||||
background: linear-gradient(to right, #FFE5EA 0%, #E4F5FB 49%, #FFF0EE 100%);
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
.kamiDEghTTorsp {
|
||||
width: 500rpx;
|
||||
height: auto;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
.kamiDEghTTorsp-title {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-top: 30rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.kamiDEghTTorsp-input {
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.kamiDEghTTorsp-btn {
|
||||
width: calc(100% - 60rpx);
|
||||
height: 80rpx;
|
||||
margin: 0 auto;
|
||||
background-color: #ff7581;
|
||||
border-radius: 44rpx;
|
||||
color: #FFFFFF;
|
||||
margin-top: 10rpx;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.infoDEghTTorsp::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: linear-gradient(to right, #FFE5EA 0%, #E4F5FB 49%, #FFF0EE 100%);
|
||||
z-index: 1;
|
||||
/* 确保在垂直渐变之上 */
|
||||
}
|
||||
|
||||
.infoDEghTTorsp::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: linear-gradient(to bottom, transparent, #F5F7FF);
|
||||
/* 垂直渐变,结束颜色为透明 */
|
||||
z-index: 2;
|
||||
/* 确保在水平渐变之上 */
|
||||
}
|
||||
|
||||
.infoDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
// height: 400rpx;
|
||||
background: #F5F7FF;
|
||||
position: relative;
|
||||
border-radius: 0 0 80rpx 80rpx;
|
||||
|
||||
.infoDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.infoDEghTTorsp-box-c {
|
||||
width: 100%;
|
||||
height: 94rpx;
|
||||
// margin-top: 60rpx;
|
||||
margin-bottom: 140rpx;
|
||||
}
|
||||
|
||||
.infoDEghTTorsp-box-c-l-avatar {
|
||||
width: 94rpx;
|
||||
height: 94rpx;
|
||||
border-radius: 50%;
|
||||
|
||||
image {
|
||||
width: 94rpx;
|
||||
height: 94rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.infoDEghTTorsp-box-c-l-name {
|
||||
margin-left: 16rpx;
|
||||
|
||||
.infoDEghTTorsp-box-c-l-name-t {
|
||||
color: #333333;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.infoDEghTTorsp-box-c-l-name-b {
|
||||
color: #333333;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.statisticsDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: -100rpx;
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
|
||||
.statisticsDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
// height: 184rpx;
|
||||
// background-color: #FFFFFF;
|
||||
border-radius: 24rpx;
|
||||
}
|
||||
|
||||
.statisticsDEghTTorsp-box-item {
|
||||
// width: calc(100% / 3);
|
||||
// height: 100%;
|
||||
}
|
||||
|
||||
.statisticsDEghTTorsp-box-item-top {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #333333;
|
||||
font-size: 38rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.statisticsDEghTTorsp-box-item-btn {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #999999;
|
||||
font-size: 26rpx;
|
||||
// margin-top: 20rpx
|
||||
}
|
||||
}
|
||||
|
||||
.vipDEghTTorsp {
|
||||
width: 100%;
|
||||
// height: 84rpx;
|
||||
margin-top: 30rpx;
|
||||
|
||||
.vipDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #FEF5E4 0%, #FBECD7 100%);
|
||||
border-radius: 24rpx;
|
||||
padding: 26rpx 30rpx;
|
||||
}
|
||||
|
||||
.vipDEghTTorsp-box-l {
|
||||
image {
|
||||
width: 24rpx;
|
||||
height: 22rpx;
|
||||
margin-left: 6rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.vipDEghTTorsp-box-l-l {
|
||||
font-size: 32rpx;
|
||||
font-weight: 800;
|
||||
color: #5A4A32;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
|
||||
.vipDEghTTorsp-box-l-r {
|
||||
color: #817858;
|
||||
font-size: 26rpx;
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
|
||||
.vipDEghTTorsp-box-r {
|
||||
width: 130rpx;
|
||||
height: 50rpx;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx -3rpx 9rpx 0rpx rgba(255, 255, 255, 0.46);
|
||||
border-radius: 25rpx;
|
||||
color: #5A4A32;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.moneyDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 20rpx;
|
||||
|
||||
.moneyDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
border-radius: 24rpx;
|
||||
background: #ffffff;
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.moneyDEghTTorsp-box-btn {
|
||||
background: linear-gradient(90deg, #FF7581 0%, #F8A5AF 100%);
|
||||
border-radius: 44rpx;
|
||||
padding: 18rpx 30rpx;
|
||||
font-size: 24rpx;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.moneyDEghTTorsp-box-title-l {
|
||||
color: #333333;
|
||||
font-size: 28rpx;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.moneyDEghTTorsp-box-price {
|
||||
color: #333333;
|
||||
font-size: 48rpx;
|
||||
font-weight: 800;
|
||||
margin-top: 20rpx;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.toolDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 20rpx;
|
||||
|
||||
.toolDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 24rpx;
|
||||
}
|
||||
|
||||
.toolDEghTTorsp-box-content {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
padding: 30rpx 30rpx 0 30rpx;
|
||||
}
|
||||
|
||||
.toolDEghTTorsp-box-content-item {
|
||||
width: 130rpx;
|
||||
height: auto;
|
||||
margin-bottom: 46rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.toolDEghTTorsp-box-content-item-img {
|
||||
width: 66rpx;
|
||||
height: 66rpx;
|
||||
|
||||
image {
|
||||
width: 66rpx;
|
||||
height: 66rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.toolDEghTTorsp-box-content-item-txt {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-top: 10rpx;
|
||||
color: #333333;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -50,14 +50,14 @@
|
||||
},
|
||||
onShow() {
|
||||
//#ifdef H5
|
||||
this.follow()
|
||||
this.followDEghTTorsp()
|
||||
//#endif
|
||||
},
|
||||
methods: {
|
||||
|
||||
follow() {
|
||||
followDEghTTorsp() {
|
||||
if (this.$queue.getData("openid")) {
|
||||
this.$Request.get("/tao/wx/follow/" + this.$queue.getData("openid")).then(res => {
|
||||
this.$Request.get("/tao/wx/followDEghTTorsp/" + this.$queue.getData("openid")).then(res => {
|
||||
if (res) {
|
||||
window.location.replace(this.$queue.publicYuMing());
|
||||
}
|
||||
@@ -65,7 +65,7 @@
|
||||
}
|
||||
|
||||
},
|
||||
rests() {
|
||||
restsDEghTTorsp() {
|
||||
uni.showToast({
|
||||
title: "已刷新请再次长按识别",
|
||||
mask: false,
|
||||
31
pages/iSiAnfghCC/mWmMighAHE.vue
Normal file
31
pages/iSiAnfghCC/mWmMighAHE.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6778.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6779.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
31
pages/iSiAnfghCC/tjEghODEqw.vue
Normal file
31
pages/iSiAnfghCC/tjEghODEqw.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6776.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6777.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -30,17 +30,17 @@
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="btn-bg" @click="bugVIP(item.id)">购买</view>
|
||||
<view class="btn-bgDEghTTorsp" @click="bugVIPDEghTTorsp(item.id)">购买</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="illustrate flex align-center justify-center">
|
||||
<view class="illustrate-box flex align-center">
|
||||
<view class="illustrateDEghTTorsp flex align-center justify-center">
|
||||
<view class="illustrateDEghTTorsp-box flex align-center">
|
||||
<u-checkbox active-color="#ff7581" v-model="checked" shape="circle"></u-checkbox>
|
||||
<text @click="checked = !checked">
|
||||
我已经阅读并同意
|
||||
</text>
|
||||
<view @click="goXieyi()" class="illustrate-box-txt">
|
||||
<view @click="goXieyiDEghTTorsp()" class="illustrateDEghTTorsp-box-txt">
|
||||
《付费须知说明》
|
||||
</view>
|
||||
</view>
|
||||
@@ -51,14 +51,14 @@
|
||||
style="width: 100%;text-align: center;font-size:38rpx;font-weight: bold;margin-top:15rpx;margin-bottom: 80rpx;">
|
||||
选择支付方式
|
||||
</view>
|
||||
<view @click="goMoney" class="flex align-center justify-end" style="margin-right: 20rpx;color: #ff7581;">
|
||||
<view @click="goMoneyDEghTTorsp" class="flex align-center justify-end" style="margin-right: 20rpx;color: #ff7581;">
|
||||
<view class="" style="color: #666666;">
|
||||
金币不足?
|
||||
</view>
|
||||
去充值
|
||||
</view>
|
||||
<view style="display: flex;height: 100upx;align-items: center;padding: 20upx 30rpx;"
|
||||
v-for="(item,index) in openLists" :key='index' @tap='selectWay(item.id)'>
|
||||
v-for="(item,index) in openLists" :key='index' @tap='selectWayDEghTTorsp(item.id)'>
|
||||
<view style="display: flex;width:80%;align-items: center;">
|
||||
<image :src="item.image" style="width: 55upx;height: 55upx;"></image>
|
||||
<view style="font-size: 30upx;margin-left: 20upx;width: 70%;">{{item.text}}
|
||||
@@ -74,25 +74,25 @@
|
||||
</view>
|
||||
<view
|
||||
style="width: 690rpx;height: 80rpx;background:#ff7581;color:#FFFFFF;text-align: center;line-height: 80rpx;border-radius: 50rpx;margin: 30rpx;"
|
||||
@tap="pay()">确认支付</view>
|
||||
@tap="payDEghTTorsp()">确认支付</view>
|
||||
</u-popup>
|
||||
|
||||
<!-- 会员助力 -->
|
||||
<u-popup v-model="showjl" :closeable="true" close-icon-color="#ffffff" mode="center">
|
||||
<view class="zl" @click="goZl()">
|
||||
<image class="zl-bg"
|
||||
<view class="zlDEghTTorsp" @click="goZlDEghTTorsp()">
|
||||
<image class="zlDEghTTorsp-bg"
|
||||
src="https://dj-api.hnsiyao.cn/file/uploadPath/2023/12/14/adf37beca97826d44970d20118f88e29.png"
|
||||
mode=""></image>
|
||||
<view class="zl-title">
|
||||
<view class="zlDEghTTorsp-title">
|
||||
会员免费领
|
||||
</view>
|
||||
<view class="zl-titlef">
|
||||
<view class="zlDEghTTorsp-titlef">
|
||||
免费领会员
|
||||
</view>
|
||||
<view class="zl-titlef2">
|
||||
<view class="zlDEghTTorsp-titlef2">
|
||||
助力中...
|
||||
</view>
|
||||
<view class="zl-titlebtn">
|
||||
<view class="zlDEghTTorsp-titlebtn">
|
||||
立即领取
|
||||
</view>
|
||||
</view>
|
||||
@@ -254,30 +254,30 @@
|
||||
this.$Request.get('/app/common/type/813').then(res => {
|
||||
if (res.code == 0 && res.data.value) {
|
||||
if (res.data.value == '是') {
|
||||
this.getActivity()
|
||||
this.getActivityDEghTTorsp()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
this.userName = uni.getStorageSync('userName')
|
||||
this.getVIPDet()
|
||||
this.getvipdata()
|
||||
this.getVIPDetDEghTTorsp()
|
||||
this.getvipdataDEghTTorsp()
|
||||
},
|
||||
methods: {
|
||||
//去付费须知说明
|
||||
goXieyi() {
|
||||
goXieyiDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/me/setting/payXieYi'
|
||||
})
|
||||
},
|
||||
goMoney() {
|
||||
goMoneyDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/me/wallet/wallet'
|
||||
})
|
||||
},
|
||||
// 获取活动等级
|
||||
getActivity() {
|
||||
getActivityDEghTTorsp() {
|
||||
this.$Request.getT('/app/invite/selectInviteAwardByUserId').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data) {
|
||||
@@ -287,13 +287,13 @@
|
||||
})
|
||||
},
|
||||
//去助力页面
|
||||
goZl() {
|
||||
goZlDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/me/rHTgyqGoIV/rHTgyqGoIV'
|
||||
url: '/me/assistance/assistance'
|
||||
})
|
||||
this.showjl = false
|
||||
},
|
||||
getvipdata() {
|
||||
getvipdataDEghTTorsp() {
|
||||
let data = {
|
||||
userId: uni.getStorageSync('userId')
|
||||
}
|
||||
@@ -307,10 +307,10 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
selectWay: function(id) {
|
||||
selectWayDEghTTorsp: function(id) {
|
||||
this.openWay = id;
|
||||
},
|
||||
getVIPDet() {
|
||||
getVIPDetDEghTTorsp() {
|
||||
this.$u.api.vipDet().then(res => {
|
||||
if (res.code == 0) {
|
||||
res.data.forEach(ret => {
|
||||
@@ -336,7 +336,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
bugVIP(e) {
|
||||
bugVIPDEghTTorsp(e) {
|
||||
if (this.checked == false) {
|
||||
this.$refs.uToast.show({
|
||||
title: '请阅读并同意《付费须知说明》',
|
||||
@@ -347,7 +347,7 @@
|
||||
this.vipId = e
|
||||
this.showPay = true
|
||||
// // #ifdef MP-TOUTIAO
|
||||
// this.toutiaoPay()
|
||||
// this.toutiaoPayDEghTTorsp()
|
||||
// // #endif
|
||||
// // #ifndef MP-TOUTIAO
|
||||
// this.showPay = true
|
||||
@@ -355,7 +355,7 @@
|
||||
|
||||
},
|
||||
//头条支付
|
||||
toutiaoPay() {
|
||||
toutiaoPayDEghTTorsp() {
|
||||
let that = this
|
||||
let data = {
|
||||
vipDetailsId: this.vipId
|
||||
@@ -462,10 +462,10 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
pay() {
|
||||
payDEghTTorsp() {
|
||||
let that = this
|
||||
if (that.openWay == 4) { //抖音支付
|
||||
that.toutiaoPay()
|
||||
that.toutiaoPayDEghTTorsp()
|
||||
} else if (that.openWay == 5) { //快手支付
|
||||
uni.showLoading({
|
||||
title: '支付中...'
|
||||
@@ -591,7 +591,7 @@
|
||||
if (ua.indexOf('micromessenger') !== -1) {
|
||||
this.$u.post('/app/wxPay/wxPayMpOrder?orderId=' + res.data.ordersId).then(red => {
|
||||
if (red.code === 0) {
|
||||
this.callPay(red.data);
|
||||
this.callPayDEghTTorsp(red.data);
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
@@ -604,7 +604,7 @@
|
||||
// #ifdef APP
|
||||
this.$u.post("/app/wxPay/payAppOrder?orderId=" + res.data.ordersId).then(red => {
|
||||
if (red.code == 0) {
|
||||
that.setPayment('wxpay', JSON.stringify(red
|
||||
that.setPaymentDEghTTorsp('wxpay', JSON.stringify(red
|
||||
.data));
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -636,7 +636,7 @@
|
||||
red => {
|
||||
if (red.code === 0) {
|
||||
console.log('1111111')
|
||||
that.setPayment('alipay', red.data);
|
||||
that.setPaymentDEghTTorsp('alipay', red.data);
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
@@ -688,10 +688,10 @@
|
||||
}
|
||||
|
||||
},
|
||||
isCheckPay(code, name, order) {
|
||||
isCheckPayDEghTTorsp(code, name, order) {
|
||||
if (code == 0) {
|
||||
console.log('999999999999')
|
||||
this.setPayment(name, order);
|
||||
this.setPaymentDEghTTorsp(name, order);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
@@ -699,7 +699,7 @@
|
||||
});
|
||||
}
|
||||
},
|
||||
setPayment(name, order) {
|
||||
setPaymentDEghTTorsp(name, order) {
|
||||
let that = this
|
||||
uni.requestPayment({
|
||||
provider: name,
|
||||
@@ -740,19 +740,19 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
callPay: function(response) {
|
||||
callPayDEghTTorsp: function(response) {
|
||||
if (typeof WeixinJSBridge === "undefined") {
|
||||
if (document.addEventListener) {
|
||||
document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady(response), false);
|
||||
document.addEventListener('WeixinJSBridgeReady', this.onBridgeReadyDEghTTorsp(response), false);
|
||||
} else if (document.attachEvent) {
|
||||
document.attachEvent('WeixinJSBridgeReady', this.onBridgeReady(response));
|
||||
document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReady(response));
|
||||
document.attachEvent('WeixinJSBridgeReady', this.onBridgeReadyDEghTTorsp(response));
|
||||
document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReadyDEghTTorsp(response));
|
||||
}
|
||||
} else {
|
||||
this.onBridgeReady(response);
|
||||
this.onBridgeReadyDEghTTorsp(response);
|
||||
}
|
||||
},
|
||||
onBridgeReady: function(response) {
|
||||
onBridgeReadyDEghTTorsp: function(response) {
|
||||
let that = this;
|
||||
if (!response.package) {
|
||||
return;
|
||||
@@ -815,15 +815,15 @@
|
||||
color: #604320;
|
||||
}
|
||||
|
||||
.illustrate {
|
||||
.illustrateDEghTTorsp {
|
||||
width: 100%;
|
||||
margin: 30rpx 0;
|
||||
|
||||
.illustrate-box {
|
||||
.illustrateDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
}
|
||||
|
||||
.illustrate-box-txt {
|
||||
.illustrateDEghTTorsp-box-txt {
|
||||
color: #ff7581;
|
||||
}
|
||||
|
||||
@@ -845,13 +845,13 @@
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.zl {
|
||||
.zlDEghTTorsp {
|
||||
width: 518rpx;
|
||||
height: 556rpx;
|
||||
position: relative;
|
||||
background: transparent;
|
||||
|
||||
.zl-bg {
|
||||
.zlDEghTTorsp-bg {
|
||||
width: 518rpx;
|
||||
height: 556rpx;
|
||||
position: absolute;
|
||||
@@ -859,7 +859,7 @@
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.zl-title {
|
||||
.zlDEghTTorsp-title {
|
||||
position: absolute;
|
||||
top: 15%;
|
||||
left: 46%;
|
||||
@@ -872,7 +872,7 @@
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.zl-titlef {
|
||||
.zlDEghTTorsp-titlef {
|
||||
font-size: 14rpx;
|
||||
font-weight: bold;
|
||||
color: #ffffff;
|
||||
@@ -881,7 +881,7 @@
|
||||
right: 35%;
|
||||
}
|
||||
|
||||
.zl-titlef2 {
|
||||
.zlDEghTTorsp-titlef2 {
|
||||
font-size: 14rpx;
|
||||
font-weight: bold;
|
||||
color: #ffffff;
|
||||
@@ -890,7 +890,7 @@
|
||||
left: 22%;
|
||||
}
|
||||
|
||||
.zl-titlebtn {
|
||||
.zlDEghTTorsp-titlebtn {
|
||||
font-size: 34rpx;
|
||||
font-weight: bold;
|
||||
background: linear-gradient(0deg, #FF5878 0.390625%, #F30931 100%);
|
||||
@@ -903,7 +903,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.btn-bg {
|
||||
.btn-bgDEghTTorsp {
|
||||
width: 64px;
|
||||
height: 28px;
|
||||
background: linear-gradient(90deg, #DBC084 0%, #E9D4A6 100%);
|
||||
@@ -1,270 +0,0 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<view class="shop-info-wrap">
|
||||
<view class="info-wrap flex-between">
|
||||
<view></view>
|
||||
<text class="shopName">{{ shopInfo.storeInfo.shopName }}</text>
|
||||
<view class="close" @click="showShopInfo = false">
|
||||
<u-icon name="close" color="#999999" size="28"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-wrap-title">商家信息</view>
|
||||
<view class="row" style="margin-bottom: 20rpx;">
|
||||
<view class="col">
|
||||
<text class="l">营业时间:</text>
|
||||
<text
|
||||
class="t">{{ (shopInfo.storeInfo.businessStartDay || '——') +'至'+ (shopInfo.storeInfo.businessEndDay || '——') +' '+ (shopInfo.storeInfo.businessTime || '')}}</text>
|
||||
</view>
|
||||
<view class="col">
|
||||
<text class="l">商家地址:</text>
|
||||
<text class="t">{{ shopInfo.storeInfo.address }}</text>
|
||||
</view>
|
||||
<view class="col" @click="makePhoneCall(shopInfo.storeInfo.phone)">
|
||||
<text class="l">商家电话:</text>
|
||||
<text class="t">{{ shopInfo.storeInfo.phone }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-wrap-title">商家公告</view>
|
||||
<view class="row">
|
||||
<view class="col">
|
||||
<text class="l">公告:</text>
|
||||
<text class="t">{{ shopInfo.storeInfo.detail }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="shop_bottom ">
|
||||
<view class="flex-between">
|
||||
<view class="price">
|
||||
<text class="i">¥</text>
|
||||
<text class="num">{{salePrice}}</text>
|
||||
<text class="i">/{{specifications.unitSnap}}</text>
|
||||
</view>
|
||||
<view class="operation-wrap">
|
||||
|
||||
<view class="btn">
|
||||
<u-icon name="minus-circle-fill" color="#E9AB7A" size="50"></u-icon>
|
||||
<view class="btnClick" @click="shopAdd(specifications,specifications.indexa,specifications.indexb,'-',specifications.tagSnap == null ? '单规格':'')"></view>
|
||||
</view>
|
||||
<text class="num">{{amountcartNumber}}</text>
|
||||
<view class="btn" >
|
||||
<u-icon name="plus-circle-fill" color="#E9AB7A" size="50"></u-icon>
|
||||
<view class="btnClick" @click="shopAdd(specifications,specifications.indexa,specifications.indexb,'+',specifications.tagSnap == null ? '单规格':'')"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="shop_skuselect flex-start" v-if="specifications.tagSnap">
|
||||
<view class="shop_skuselectname">{{skuidname.toString()}}</view>
|
||||
</view>
|
||||
<view class="addShopping" :class="(amountcartNumber>0&&isSpec)?'active':''"
|
||||
@click="addShopping(specifications,specifications.indexa,specifications.indexb,'+',specifications.tagSnap == null ? '单规格':'')">
|
||||
{{skuBtnText}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import videoList from '../../../components/videoList/videoList.vue'
|
||||
import empty from '@/components/empty.vue'
|
||||
export default {
|
||||
components: {
|
||||
empty,
|
||||
videoList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.enable = true
|
||||
this.getCourseList()
|
||||
},
|
||||
onHide() {
|
||||
this.enable = false
|
||||
},
|
||||
onLoad(option) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: option.title
|
||||
})
|
||||
this.getBannerList()
|
||||
if (option.sort) {
|
||||
this.sort = option.sort
|
||||
}
|
||||
if (option.isPrice) {
|
||||
this.isPrice = option.isPrice
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
goPage(url) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
},
|
||||
//点击回调
|
||||
posterSuccess(item) {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId
|
||||
})
|
||||
},
|
||||
//最新热播
|
||||
getCourseList() {
|
||||
let data = {
|
||||
limit: this.limit,
|
||||
page: this.page,
|
||||
sort: this.sort ? this.sort : '',
|
||||
title: this.keyword,
|
||||
}
|
||||
// #ifdef MP-WEIXIN
|
||||
data.wxShow = 1
|
||||
// #endif
|
||||
// #ifdef MP-TOUTIAO
|
||||
data.dyShow = 1
|
||||
// #endif
|
||||
if (this.isPrice) {
|
||||
data.isPrice = this.isPrice
|
||||
}
|
||||
this.$u.api.courseList(data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.pages = res.data.totalPage
|
||||
if (this.page < this.pages) {
|
||||
this.status = 'loadmore'
|
||||
} else {
|
||||
this.status = 'nomore'
|
||||
}
|
||||
// res.data.list.forEach(ret => {
|
||||
// ret.courseLabel = ret.courseLabel ? ret.courseLabel.split(',') : []
|
||||
// })
|
||||
if (this.page == 1) {
|
||||
this.courseList = res.data.list
|
||||
} else {
|
||||
this.courseList = [...this.courseList, ...res.data.list]
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
duration: 1000,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
uni.stopPullDownRefresh();
|
||||
|
||||
})
|
||||
},
|
||||
// 获取轮播图列表
|
||||
getBannerList() {
|
||||
this.$u.api.bannerList({
|
||||
classify: '1'
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
res.data.forEach(d => {
|
||||
if (d.state == 1) {
|
||||
this.swiperList.push(d)
|
||||
}
|
||||
})
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
duration: 1000,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
},
|
||||
onReachBottom: function() {
|
||||
if (this.page < this.pages) {
|
||||
this.page += 1
|
||||
this.status = 'loading'
|
||||
this.getCourseList()
|
||||
|
||||
} else {
|
||||
this.status = 'nomore'
|
||||
}
|
||||
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
this.page = 1;
|
||||
this.getCourseList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.search-box {
|
||||
width: 100%;
|
||||
padding: 15upx 2.5%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.vidoList {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.vidoList-item {
|
||||
width: calc((100% - 40rpx) / 3);
|
||||
height: 356rpx;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 24rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.vidoList-item-img {
|
||||
width: 100%;
|
||||
height: 280rpx;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.vidoList-item-title {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 0 0 24rpx 24rpx;
|
||||
padding: 20rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis; //溢出用省略号显示
|
||||
white-space: nowrap; // 默认不换行;
|
||||
}
|
||||
}
|
||||
|
||||
.swiper {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-bottom: 10rpx;
|
||||
margin-top: 10rpx;
|
||||
|
||||
.swiper-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.active {
|
||||
color: #5074FF;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 150upx;
|
||||
height: 60upx;
|
||||
background: #5074FF;
|
||||
border-radius: 30upx;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
line-height: 60rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
</style>
|
||||
31
pages/index/fghaQGjsSE/NrghEzeEnT.vue
Normal file
31
pages/index/fghaQGjsSE/NrghEzeEnT.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6762.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6763.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
369
pages/index/fghaQGjsSE/aghyvzmfVW.vue
Normal file
369
pages/index/fghaQGjsSE/aghyvzmfVW.vue
Normal file
@@ -0,0 +1,369 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<u-sticky :enable="enable">
|
||||
<view class="search-box-DEghTTorsp">
|
||||
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" :focus="true" v-model="keyword" :show-action="true"
|
||||
:animation="true" action-text="取消" @custom="goBackDEghTTorsp()" @search="doSearchDEghTTorsp(false)"></u-search>
|
||||
</view>
|
||||
</u-sticky>
|
||||
<view class="search-keyword-DEghTTorsp" v-if="isSearch">
|
||||
<view class="keyword-block-DEghTTorsp" v-if="hotKeywordList.length !=0">
|
||||
<view class="keyword-list-header">
|
||||
<view>热搜</view>
|
||||
<view>
|
||||
<image @tap="hotToggleDEghTTorsp" :src="'/static/images/index/attention'+forbid+'.png'"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="keyword" v-if="forbid==''">
|
||||
<view v-for="(keyword,index) in hotKeywordList" @tap="doSearchsDEghTTorsp(keyword)" :key="index"
|
||||
v-if="keyword">
|
||||
{{keyword}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="hide-hot-tis" v-else>
|
||||
<view>当前搜热已隐藏</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="keyword-block-DEghTTorsp" v-if="oldKeywordList.length>0">
|
||||
<view class="keyword-list-header">
|
||||
<view>历史记录</view>
|
||||
<view>
|
||||
<image @tap="oldDeleteDEghTTorsp" src="/static/images/index/delete.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="keyword">
|
||||
<view v-for="(keyword,index) in oldKeywordList" @tap="doSearchDEghTTorsp(keyword)" :key="index"
|
||||
v-if="keyword">
|
||||
{{keyword}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="search-list-DEghTTorsp flex align-center justify-center" v-else>
|
||||
<view class="search-list-box-DEghTTorsp flex align-center justify-between flex-wrap">
|
||||
<swiper class="swiper" :indicator-dots="true" :autoplay="true" interval="5000" duration="500"
|
||||
:circular="true" style="width: 100%;height: 350rpx;margin-bottom: 20rpx;">
|
||||
<swiper-item v-for="(item,index) in swiperList" :key='index' @tap="goPage(item.url)">
|
||||
<image :src="item.imageUrl" mode="scaleToFill"
|
||||
style="width: 100%;height: 100%;border-radius: 24rpx;"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<videoList @success="posterSuccessDEghTTorsp" :list="keywordList" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<empty title="暂无视频" v-if="isSearch == false && keywordList.length==0" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import videoList from '../../../components/videoList/videoList.vue'
|
||||
import empty from '../../../components/empty.vue'
|
||||
export default {
|
||||
components: {
|
||||
empty,
|
||||
videoList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
swiperList: [], //轮播图列表
|
||||
enable: true,
|
||||
defaultKeyword: "",
|
||||
keyword: "",
|
||||
oldKeywordList: [], //历史记录
|
||||
hotKeywordList: [], //热搜
|
||||
keywordList: [], //搜索列表
|
||||
forbid: '',
|
||||
isShowKeywordList: false,
|
||||
limit: 10,
|
||||
page: 1,
|
||||
noData: true,
|
||||
count: 0,
|
||||
isSearch: true,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.enable = true
|
||||
if (uni.getStorageSync('moreSearch')) {
|
||||
this.hotKeywordList = (uni.getStorageSync('moreSearch')).split(',')
|
||||
} else {
|
||||
this.hotKeywordList = []
|
||||
}
|
||||
},
|
||||
onHide() {
|
||||
this.enable = false
|
||||
},
|
||||
onLoad() {
|
||||
// this.init();
|
||||
// this.getSearchListDEghTTorsp()
|
||||
this.getBannerListDEghTTorsp()
|
||||
},
|
||||
methods: {
|
||||
//点击回调
|
||||
posterSuccessDEghTTorsp(item) {
|
||||
let userId = uni.getStorageSync('userId')
|
||||
if (userId) {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId +
|
||||
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
|
||||
.dyEpisodeId
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
},
|
||||
doSearchsDEghTTorsp(keyWord) {
|
||||
this.keyword = keyWord
|
||||
this.doSearchDEghTTorsp(false)
|
||||
},
|
||||
getBannerListDEghTTorsp() {
|
||||
this.$u.api.bannerList({
|
||||
classify: '1'
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
res.data.forEach(d => {
|
||||
if (d.state == 1) {
|
||||
this.swiperList.push(d)
|
||||
}
|
||||
})
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
duration: 1000,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取搜索历史
|
||||
getSearchListDEghTTorsp() {
|
||||
this.$u.api.SearchList().then(res => {
|
||||
if (res.code == 0) {
|
||||
this.hotKeywordList = res.data.allSerchName
|
||||
this.oldKeywordList = res.data.userSearchName
|
||||
}
|
||||
})
|
||||
},
|
||||
//清除历史搜索
|
||||
oldDeleteDEghTTorsp() {
|
||||
uni.showModal({
|
||||
content: '确定清除历史搜索记录?',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
console.log('用户点击确定');
|
||||
this.$u.api.SearchDet().then(res => {
|
||||
if (res.code == 0) {
|
||||
this.getSearchListDEghTTorsp()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
duration: 1000,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
})
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//执行搜索
|
||||
doSearchDEghTTorsp(keyword) {
|
||||
this.isSearch = false
|
||||
this.isShowKeywordList = true;
|
||||
this.noData = true
|
||||
let data = {
|
||||
title: this.keyword,
|
||||
limit: this.limit,
|
||||
page: this.page,
|
||||
}
|
||||
// #ifdef MP-WEIXIN
|
||||
data.wxShow = 1
|
||||
// #endif
|
||||
// #ifdef MP-TOUTIAO
|
||||
data.dyShow = 1
|
||||
// #endif
|
||||
let token = uni.getStorageSync('token')
|
||||
if (token) {
|
||||
this.$u.api.search(data).then(res => {
|
||||
uni.stopPullDownRefresh()
|
||||
if (res.code == 0) {
|
||||
this.count = res.data.totalPage
|
||||
if (this.page == 1) {
|
||||
this.keywordList = res.data.list
|
||||
} else {
|
||||
this.keywordList = [...this.keywordList, ...res.data.list]
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$u.api.searchs(data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.count = res.data.totalPage
|
||||
if (this.page == 1) {
|
||||
this.keywordList = res.data.list
|
||||
} else {
|
||||
this.keywordList = [...this.keywordList, ...res.data.list]
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
// 点击取消返回首页
|
||||
goBackDEghTTorsp() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
//热门搜索开关
|
||||
hotToggleDEghTTorsp() {
|
||||
this.forbid = this.forbid ? '' : '_forbid';
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
onReachBottom: function() {
|
||||
if (this.page < this.count) {
|
||||
this.page += 1
|
||||
this.doSearchDEghTTorsp();
|
||||
}
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
this.page = 1;
|
||||
this.doSearchDEghTTorsp();
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.search-box-DEghTTorsp {
|
||||
width: 100%;
|
||||
/* background-color: rgb(242, 242, 242); */
|
||||
padding: 15upx 2.5%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
// position: sticky;
|
||||
// top: 0;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.search-box-DEghTTorsp .mSearch-input-box {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.search-box-DEghTTorsp .input-box {
|
||||
width: 85%;
|
||||
flex-shrink: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-box-DEghTTorsp .search-btn {
|
||||
width: 15%;
|
||||
margin: 0 0 0 2%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
font-size: 28upx;
|
||||
color: #ffffff;
|
||||
background: linear-gradient(to right, #ff9801, #ff570a);
|
||||
border-radius: 60upx;
|
||||
}
|
||||
|
||||
.search-box-DEghTTorsp .input-box>input {
|
||||
width: 100%;
|
||||
height: 60upx;
|
||||
font-size: 32upx;
|
||||
border: 0;
|
||||
border-radius: 60upx;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
padding: 0 3%;
|
||||
margin: 0;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.placeholder-class {
|
||||
color: #9e9e9e;
|
||||
}
|
||||
|
||||
.search-keyword-DEghTTorsp {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.search-list-DEghTTorsp {
|
||||
width: 100%;
|
||||
margin-top: 20rpx;
|
||||
|
||||
.search-list-box-DEghTTorsp {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.keyword-block-DEghTTorsp {
|
||||
padding: 10upx 0;
|
||||
}
|
||||
|
||||
.keyword-block-DEghTTorsp .keyword-list-header {
|
||||
width: 94%;
|
||||
padding: 10upx 3%;
|
||||
font-size: 27upx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.keyword-block-DEghTTorsp .keyword-list-header image {
|
||||
width: 40upx;
|
||||
height: 40upx;
|
||||
}
|
||||
|
||||
.keyword-block-DEghTTorsp .keyword {
|
||||
width: 94%;
|
||||
padding: 3px 3%;
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.keyword-block-DEghTTorsp .hide-hot-tis {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-size: 28upx;
|
||||
color: #6b6b6b;
|
||||
}
|
||||
|
||||
.keyword-block-DEghTTorsp .keyword>view {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 60upx;
|
||||
padding: 0 20upx;
|
||||
margin: 10upx 20upx 10upx 0;
|
||||
height: 60upx;
|
||||
font-size: 28upx;
|
||||
// background-color: rgb(242, 242, 242);
|
||||
background: #E6EBFF;
|
||||
color: #6b6b6b;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
31
pages/index/fghaQGjsSE/ghGUYQGWQu.vue
Normal file
31
pages/index/fghaQGjsSE/ghGUYQGWQu.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6764.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6765.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -401,7 +401,7 @@
|
||||
//去助力页面
|
||||
goZl() {
|
||||
uni.navigateTo({
|
||||
url: '/me/rHTgyqGoIV/rHTgyqGoIV'
|
||||
url: '/me/assistance/assistance'
|
||||
})
|
||||
this.showjl = false
|
||||
},
|
||||
@@ -452,7 +452,7 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -514,7 +514,7 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -566,7 +566,7 @@
|
||||
// 跳转搜索
|
||||
goSearch() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/search/index'
|
||||
url: '/pages/index/fghaQGjsSE/aghyvzmfVW'
|
||||
});
|
||||
},
|
||||
// 跳转公告链接
|
||||
@@ -608,7 +608,7 @@
|
||||
}
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -6,53 +6,53 @@
|
||||
<!-- #ifdef H5 -->
|
||||
<u-navbar :background="background" height="60" :is-back="false" :title="title" :border-bottom="false">
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef H5 -->
|
||||
<u-navbar height="60" :background="background" :is-back="false" :title="title" :border-bottom="false">
|
||||
<!-- #ifndef H5 -->
|
||||
<u-navbar height="60" :background="background" :is-back="false" :title="title" :border-bottom="false">
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef MP-TOUTIAO -->
|
||||
<view :style="{marginTop:barHeight/2+'px'}" class="nvavBarDEghTTorsp flex" style="padding-left: 80rpx;">
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef MP-TOUTIAO -->
|
||||
<view :style="{marginTop:barHeight/2+'px'}" class="nvavBar flex" style="padding-left: 80rpx;">
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-TOUTIAO -->
|
||||
<view class="nvavBar flex justify-center">
|
||||
<!-- #endif -->
|
||||
<view class="nvavBar-box" :style="{height:barHeight>0?barHeight+'px':'70rpx'}">
|
||||
<!-- #ifdef H5 || APP -->
|
||||
<view @click.stop="goSearch" class="nvavBar-boxs flex align-center"
|
||||
style="width: 100%;">
|
||||
<u-search placeholder-color="#cccccc" disabled search-icon-color="#ff7581"
|
||||
:show-action="false" placeholder="今日正在热播" v-model="keyword"></u-search>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef H5 || APP -->
|
||||
<view @click.stop="goSearch" class="nvavBar-boxs flex align-center"
|
||||
:style="{width: 'calc(100% - '+barWidth+'px);'}">
|
||||
<u-search placeholder-color="#cccccc" disabled search-icon-color="#ff7581"
|
||||
:show-action="false" placeholder="今日正在热播" v-model="keyword"></u-search>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
</view>
|
||||
<!-- #ifndef MP-TOUTIAO -->
|
||||
<view class="nvavBarDEghTTorsp flex justify-center">
|
||||
<!-- #endif -->
|
||||
<view class="nvavBarDEghTTorsp-box" :style="{height:barHeight>0?barHeight+'px':'70rpx'}">
|
||||
<!-- #ifdef H5 || APP -->
|
||||
<view @click.stop="goSearchDEghTTorsp" class="nvavBarDEghTTorsp-boxs flex align-center"
|
||||
style="width: 100%;">
|
||||
<u-search placeholder-color="#cccccc" disabled search-icon-color="#ff7581"
|
||||
:show-action="false" placeholder="今日正在热播" v-model="keyword"></u-search>
|
||||
</view>
|
||||
</u-navbar>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef H5 || APP -->
|
||||
<view @click.stop="goSearchDEghTTorsp" class="nvavBarDEghTTorsp-boxs flex align-center"
|
||||
:style="{width: 'calc(100% - '+barWidth+'px);'}">
|
||||
<u-search placeholder-color="#cccccc" disabled search-icon-color="#ff7581"
|
||||
:show-action="false" placeholder="今日正在热播" v-model="keyword"></u-search>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</u-navbar>
|
||||
</template>
|
||||
<view class="bgColorTop " :class="{'top-zhanwei':!showSearch}">
|
||||
<!-- <view v-if="homeTypeSel != '否'" class="topTabs flex align-center justify-center">
|
||||
<view class="topTabs-box">
|
||||
<scroll-view class="topTabs-box-H" scroll-x="true">
|
||||
<view class="topTabs-box-H-item" @tap="typeSel(index)"
|
||||
:class="TabCur==index?'topTabsActive':''" v-for="(item,index) in typeList" :key="index">
|
||||
<view class="bgColorTopDEghTTorsp " :class="{'top-zhanwei':!showSearch}">
|
||||
<!-- <view v-if="homeTypeSel != '否'" class="topTabsDEghTTorsp flex align-center justify-center">
|
||||
<view class="topTabsDEghTTorsp-box">
|
||||
<scroll-view class="topTabsDEghTTorsp-box-H" scroll-x="true">
|
||||
<view class="topTabsDEghTTorsp-box-H-item" @tap="typeSelDEghTTorsp(index)"
|
||||
:class="TabCur==index?'topTabsActiveDEghTTorsp':''" v-for="(item,index) in typeList" :key="index">
|
||||
{{item.classificationName}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 轮播图 -->
|
||||
<view v-if="TabCur == 0" class="swipers flex align-center justify-center">
|
||||
<view class="swipers-box">
|
||||
<swiper class="swipers-box" :indicator-dots="false" :autoplay="true" interval="5000" duration="500"
|
||||
<view v-if="TabCur == 0" class="swipersDEghTTorsp flex align-center justify-center">
|
||||
<view class="swipersDEghTTorsp-box">
|
||||
<swiper class="swipersDEghTTorsp-box" :indicator-dots="false" :autoplay="true" interval="5000" duration="500"
|
||||
:circular="true">
|
||||
<swiper-item class="swipers-box" v-for="(item,index) in swiperList" :key='index'
|
||||
@tap="goPage(item)">
|
||||
<swiper-item class="swipersDEghTTorsp-box" v-for="(item,index) in swiperList" :key='index'
|
||||
@tap="goPageDEghTTorsp(item)">
|
||||
<image :src="item.imageUrl" mode="aspectFill" style="width: 100%;height:100%;"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
@@ -61,28 +61,28 @@
|
||||
</view>
|
||||
<block v-if="TabCur == 0">
|
||||
<!-- 公告 -->
|
||||
<view class="gg flex align-center justify-center" v-if="noticeList.length>0">
|
||||
<view class="gg-box flex align-center justify-between">
|
||||
<view class="ggDEghTTorsp flex align-center justify-center" v-if="noticeList.length>0">
|
||||
<view class="ggDEghTTorsp-box flex align-center justify-between">
|
||||
<image src="../../static/images/index/ggIcon.png" mode=""></image>
|
||||
<swiper :autoplay="true" :vertical="true" :interval="4000" :circular="true" :indicator-dots="false"
|
||||
class="gg-box-swiper">
|
||||
class="ggDEghTTorsp-box-swiper">
|
||||
<block v-for="(item, index) in noticeList">
|
||||
<swiper-item @tap='goMsg(item.url)'>
|
||||
<view class="gg-box-swiper-t">{{item.title}}</view>
|
||||
<swiper-item @tap='goMsgDEghTTorsp(item.url)'>
|
||||
<view class="ggDEghTTorsp-box-swiper-t">{{item.title}}</view>
|
||||
</swiper-item>
|
||||
</block>
|
||||
</swiper>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 金刚区 -->
|
||||
<view class="centers">
|
||||
<view class="centers-cistrict flex align-center justify-center" v-if="gridList.length > 0">
|
||||
<view class="centers-cistrict-box">
|
||||
<swiper :indicator-dots="false" class="centers-cistrict-boxs" :autoplay="false" :interval="3000"
|
||||
<view class="centersDEghTTorsp">
|
||||
<view class="centersDEghTTorsp-cistrict flex align-center justify-center" v-if="gridList.length > 0">
|
||||
<view class="centersDEghTTorsp-cistrict-box">
|
||||
<swiper :indicator-dots="false" class="centersDEghTTorsp-cistrict-boxs" :autoplay="false" :interval="3000"
|
||||
:duration="300">
|
||||
<swiper-item v-for="(item,index) in gridList" :key="index">
|
||||
<view class="swiper-item flex align-center justify-between">
|
||||
<view class="swiper-item-s" @click="goGridList(ite)" v-for="(ite,ind) in item.child"
|
||||
<view class="swiper-item-s" @click="goGridListDEghTTorsp(ite)" v-for="(ite,ind) in item.child"
|
||||
:key="ind">
|
||||
<view class="swiper-item-s-img">
|
||||
<image :src="ite.imageUrl" mode="aspectFill"></image>
|
||||
@@ -111,39 +111,39 @@
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="rmVideList.length>0">
|
||||
<recommendVideo @more="moreVideo" @video="seVideo" v-if="rmVideList.length>0" :list="rmVideList"
|
||||
<recommendVideo @more="moreVideoDEghTTorsp" @video="seVideoDEghTTorsp" v-if="rmVideList.length>0" :list="rmVideList"
|
||||
title="本周热门" typeId="2" />
|
||||
</view>
|
||||
<view v-if="rmVideList.length>0">
|
||||
<recommendVideo @more="moreVideo" @video="seVideo" v-if="phbVideoList.length>0" :list="phbVideoList"
|
||||
<recommendVideo @more="moreVideoDEghTTorsp" @video="seVideoDEghTTorsp" v-if="phbVideoList.length>0" :list="phbVideoList"
|
||||
title="本周排行榜" typeId="1" />
|
||||
</view>
|
||||
<view v-if="rmVideList.length>0">
|
||||
<recommendVideo @more="moreVideo" @video="seVideo" v-if="newVideList.length>0" :list="newVideList"
|
||||
<recommendVideo @more="moreVideoDEghTTorsp" @video="seVideoDEghTTorsp" v-if="newVideList.length>0" :list="newVideList"
|
||||
title="最新热播" typeId="" />
|
||||
</view>
|
||||
<!-- 视频列表 -->
|
||||
<view class="videTitle flex align-center justify-center">
|
||||
<view class="videTitle-box">
|
||||
<view class="videTitleDEghTTorsp flex align-center justify-center">
|
||||
<view class="videTitleDEghTTorsp-box">
|
||||
更多短剧
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view v-if="courseList.length>0" class="" style="width: 100%;margin-top: 20rpx;">
|
||||
<videoList @success="posterSuccess" :list="courseList" />
|
||||
<videoList @success="posterSuccessDEghTTorsp" :list="courseList" />
|
||||
</view>
|
||||
|
||||
<u-loadmore v-if="courseList.length > 0" :status="status" />
|
||||
<empty title="暂无视频" v-if="courseList.length == 0" />
|
||||
<uni-popup ref="popusAuthorization" type="center" :maskClick="false">
|
||||
<view class="contentview">
|
||||
<view class="contentviewDEghTTorsp">
|
||||
<view class="title">隐私保护指引</view>
|
||||
<view class="des" @click="openPrivacyContract">
|
||||
<view class="des" @click="openPrivacyContractDEghTTorsp">
|
||||
在使用当前小程序服务之前,请仔细阅读<text
|
||||
style="color: #5074FF;">{{privacyContractName}}</text>。如你同意{{privacyContractName}},请点击“同意”开始使用。
|
||||
</view>
|
||||
<view class="btns">
|
||||
<button class="item reject" @click="exitMiniProgram">拒绝</button>
|
||||
<view class="btnsDEghTTorsp">
|
||||
<button class="item reject" @click="exitMiniProgramDEghTTorsp">拒绝</button>
|
||||
<button id="agree-btn" class="item agree" open-type="agreePrivacyAuthorization"
|
||||
@agreeprivacyauthorization="handleAgreePrivacyAuthorization">同意</button>
|
||||
</view>
|
||||
@@ -151,41 +151,41 @@
|
||||
</uni-popup>
|
||||
<!-- 会员助力 -->
|
||||
<u-popup v-model="showjl" :closeable="true" close-icon-color="#ffffff" mode="center">
|
||||
<view class="zl" @click="goZl()">
|
||||
<image class="zl-bg"
|
||||
<view class="zlDEghTTorsp" @click="goZlDEghTTorsp()">
|
||||
<image class="zlDEghTTorsp-bg"
|
||||
src="https://dj-api.hnsiyao.cn/file/uploadPath/2023/12/14/adf37beca97826d44970d20118f88e29.png"
|
||||
mode=""></image>
|
||||
<view class="zl-title">
|
||||
<view class="zlDEghTTorsp-title">
|
||||
会员免费领
|
||||
</view>
|
||||
<view class="zl-titlef">
|
||||
<view class="zlDEghTTorsp-titlef">
|
||||
免费领会员
|
||||
</view>
|
||||
<view class="zl-titlef2">
|
||||
<view class="zlDEghTTorsp-titlef2">
|
||||
助力中...
|
||||
</view>
|
||||
<view class="zl-titlebtn">
|
||||
<view class="zlDEghTTorsp-titlebtn">
|
||||
立即领取
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<!-- 新人红包 -->
|
||||
<u-popup v-model="xxPopu" :closeable="false" close-icon-color="#ffffff" mode="center">
|
||||
<view class="zl" style="height: 580rpx;" @click="saveNewUser()">
|
||||
<image class="zl-bgs"
|
||||
<view class="zlDEghTTorsp" style="height: 580rpx;" @click="saveNewUserDEghTTorsp()">
|
||||
<image class="zlDEghTTorsp-bgs"
|
||||
src="https://dj-api.hnsiyao.cn/file/uploadPath/2024/02/22/cee2fcdc4c4ebe31ab4ce2c3c3a3d183.png"
|
||||
mode=""></image>
|
||||
<view class="zl-titles">
|
||||
<view class="zlDEghTTorsp-titles">
|
||||
{{xxJDNum}} <text>金币</text>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<!-- 活动悬浮入口 -->
|
||||
<activityComp v-if="showzl && showzls" @clickCloseHd="clickCloseHd" @setImgs="goZl()" />
|
||||
<activityComp v-if="showzl && showzls" @clickCloseHd="clickCloseHdDEghTTorsp" @setImgs="goZlDEghTTorsp()" />
|
||||
<!-- 追剧悬浮 -->
|
||||
<!-- <drag-button v-if="shodrag && shodrags" @clickClose="clickClose" :videoInfo="videoInfo" :isDock="true"
|
||||
:existTabBar="true" @btnClick="btnClick" /> -->
|
||||
<u-image v-if="isShowMoneyPay" @click="goMsg('/me/VjgyqAzklr/VjgyqAzklr')" :src="`../../static/red-pack-new.gif`"
|
||||
<!-- <drag-button v-if="shodrag && shodrags" @clickClose="clickCloseDEghTTorsp" :videoInfo="videoInfo" :isDock="true"
|
||||
:existTabBar="true" @btnClick="btnClickDEghTTorsp" /> -->
|
||||
<u-image v-if="isShowMoneyPay" @click="goMsgDEghTTorsp('/me/choujiang/choujiang')" :src="`../../static/red-pack-new.gif`"
|
||||
style="width: 200rpx;height: 200rpx;position: fixed;right: 10rpx;bottom: 180rpx;"></u-image>
|
||||
<!-- #ifdef H5 -->
|
||||
<div v-if="isWeixin"
|
||||
@@ -316,8 +316,8 @@
|
||||
//TODO handle the exception
|
||||
}
|
||||
// #endif
|
||||
this.getBgImg()
|
||||
this.getTypeList();
|
||||
this.getBgImgDEghTTorsp()
|
||||
this.getTypeListDEghTTorsp();
|
||||
this.invitationCode = uni.getStorageSync('invitationCode')
|
||||
// #ifdef MP-WEIXIN
|
||||
if (options.scene) { //这里为线上操作
|
||||
@@ -343,7 +343,7 @@
|
||||
this.$Request.get('/app/common/type/813').then(res => {
|
||||
if (res.code == 0 && res.data.value) {
|
||||
if (res.data.value == '是') {
|
||||
this.getActivity()
|
||||
this.getActivityDEghTTorsp()
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -363,16 +363,16 @@
|
||||
},
|
||||
onShow() {
|
||||
//本周热门
|
||||
this.getrecomVideo('2')
|
||||
this.getrecomVideoDEghTTorsp('2')
|
||||
//本周排行榜
|
||||
this.getrecomVideo('1')
|
||||
this.getrecomVideoDEghTTorsp('1')
|
||||
//最新
|
||||
this.getrecomVideo('')
|
||||
this.getBannerList()
|
||||
this.getMsg()
|
||||
this.getGardList()
|
||||
this.getrecomVideoDEghTTorsp('')
|
||||
this.getBannerListDEghTTorsp()
|
||||
this.getMsgDEghTTorsp()
|
||||
this.getGardListDEghTTorsp()
|
||||
this.page = 1
|
||||
this.getCourseList()
|
||||
this.getCourseListDEghTTorsp()
|
||||
this.homeTypeSel = uni.getStorageSync('homeTypeSel') ? uni.getStorageSync('homeTypeSel') : '否'
|
||||
//#ifdef H5
|
||||
let that = this
|
||||
@@ -417,11 +417,11 @@
|
||||
});
|
||||
//#endif
|
||||
if (uni.getStorageSync('token')) {
|
||||
this.getMyLoveVideo()
|
||||
this.getMyLoveVideoDEghTTorsp()
|
||||
this.$Request.get('/app/common/type/813').then(res => {
|
||||
if (res.code == 0 && res.data.value) {
|
||||
if (res.data.value == '是') {
|
||||
this.getActivitys()
|
||||
this.getActivitysDEghTTorsp()
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -429,7 +429,7 @@
|
||||
this.$Request.get('/app/common/type/837').then(res => {
|
||||
if (res.code == 0 && res.data.value) {
|
||||
this.xxJDNum = res.data.value;
|
||||
this.checkNewUser()
|
||||
this.checkNewUserDEghTTorsp()
|
||||
}
|
||||
})
|
||||
} else { //没有登录隐藏悬浮与弹窗
|
||||
@@ -450,18 +450,18 @@
|
||||
if (this.page < this.pages) {
|
||||
this.page += 1
|
||||
this.status = 'loading'
|
||||
this.getCourseList()
|
||||
this.getCourseListDEghTTorsp()
|
||||
} else {
|
||||
this.status = 'nomore'
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.page = 1
|
||||
this.getCourseList()
|
||||
this.getCourseListDEghTTorsp()
|
||||
},
|
||||
methods: {
|
||||
// 获取活动等级
|
||||
getActivitys() {
|
||||
getActivitysDEghTTorsp() {
|
||||
this.$Request.getT('/app/invite/selectInviteAwardByUserId').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data) {
|
||||
@@ -471,12 +471,12 @@
|
||||
})
|
||||
},
|
||||
//关闭活动入口
|
||||
clickCloseHd() {
|
||||
clickCloseHdDEghTTorsp() {
|
||||
// this.showzl = false
|
||||
this.showzls = false
|
||||
},
|
||||
//悬浮去看视频
|
||||
btnClick(item) {
|
||||
btnClickDEghTTorsp(item) {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId +
|
||||
'&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
|
||||
@@ -484,12 +484,12 @@
|
||||
})
|
||||
},
|
||||
//关闭悬浮
|
||||
clickClose() {
|
||||
clickCloseDEghTTorsp() {
|
||||
// this.shodrag = data
|
||||
this.shodrags = false
|
||||
},
|
||||
//获取我的收藏的短剧
|
||||
getMyLoveVideo() {
|
||||
getMyLoveVideoDEghTTorsp() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 1,
|
||||
@@ -505,27 +505,27 @@
|
||||
})
|
||||
},
|
||||
// 查看更多
|
||||
moreVideo(item) {
|
||||
moreVideoDEghTTorsp(item) {
|
||||
console.log(item)
|
||||
let title = ''
|
||||
if (item == 2) {
|
||||
title = '本周热门'
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/course/courseList?title=' + title + '&sort=' + item
|
||||
url: '/pages/index/mggghRAnkh/yDNQghnrBV?title=' + title + '&sort=' + item
|
||||
})
|
||||
} else if (item == 1) {
|
||||
title = '本周排行榜'
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/course/courseList?title=' + title + '&sort=' + item
|
||||
url: '/pages/index/mggghRAnkh/yDNQghnrBV?title=' + title + '&sort=' + item
|
||||
})
|
||||
} else {
|
||||
title = '最新热播'
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/course/courseList?title=' + title
|
||||
url: '/pages/index/mggghRAnkh/yDNQghnrBV?title=' + title
|
||||
})
|
||||
}
|
||||
},
|
||||
pageScrollTo(time = 100) {
|
||||
pageScrollToDEghTTorsp(time = 100) {
|
||||
uni.pageScrollTo({
|
||||
scrollTop: this.scrollTop - 50,
|
||||
duration: time,
|
||||
@@ -535,11 +535,11 @@
|
||||
})
|
||||
},
|
||||
//查看视频
|
||||
seVideo(item) {
|
||||
seVideoDEghTTorsp(item) {
|
||||
const time = 100;
|
||||
// #ifdef H5
|
||||
if (returnIsSafari()) {
|
||||
this.pageScrollTo(time)
|
||||
this.pageScrollToDEghTTorsp(time)
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item
|
||||
@@ -568,11 +568,11 @@
|
||||
|
||||
},
|
||||
//点击回调
|
||||
posterSuccess(item) {
|
||||
posterSuccessDEghTTorsp(item) {
|
||||
const time = 100;
|
||||
// #ifdef H5
|
||||
if (returnIsSafari()) {
|
||||
this.pageScrollTo(time)
|
||||
this.pageScrollToDEghTTorsp(time)
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item
|
||||
@@ -600,7 +600,7 @@
|
||||
|
||||
},
|
||||
//获取推荐视频
|
||||
getrecomVideo(sort) {
|
||||
getrecomVideoDEghTTorsp(sort) {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 3,
|
||||
@@ -625,7 +625,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
getTypeList() {
|
||||
getTypeListDEghTTorsp() {
|
||||
this.$Request.getT('/app/courseClassification/queryClassification').then(res => {
|
||||
if (res.code == 0) {
|
||||
let fenlei = {
|
||||
@@ -641,13 +641,13 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
typeSel(index) {
|
||||
typeSelDEghTTorsp(index) {
|
||||
this.TabCur = index;
|
||||
this.page = 1
|
||||
this.courseList = []
|
||||
this.getCourseList()
|
||||
this.getCourseListDEghTTorsp()
|
||||
},
|
||||
checkNewUser() {
|
||||
checkNewUserDEghTTorsp() {
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code == 0 && res.data) {
|
||||
if (res.data.isNewUser && res.data.isNewUser == 1) {} else {
|
||||
@@ -656,7 +656,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
saveNewUser() {
|
||||
saveNewUserDEghTTorsp() {
|
||||
this.$Request.postT('/app/user/getNewUserRed').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.xxPopu = false;
|
||||
@@ -667,7 +667,7 @@
|
||||
})
|
||||
},
|
||||
// 获取活动等级
|
||||
getActivity() {
|
||||
getActivityDEghTTorsp() {
|
||||
this.$Request.getT('/app/invite/selectInviteAwardByUserId').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data) {
|
||||
@@ -677,14 +677,14 @@
|
||||
})
|
||||
},
|
||||
//去助力页面
|
||||
goZl() {
|
||||
goZlDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/me/rHTgyqGoIV/rHTgyqGoIV'
|
||||
url: '/me/assistance/assistance'
|
||||
})
|
||||
this.showjl = false
|
||||
},
|
||||
// 打开隐私协议页面
|
||||
openPrivacyContract() {
|
||||
openPrivacyContractDEghTTorsp() {
|
||||
let that = this;
|
||||
wx.openPrivacyContract({
|
||||
fail: () => {
|
||||
@@ -693,7 +693,7 @@
|
||||
})
|
||||
},
|
||||
// 拒绝隐私协议
|
||||
exitMiniProgram() {
|
||||
exitMiniProgramDEghTTorsp() {
|
||||
// 直接退出小程序
|
||||
wx.exitMiniProgram()
|
||||
},
|
||||
@@ -702,7 +702,7 @@
|
||||
this.$refs.popusAuthorization.close();
|
||||
},
|
||||
//获取背景图
|
||||
getBgImg() {
|
||||
getBgImgDEghTTorsp() {
|
||||
this.$u.get('app/banner/selectBannerList?classify=5').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.bgImg = res.data[0].imageUrl
|
||||
@@ -718,7 +718,7 @@
|
||||
},
|
||||
|
||||
// 获取资源列表
|
||||
getCourseList() {
|
||||
getCourseListDEghTTorsp() {
|
||||
let typeId = '';
|
||||
if (this.TabCur != 0) {
|
||||
typeId = this.typeList[this.TabCur].classificationId;
|
||||
@@ -761,20 +761,20 @@
|
||||
})
|
||||
},
|
||||
//切换类型
|
||||
selectTabs(index) {
|
||||
selectTabsDEghTTorsp(index) {
|
||||
this.current = index
|
||||
this.page = 1
|
||||
|
||||
this.getCourseList()
|
||||
this.getCourseListDEghTTorsp()
|
||||
},
|
||||
// 跳转资源列表
|
||||
goGridList(e) {
|
||||
goGridListDEghTTorsp(e) {
|
||||
uni.navigateTo({
|
||||
url: e.url
|
||||
})
|
||||
},
|
||||
//处理分割金刚区
|
||||
processArray(arr) {
|
||||
processArrayDEghTTorsp(arr) {
|
||||
let arr2 = [];
|
||||
let child = [];
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
@@ -797,7 +797,7 @@
|
||||
return arr2;
|
||||
},
|
||||
// 获取金刚区列表
|
||||
getGardList() {
|
||||
getGardListDEghTTorsp() {
|
||||
this.$u.api.bannerList({
|
||||
classify: '2',
|
||||
}).then(res => {
|
||||
@@ -808,7 +808,7 @@
|
||||
arr.push(ret)
|
||||
}
|
||||
})
|
||||
this.gridList = this.processArray(arr)
|
||||
this.gridList = this.processArrayDEghTTorsp(arr)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
@@ -819,13 +819,13 @@
|
||||
})
|
||||
},
|
||||
// 跳转搜索
|
||||
goSearch() {
|
||||
goSearchDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/search/index'
|
||||
url: '/pages/index/fghaQGjsSE/aghyvzmfVW'
|
||||
});
|
||||
},
|
||||
// 跳转公告链接
|
||||
goMsg(url) {
|
||||
goMsgDEghTTorsp(url) {
|
||||
if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
@@ -842,7 +842,7 @@
|
||||
}
|
||||
},
|
||||
//轮播图跳转
|
||||
goPage(item) {
|
||||
goPageDEghTTorsp(item) {
|
||||
let token = uni.getStorageSync('token')
|
||||
const {
|
||||
url,
|
||||
@@ -875,12 +875,12 @@
|
||||
}
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
})
|
||||
}
|
||||
},
|
||||
// 公告
|
||||
getMsg() {
|
||||
getMsgDEghTTorsp() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 5,
|
||||
@@ -902,7 +902,7 @@
|
||||
})
|
||||
},
|
||||
// 获取轮播图列表
|
||||
getBannerList() {
|
||||
getBannerListDEghTTorsp() {
|
||||
this.$u.api.bannerList({
|
||||
classify: '1'
|
||||
}).then(res => {
|
||||
@@ -941,12 +941,12 @@
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
.videTitle {
|
||||
.videTitleDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 30rpx;
|
||||
|
||||
.videTitle-box {
|
||||
.videTitleDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
font-size: 32rpx;
|
||||
@@ -955,13 +955,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
.nvavBar {
|
||||
.nvavBarDEghTTorsp {
|
||||
width: 750rpx;
|
||||
height: 100%;
|
||||
|
||||
|
||||
|
||||
.nvavBar-box {
|
||||
.nvavBarDEghTTorsp-box {
|
||||
/* #ifdef MP-TOUTIAO */
|
||||
width: 543rpx;
|
||||
/* #endif */
|
||||
@@ -972,20 +972,20 @@
|
||||
height: 70rpx;
|
||||
}
|
||||
|
||||
.nvavBar-boxs {
|
||||
.nvavBarDEghTTorsp-boxs {
|
||||
height: 100%;
|
||||
background-color: #ffffff;
|
||||
border-radius: 44rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.zl {
|
||||
.zlDEghTTorsp {
|
||||
width: 518rpx;
|
||||
height: 556rpx;
|
||||
position: relative;
|
||||
background: transparent;
|
||||
|
||||
.zl-bg {
|
||||
.zlDEghTTorsp-bg {
|
||||
width: 518rpx;
|
||||
height: 556rpx;
|
||||
position: absolute;
|
||||
@@ -993,7 +993,7 @@
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.zl-bgs {
|
||||
.zlDEghTTorsp-bgs {
|
||||
width: 518rpx;
|
||||
height: 580rpx;
|
||||
position: absolute;
|
||||
@@ -1001,7 +1001,7 @@
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.zl-title {
|
||||
.zlDEghTTorsp-title {
|
||||
position: absolute;
|
||||
top: 15%;
|
||||
left: 46%;
|
||||
@@ -1014,7 +1014,7 @@
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.zl-titles {
|
||||
.zlDEghTTorsp-titles {
|
||||
position: absolute;
|
||||
top: 24%;
|
||||
left: 50%;
|
||||
@@ -1031,7 +1031,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.zl-titlef {
|
||||
.zlDEghTTorsp-titlef {
|
||||
font-size: 14rpx;
|
||||
font-weight: bold;
|
||||
color: #ffffff;
|
||||
@@ -1040,7 +1040,7 @@
|
||||
right: 35%;
|
||||
}
|
||||
|
||||
.zl-titlef2 {
|
||||
.zlDEghTTorsp-titlef2 {
|
||||
font-size: 14rpx;
|
||||
font-weight: bold;
|
||||
color: #ffffff;
|
||||
@@ -1049,7 +1049,7 @@
|
||||
left: 22%;
|
||||
}
|
||||
|
||||
.zl-titlebtn {
|
||||
.zlDEghTTorsp-titlebtn {
|
||||
font-size: 34rpx;
|
||||
font-weight: bold;
|
||||
background: linear-gradient(0deg, #FF5878 0.390625%, #F30931 100%);
|
||||
@@ -1062,20 +1062,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
.topTabsActive {
|
||||
.topTabsActiveDEghTTorsp {
|
||||
color: #FF7581 !important;
|
||||
font-size: 30rpx !important;
|
||||
font-weight: bold !important;
|
||||
background-color: #FFE6E9 !important;
|
||||
}
|
||||
|
||||
.bgColorTop {
|
||||
.bgColorTopDEghTTorsp {
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.bgColorTop::before {
|
||||
.bgColorTopDEghTTorsp::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -1087,7 +1087,7 @@
|
||||
/* 确保在垂直渐变之上 */
|
||||
}
|
||||
|
||||
.bgColorTop::after {
|
||||
.bgColorTopDEghTTorsp::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -1100,7 +1100,7 @@
|
||||
/* 确保在水平渐变之上 */
|
||||
}
|
||||
|
||||
.topTabs {
|
||||
.topTabsDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
position: relative;
|
||||
@@ -1109,17 +1109,17 @@
|
||||
margin-bottom: 20rpx;
|
||||
padding-top: 20rpx;
|
||||
|
||||
.topTabs-box {
|
||||
.topTabsDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.topTabs-box-H {
|
||||
.topTabsDEghTTorsp-box-H {
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.topTabs-box-H-item {
|
||||
.topTabsDEghTTorsp-box-H-item {
|
||||
display: inline-block;
|
||||
background-color: #F8F4F4;
|
||||
margin-right: 36rpx;
|
||||
@@ -1130,13 +1130,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
.swipers {
|
||||
.swipersDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
|
||||
.swipers-box {
|
||||
.swipersDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 270rpx;
|
||||
border-radius: 24rpx;
|
||||
@@ -1157,12 +1157,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.gg {
|
||||
.ggDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 20rpx;
|
||||
|
||||
.gg-box {
|
||||
.ggDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 62rpx;
|
||||
background-color: #FFF2F4;
|
||||
@@ -1175,12 +1175,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.gg-box-swiper {
|
||||
.ggDEghTTorsp-box-swiper {
|
||||
width: calc(100% - 56rpx);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.gg-box-swiper-t {
|
||||
.ggDEghTTorsp-box-swiper-t {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
color: #FD4F65;
|
||||
@@ -1192,18 +1192,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
.centers {
|
||||
.centersDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: 60rpx 60rpx 0 0;
|
||||
|
||||
.centers-cistrict {
|
||||
.centersDEghTTorsp-cistrict {
|
||||
width: 100%;
|
||||
height: 160rpx;
|
||||
// height: 216rpx;
|
||||
// margin-top: 24rpx;
|
||||
|
||||
.centers-cistrict-box {
|
||||
.centersDEghTTorsp-cistrict-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
// background-color: #ffffff;
|
||||
@@ -1211,7 +1211,7 @@
|
||||
|
||||
}
|
||||
|
||||
.centers-cistrict-boxs {
|
||||
.centersDEghTTorsp-cistrict-boxs {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
@@ -1253,7 +1253,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.contentview {
|
||||
.contentviewDEghTTorsp {
|
||||
width: 632rpx;
|
||||
padding: 48rpx;
|
||||
box-sizing: border-box;
|
||||
@@ -1261,14 +1261,14 @@
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.contentview .title {
|
||||
.contentviewDEghTTorsp .title {
|
||||
text-align: center;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.contentview .des {
|
||||
.contentviewDEghTTorsp .des {
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
margin-top: 40rpx;
|
||||
@@ -1285,7 +1285,7 @@
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
.contentview .des .link {
|
||||
.contentviewDEghTTorsp .des .link {
|
||||
color: #5074FF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
@@ -1294,12 +1294,12 @@
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btns {
|
||||
.btnsDEghTTorsp {
|
||||
margin-top: 48rpx;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.btns .item {
|
||||
.btnsDEghTTorsp .item {
|
||||
justify-content: space-between;
|
||||
width: 244rpx;
|
||||
height: 80rpx;
|
||||
@@ -1311,12 +1311,12 @@
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btns .reject {
|
||||
.btnsDEghTTorsp .reject {
|
||||
background: #f4f4f5;
|
||||
color: #909399;
|
||||
}
|
||||
|
||||
.btns .agree {
|
||||
.btnsDEghTTorsp .agree {
|
||||
background: #5074FF;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
27
pages/index/mggghRAnkh/rGghmpneAi.vue
Normal file
27
pages/index/mggghRAnkh/rGghmpneAi.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6760.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6761.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
31
pages/index/mggghRAnkh/viepsii.vue
Normal file
31
pages/index/mggghRAnkh/viepsii.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6758.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6759.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -194,7 +194,7 @@
|
||||
.then(
|
||||
res => {
|
||||
if (res.code === 0) {
|
||||
that.callPay(res.data);
|
||||
that.callPayIos(res.data);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
@@ -215,7 +215,7 @@
|
||||
rea => {
|
||||
console.log(rea)
|
||||
if (rea.code == 0) {
|
||||
that.isCheckPay(rea.code, 'wxpay', JSON.stringify(rea.data));
|
||||
that.isCheckPayIos(rea.code, 'wxpay', JSON.stringify(rea.data));
|
||||
}
|
||||
});
|
||||
// #endif
|
||||
@@ -249,7 +249,7 @@
|
||||
'&classify=1').then(
|
||||
rea => {
|
||||
console.log('---------', rea)
|
||||
that.setPayment('alipay', rea.data);
|
||||
that.setPaymentIos('alipay', rea.data);
|
||||
});
|
||||
// #endif
|
||||
}
|
||||
@@ -271,10 +271,10 @@
|
||||
}
|
||||
|
||||
},
|
||||
isCheckPay(code, name, order) {
|
||||
isCheckPayIos(code, name, order) {
|
||||
if (code == 0) {
|
||||
console.log('999999999999')
|
||||
this.setPayment(name, order);
|
||||
this.setPaymentIos(name, order);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
@@ -282,7 +282,7 @@
|
||||
});
|
||||
}
|
||||
},
|
||||
setPayment(name, order) {
|
||||
setPaymentIos(name, order) {
|
||||
console.log(777777777, name, order)
|
||||
uni.requestPayment({
|
||||
provider: name,
|
||||
@@ -307,19 +307,19 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
callPay: function(response) {
|
||||
callPayIos: function(response) {
|
||||
if (typeof WeixinJSBridge === "undefined") {
|
||||
if (document.addEventListener) {
|
||||
document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady(response), false);
|
||||
document.addEventListener('WeixinJSBridgeReady', this.onBridgeReadyIos(response), false);
|
||||
} else if (document.attachEvent) {
|
||||
document.attachEvent('WeixinJSBridgeReady', this.onBridgeReady(response));
|
||||
document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReady(response));
|
||||
document.attachEvent('WeixinJSBridgeReady', this.onBridgeReadyIos(response));
|
||||
document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReadyIos(response));
|
||||
}
|
||||
} else {
|
||||
this.onBridgeReady(response);
|
||||
this.onBridgeReadyIos(response);
|
||||
}
|
||||
},
|
||||
onBridgeReady: function(response) {
|
||||
onBridgeReadyIos: function(response) {
|
||||
let that = this;
|
||||
if (!response.package) {
|
||||
return;
|
||||
31
pages/index/sbghiXQyHF.vue
Normal file
31
pages/index/sbghiXQyHF.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6766.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6767.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -1,21 +1,21 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<u-sticky :enable="enable">
|
||||
<view class="search-box">
|
||||
<view class="search-box-DEghTTorsp">
|
||||
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" :focus="true" v-model="keyword" :show-action="true"
|
||||
:animation="true" action-text="取消" @custom="goBack()" @search="doSearch(false)"></u-search>
|
||||
:animation="true" action-text="取消" @custom="goBackDEghTTorsp()" @search="doSearchDEghTTorsp(false)"></u-search>
|
||||
</view>
|
||||
</u-sticky>
|
||||
<view class="search-keyword" v-if="isSearch">
|
||||
<view class="keyword-block" v-if="hotKeywordList.length !=0">
|
||||
<view class="search-keyword-DEghTTorsp" v-if="isSearch">
|
||||
<view class="keyword-block-DEghTTorsp" v-if="hotKeywordList.length !=0">
|
||||
<view class="keyword-list-header">
|
||||
<view>热搜</view>
|
||||
<view>
|
||||
<image @tap="hotToggle" :src="'/static/images/index/attention'+forbid+'.png'"></image>
|
||||
<image @tap="hotToggleDEghTTorsp" :src="'/static/images/index/attention'+forbid+'.png'"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="keyword" v-if="forbid==''">
|
||||
<view v-for="(keyword,index) in hotKeywordList" @tap="doSearchs(keyword)" :key="index"
|
||||
<view v-for="(keyword,index) in hotKeywordList" @tap="doSearchsDEghTTorsp(keyword)" :key="index"
|
||||
v-if="keyword">
|
||||
{{keyword}}
|
||||
</view>
|
||||
@@ -24,23 +24,23 @@
|
||||
<view>当前搜热已隐藏</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="keyword-block" v-if="oldKeywordList.length>0">
|
||||
<view class="keyword-block-DEghTTorsp" v-if="oldKeywordList.length>0">
|
||||
<view class="keyword-list-header">
|
||||
<view>历史记录</view>
|
||||
<view>
|
||||
<image @tap="oldDelete" src="/static/images/index/delete.png"></image>
|
||||
<image @tap="oldDeleteDEghTTorsp" src="/static/images/index/delete.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="keyword">
|
||||
<view v-for="(keyword,index) in oldKeywordList" @tap="doSearch(keyword)" :key="index"
|
||||
<view v-for="(keyword,index) in oldKeywordList" @tap="doSearchDEghTTorsp(keyword)" :key="index"
|
||||
v-if="keyword">
|
||||
{{keyword}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="search-list flex align-center justify-center" v-else>
|
||||
<view class="search-list-box flex align-center justify-between flex-wrap">
|
||||
<view class="search-list-DEghTTorsp flex align-center justify-center" v-else>
|
||||
<view class="search-list-box-DEghTTorsp flex align-center justify-between flex-wrap">
|
||||
<swiper class="swiper" :indicator-dots="true" :autoplay="true" interval="5000" duration="500"
|
||||
:circular="true" style="width: 100%;height: 350rpx;margin-bottom: 20rpx;">
|
||||
<swiper-item v-for="(item,index) in swiperList" :key='index' @tap="goPage(item.url)">
|
||||
@@ -48,7 +48,7 @@
|
||||
style="width: 100%;height: 100%;border-radius: 24rpx;"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<videoList @success="posterSuccess" :list="keywordList" />
|
||||
<videoList @success="posterSuccessDEghTTorsp" :list="keywordList" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@@ -96,12 +96,12 @@
|
||||
},
|
||||
onLoad() {
|
||||
// this.init();
|
||||
// this.getSearchList()
|
||||
this.getBannerList()
|
||||
// this.getSearchListDEghTTorsp()
|
||||
this.getBannerListDEghTTorsp()
|
||||
},
|
||||
methods: {
|
||||
//点击回调
|
||||
posterSuccess(item) {
|
||||
posterSuccessDEghTTorsp(item) {
|
||||
let userId = uni.getStorageSync('userId')
|
||||
if (userId) {
|
||||
uni.navigateTo({
|
||||
@@ -111,31 +111,15 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
},
|
||||
doSearchs(keyWord) {
|
||||
doSearchsDEghTTorsp(keyWord) {
|
||||
this.keyword = keyWord
|
||||
this.doSearch(false)
|
||||
this.doSearchDEghTTorsp(false)
|
||||
},
|
||||
// 跳转资源详情
|
||||
goCourse(e) {
|
||||
let userId = uni.getStorageSync('userId')
|
||||
if (userId) {
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/index/course/courseDet?id=' + e
|
||||
// });
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + e
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
})
|
||||
}
|
||||
},
|
||||
getBannerList() {
|
||||
getBannerListDEghTTorsp() {
|
||||
this.$u.api.bannerList({
|
||||
classify: '1'
|
||||
}).then(res => {
|
||||
@@ -156,7 +140,7 @@
|
||||
})
|
||||
},
|
||||
// 获取搜索历史
|
||||
getSearchList() {
|
||||
getSearchListDEghTTorsp() {
|
||||
this.$u.api.SearchList().then(res => {
|
||||
if (res.code == 0) {
|
||||
this.hotKeywordList = res.data.allSerchName
|
||||
@@ -165,7 +149,7 @@
|
||||
})
|
||||
},
|
||||
//清除历史搜索
|
||||
oldDelete() {
|
||||
oldDeleteDEghTTorsp() {
|
||||
uni.showModal({
|
||||
content: '确定清除历史搜索记录?',
|
||||
success: (res) => {
|
||||
@@ -173,7 +157,7 @@
|
||||
console.log('用户点击确定');
|
||||
this.$u.api.SearchDet().then(res => {
|
||||
if (res.code == 0) {
|
||||
this.getSearchList()
|
||||
this.getSearchListDEghTTorsp()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
@@ -189,7 +173,7 @@
|
||||
});
|
||||
},
|
||||
//执行搜索
|
||||
doSearch(keyword) {
|
||||
doSearchDEghTTorsp(keyword) {
|
||||
this.isSearch = false
|
||||
this.isShowKeywordList = true;
|
||||
this.noData = true
|
||||
@@ -241,11 +225,11 @@
|
||||
}
|
||||
},
|
||||
// 点击取消返回首页
|
||||
goBack() {
|
||||
goBackDEghTTorsp() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
//热门搜索开关
|
||||
hotToggle() {
|
||||
hotToggleDEghTTorsp() {
|
||||
this.forbid = this.forbid ? '' : '_forbid';
|
||||
},
|
||||
|
||||
@@ -254,17 +238,17 @@
|
||||
onReachBottom: function() {
|
||||
if (this.page < this.count) {
|
||||
this.page += 1
|
||||
this.doSearch();
|
||||
this.doSearchDEghTTorsp();
|
||||
}
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
this.page = 1;
|
||||
this.doSearch();
|
||||
this.doSearchDEghTTorsp();
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.search-box {
|
||||
.search-box-DEghTTorsp {
|
||||
width: 100%;
|
||||
/* background-color: rgb(242, 242, 242); */
|
||||
padding: 15upx 2.5%;
|
||||
@@ -275,11 +259,11 @@
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.search-box .mSearch-input-box {
|
||||
.search-box-DEghTTorsp .mSearch-input-box {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.search-box .input-box {
|
||||
.search-box-DEghTTorsp .input-box {
|
||||
width: 85%;
|
||||
flex-shrink: 1;
|
||||
display: flex;
|
||||
@@ -287,7 +271,7 @@
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-box .search-btn {
|
||||
.search-box-DEghTTorsp .search-btn {
|
||||
width: 15%;
|
||||
margin: 0 0 0 2%;
|
||||
display: flex;
|
||||
@@ -300,7 +284,7 @@
|
||||
border-radius: 60upx;
|
||||
}
|
||||
|
||||
.search-box .input-box>input {
|
||||
.search-box-DEghTTorsp .input-box>input {
|
||||
width: 100%;
|
||||
height: 60upx;
|
||||
font-size: 32upx;
|
||||
@@ -318,70 +302,27 @@
|
||||
color: #9e9e9e;
|
||||
}
|
||||
|
||||
.search-keyword {
|
||||
.search-keyword-DEghTTorsp {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.search-list {
|
||||
.search-list-DEghTTorsp {
|
||||
width: 100%;
|
||||
margin-top: 20rpx;
|
||||
|
||||
.search-list-box {
|
||||
.search-list-box-DEghTTorsp {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.keyword-list-box {
|
||||
height: calc(100vh - 110upx);
|
||||
padding-top: 10upx;
|
||||
/* border-radius: 20upx 20upx 0 0; */
|
||||
/* background-color: #fff; */
|
||||
}
|
||||
|
||||
.keyword-entry-tap {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.keyword-entry {
|
||||
width: 94%;
|
||||
height: 80upx;
|
||||
margin: 0 3%;
|
||||
font-size: 30upx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: solid 1upx #e7e7e7;
|
||||
}
|
||||
|
||||
.keyword-entry image {
|
||||
width: 60upx;
|
||||
height: 60upx;
|
||||
}
|
||||
|
||||
.keyword-entry .keyword-text,
|
||||
.keyword-entry .keyword-img {
|
||||
height: 80upx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.keyword-entry .keyword-text {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.keyword-entry .keyword-img {
|
||||
width: 10%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
||||
.keyword-block {
|
||||
.keyword-block-DEghTTorsp {
|
||||
padding: 10upx 0;
|
||||
}
|
||||
|
||||
.keyword-block .keyword-list-header {
|
||||
.keyword-block-DEghTTorsp .keyword-list-header {
|
||||
width: 94%;
|
||||
padding: 10upx 3%;
|
||||
font-size: 27upx;
|
||||
@@ -390,12 +331,12 @@
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.keyword-block .keyword-list-header image {
|
||||
.keyword-block-DEghTTorsp .keyword-list-header image {
|
||||
width: 40upx;
|
||||
height: 40upx;
|
||||
}
|
||||
|
||||
.keyword-block .keyword {
|
||||
.keyword-block-DEghTTorsp .keyword {
|
||||
width: 94%;
|
||||
padding: 3px 3%;
|
||||
display: flex;
|
||||
@@ -403,14 +344,14 @@
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.keyword-block .hide-hot-tis {
|
||||
.keyword-block-DEghTTorsp .hide-hot-tis {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-size: 28upx;
|
||||
color: #6b6b6b;
|
||||
}
|
||||
|
||||
.keyword-block .keyword>view {
|
||||
.keyword-block-DEghTTorsp .keyword>view {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@@ -424,33 +365,5 @@
|
||||
color: #6b6b6b;
|
||||
}
|
||||
|
||||
.centre {
|
||||
text-align: center;
|
||||
margin: 200rpx auto;
|
||||
font-size: 32rpx;
|
||||
|
||||
image {
|
||||
width: 360rpx;
|
||||
height: 360rpx;
|
||||
// margin-bottom: 20rpx;
|
||||
margin: 0 auto 20rpx;
|
||||
// border: 1px dotted #000000;
|
||||
}
|
||||
|
||||
.tips {
|
||||
font-size: 34rpx;
|
||||
color: #5074FF;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin: 80rpx auto;
|
||||
width: 600rpx;
|
||||
border-radius: 32rpx;
|
||||
line-height: 90rpx;
|
||||
color: #ffffff;
|
||||
font-size: 34rpx;
|
||||
background: #5074FF;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
31
pages/itkXJghyII/IsLPghQOIF.vue
Normal file
31
pages/itkXJghyII/IsLPghQOIF.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6780.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6781.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
31
pages/itkXJghyII/viOaIkDghi.vue
Normal file
31
pages/itkXJghyII/viOaIkDghi.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6782.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6783.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="wrap">
|
||||
<view class="head">
|
||||
<view class="wrap-DEghTTorsp">
|
||||
<view class="headDEghTTorsp">
|
||||
<scroll-view scroll-x class="bg nav bg-white u-border-bottom">
|
||||
<view class="flex text-center">
|
||||
<view class="cu-item flex-sub text-bold" :class="item.name===TabCur?' cur ':'text-black'"
|
||||
v-for="(item,index) in tabList" :key="index" :data-id="item.name" @tap="tabSelect">
|
||||
v-for="(item,index) in tabList" :key="index" :data-id="item.name" @tap="tabSelectDEghTTorsp">
|
||||
{{item.name}}
|
||||
<view v-if="item.name===TabCur"
|
||||
style="width: 64rpx;height: 8rpx;;background: #5074FF;margin: -20rpx auto;border-radius: 10rpx;">
|
||||
@@ -14,11 +14,11 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="headLen">
|
||||
<view class="headLenDEghTTorsp">
|
||||
<view v-if="TabCur === tabList[0].name">
|
||||
<view class="page-box" v-if="latelyCourseList.length && userId">
|
||||
<view class="orderView" v-for="(item, index) in latelyCourseList" :key="index"
|
||||
@click="goCourseDet(item)">
|
||||
<view class="page-box-DEghTTorsp" v-if="latelyCourseList.length && userId">
|
||||
<view class="orderView-DEghTTorsp" v-for="(item, index) in latelyCourseList" :key="index"
|
||||
@click="goCourseDetDEghTTorsp(item)">
|
||||
<view class="item">
|
||||
<view class="left">
|
||||
<image :src="item.titleImg" mode="aspectFill"
|
||||
@@ -43,9 +43,9 @@
|
||||
<noLogin v-if="userId === ''"></noLogin>
|
||||
</view>
|
||||
<view v-if="TabCur == tabList[1].name">
|
||||
<view class="page-box" v-if="selectCourseList.length && userId">
|
||||
<view class="page-box-DEghTTorsp" v-if="selectCourseList.length && userId">
|
||||
<view class="order" v-for="(item, index) in selectCourseList" :key="index"
|
||||
@click="goCourseDet(item)">
|
||||
@click="goCourseDetDEghTTorsp(item)">
|
||||
<view class="item">
|
||||
<view class="left">
|
||||
<image :src="item.titleImg" mode="aspectFill"
|
||||
@@ -70,8 +70,8 @@
|
||||
<noLogin v-if="userId === ''"></noLogin>
|
||||
</view>
|
||||
<view v-if="TabCur == tabList[2].name">
|
||||
<view class="page-box" v-if="collectList.length && userId">
|
||||
<view class="orderView" v-for="(item,index) in collectList" :key='index' @click="goCourseDet(item)">
|
||||
<view class="page-box-DEghTTorsp" v-if="collectList.length && userId">
|
||||
<view class="orderView-DEghTTorsp" v-for="(item,index) in collectList" :key='index' @click="goCourseDetDEghTTorsp(item)">
|
||||
<view class="item">
|
||||
<view class="left">
|
||||
<image :src="item.titleImg" mode="aspectFill"
|
||||
@@ -154,13 +154,13 @@
|
||||
// this.latelyCourseList = []
|
||||
// this.selectCourseList = []
|
||||
// this.collectList = []
|
||||
this.getLatelyCourse()
|
||||
this.getSelectCourse()
|
||||
this.getCollectList()
|
||||
this.getLatelyCourseDEghTTorsp()
|
||||
this.getSelectCourseDEghTTorsp()
|
||||
this.getCollectListDEghTTorsp()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
tabSelect(e) {
|
||||
tabSelectDEghTTorsp(e) {
|
||||
// console.log(e.currentTarget.dataset)
|
||||
this.TabCur = e.currentTarget.dataset.id;
|
||||
this.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
|
||||
@@ -169,21 +169,21 @@
|
||||
switch (this.TabCur) {
|
||||
case '最近学习': //最近学习
|
||||
this.latelyCoursePage = 1
|
||||
this.getLatelyCourse()
|
||||
this.getLatelyCourseDEghTTorsp()
|
||||
break;
|
||||
case '已购资源': //已购资源
|
||||
this.selectCoursePage = 1
|
||||
this.getSelectCourse()
|
||||
this.getSelectCourseDEghTTorsp()
|
||||
break;
|
||||
case '收藏资源': //已购资源
|
||||
this.collectPage = 1;
|
||||
this.getCollectList()
|
||||
this.getCollectListDEghTTorsp()
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
// 最近学习
|
||||
getLatelyCourse() {
|
||||
getLatelyCourseDEghTTorsp() {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
})
|
||||
@@ -219,7 +219,7 @@
|
||||
})
|
||||
},
|
||||
// 已购资源
|
||||
getSelectCourse() {
|
||||
getSelectCourseDEghTTorsp() {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
})
|
||||
@@ -254,7 +254,7 @@
|
||||
})
|
||||
},
|
||||
// 获取收藏信息
|
||||
getCollectList() {
|
||||
getCollectListDEghTTorsp() {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
})
|
||||
@@ -284,15 +284,15 @@
|
||||
})
|
||||
},
|
||||
// 查看资源详情
|
||||
goCourseDet(e) {
|
||||
goCourseDetDEghTTorsp(e) {
|
||||
let userId = uni.getStorageSync('userId')
|
||||
if (userId) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/course/courseDet?id=' + e.courseId
|
||||
url: '/pages/index/mggghRAnkh/courseDet?id=' + e.courseId
|
||||
});
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -320,7 +320,7 @@
|
||||
return
|
||||
} else {
|
||||
this.latelyCoursePage = this.latelyCoursePage + 1;
|
||||
this.getLatelyCourse()
|
||||
this.getLatelyCourseDEghTTorsp()
|
||||
}
|
||||
} else if (this.TabCur == '已购资源') { //已购资源
|
||||
if (this.totalCount == this.selectCourseList.length) {
|
||||
@@ -331,7 +331,7 @@
|
||||
return
|
||||
} else {
|
||||
this.selectCoursePage = this.selectCoursePage + 1;
|
||||
this.getSelectCourse()
|
||||
this.getSelectCourseDEghTTorsp()
|
||||
}
|
||||
} else if (this.TabCur == '收藏资源') { //收藏资源
|
||||
if (this.totalCount == this.collectList.length) {
|
||||
@@ -342,21 +342,21 @@
|
||||
return
|
||||
} else {
|
||||
this.collectPage = this.collectPage + 1;
|
||||
this.getCollectList()
|
||||
this.getCollectListDEghTTorsp()
|
||||
}
|
||||
}
|
||||
// switch (this.TabCur) {
|
||||
// case '最近学习': //最近学习
|
||||
// this.latelyCoursePage = this.latelyCoursePage + 1;
|
||||
// this.getLatelyCourse()
|
||||
// this.getLatelyCourseDEghTTorsp()
|
||||
// break;
|
||||
// case '已购资源': //已购资源
|
||||
// this.selectCoursePage = this.selectCoursePage + 1;
|
||||
// this.getSelectCourse()
|
||||
// this.getSelectCourseDEghTTorsp()
|
||||
// break;
|
||||
// case '收藏资源': //评论
|
||||
// this.collectPage = this.collectPage + 1;
|
||||
// this.getCollectList()
|
||||
// this.getCollectListDEghTTorsp()
|
||||
// break;
|
||||
// }
|
||||
}
|
||||
@@ -373,7 +373,7 @@
|
||||
return
|
||||
} else {
|
||||
this.latelyCoursePage = 1
|
||||
this.getLatelyCourse()
|
||||
this.getLatelyCourseDEghTTorsp()
|
||||
}
|
||||
} else if (this.TabCur == '已购资源') { //已购资源
|
||||
if (this.totalCount == this.selectCourseList.length) {
|
||||
@@ -384,7 +384,7 @@
|
||||
return
|
||||
} else {
|
||||
this.selectCoursePage = 1
|
||||
this.getSelectCourse()
|
||||
this.getSelectCourseDEghTTorsp()
|
||||
}
|
||||
} else if (this.TabCur == '收藏资源') { //收藏资源
|
||||
if (this.totalCount == this.collectList.length) {
|
||||
@@ -395,24 +395,24 @@
|
||||
return
|
||||
} else {
|
||||
this.collectPage = 1
|
||||
this.getCollectList()
|
||||
this.getCollectListDEghTTorsp()
|
||||
}
|
||||
}
|
||||
// switch (this.TabCur) {
|
||||
// case '最近学习': //最近学习
|
||||
// this.latelyCoursePage = 1
|
||||
// // this.latelyCourseList = []
|
||||
// this.getLatelyCourse()
|
||||
// this.getLatelyCourseDEghTTorsp()
|
||||
// break;
|
||||
// case '已购资源': //已购资源
|
||||
// this.selectCoursePage = 1
|
||||
// // this.selectCourseList = []
|
||||
// this.getSelectCourse()
|
||||
// this.getSelectCourseDEghTTorsp()
|
||||
// break;
|
||||
// case '收藏资源': //已购资源
|
||||
// this.collectPage = 1;
|
||||
// // this.collectList = []
|
||||
// this.getCollectList()
|
||||
// this.getCollectListDEghTTorsp()
|
||||
// break;
|
||||
// }
|
||||
}
|
||||
@@ -431,7 +431,7 @@
|
||||
</style>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.head {
|
||||
.headDEghTTorsp {
|
||||
position: fixed;
|
||||
/* #ifdef H5 */
|
||||
top: 0rpx;
|
||||
@@ -444,7 +444,7 @@
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.headLen {
|
||||
.headLenDEghTTorsp {
|
||||
/* #ifdef H5 */
|
||||
margin-top: 80rpx;
|
||||
/* #endif */
|
||||
@@ -453,11 +453,11 @@
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
.page-box {
|
||||
.page-box-DEghTTorsp {
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
|
||||
.orderView {
|
||||
.orderView-DEghTTorsp {
|
||||
width: 700rpx;
|
||||
background-color: #ffffff;
|
||||
margin: 20rpx auto;
|
||||
@@ -509,106 +509,18 @@
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.buttom {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid #E6E6E6;
|
||||
|
||||
.price {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #FF8211;
|
||||
}
|
||||
|
||||
.number {
|
||||
font-size: 14px;
|
||||
color: #999999;
|
||||
line-height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.head1 {
|
||||
position: relative;
|
||||
left: -5px;
|
||||
}
|
||||
|
||||
.head2 {
|
||||
position: relative;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
.number {
|
||||
line-height: 50rpx;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.total {
|
||||
margin-top: 20rpx;
|
||||
text-align: right;
|
||||
font-size: 24rpx;
|
||||
|
||||
|
||||
.total-price {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom {
|
||||
display: flex;
|
||||
margin-top: 40rpx;
|
||||
padding: 0 10rpx;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.btn {
|
||||
line-height: 52rpx;
|
||||
width: 160rpx;
|
||||
border-radius: 26rpx;
|
||||
border: 2rpx solid $u-border-color;
|
||||
font-size: 26rpx;
|
||||
text-align: center;
|
||||
color: $u-type-info-dark;
|
||||
}
|
||||
|
||||
.evaluate {
|
||||
color: $u-type-warning-dark;
|
||||
border-color: $u-type-warning-dark;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.centre {
|
||||
text-align: center;
|
||||
margin: 200rpx auto;
|
||||
font-size: 32rpx;
|
||||
|
||||
|
||||
image {
|
||||
width: 360rpx;
|
||||
height: 360rpx;
|
||||
// margin-bottom: 20rpx;
|
||||
margin: 0 auto 20rpx;
|
||||
border: 1px dotted #000000;
|
||||
}
|
||||
|
||||
.tips {
|
||||
font-size: 40rpx;
|
||||
color: #5074FF;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin: 80rpx auto;
|
||||
width: 600rpx;
|
||||
border-radius: 32rpx;
|
||||
line-height: 90rpx;
|
||||
color: #ffffff;
|
||||
font-size: 34rpx;
|
||||
background: #5074FF;
|
||||
}
|
||||
}
|
||||
|
||||
.wrap {
|
||||
.wrap-DEghTTorsp {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: calc(100vh - var(--window-top));
|
||||
@@ -616,13 +528,6 @@
|
||||
|
||||
}
|
||||
|
||||
.swiper-box {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.swiper-item {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 150upx;
|
||||
|
||||
437
pages/login/WVEtZeeghKApp.vue
Normal file
437
pages/login/WVEtZeeghKApp.vue
Normal file
@@ -0,0 +1,437 @@
|
||||
<template>
|
||||
<view class="containerDEghTTorsp">
|
||||
<view class="bg u-absolute" style="width: 100%;height: 100%;overflow: hidden;top: 0;">
|
||||
<u-image src="../../static/images/i_bg.png" style="width: 100%;height:100%" mode=""></u-image>
|
||||
</view>
|
||||
<view class="wrapperDEghTTorsp u-relative" style="padding-top: 48rpx;box-sizing: border-box;">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view style="font-size: 58rpx;font-weight: bold;color: #333;margin-bottom: 48rpx;">注册</view>
|
||||
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<view class="title">手机号</view>
|
||||
<input class="input" type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<text class="title">验证码</text>
|
||||
<view class="input flex">
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<button class="send-msgDEghTTorsp" @click="sendMsgDEghTTorsp" :disabled="sending">{{ sendTime }}</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-groupDEghTTorsp">
|
||||
<text class="title">设置密码</text>
|
||||
<input class="input" type="password" :value="password" placeholder="请设置新密码" placeholder-class="input-empty"
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view>
|
||||
<!-- <view class="cu-form-groupDEghTTorsp"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">邀请码</text>
|
||||
<input type="text" v-if="registerCode == '是'" :value="invitation" placeholder="请填写邀请码"
|
||||
data-key="invitation" maxlength="20" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<input type="text" v-if="registerCode == '否'" :value="invitation" placeholder="请填写邀请码(选填)"
|
||||
data-key="invitation" maxlength="20" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view> -->
|
||||
<button class="confirm-btnDEghTTorsp" @click="toRegisterDEghTTorsp">注册</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">登录</button>
|
||||
</view>
|
||||
<view class="footerViewDEghTTorsp">
|
||||
<text @tap="isShowAgreeDEghTTorsp" class="cuIcon"
|
||||
:class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">注册即同意</text>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/me/setting/mimi" open-type="navigate" style="color: #37A6FF;">《隐私政策》</navigator>
|
||||
与
|
||||
<navigator url="/me/setting/xieyi" open-type="navigate" style="color: #37A6FF;">《用户协议》</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showAgree: false,
|
||||
code: '',
|
||||
mobile: '',
|
||||
password: '',
|
||||
sending: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
relation: "",
|
||||
invitation: '',
|
||||
registerCode: '',
|
||||
qdCodeion: '', //渠道码
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
if (uni.getStorageSync('qdCodeion')) {
|
||||
this.qdCodeion = uni.getStorageSync('qdCodeion')
|
||||
}
|
||||
let relation = uni.getStorageSync('invitation')
|
||||
if (relation) {
|
||||
this.relation = relation;
|
||||
this.invitation = relation;
|
||||
}
|
||||
this.$u.get('/app/common/type/3').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.registerCode = res.data.value
|
||||
}
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
isShowAgreeDEghTTorsp() {
|
||||
//是否选择协议
|
||||
this.showAgree = !this.showAgree;
|
||||
},
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else if (mobile.length !== 11) {
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
} else {
|
||||
uni.showLoading({
|
||||
title: '正在发送验证码...'
|
||||
})
|
||||
this.$u.get('/app/Login/sendMsg/' + mobile + '/login').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
uni.showToast({
|
||||
title: '验证码发送成功请注意查收',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码';
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
|
||||
|
||||
toLoginDEghTTorsp() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
});
|
||||
},
|
||||
toRegisterDEghTTorsp() {
|
||||
const {
|
||||
mobile,
|
||||
password,
|
||||
code,
|
||||
showAgree,
|
||||
invitation,
|
||||
registerCode,
|
||||
qdCodeion
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
uni.showToast({
|
||||
title: '请输入账号',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!code) {
|
||||
uni.showToast({
|
||||
title: '请输入验证码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!password) {
|
||||
uni.showToast({
|
||||
title: '请设置密码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (password.length < 6) {
|
||||
uni.showToast({
|
||||
title: '密码位数必须大于六位',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (invitation.length === 0 && registerCode === '是') {
|
||||
uni.showToast({
|
||||
title: '请输入邀请码',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!showAgree) {
|
||||
uni.showToast({
|
||||
title: '请先同意《隐私政策》和《用户协议》',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
this.logining = true;
|
||||
uni.showLoading({
|
||||
title: '注册中...'
|
||||
})
|
||||
let platform = ''
|
||||
// #ifdef APP
|
||||
platform = 'app'
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
platform = 'h5'
|
||||
// #endif
|
||||
this.$u.post('/app/Login/registerCode?password=' + password + '&phone=' + mobile + '&msg=' + code +
|
||||
'&inviterCode=' + invitation + '&platform=' + platform + '&qdCode=' + qdCodeion).then(res => {
|
||||
if (res.code === 0) {
|
||||
// this.$queue.remove('invitation');
|
||||
uni.setStorageSync('token', res.token)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
//设置渠道码
|
||||
if (res.user.qdCod) {
|
||||
uni.setStorageSync('qdCod', res.user.qdCod)
|
||||
}
|
||||
|
||||
uni.showToast({
|
||||
title: '注册成功',
|
||||
icon: 'none'
|
||||
})
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
}, 1000)
|
||||
// this.getUserInfoDEghTTorsp(res.userId, res.token);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '注册失败',
|
||||
content: res.msg
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
getUserInfoDEghTTorsp(userId, token) {
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code === 0) {
|
||||
// #ifdef APP-PLUS
|
||||
if (uni.getSystemInfoSync().platform == "android") {
|
||||
let clientid = plus.push.getClientInfo().clientid;
|
||||
this.$Request.postT('/appLogin/updateClientId?clientId=' + clientid + '&userId=' +
|
||||
userId).then(res => {
|
||||
|
||||
});
|
||||
}
|
||||
// #endif
|
||||
uni.setStorageSync('image_url', res.data.imageUrl ? res.data.imageUrl :
|
||||
'/static/img/common/logo.jpg')
|
||||
uni.setStorageSync('relation_id', res.data.relationId)
|
||||
uni.setStorageSync('relation', res.data.invitationCode)
|
||||
uni.setStorageSync('grade', res.data.grade)
|
||||
uni.setStorageSync('phone', res.data.phone)
|
||||
uni.setStorageSync('token', res.token)
|
||||
uni.setStorageSync('userId', res.data.userId)
|
||||
uni.setStorageSync('isInvitation', res.data.isInvitation)
|
||||
uni.setStorageSync('userName', res.data.userName ? res.data.userName : res.data.phone)
|
||||
|
||||
// this.$queue.setData('image_url', res.data.imageUrl ? res.data.imageUrl : '/static/img/common/logo.jpg');
|
||||
// this.$queue.setData('relation_id', res.data.relationId);
|
||||
// this.$queue.setData('relation', res.data.invitationCode);
|
||||
// this.$queue.setData('grade', res.data.grade);
|
||||
// this.$queue.setData('mobile', res.data.mobile);
|
||||
// this.$queue.setData('isInvitation', res.data.isInvitation);
|
||||
// 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'
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg
|
||||
});
|
||||
this.$queue.logout();
|
||||
}
|
||||
uni.hideLoading();
|
||||
})
|
||||
// this.$Request.postJson('/app/selectUserById?userId=' + userId).then(res => {
|
||||
// if (res.code === 0) {
|
||||
// // #ifdef APP-PLUS
|
||||
// if (uni.getSystemInfoSync().platform == "android") {
|
||||
// let clientid = plus.push.getClientInfo().clientid;
|
||||
// this.$Request.postT('/appLogin/updateClientId?clientId=' + clientid + '&userId=' + userId).then(res => {
|
||||
|
||||
// });
|
||||
// }
|
||||
// // #endif
|
||||
// this.$queue.setData('image_url', res.data.imageUrl ? res.data.imageUrl : '/static/img/common/logo.jpg');
|
||||
// this.$queue.setData('relation_id', res.data.relationId);
|
||||
// this.$queue.setData('relation', res.data.invitationCode);
|
||||
// this.$queue.setData('grade', res.data.grade);
|
||||
// this.$queue.setData('mobile', res.data.mobile);
|
||||
// this.$queue.setData('isInvitation', res.data.isInvitation);
|
||||
// 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'
|
||||
// });
|
||||
// } else {
|
||||
// uni.showModal({
|
||||
// showCancel: false,
|
||||
// title: '登录失败',
|
||||
// content: res.msg
|
||||
// });
|
||||
// this.$queue.logout();
|
||||
// }
|
||||
// uni.hideLoading();
|
||||
// });
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" >
|
||||
page {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.footerViewDEghTTorsp {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 78rpx;
|
||||
.cuIcon::before{
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
.cuIcon-round::before {
|
||||
content: "\e6d7";
|
||||
}
|
||||
.cuIcon-radiobox:before {
|
||||
content: "\e75b";
|
||||
color: #37A6FF;
|
||||
}
|
||||
}
|
||||
|
||||
.send-msgDEghTTorsp {
|
||||
line-height: initial;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #EC6F48;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
.send-msgDEghTTorsp::after{
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.containerDEghTTorsp {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.wrapperDEghTTorsp {
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
}
|
||||
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 56rpx;
|
||||
}
|
||||
.cu-form-groupDEghTTorsp{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 48rpx;
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
.title{
|
||||
margin-bottom: 32rpx;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.input{
|
||||
width: 100%;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
background-color: #fff;
|
||||
align-items: center;
|
||||
padding: 22rpx 32rpx 22rpx 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
border-radius: 16rpx;
|
||||
margin-top: 40rpx;
|
||||
background: #EC6F48;
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
|
||||
&:after {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,28 +1,28 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="wrapper">
|
||||
<view class="input-content">
|
||||
<view class="containerDEghTTorsp">
|
||||
<view class="wrapperDEghTTorsp">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title">手机号</view>
|
||||
<input type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChange" />
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">验证码</text>
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
||||
@input="inputChange" @confirm="toLogin" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sendIng">{{sendTime}}</button>
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<button class="send-msgDEghTTorsp" @click="sendMsgDEghTTorsp" :disabled="sendIng">{{sendTime}}</button>
|
||||
</view>
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">设置密码</text>
|
||||
<input type="password" :value="password" placeholder="请设置新密码" placeholder-class="input-empty"
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChange" @confirm="toLogin" />
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view>
|
||||
</view>
|
||||
<button class="confirm-btn" @click="toLogin">立即重置</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">立即重置</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -42,7 +42,7 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
sendMsg() {
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
@@ -98,21 +98,21 @@
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
inputChange(e) {
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
navBackDEghTTorsp() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
||||
|
||||
navTo(url) {
|
||||
navToDEghTTorsp(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
},
|
||||
toLogin() {
|
||||
toLoginDEghTTorsp() {
|
||||
const {
|
||||
mobile,
|
||||
password,
|
||||
@@ -160,7 +160,7 @@
|
||||
});
|
||||
setTimeout(function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
});
|
||||
}, 1000)
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
.send-msgDEghTTorsp {
|
||||
border-radius: 30px;
|
||||
color: white;
|
||||
height: 30px;
|
||||
@@ -194,7 +194,7 @@
|
||||
background: #ff7581;
|
||||
}
|
||||
|
||||
.container {
|
||||
.containerDEghTTorsp {
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
@@ -203,7 +203,7 @@
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #ffffff;
|
||||
@@ -211,13 +211,13 @@
|
||||
}
|
||||
|
||||
|
||||
.input-content {
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
|
||||
@@ -1,35 +1,35 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="containerDEghTTorsp">
|
||||
|
||||
<view class="wrapper">
|
||||
<view class="input-content">
|
||||
<view class="wrapperDEghTTorsp">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title">手机号</view>
|
||||
<input type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChange" />
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group" style="border: 2upx solid whitesmoke;border-radius: 30px">
|
||||
<view class="title">密
|
||||
<text style="margin-left: 30rpx;">码</text>
|
||||
</view>
|
||||
<input type="password" placeholder="请输入密码" maxlength="20" :value="code" data-key="code"
|
||||
@input="inputChange" @confirm="toLogin" />
|
||||
<text class="send-msg" @click="forget">忘记密码</text>
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<text class="send-msg" @click="forgetDEghTTorsp">忘记密码</text>
|
||||
</view>
|
||||
</view>
|
||||
<button class="confirm-btn" @click="toLogin">登录</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">登录</button>
|
||||
|
||||
<view style="margin-top: 32px;text-align: center">
|
||||
<view>
|
||||
没有账号?
|
||||
<text style="color: #ff7581" @click="register()">立即注册</text>
|
||||
<text style="color: #ff7581" @click="registerDEghTTorsp()">立即注册</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer">
|
||||
<view class="footerDEghTTorsp">
|
||||
<u-checkbox-group>
|
||||
<u-checkbox v-model="checked" label-size='24upx' shape="circle" @change="radioChange"></u-checkbox>
|
||||
<u-checkbox v-model="checked" label-size='24upx' shape="circle" @change="radioChangeDEghTTorsp"></u-checkbox>
|
||||
</u-checkbox-group>
|
||||
<view>同意</view>
|
||||
<!-- 协议地址 -->
|
||||
@@ -69,26 +69,26 @@
|
||||
},
|
||||
methods: {
|
||||
// 注册
|
||||
register() {
|
||||
registerDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/register'
|
||||
url: '/pages/ghtwwlkXYG/WVEtZeeghK'
|
||||
});
|
||||
},
|
||||
// 忘记密码
|
||||
forget() {
|
||||
forgetDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/forgetPwd'
|
||||
url: '/pages/ghtwwlkXYG/EAkIghCGJS'
|
||||
});
|
||||
},
|
||||
inputChange(e) {
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
radioChange(e) {
|
||||
radioChangeDEghTTorsp(e) {
|
||||
console.log(e);
|
||||
},
|
||||
//第一授权获取用户信息===》按钮触发
|
||||
wxGetUserInfo(e) {
|
||||
wxGetUserInfoDEghTTorsp(e) {
|
||||
let that = this;
|
||||
if (this.checked) {
|
||||
wx.getUserProfile({
|
||||
@@ -99,7 +99,7 @@
|
||||
let avatarUrl = infoRes.userInfo.avatarUrl; //头像
|
||||
let sex = infoRes.userInfo.gender; //头像
|
||||
try {
|
||||
that.login(nickName, avatarUrl, sex);
|
||||
that.loginDEghTTorsp(nickName, avatarUrl, sex);
|
||||
} catch (e) {}
|
||||
}
|
||||
})
|
||||
@@ -111,7 +111,7 @@
|
||||
}
|
||||
},
|
||||
//登录
|
||||
login(nickName, avatarUrl, sex) {
|
||||
loginDEghTTorsp(nickName, avatarUrl, sex) {
|
||||
let that = this;
|
||||
// 1.wx获取登录用户code
|
||||
uni.login({
|
||||
@@ -143,7 +143,7 @@
|
||||
if (that.flag == '1') {
|
||||
that.weixinPhone = true;
|
||||
} else {
|
||||
that.getWeixinInfo(sendData);
|
||||
that.getWeixinInfoDEghTTorsp(sendData);
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -163,11 +163,11 @@
|
||||
console.log('用户拒绝提供手机号');
|
||||
} else {
|
||||
console.log('用户同意提供手机号');
|
||||
this.setPhoneByInsert(e.detail.encryptedData, e.detail.iv);
|
||||
this.setPhoneByInsertDEghTTorsp(e.detail.encryptedData, e.detail.iv);
|
||||
}
|
||||
},
|
||||
//小程序微信登录后获取手机号
|
||||
setPhoneByInsert(decryptData, iv) {
|
||||
setPhoneByInsertDEghTTorsp(decryptData, iv) {
|
||||
let data = {
|
||||
decryptData: decryptData,
|
||||
key: this.sessionkey,
|
||||
@@ -177,7 +177,7 @@
|
||||
this.$u.api.selectPhone(data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.phone = res.data.phoneNumber;
|
||||
this.getWeixinInfo(this.sendDataList);
|
||||
this.getWeixinInfoDEghTTorsp(this.sendDataList);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
@@ -201,7 +201,7 @@
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
sendMsg() {
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
@@ -244,7 +244,7 @@
|
||||
});
|
||||
}
|
||||
},
|
||||
toLogin() {
|
||||
toLoginDEghTTorsp() {
|
||||
// this.$queue.loginClear();
|
||||
// let openid = this.$queue.getData('openid');
|
||||
if (!this.checked) {
|
||||
@@ -300,7 +300,7 @@
|
||||
uni.setStorageSync('qdCode', res.user.qdCode)
|
||||
}
|
||||
// uni.setStorageSync('openId', res.user.openId)
|
||||
// this.getWeixinInfo(this.sendDataList);
|
||||
// this.getWeixinInfoDEghTTorsp(this.sendDataList);
|
||||
uni.showToast({
|
||||
title: '登录成功',
|
||||
icon: 'none'
|
||||
@@ -326,7 +326,7 @@
|
||||
}
|
||||
},
|
||||
//获取个人信息
|
||||
getWeixinInfo(sendData) {
|
||||
getWeixinInfoDEghTTorsp(sendData) {
|
||||
let that = this;
|
||||
uni.showLoading({
|
||||
title: '登录中...'
|
||||
@@ -377,16 +377,9 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.headers {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.headers>image {
|
||||
width: 400upx;
|
||||
height: 400upx;
|
||||
}
|
||||
|
||||
.footer {
|
||||
.footerDEghTTorsp {
|
||||
padding-left: 150rpx;
|
||||
margin-top: 32upx;
|
||||
font-size: 24upx;
|
||||
@@ -408,7 +401,7 @@
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.container {
|
||||
.containerDEghTTorsp {
|
||||
top: 0;
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
@@ -417,147 +410,23 @@
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
|
||||
.mp_wxBox {
|
||||
.headers {
|
||||
margin: 35% auto 50rpx;
|
||||
text-align: center;
|
||||
border-radius: 60rpx;
|
||||
width: 650rpx;
|
||||
height: 300rpx;
|
||||
line-height: 450rpx;
|
||||
|
||||
image {
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
text {
|
||||
display: block;
|
||||
color: #9d9d9d;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
line-height: 80upx;
|
||||
border-radius: 80upx;
|
||||
margin: 70rpx 50rpx;
|
||||
height: 80upx;
|
||||
font-size: 35rpx;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #ffffff;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
// .back-btn {
|
||||
// position: absolute;
|
||||
// left: 20px;
|
||||
// z-index: 9999;
|
||||
// padding-top: var(--status-bar-height);
|
||||
// top: 20px;
|
||||
// font-size: 20px;
|
||||
// color: $font-color-dark;
|
||||
// }
|
||||
|
||||
// .left-top-sign {
|
||||
// font-size: 80px;
|
||||
// color: $page-color-base;
|
||||
// position: relative;
|
||||
// }
|
||||
|
||||
// .right-top-sign {
|
||||
// position: absolute;
|
||||
// top: 40px;
|
||||
// right: -15px;
|
||||
// z-index: 95;
|
||||
|
||||
// &:before,
|
||||
// &:after {
|
||||
// display: block;
|
||||
// content: '';
|
||||
// width: 20px;
|
||||
// height: 40px;
|
||||
// background: #e10a07;
|
||||
// }
|
||||
|
||||
// &:before {
|
||||
// transform: rotate(50deg);
|
||||
// border-radius: 0 50px 0 0;
|
||||
// }
|
||||
|
||||
// &:after {
|
||||
// position: absolute;
|
||||
// right: -198px;
|
||||
// top: 0;
|
||||
// transform: rotate(-50deg);
|
||||
// border-radius: 50px 0 0 0;
|
||||
// /* background: pink; */
|
||||
// }
|
||||
// }
|
||||
|
||||
// .left-bottom-sign {
|
||||
// position: absolute;
|
||||
// left: -270px;
|
||||
// bottom: -320px;
|
||||
// /*border: 100upx solid #d0d1fd;*/
|
||||
// border-radius: 50%;
|
||||
// padding: 90px;
|
||||
// }
|
||||
|
||||
// .welcome {
|
||||
// position: relative;
|
||||
// left: 30px;
|
||||
// top: -55px;
|
||||
// font-size: 28px;
|
||||
// color: #555;
|
||||
// text-shadow: 1px 0px 1px rgba(0, 0, 0, 0.3);
|
||||
// }
|
||||
|
||||
.input-content {
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
// .input-item {
|
||||
// display: flex;
|
||||
// flex-direction: column;
|
||||
// align-items: flex-start;
|
||||
// justify-content: center;
|
||||
// padding: 0 30px;
|
||||
// background: $page-color-light;
|
||||
// height: 64px;
|
||||
// border-radius: 4px;
|
||||
// margin-bottom: 30px;
|
||||
|
||||
// &:last-child {
|
||||
// margin-bottom: 0;
|
||||
// }
|
||||
|
||||
// .tit {
|
||||
// height: 30px;
|
||||
// line-height: 28px;
|
||||
// font-size: $font-sm + 2upx;
|
||||
// color: $font-color-base;
|
||||
// }
|
||||
|
||||
// input {
|
||||
// height: 40px;
|
||||
// font-size: $font-base + 2upx;
|
||||
// color: $font-color-dark;
|
||||
// width: 100%;
|
||||
// }
|
||||
// }
|
||||
|
||||
.confirm-btn {
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
@@ -573,40 +442,5 @@
|
||||
}
|
||||
}
|
||||
|
||||
// .confirm-btn1 {
|
||||
// width: 300px;
|
||||
// height: 42px;
|
||||
// line-height: 42px;
|
||||
// border-radius: 30px;
|
||||
// margin-top: 40px;
|
||||
// background: whitesmoke;
|
||||
// color: grey;
|
||||
// font-size: $font-lg;
|
||||
|
||||
// &:after {
|
||||
// border-radius: 60px;
|
||||
// }
|
||||
// }
|
||||
|
||||
// .forget-section {
|
||||
// font-size: $font-sm + 2upx;
|
||||
// color: $font-color-spec;
|
||||
// text-align: center;
|
||||
// margin-top: 40px;
|
||||
// }
|
||||
|
||||
// .register-section {
|
||||
// left: 0;
|
||||
// margin-top: 30px;
|
||||
// bottom: 30px;
|
||||
// width: 100%;
|
||||
// font-size: $font-sm + 2upx;
|
||||
// color: $font-color-base;
|
||||
// text-align: center;
|
||||
|
||||
// text {
|
||||
// color: $font-color-spec;
|
||||
// margin-left: 10px;
|
||||
// }
|
||||
// }
|
||||
|
||||
</style>
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="containerDEghTTorsp">
|
||||
<!-- 小程序状态下登录 -->
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<view class="mp_wxBox">
|
||||
<view class="mp_wxBoxDEghTTorsp">
|
||||
<view>
|
||||
<view class="headers">
|
||||
<view class="headersDEghTTorsp">
|
||||
<image src="../../static/images/logo.png" style="border-radius: 50%;"></image>
|
||||
</view>
|
||||
<view class="content">
|
||||
@@ -16,7 +16,7 @@
|
||||
授权手机号
|
||||
</button>
|
||||
<button v-show="!weixinPhone" style="background: #ff7581;color: #FFFFFF;" class='bottom'
|
||||
bindtap="getUserProfile" @tap="wxGetUserInfo">
|
||||
bindtap="getUserProfile" @tap="wxGetUserInfoDEghTTorsp">
|
||||
授权登录
|
||||
</button>
|
||||
</view>
|
||||
@@ -25,38 +25,38 @@
|
||||
<!-- #endif -->
|
||||
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<view class="wrapper">
|
||||
<view class="input-content">
|
||||
<view class="wrapperDEghTTorsp">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title">手机号</view>
|
||||
<input type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChange" />
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group" style="border: 2upx solid whitesmoke;border-radius: 30px">
|
||||
<view class="title">密
|
||||
<text style="margin-left: 30rpx;">码</text>
|
||||
</view>
|
||||
<input type="password" placeholder="请输入密码" maxlength="20" :value="code" data-key="code"
|
||||
@input="inputChange" @confirm="toLogin" />
|
||||
<text class="send-msg" @click="forget">忘记密码</text>
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<text class="send-msgDEghTTorsp" @click="forgetDEghTTorsp">忘记密码</text>
|
||||
</view>
|
||||
</view>
|
||||
<button class="confirm-btn" @click="toLogin">登录</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">登录</button>
|
||||
|
||||
<view style="margin-top: 32px;text-align: center">
|
||||
<view>
|
||||
没有账号?
|
||||
<text style="color: #ff7581" @click="register()">立即注册</text>
|
||||
<text style="color: #ff7581" @click="registerDEghTTorsp()">立即注册</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
<!-- #ifdef MP -->
|
||||
<view class="footer">
|
||||
<view class="footerDEghTTorsp">
|
||||
<u-checkbox-group>
|
||||
<u-checkbox v-model="checked" label-size='24upx' shape="circle" @change="radioChange"></u-checkbox>
|
||||
<u-checkbox v-model="checked" label-size='24upx' shape="circle" @change="radioChangeDEghTTorsp"></u-checkbox>
|
||||
</u-checkbox-group>
|
||||
<view>同意</view>
|
||||
<!-- 协议地址 -->
|
||||
@@ -88,26 +88,26 @@
|
||||
|
||||
methods: {
|
||||
// 注册
|
||||
register() {
|
||||
registerDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/register'
|
||||
url: '/pages/ghtwwlkXYG/WVEtZeeghK'
|
||||
});
|
||||
},
|
||||
// 忘记密码
|
||||
forget() {
|
||||
forgetDEghTTorsp() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/forgetPwd'
|
||||
url: '/pages/ghtwwlkXYG/EAkIghCGJS'
|
||||
});
|
||||
},
|
||||
inputChange(e) {
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
radioChange(e) {
|
||||
radioChangeDEghTTorsp(e) {
|
||||
console.log(e);
|
||||
},
|
||||
//第一授权获取用户信息===》按钮触发
|
||||
wxGetUserInfo(e) {
|
||||
wxGetUserInfoDEghTTorsp(e) {
|
||||
let that = this;
|
||||
if (this.checked) {
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
let avatarUrl = infoRes.userInfo.avatarUrl; //头像
|
||||
let sex = infoRes.userInfo.gender; //头像
|
||||
try {
|
||||
that.login(nickName, avatarUrl, sex);
|
||||
that.loginDEghTTorsp(nickName, avatarUrl, sex);
|
||||
} catch (e) {}
|
||||
}
|
||||
})
|
||||
@@ -132,7 +132,7 @@
|
||||
}
|
||||
},
|
||||
//登录
|
||||
login(nickName, avatarUrl, sex) {
|
||||
loginDEghTTorsp(nickName, avatarUrl, sex) {
|
||||
let that = this;
|
||||
// 1.wx获取登录用户code
|
||||
uni.login({
|
||||
@@ -164,7 +164,7 @@
|
||||
if (that.flag == '1') {
|
||||
that.weixinPhone = true;
|
||||
} else {
|
||||
that.getWeixinInfo(sendData);
|
||||
that.getWeixinInfoDEghTTorsp(sendData);
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -184,11 +184,11 @@
|
||||
console.log('用户拒绝提供手机号');
|
||||
} else {
|
||||
console.log('用户同意提供手机号');
|
||||
this.setPhoneByInsert(e.detail.encryptedData, e.detail.iv);
|
||||
this.setPhoneByInsertDEghTTorsp(e.detail.encryptedData, e.detail.iv);
|
||||
}
|
||||
},
|
||||
//小程序微信登录后获取手机号
|
||||
setPhoneByInsert(decryptData, iv) {
|
||||
setPhoneByInsertDEghTTorsp(decryptData, iv) {
|
||||
let data = {
|
||||
decryptData: decryptData,
|
||||
key: this.sessionkey,
|
||||
@@ -198,7 +198,7 @@
|
||||
this.$u.api.selectPhone(data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.phone = res.data.phoneNumber;
|
||||
this.getWeixinInfo(this.sendDataList);
|
||||
this.getWeixinInfoDEghTTorsp(this.sendDataList);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
@@ -265,7 +265,7 @@
|
||||
});
|
||||
}
|
||||
},
|
||||
toLogin() {
|
||||
toLoginDEghTTorsp() {
|
||||
// this.$queue.loginClear();
|
||||
// let openid = this.$queue.getData('openid');
|
||||
let openid = uni.getStorageSync('openId')
|
||||
@@ -314,7 +314,7 @@
|
||||
uni.setStorageSync('qdCode', res.user.qdCode)
|
||||
}
|
||||
// uni.setStorageSync('openId', res.user.openId)
|
||||
// this.getWeixinInfo(this.sendDataList);
|
||||
// this.getWeixinInfoDEghTTorsp(this.sendDataList);
|
||||
uni.showToast({
|
||||
title: '登录成功',
|
||||
icon: 'none'
|
||||
@@ -334,7 +334,7 @@
|
||||
}
|
||||
},
|
||||
//获取个人信息
|
||||
getWeixinInfo(sendData) {
|
||||
getWeixinInfoDEghTTorsp(sendData) {
|
||||
let that = this;
|
||||
uni.showLoading({
|
||||
title: '登录中...'
|
||||
@@ -385,16 +385,16 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.headers {
|
||||
.headersDEghTTorsp {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.headers>image {
|
||||
.headersDEghTTorsp>image {
|
||||
width: 400upx;
|
||||
height: 400upx;
|
||||
}
|
||||
|
||||
.footer {
|
||||
.footerDEghTTorsp {
|
||||
padding-left: 150rpx;
|
||||
margin-top: 32upx;
|
||||
font-size: 24upx;
|
||||
@@ -407,7 +407,7 @@
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
.send-msgDEghTTorsp {
|
||||
border-radius: 30px;
|
||||
color: black;
|
||||
background: white;
|
||||
@@ -416,7 +416,7 @@
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.container {
|
||||
.containerDEghTTorsp {
|
||||
top: 0;
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
@@ -425,8 +425,8 @@
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
|
||||
.mp_wxBox {
|
||||
.headers {
|
||||
.mp_wxBoxDEghTTorsp {
|
||||
.headersDEghTTorsp {
|
||||
margin: 35% auto 50rpx;
|
||||
text-align: center;
|
||||
border-radius: 60rpx;
|
||||
@@ -460,112 +460,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #ffffff;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
// .back-btn {
|
||||
// position: absolute;
|
||||
// left: 20px;
|
||||
// z-index: 9999;
|
||||
// padding-top: var(--status-bar-height);
|
||||
// top: 20px;
|
||||
// font-size: 20px;
|
||||
// color: $font-color-dark;
|
||||
// }
|
||||
|
||||
// .left-top-sign {
|
||||
// font-size: 80px;
|
||||
// color: $page-color-base;
|
||||
// position: relative;
|
||||
// }
|
||||
|
||||
// .right-top-sign {
|
||||
// position: absolute;
|
||||
// top: 40px;
|
||||
// right: -15px;
|
||||
// z-index: 95;
|
||||
|
||||
// &:before,
|
||||
// &:after {
|
||||
// display: block;
|
||||
// content: '';
|
||||
// width: 20px;
|
||||
// height: 40px;
|
||||
// background: #e10a07;
|
||||
// }
|
||||
|
||||
// &:before {
|
||||
// transform: rotate(50deg);
|
||||
// border-radius: 0 50px 0 0;
|
||||
// }
|
||||
|
||||
// &:after {
|
||||
// position: absolute;
|
||||
// right: -198px;
|
||||
// top: 0;
|
||||
// transform: rotate(-50deg);
|
||||
// border-radius: 50px 0 0 0;
|
||||
// /* background: pink; */
|
||||
// }
|
||||
// }
|
||||
|
||||
// .left-bottom-sign {
|
||||
// position: absolute;
|
||||
// left: -270px;
|
||||
// bottom: -320px;
|
||||
// /*border: 100upx solid #d0d1fd;*/
|
||||
// border-radius: 50%;
|
||||
// padding: 90px;
|
||||
// }
|
||||
|
||||
// .welcome {
|
||||
// position: relative;
|
||||
// left: 30px;
|
||||
// top: -55px;
|
||||
// font-size: 28px;
|
||||
// color: #555;
|
||||
// text-shadow: 1px 0px 1px rgba(0, 0, 0, 0.3);
|
||||
// }
|
||||
|
||||
.input-content {
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
// .input-item {
|
||||
// display: flex;
|
||||
// flex-direction: column;
|
||||
// align-items: flex-start;
|
||||
// justify-content: center;
|
||||
// padding: 0 30px;
|
||||
// background: $page-color-light;
|
||||
// height: 64px;
|
||||
// border-radius: 4px;
|
||||
// margin-bottom: 30px;
|
||||
|
||||
// &:last-child {
|
||||
// margin-bottom: 0;
|
||||
// }
|
||||
|
||||
// .tit {
|
||||
// height: 30px;
|
||||
// line-height: 28px;
|
||||
// font-size: $font-sm + 2upx;
|
||||
// color: $font-color-base;
|
||||
// }
|
||||
|
||||
// input {
|
||||
// height: 40px;
|
||||
// font-size: $font-base + 2upx;
|
||||
// color: $font-color-dark;
|
||||
// width: 100%;
|
||||
// }
|
||||
// }
|
||||
|
||||
.confirm-btn {
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 300px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
@@ -581,40 +488,4 @@
|
||||
}
|
||||
}
|
||||
|
||||
// .confirm-btn1 {
|
||||
// width: 300px;
|
||||
// height: 42px;
|
||||
// line-height: 42px;
|
||||
// border-radius: 30px;
|
||||
// margin-top: 40px;
|
||||
// background: whitesmoke;
|
||||
// color: grey;
|
||||
// font-size: $font-lg;
|
||||
|
||||
// &:after {
|
||||
// border-radius: 60px;
|
||||
// }
|
||||
// }
|
||||
|
||||
// .forget-section {
|
||||
// font-size: $font-sm + 2upx;
|
||||
// color: $font-color-spec;
|
||||
// text-align: center;
|
||||
// margin-top: 40px;
|
||||
// }
|
||||
|
||||
// .register-section {
|
||||
// left: 0;
|
||||
// margin-top: 30px;
|
||||
// bottom: 30px;
|
||||
// width: 100%;
|
||||
// font-size: $font-sm + 2upx;
|
||||
// color: $font-color-base;
|
||||
// text-align: center;
|
||||
|
||||
// text {
|
||||
// color: $font-color-spec;
|
||||
// margin-left: 10px;
|
||||
// }
|
||||
// }
|
||||
</style>
|
||||
@@ -1,44 +1,44 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="containerDEghTTorsp">
|
||||
<view class="bg u-absolute" style="width: 100%;height: 100%;overflow: hidden;top: 0;">
|
||||
<u-image src="../../static/images/i_bg.png" style="width: 100%;height:100%" mode=""></u-image>
|
||||
</view>
|
||||
<view class="wrapper u-relative" style="padding-top: 48rpx;box-sizing: border-box;">
|
||||
<view class="input-content">
|
||||
<view class="wrapperDEghTTorsp u-relative" style="padding-top: 48rpx;box-sizing: border-box;">
|
||||
<view class="input-contentDEghTTorsp">
|
||||
<view style="font-size: 58rpx;font-weight: bold;color: #333;margin-bottom: 48rpx;">注册</view>
|
||||
<view class="cu-form-group" >
|
||||
<view class="cu-form-groupDEghTTorsp" >
|
||||
<view class="title">手机号</view>
|
||||
<input class="input" type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChange" />
|
||||
@input="inputChangeDEghTTorsp" />
|
||||
</view>
|
||||
<view class="cu-form-group" >
|
||||
<view class="cu-form-groupDEghTTorsp" >
|
||||
<text class="title">验证码</text>
|
||||
<view class="input flex">
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
||||
@input="inputChange" @confirm="toLogin" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
||||
@input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<button class="send-msgDEghTTorsp" @click="sendMsgDEghTTorsp" :disabled="sending">{{ sendTime }}</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group" >
|
||||
<view class="cu-form-groupDEghTTorsp" >
|
||||
<text class="title">设置密码</text>
|
||||
<input class="input" type="password" :value="password" placeholder="请设置新密码" placeholder-class="input-empty"
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChange" @confirm="toLogin" />
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view>
|
||||
<!-- <view class="cu-form-group"
|
||||
<!-- <view class="cu-form-groupDEghTTorsp"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">邀请码</text>
|
||||
<input type="text" v-if="registerCode == '是'" :value="invitation" placeholder="请填写邀请码"
|
||||
data-key="invitation" maxlength="20" @input="inputChange" @confirm="toLogin" />
|
||||
data-key="invitation" maxlength="20" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
<input type="text" v-if="registerCode == '否'" :value="invitation" placeholder="请填写邀请码(选填)"
|
||||
data-key="invitation" maxlength="20" @input="inputChange" @confirm="toLogin" />
|
||||
data-key="invitation" maxlength="20" @input="inputChangeDEghTTorsp" @confirm="toLoginDEghTTorsp" />
|
||||
</view> -->
|
||||
<button class="confirm-btn" @click="toRegister">注册</button>
|
||||
<button class="confirm-btn" @click="toLogin">登录</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toRegisterDEghTTorsp">注册</button>
|
||||
<button class="confirm-btnDEghTTorsp" @click="toLoginDEghTTorsp">登录</button>
|
||||
</view>
|
||||
<view class="footerView">
|
||||
<text @tap="isShowAgree" class="cuIcon"
|
||||
<view class="footerViewDEghTTorsp">
|
||||
<text @tap="isShowAgreeDEghTTorsp" class="cuIcon"
|
||||
:class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">同意</text>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/me/setting/mimi" open-type="navigate" style="color: #37A6FF;">《隐私政策》</navigator>
|
||||
@@ -90,19 +90,11 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
isShowAgree() {
|
||||
isShowAgreeDEghTTorsp() {
|
||||
//是否选择协议
|
||||
this.showAgree = !this.showAgree;
|
||||
},
|
||||
showMa() {
|
||||
//查询官方邀请码
|
||||
this.$Request.getT('/common/type/88').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.invitation = res.data.value;
|
||||
}
|
||||
});
|
||||
},
|
||||
sendMsg() {
|
||||
sendMsgDEghTTorsp() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
@@ -158,26 +150,19 @@
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
inputChange(e) {
|
||||
inputChangeDEghTTorsp(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
||||
navTo(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
});
|
||||
},
|
||||
toLogin() {
|
||||
|
||||
|
||||
toLoginDEghTTorsp() {
|
||||
console.log("123");
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/login'
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
});
|
||||
},
|
||||
toRegister() {
|
||||
toRegisterDEghTTorsp() {
|
||||
const {
|
||||
mobile,
|
||||
password,
|
||||
@@ -264,7 +249,7 @@
|
||||
})
|
||||
setTimeout(function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/appEq'
|
||||
url: '/pages/ghtwwlkXYG/YEZelghNit'
|
||||
})
|
||||
}, 1000)
|
||||
} else {
|
||||
@@ -276,82 +261,6 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
getUserInfo(userId, token) {
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code === 0) {
|
||||
// #ifdef APP-PLUS
|
||||
if (uni.getSystemInfoSync().platform == "android") {
|
||||
let clientid = plus.push.getClientInfo().clientid;
|
||||
this.$Request.postT('/appLogin/updateClientId?clientId=' + clientid + '&userId=' +
|
||||
userId).then(res => {
|
||||
|
||||
});
|
||||
}
|
||||
// #endif
|
||||
uni.setStorageSync('image_url', res.data.imageUrl ? res.data.imageUrl :
|
||||
'/static/img/common/logo.jpg')
|
||||
uni.setStorageSync('relation_id', res.data.relationId)
|
||||
uni.setStorageSync('relation', res.data.invitationCode)
|
||||
uni.setStorageSync('grade', res.data.grade)
|
||||
uni.setStorageSync('phone', res.data.phone)
|
||||
uni.setStorageSync('token', res.token)
|
||||
uni.setStorageSync('userId', res.data.userId)
|
||||
uni.setStorageSync('isInvitation', res.data.isInvitation)
|
||||
uni.setStorageSync('userName', res.data.userName ? res.data.userName : res.data.phone)
|
||||
|
||||
// this.$queue.setData('image_url', res.data.imageUrl ? res.data.imageUrl : '/static/img/common/logo.jpg');
|
||||
// this.$queue.setData('relation_id', res.data.relationId);
|
||||
// this.$queue.setData('relation', res.data.invitationCode);
|
||||
// this.$queue.setData('grade', res.data.grade);
|
||||
// this.$queue.setData('mobile', res.data.mobile);
|
||||
// this.$queue.setData('isInvitation', res.data.isInvitation);
|
||||
// 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'
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg
|
||||
});
|
||||
this.$queue.logout();
|
||||
}
|
||||
uni.hideLoading();
|
||||
})
|
||||
// this.$Request.postJson('/app/selectUserById?userId=' + userId).then(res => {
|
||||
// if (res.code === 0) {
|
||||
// // #ifdef APP-PLUS
|
||||
// if (uni.getSystemInfoSync().platform == "android") {
|
||||
// let clientid = plus.push.getClientInfo().clientid;
|
||||
// this.$Request.postT('/appLogin/updateClientId?clientId=' + clientid + '&userId=' + userId).then(res => {
|
||||
|
||||
// });
|
||||
// }
|
||||
// // #endif
|
||||
// this.$queue.setData('image_url', res.data.imageUrl ? res.data.imageUrl : '/static/img/common/logo.jpg');
|
||||
// this.$queue.setData('relation_id', res.data.relationId);
|
||||
// this.$queue.setData('relation', res.data.invitationCode);
|
||||
// this.$queue.setData('grade', res.data.grade);
|
||||
// this.$queue.setData('mobile', res.data.mobile);
|
||||
// this.$queue.setData('isInvitation', res.data.isInvitation);
|
||||
// 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'
|
||||
// });
|
||||
// } else {
|
||||
// uni.showModal({
|
||||
// showCancel: false,
|
||||
// title: '登录失败',
|
||||
// content: res.msg
|
||||
// });
|
||||
// this.$queue.logout();
|
||||
// }
|
||||
// uni.hideLoading();
|
||||
// });
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -362,7 +271,7 @@
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.footerView {
|
||||
.footerViewDEghTTorsp {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@@ -387,7 +296,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
.send-msgDEghTTorsp {
|
||||
line-height: initial;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
@@ -395,12 +304,12 @@
|
||||
border: none;
|
||||
background-color: transparent!important;
|
||||
}
|
||||
.send-msg::after{
|
||||
.send-msgDEghTTorsp::after{
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.container {
|
||||
.containerDEghTTorsp {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -408,15 +317,15 @@
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
.wrapperDEghTTorsp {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.input-content {
|
||||
.input-contentDEghTTorsp {
|
||||
padding: 0 56rpx;
|
||||
.cu-form-group{
|
||||
.cu-form-groupDEghTTorsp{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
@@ -441,7 +350,7 @@
|
||||
}
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
.confirm-btnDEghTTorsp {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
text-align: center;
|
||||
|
||||
@@ -3,248 +3,248 @@
|
||||
<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-box">
|
||||
<view @click="token?goNav('/pages/me/userinfo'):goNav('/pages/login/login')"
|
||||
class="info-box-c flex align-center justify-between">
|
||||
<view class="info-box-c-l flex align-center">
|
||||
<view class="info-box-c-l-avatar">
|
||||
<view class="infoDEghTTorsp flex align-center justify-center">
|
||||
<view class="infoDEghTTorsp-box">
|
||||
<view @click="token?goNavDEghTTorsp('/pages/iSiAnfghCC/GqrTYehghi'):goNavDEghTTorsp('/pages/ghtwwlkXYG/wVghNzmqkQ')"
|
||||
class="infoDEghTTorsp-box-c flex align-center justify-between">
|
||||
<view class="infoDEghTTorsp-box-c-l flex align-center">
|
||||
<view class="infoDEghTTorsp-box-c-l-avatar">
|
||||
<image :src="avatar?avatar:'../../static/images/me/default_avatar.png'" mode=""></image>
|
||||
</view>
|
||||
<view class="info-box-c-l-name">
|
||||
<view class="info-box-c-l-name-t">
|
||||
<view class="infoDEghTTorsp-box-c-l-name">
|
||||
<view class="infoDEghTTorsp-box-c-l-name-t">
|
||||
{{userName?userName:'未登录'}}
|
||||
</view>
|
||||
<view class="info-box-c-l-name-b" v-if="invitationCode">
|
||||
<view class="infoDEghTTorsp-box-c-l-name-b" v-if="invitationCode">
|
||||
ID:{{invitationCode}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-box-c-r">
|
||||
<view class="infoDEghTTorsp-box-c-r">
|
||||
<u-icon name="arrow-right" color="#F6F6F6" size="28"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 统计 -->
|
||||
<view class="statistics flex align-center justify-center">
|
||||
<view class="statistics-box flex align-center justify-between">
|
||||
<view class="statistics-box-item" @click="goNav('/me/jilu/myLove')">
|
||||
<view class="statistics-box-item-top">
|
||||
<view class="statisticsDEghTTorsp flex align-center justify-center">
|
||||
<view class="statisticsDEghTTorsp-box flex align-center justify-between">
|
||||
<view class="statisticsDEghTTorsp-box-item" @click="goNavDEghTTorsp('/me/jilu/myLove')">
|
||||
<view class="statisticsDEghTTorsp-box-item-top">
|
||||
{{myLoveNum}}
|
||||
</view>
|
||||
<view class="statistics-box-item-btn">
|
||||
<view class="statisticsDEghTTorsp-box-item-btn">
|
||||
我的喜欢
|
||||
</view>
|
||||
</view>
|
||||
<view class="statistics-box-item" @click="goNav('/me/jilu/histor')">
|
||||
<view class="statistics-box-item-top">
|
||||
<view class="statisticsDEghTTorsp-box-item" @click="goNavDEghTTorsp('/me/jilu/histor')">
|
||||
<view class="statisticsDEghTTorsp-box-item-top">
|
||||
{{myZhui}}
|
||||
</view>
|
||||
<view class="statistics-box-item-btn">
|
||||
<view class="statisticsDEghTTorsp-box-item-btn">
|
||||
我的追剧
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="statistics-box-item" @click="goNav('/me/jifen/jifen')">
|
||||
<view class="statistics-box-item-top">
|
||||
<!-- <view class="statisticsDEghTTorsp-box-item" @click="goNavDEghTTorsp('/me/jifen/jifen')">
|
||||
<view class="statisticsDEghTTorsp-box-item-top">
|
||||
{{jifen}}
|
||||
</view>
|
||||
<view class="statistics-box-item-btn">
|
||||
<view class="statisticsDEghTTorsp-box-item-btn">
|
||||
我的积分
|
||||
</view>
|
||||
</view> -->
|
||||
<view v-if="isShowMoneyPay" class="statistics-box-item" @click="goNav('/me/invite/cashDetail')">
|
||||
<view class="statistics-box-item-top">
|
||||
<view v-if="isShowMoneyPay" class="statisticsDEghTTorsp-box-item" @click="goNavDEghTTorsp('/me/invite/cashDetail')">
|
||||
<view class="statisticsDEghTTorsp-box-item-top">
|
||||
{{userInfo.amount || '0.00'}}
|
||||
</view>
|
||||
<view class="statistics-box-item-btn">
|
||||
<view class="statisticsDEghTTorsp-box-item-btn">
|
||||
我的红包
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view v-if="isVips == '是' && isWxIosPay == true" class="vip flex align-center justify-center">
|
||||
<view class="vip-box flex align-center justify-between">
|
||||
<view class="vip-box-l">
|
||||
<view class="vip-box-l-l flex align-center">
|
||||
<!-- <view v-if="isVips == '是' && isWxIosPay == true" class="vipDEghTTorsp flex align-center justify-center">
|
||||
<view class="vipDEghTTorsp-box flex align-center justify-between">
|
||||
<view class="vipDEghTTorsp-box-l">
|
||||
<view class="vipDEghTTorsp-box-l-l flex align-center">
|
||||
{{isVIP?'会员用户':'开通会员'}}
|
||||
<image src="../../static/images/me/Vips.png" mode=""></image>
|
||||
</view>
|
||||
|
||||
<view class="vip-box-l-r" v-if="isVIP">
|
||||
<view class="vipDEghTTorsp-box-l-r" v-if="isVIP">
|
||||
{{endTime?endTime+'到期':'您是尊贵的永久会员'}}
|
||||
</view>
|
||||
<view class="vip-box-l-r" v-else>
|
||||
<view class="vipDEghTTorsp-box-l-r" v-else>
|
||||
{{endTime?endTime+'到期':'升级VIP,省更多钱'}}
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="!isVIP" @click="goNav('/pages/me/vip/index')"
|
||||
class="vip-box-r flex align-center justify-center">
|
||||
<view v-if="!isVIP" @click="goNavDEghTTorsp('/pages/iSiAnfghCC/vipDEghTTorsp/index')"
|
||||
class="vipDEghTTorsp-box-r flex align-center justify-center">
|
||||
立即开通
|
||||
</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="moneyDEghTTorsp flex align-center justify-center" v-if="isWxIosPay == true">
|
||||
<view class="moneyDEghTTorsp-box flex align-center justify-between">
|
||||
<view class="">
|
||||
<view class="money-box-title flex align-center">
|
||||
<view class="money-box-title-l">
|
||||
<view class="moneyDEghTTorsp-box-title flex align-center">
|
||||
<view class="moneyDEghTTorsp-box-title-l">
|
||||
金币余额
|
||||
</view>
|
||||
<!-- <view @click="isShoMoney = !isShoMoney" class="money-box-title-r" style="margin-left: 12rpx;">
|
||||
<!-- <view @click="isShoMoney = !isShoMoney" class="moneyDEghTTorsp-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">
|
||||
<view class="moneyDEghTTorsp-box-price">
|
||||
<block v-if="isShoMoney">
|
||||
{{formatNumber(moneyNum)}}
|
||||
{{formatNumberDEghTTorsp(moneyNum)}}
|
||||
</block>
|
||||
<block v-else>
|
||||
****
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="money-box-btn" @click="goNav('/me/invite/moneyList?moneyType=2&viewType=2')">
|
||||
<view class="moneyDEghTTorsp-box-btn" @click="goNavDEghTTorsp('/me/invite/moneyList?moneyType=2&viewType=2')">
|
||||
金币明细
|
||||
</view>
|
||||
<!-- <view class="money-box-btn" @click="goNav('/me/wallet/wallet')">
|
||||
<!-- <view class="moneyDEghTTorsp-box-btn" @click="goNavDEghTTorsp('/me/wallet/wallet')">
|
||||
立即充值
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<!-- 常用工具 -->
|
||||
<view class="tool flex align-center justify-center">
|
||||
<view class="tool-box">
|
||||
<view class="tool-box-content flex align-center justify-between flex-wrap">
|
||||
<view class="toolDEghTTorsp flex align-center justify-center">
|
||||
<view class="toolDEghTTorsp-box">
|
||||
<view class="toolDEghTTorsp-box-content flex align-center justify-between flex-wrap">
|
||||
<!-- #ifdef MP-TOUTIAO -->
|
||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/me/wallet/mingxi')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/wallet/mingxi')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/mingxi.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
钱包明细
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- <view v-if="kmPaySel != '否'" @click="openKaMiShow()"
|
||||
class="tool-box-content-item flex align-center justify-center flex-wrap">
|
||||
<view class="tool-box-content-item-img">
|
||||
<image src="../../static/images/me/kami.png" mode=""></image>
|
||||
<!-- <view v-if="kmPaySel != '否'" @click="openKaMiShowDEghTTorsp()"
|
||||
class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/kamiDEghTTorsp.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
卡密兑换
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/me/VjgyqAzklr/VjgyqAzklr')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<!-- <view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/choujiang/choujiang')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/zhuanpan.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
转盘抽奖
|
||||
</view>
|
||||
</view> -->
|
||||
<view v-if="isShowMoneyPay" class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/me/invite/index')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<view v-if="isShowMoneyPay" class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/invite/index')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/vfx.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
分享好友
|
||||
</view>
|
||||
</view>
|
||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/me/message/index')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/message/index')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/messige.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
消息中心
|
||||
</view>
|
||||
<u-badge :offset="[0,20]" type="error" :count="numCount"></u-badge>
|
||||
</view>
|
||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/pages/task/index','tabbar')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/pages/task/index','tabbar')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/task.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
任务中心
|
||||
</view>
|
||||
<u-badge :offset="[0,20]" type="error" :count="numCount"></u-badge>
|
||||
</view>
|
||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/me/jilu/record')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/jilu/record')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/vlishi.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
观看历史
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="rate>0 && isShowMoneyPay" class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/me/invite/inviteDet')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<view v-if="rate>0 && isShowMoneyPay" class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/invite/inviteDet')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/vtd.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
我的团队
|
||||
</view>
|
||||
</view>
|
||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap" @click="goMsg()">
|
||||
<view class="tool-box-content-item-img">
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap" @click="goMsgDEghTTorsp()">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/vkf.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
联系客服
|
||||
</view>
|
||||
</view>
|
||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/me/feedbackIndex/feedbackIndex')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/feedbackIndex/feedbackIndex')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/bangzhu.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
帮助中心
|
||||
</view>
|
||||
</view>
|
||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/me/feedback/index')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/feedback/index')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/yijian.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
意见反馈
|
||||
</view>
|
||||
</view>
|
||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/me/setting/index')">
|
||||
<view class="tool-box-content-item-img">
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNavDEghTTorsp('/me/setting/index')">
|
||||
<view class="toolDEghTTorsp-box-content-item-img">
|
||||
<image src="../../static/images/me/setting.png" mode=""></image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
<view class="toolDEghTTorsp-box-content-item-txt">
|
||||
设置中心
|
||||
</view>
|
||||
</view>
|
||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap" style="height: 0;">
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap" style="height: 0;">
|
||||
</view>
|
||||
<view class="tool-box-content-item flex align-center justify-center flex-wrap" style="height: 0;">
|
||||
<view class="toolDEghTTorsp-box-content-item flex align-center justify-center flex-wrap" style="height: 0;">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 卡密兑换弹窗 -->
|
||||
<u-popup @close="kami = ''" v-model="showCard" mode="center" border-radius="14" :closeable="true">
|
||||
<view class="kami">
|
||||
<view class="kami-title">
|
||||
<u-popup @close="kamiDEghTTorsp = ''" v-model="showCard" mode="center" border-radius="14" :closeable="true">
|
||||
<view class="kamiDEghTTorsp">
|
||||
<view class="kamiDEghTTorsp-title">
|
||||
卡密兑换
|
||||
</view>
|
||||
<view class="kami-input">
|
||||
<u-input v-model="kami" placeholder="请输入卡密" type="text" :border="true" />
|
||||
<view class="kamiDEghTTorsp-input">
|
||||
<u-input v-model="kamiDEghTTorsp" placeholder="请输入卡密" type="text" :border="true" />
|
||||
</view>
|
||||
<view @click="exchangeKaMi()" class="kami-btn flex align-center justify-center">
|
||||
<view @click="exchangeKaMiDEghTTorsp()" class="kamiDEghTTorsp-btn flex align-center justify-center">
|
||||
确认兑换
|
||||
</view>
|
||||
</view>
|
||||
@@ -274,7 +274,7 @@
|
||||
background: {
|
||||
backgroundImage: 'linear-gradient(to right, #FFE5EA 0%, #E4F5FB 49%, #FFF0EE 100%)'
|
||||
},
|
||||
kami: '', //卡密
|
||||
kamiDEghTTorsp: '', //卡密
|
||||
isShoMoney: true, //是否显示余额
|
||||
avatar: '../../static/images/logo.png',
|
||||
img: '../../static/images/me/huiyuan.png',
|
||||
@@ -303,7 +303,7 @@
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getBannerList()
|
||||
this.getBannerListDEghTTorsp()
|
||||
},
|
||||
onShow() {
|
||||
|
||||
@@ -318,8 +318,8 @@
|
||||
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
|
||||
this.token = uni.getStorageSync('token')
|
||||
if (this.token) {
|
||||
this.getMyMoney()
|
||||
this.getPoints()
|
||||
this.getMyMoneyDEghTTorsp()
|
||||
this.getPointsDEghTTorsp()
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code === 0 && res.data) {
|
||||
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
||||
@@ -352,8 +352,8 @@
|
||||
this.isLogin = true
|
||||
this.userName = uni.getStorageSync('userName')
|
||||
this.isVIP = uni.getStorageSync('isVIP')
|
||||
this.getMyLoveNum()
|
||||
this.getMyFansNum()
|
||||
this.getMyLoveNumDEghTTorsp()
|
||||
this.getMyFansNumDEghTTorsp()
|
||||
} else {
|
||||
this.isLogin = false
|
||||
this.isVIP = false
|
||||
@@ -379,8 +379,8 @@
|
||||
},
|
||||
methods: {
|
||||
//兑换卡密
|
||||
exchangeKaMi() {
|
||||
if (!this.kami) {
|
||||
exchangeKaMiDEghTTorsp() {
|
||||
if (!this.kamiDEghTTorsp) {
|
||||
uni.showToast({
|
||||
title: '请输入卡密',
|
||||
icon: 'none'
|
||||
@@ -388,7 +388,7 @@
|
||||
return
|
||||
}
|
||||
let data = {
|
||||
sdkContent: this.kami
|
||||
sdkContent: this.kamiDEghTTorsp
|
||||
}
|
||||
this.$Request.postT('/app/sdkInfo/sdkExchange', data).then(res => {
|
||||
if (res.code === 0) {
|
||||
@@ -418,18 +418,18 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
openKaMiShow() {
|
||||
openKaMiShowDEghTTorsp() {
|
||||
if (uni.getStorageSync('token')) {
|
||||
this.showCard = true
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//获取我喜欢的数量
|
||||
getMyLoveNum() {
|
||||
getMyLoveNumDEghTTorsp() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 1,
|
||||
@@ -444,7 +444,7 @@
|
||||
})
|
||||
},
|
||||
//获取我追剧的数量
|
||||
getMyFansNum() {
|
||||
getMyFansNumDEghTTorsp() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 1,
|
||||
@@ -461,7 +461,7 @@
|
||||
/**
|
||||
* 获取积分
|
||||
*/
|
||||
getPoints() {
|
||||
getPointsDEghTTorsp() {
|
||||
this.$Request.getT('/app/integral/selectByUserId').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.jifen = res.data.integralNum
|
||||
@@ -474,7 +474,7 @@
|
||||
* @param {Number} num
|
||||
* @param 保留两位小数
|
||||
*/
|
||||
formatNumber(num) {
|
||||
formatNumberDEghTTorsp(num) {
|
||||
// 判断是否为整数
|
||||
if (Number.isInteger(num)) {
|
||||
return num.toFixed(2);
|
||||
@@ -485,18 +485,18 @@
|
||||
/**
|
||||
* 获取余额
|
||||
*/
|
||||
getMyMoney() {
|
||||
getMyMoneyDEghTTorsp() {
|
||||
this.$Request.getT('/app/moneyDetails/selectUserMoney').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.moneyNum = res.data.money
|
||||
this.moneyNum = res.data.moneyDEghTTorsp
|
||||
this.userInfo = res.data
|
||||
// this.$Request.getT('/app/invite/selectInviteMoney').then(ret => {
|
||||
// if (ret.code == 0) {
|
||||
// if (ret.data.inviteMoney && ret.data.inviteMoney.money) {
|
||||
// this.moneyNum = Number(res.data.money) + Number(ret.data.inviteMoney
|
||||
// .money)
|
||||
// if (ret.data.inviteMoney && ret.data.inviteMoney.moneyDEghTTorsp) {
|
||||
// this.moneyNum = Number(res.data.moneyDEghTTorsp) + Number(ret.data.inviteMoney
|
||||
// .moneyDEghTTorsp)
|
||||
// } else {
|
||||
// this.moneyNum = Number(res.data.money)
|
||||
// this.moneyNum = Number(res.data.moneyDEghTTorsp)
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
@@ -509,7 +509,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
goPage(url) {
|
||||
goPageDEghTTorsp(url) {
|
||||
if (url) {
|
||||
if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) {
|
||||
uni.navigateTo({
|
||||
@@ -527,7 +527,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
goMsg() {
|
||||
goMsgDEghTTorsp() {
|
||||
let kefu = uni.getStorageSync('kefu'); // 用户端联系方式 1 手机号 2企业微信
|
||||
let kefuPhone = uni.getStorageSync('kefuPhone');
|
||||
if (kefu === 1) {
|
||||
@@ -578,7 +578,7 @@
|
||||
// #endif
|
||||
}
|
||||
},
|
||||
goNav(e,type) {
|
||||
goNavDEghTTorsp(e,type) {
|
||||
console.log(e)
|
||||
let token = uni.getStorageSync('token')
|
||||
if (token) {
|
||||
@@ -594,13 +594,13 @@
|
||||
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
// 获取轮播图列表
|
||||
getBannerList() {
|
||||
getBannerListDEghTTorsp() {
|
||||
this.$u.api.bannerList({
|
||||
classify: '3'
|
||||
}).then(res => {
|
||||
@@ -635,12 +635,12 @@
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
.kami {
|
||||
.kamiDEghTTorsp {
|
||||
width: 500rpx;
|
||||
height: auto;
|
||||
background-color: #FFFFFF;
|
||||
|
||||
.kami-title {
|
||||
.kamiDEghTTorsp-title {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-top: 30rpx;
|
||||
@@ -648,11 +648,11 @@
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.kami-input {
|
||||
.kamiDEghTTorsp-input {
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.kami-btn {
|
||||
.kamiDEghTTorsp-btn {
|
||||
width: calc(100% - 60rpx);
|
||||
height: 80rpx;
|
||||
margin: 0 auto;
|
||||
@@ -664,7 +664,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.info::before {
|
||||
.infoDEghTTorsp::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -676,7 +676,7 @@
|
||||
/* 确保在垂直渐变之上 */
|
||||
}
|
||||
|
||||
.info::after {
|
||||
.infoDEghTTorsp::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -689,7 +689,7 @@
|
||||
/* 确保在水平渐变之上 */
|
||||
}
|
||||
|
||||
.info {
|
||||
.infoDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
// height: 400rpx;
|
||||
@@ -697,21 +697,21 @@
|
||||
position: relative;
|
||||
border-radius: 0 0 80rpx 80rpx;
|
||||
|
||||
.info-box {
|
||||
.infoDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.info-box-c {
|
||||
.infoDEghTTorsp-box-c {
|
||||
width: 100%;
|
||||
height: 94rpx;
|
||||
// margin-top: 60rpx;
|
||||
margin-bottom: 140rpx;
|
||||
}
|
||||
|
||||
.info-box-c-l-avatar {
|
||||
.infoDEghTTorsp-box-c-l-avatar {
|
||||
width: 94rpx;
|
||||
height: 94rpx;
|
||||
border-radius: 50%;
|
||||
@@ -723,16 +723,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
.info-box-c-l-name {
|
||||
.infoDEghTTorsp-box-c-l-name {
|
||||
margin-left: 16rpx;
|
||||
|
||||
.info-box-c-l-name-t {
|
||||
.infoDEghTTorsp-box-c-l-name-t {
|
||||
color: #333333;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.info-box-c-l-name-b {
|
||||
.infoDEghTTorsp-box-c-l-name-b {
|
||||
color: #333333;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
@@ -740,26 +740,26 @@
|
||||
}
|
||||
}
|
||||
|
||||
.statistics {
|
||||
.statisticsDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: -100rpx;
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
|
||||
.statistics-box {
|
||||
.statisticsDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
// height: 184rpx;
|
||||
// background-color: #FFFFFF;
|
||||
border-radius: 24rpx;
|
||||
}
|
||||
|
||||
.statistics-box-item {
|
||||
.statisticsDEghTTorsp-box-item {
|
||||
// width: calc(100% / 3);
|
||||
// height: 100%;
|
||||
}
|
||||
|
||||
.statistics-box-item-top {
|
||||
.statisticsDEghTTorsp-box-item-top {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #333333;
|
||||
@@ -767,7 +767,7 @@
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.statistics-box-item-btn {
|
||||
.statisticsDEghTTorsp-box-item-btn {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #999999;
|
||||
@@ -776,12 +776,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.vip {
|
||||
.vipDEghTTorsp {
|
||||
width: 100%;
|
||||
// height: 84rpx;
|
||||
margin-top: 30rpx;
|
||||
|
||||
.vip-box {
|
||||
.vipDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #FEF5E4 0%, #FBECD7 100%);
|
||||
@@ -789,7 +789,7 @@
|
||||
padding: 26rpx 30rpx;
|
||||
}
|
||||
|
||||
.vip-box-l {
|
||||
.vipDEghTTorsp-box-l {
|
||||
image {
|
||||
width: 24rpx;
|
||||
height: 22rpx;
|
||||
@@ -797,20 +797,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
.vip-box-l-l {
|
||||
.vipDEghTTorsp-box-l-l {
|
||||
font-size: 32rpx;
|
||||
font-weight: 800;
|
||||
color: #5A4A32;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
|
||||
.vip-box-l-r {
|
||||
.vipDEghTTorsp-box-l-r {
|
||||
color: #817858;
|
||||
font-size: 26rpx;
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
|
||||
.vip-box-r {
|
||||
.vipDEghTTorsp-box-r {
|
||||
width: 130rpx;
|
||||
height: 50rpx;
|
||||
background: #FFFFFF;
|
||||
@@ -821,12 +821,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.money {
|
||||
.moneyDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 20rpx;
|
||||
|
||||
.money-box {
|
||||
.moneyDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
border-radius: 24rpx;
|
||||
@@ -834,7 +834,7 @@
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.money-box-btn {
|
||||
.moneyDEghTTorsp-box-btn {
|
||||
background: linear-gradient(90deg, #FF7581 0%, #F8A5AF 100%);
|
||||
border-radius: 44rpx;
|
||||
padding: 18rpx 30rpx;
|
||||
@@ -843,13 +843,13 @@
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.money-box-title-l {
|
||||
.moneyDEghTTorsp-box-title-l {
|
||||
color: #333333;
|
||||
font-size: 28rpx;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.money-box-price {
|
||||
.moneyDEghTTorsp-box-price {
|
||||
color: #333333;
|
||||
font-size: 48rpx;
|
||||
font-weight: 800;
|
||||
@@ -861,32 +861,32 @@
|
||||
|
||||
}
|
||||
|
||||
.tool {
|
||||
.toolDEghTTorsp {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 20rpx;
|
||||
|
||||
.tool-box {
|
||||
.toolDEghTTorsp-box {
|
||||
width: 686rpx;
|
||||
height: 100%;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 24rpx;
|
||||
}
|
||||
|
||||
.tool-box-content {
|
||||
.toolDEghTTorsp-box-content {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
padding: 30rpx 30rpx 0 30rpx;
|
||||
}
|
||||
|
||||
.tool-box-content-item {
|
||||
.toolDEghTTorsp-box-content-item {
|
||||
width: 130rpx;
|
||||
height: auto;
|
||||
margin-bottom: 46rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tool-box-content-item-img {
|
||||
.toolDEghTTorsp-box-content-item-img {
|
||||
width: 66rpx;
|
||||
height: 66rpx;
|
||||
|
||||
@@ -896,7 +896,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.tool-box-content-item-txt {
|
||||
.toolDEghTTorsp-box-content-item-txt {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-top: 10rpx;
|
||||
|
||||
31
pages/task/HNdVHghxdK.vue
Normal file
31
pages/task/HNdVHghxdK.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6784.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6785.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
31
pages/task/KghRoyeAiA.vue
Normal file
31
pages/task/KghRoyeAiA.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6786.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6787.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -8,7 +8,7 @@
|
||||
<view class="navTitle">
|
||||
<view></view>
|
||||
<view class="title">任务大厅</view>
|
||||
<image @click="goNav({jumpType:1,buttonUrl:'/pages/me/index'})" class="navTitleIcon" src="../../static/images/my.png" ></image>
|
||||
<image @click="goNav({jumpType:1,buttonUrl:'/pages/iSiAnfghCC/abKTySghjA'})" class="navTitleIcon" src="../../static/images/my.png" ></image>
|
||||
</view>
|
||||
<view class="icon u-relative padding">
|
||||
<image class="task_icon1 u-relative" src="../../static/images/me/task_icon1.png"></image>
|
||||
@@ -30,9 +30,9 @@
|
||||
:class="{active: item.showText == '待签到'||item.showText == '未签到'||item.showText == '已签到'}"
|
||||
v-for="(item,index) in signInList" :key="index"
|
||||
>
|
||||
<image class="signIn_icon" v-if="item.showText == '未签到'" src="../../static/images/signIn_icon2.png" mode="">
|
||||
<image class="signIn_icon" v-if="item.showText == '已签到'" src="../../static/images/signIn_icon3.png" mode="">
|
||||
<image class="signIn_icon" v-if="item.showText != '未签到'&&item.showText != '已签到'" src="../../static/images/signIn_icon1.png" mode="">
|
||||
<image class="signIn_icon" v-if="item.showText == '未签到'" src="../../static/images/signIn_icon2.png" mode="" />
|
||||
<image class="signIn_icon" v-if="item.showText == '已签到'" src="../../static/images/signIn_icon3.png" mode="" />
|
||||
<image class="signIn_icon" v-if="item.showText != '未签到'&&item.showText != '已签到'" src="../../static/images/signIn_icon1.png" mode="" />
|
||||
<view class="radius"></view>
|
||||
<view class="_label">{{item.showText}}</view>
|
||||
</view>
|
||||
|
||||
31
pages/video/CbgghQhXpC.vue
Normal file
31
pages/video/CbgghQhXpC.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6790.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6791.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
31
pages/video/StghtCTisn.vue
Normal file
31
pages/video/StghtCTisn.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6788.JPG" mode="aspectFill"></image>
|
||||
<image src="../../../static/iosImg/DEghTTorspIMG_6789.JPG" mode="aspectFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
},
|
||||
onLoad(option) {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -1,88 +1,88 @@
|
||||
<template>
|
||||
<view class="detail">
|
||||
<list @loadmore="getData()" :loadmoreoffset="wHeight*3" :show-scrollbar="false" ref="listBox"
|
||||
<view class="detailDEghTTorsp">
|
||||
<list @loadmore="getDataDEghTTorsp()" :loadmoreoffset="wHeight*3" :show-scrollbar="false" ref="listBox"
|
||||
:pagingEnabled="true" :scrollable="true">
|
||||
<cell v-for="(item,i) in videoList" :key="i" :ref="'list'+item.courseDetailsId">
|
||||
<view class="swipers-items" @longpress="openBs()" @appear="appear(item.courseDetailsId,i)"
|
||||
<view class="swipersDEghTTorsp-items" @longpress="openBsDEghTTorsp()" @appear="appearDEghTTorsp(item.courseDetailsId,i)"
|
||||
:style="boxStyle">
|
||||
<!-- 视频 -->
|
||||
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" object-fit="cover"
|
||||
<video :show-fullscreen-btn="false" @controlstoggle="controlstogglesDEghTTorsp" object-fit="cover"
|
||||
v-if="isShowVideo == item.courseDetailsId && item.videoUrl" :play-strategy="2"
|
||||
:show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="true"
|
||||
@timeupdate="timeupdate"
|
||||
@play="videoPlay('myVideo'+item.courseDetailsId, item.courseDetailsId)"
|
||||
@ended="ended" :enable-progress-gesture="false" :poster="item.titleImg"
|
||||
@timeupdate="timeupdateDEghTTorsp"
|
||||
@play="videoPlayDEghTTorsp('myVideo'+item.courseDetailsId, item.courseDetailsId)"
|
||||
@ended="endedDEghTTorsp" :enable-progress-gesture="false" :poster="item.titleImg"
|
||||
:ref="'myVideo'+item.courseDetailsId" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl"
|
||||
:autoplay="item.autoPlay" class="swipers-items-video"></video>
|
||||
<image v-else :src="item.titleImg" class="swipers-items-imgsbg" mode="aspectFill">
|
||||
:autoplay="item.autoPlay" class="swipersDEghTTorsp-items-video"></video>
|
||||
<image v-else :src="item.titleImg" class="swipersDEghTTorsp-items-imgsbg" mode="aspectFill">
|
||||
</image>
|
||||
<!-- 右边操作 -->
|
||||
<view class="swipers-items-right" :style="rightTop" v-if="showControls">
|
||||
<view class="swipers-items-right-item">
|
||||
<view class="swipers-items-right-item-img" @click.stop="dianzan(item)">
|
||||
<image v-if="item.isGood!=null && item.isGood!=0" class="swipers-items-right-item-imgs"
|
||||
<view class="swipersDEghTTorsp-items-right" :style="rightTop" v-if="showControls">
|
||||
<view class="swipersDEghTTorsp-items-right-item">
|
||||
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="dianzanDEghTTorsp(item)">
|
||||
<image v-if="item.isGood!=null && item.isGood!=0" class="swipersDEghTTorsp-items-right-item-imgs"
|
||||
src="../../static/images/me/myLove_.png" mode=""></image>
|
||||
<image v-else class="swipers-items-right-item-imgs"
|
||||
<image v-else class="swipersDEghTTorsp-items-right-item-imgs"
|
||||
src="../../static/images/me/myLove.png" mode=""></image>
|
||||
</view>
|
||||
<view class="swipers-items-right-item-txt">
|
||||
<text class="swipers-items-right-item-txts">
|
||||
<view class="swipersDEghTTorsp-items-right-item-txt">
|
||||
<text class="swipersDEghTTorsp-items-right-item-txts">
|
||||
{{item.goodNum}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="swipers-items-right-item" @click="share()">
|
||||
<view class="swipers-items-right-item-img">
|
||||
<image class="swipers-items-right-item-imgs" src="../../static/images/me/share.png"
|
||||
<view class="swipersDEghTTorsp-items-right-item" @click="shareDEghTTorsp()">
|
||||
<view class="swipersDEghTTorsp-items-right-item-img">
|
||||
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/share.png"
|
||||
mode=""></image>
|
||||
</view>
|
||||
<view class="swipers-items-right-item-txt">
|
||||
<text class="swipers-items-right-item-txts">
|
||||
<view class="swipersDEghTTorsp-items-right-item-txt">
|
||||
<text class="swipersDEghTTorsp-items-right-item-txts">
|
||||
分享
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="swipers-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
|
||||
<view class="swipers-items-right-item-img" @click.stop="collectVideo(item)">
|
||||
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian.png"
|
||||
<view class="swipersDEghTTorsp-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
|
||||
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="collectVideoDEghTTorsp(item)">
|
||||
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/shuqian.png"
|
||||
mode=""></image>
|
||||
</view>
|
||||
<view class="swipers-items-right-item-txt">
|
||||
<text class="swipers-items-right-item-txts">
|
||||
<view class="swipersDEghTTorsp-items-right-item-txt">
|
||||
<text class="swipersDEghTTorsp-items-right-item-txts">
|
||||
追剧
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="swipers-items-right-item" v-else>
|
||||
<view class="swipers-items-right-item-img" @click.stop="collectVideo(item)">
|
||||
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
|
||||
<view class="swipersDEghTTorsp-items-right-item" v-else>
|
||||
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="collectVideoDEghTTorsp(item)">
|
||||
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
|
||||
mode=""></image>
|
||||
</view>
|
||||
<view class="swipers-items-right-item-txt">
|
||||
<text class="swipers-items-right-item-txts">
|
||||
<view class="swipersDEghTTorsp-items-right-item-txt">
|
||||
<text class="swipersDEghTTorsp-items-right-item-txts">
|
||||
已追
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 底部视频信息 -->
|
||||
<view class="swipers-items-btom"
|
||||
<view class="swipersDEghTTorsp-items-btom"
|
||||
:style="{bottom:(item.rankCount && item.rankCount<30)?'160rpx':'100rpx'}" v-if="showControls">
|
||||
<view class="swipers-items-btom-box">
|
||||
<view class="swipersDEghTTorsp-items-btom-box">
|
||||
<!-- 标题 -->
|
||||
<view class="swipers-items-btom-box-title">
|
||||
<text class="swipers-items-btom-box-titles">
|
||||
<view class="swipersDEghTTorsp-items-btom-box-title">
|
||||
<text class="swipersDEghTTorsp-items-btom-box-titles">
|
||||
{{item.title}}
|
||||
</text>
|
||||
</view>
|
||||
<!-- 介绍 -->
|
||||
<view v-if="item.content" class="swipers-items-btom-box-content">
|
||||
<text class="swipers-items-btom-box-contents">{{item.content}}</text>
|
||||
<view v-if="item.content" class="swipersDEghTTorsp-items-btom-box-content">
|
||||
<text class="swipersDEghTTorsp-items-btom-box-contents">{{item.content}}</text>
|
||||
</view>
|
||||
<!-- 集数 -->
|
||||
<view @click="goCourse(item.courseId,item.courseDetailsId)"
|
||||
class="swipers-items-btom-box-num">
|
||||
<text class="swipers-items-btom-box-nums">
|
||||
<view @click="goCourseDEghTTorsp(item.courseId,item.courseDetailsId)"
|
||||
class="swipersDEghTTorsp-items-btom-box-num">
|
||||
<text class="swipersDEghTTorsp-items-btom-box-nums">
|
||||
查看更多续集 >
|
||||
</text>
|
||||
</view>
|
||||
@@ -92,12 +92,12 @@
|
||||
</cell>
|
||||
</list>
|
||||
<uni-popup ref="popupBs" :safe-area="true" background-color="#ffffff">
|
||||
<view class="bs">
|
||||
<text class="bs-title">倍速:</text>
|
||||
<view class="bs-se">
|
||||
<view class="bs-se-i" @click="BsChange(index)" :class="nowBs==index?'bsActive':''"
|
||||
<view class="bsDEghTTorsp">
|
||||
<text class="bsDEghTTorsp-title">倍速:</text>
|
||||
<view class="bsDEghTTorsp-se">
|
||||
<view class="bsDEghTTorsp-se-i" @click="BsChangeDEghTTorsp(index)" :class="nowBs==index?'bsActiveDEghTTorsp':''"
|
||||
v-for="(item,index) in subList" :key="index">
|
||||
<text class="bs-se-it">{{item.name}}</text>
|
||||
<text class="bsDEghTTorsp-se-it">{{item.name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -185,7 +185,7 @@
|
||||
})
|
||||
this.page = 1
|
||||
this.randomNum = Math.floor(Math.random() * 33);
|
||||
this.getDataList()
|
||||
this.getDataListDEghTTorsp()
|
||||
},
|
||||
onHide() {
|
||||
try {
|
||||
@@ -209,7 +209,7 @@
|
||||
},
|
||||
methods: {
|
||||
//播放时的回掉
|
||||
videoPlay(videoId,courseDetailsId) {
|
||||
videoPlayDEghTTorsp(videoId,courseDetailsId) {
|
||||
this.courseDetailsId = courseDetailsId
|
||||
if ( !this.playFlag ) {
|
||||
this.playFlag = true
|
||||
@@ -224,7 +224,7 @@
|
||||
|
||||
},
|
||||
//播放进度变化回掉
|
||||
timeupdate(e) {
|
||||
timeupdateDEghTTorsp(e) {
|
||||
|
||||
if (e.detail.currentTime > e.detail.duration*0.9) {
|
||||
if ( this.playFlag) {
|
||||
@@ -240,7 +240,7 @@
|
||||
}
|
||||
|
||||
},
|
||||
appear(e, index) {
|
||||
appearDEghTTorsp(e, index) {
|
||||
this.current = index
|
||||
this.showControls = true
|
||||
this.isShowVideo = e
|
||||
@@ -250,27 +250,27 @@
|
||||
this.videoContextId = 'myVideo' + numIdCurr;
|
||||
this.videoContext = uni.createVideoContext(this.videoContextId, this);
|
||||
//插入历史记录
|
||||
this.setHistor(this.videoList[index].courseId, this.videoList[index].courseDetailsId);
|
||||
this.setHistorDEghTTorsp(this.videoList[index].courseId, this.videoList[index].courseDetailsId);
|
||||
this.$forceUpdate()
|
||||
},
|
||||
getData() {
|
||||
getDataDEghTTorsp() {
|
||||
if (this.page < this.pages) {
|
||||
this.page += 1
|
||||
this.getDataList()
|
||||
this.getDataListDEghTTorsp()
|
||||
this.$forceUpdate()
|
||||
}
|
||||
},
|
||||
//显示/隐藏适配控制器的回调
|
||||
controlstoggles(e) {
|
||||
controlstogglesDEghTTorsp(e) {
|
||||
this.showControls = e.detail.show
|
||||
console.log(e.detail.show, '显示/隐藏控制栏')
|
||||
},
|
||||
//打开倍速弹框
|
||||
openBs() {
|
||||
openBsDEghTTorsp() {
|
||||
this.$refs.popupBs.open('bottom')
|
||||
},
|
||||
//切换倍速
|
||||
BsChange(index) {
|
||||
BsChangeDEghTTorsp(index) {
|
||||
this.nowBs = index
|
||||
this.videoContext.playbackRate(this.subList[index].num)
|
||||
this.$refs.popupBs.close()
|
||||
@@ -281,23 +281,23 @@
|
||||
})
|
||||
},
|
||||
// 跳转资源详情
|
||||
goCourse(e, courseDetailsId) {
|
||||
goCourseDEghTTorsp(e, courseDetailsId) {
|
||||
let userId = uni.getStorageSync('userId')
|
||||
if (userId) {
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/index/course/courseDet?id=' + e
|
||||
// url: '/pages/index/mggghRAnkh/courseDet?id=' + e
|
||||
// });
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + e + '&courseDetailsId=' + courseDetailsId
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
},
|
||||
//分享-复制app下载连接
|
||||
share() {
|
||||
shareDEghTTorsp() {
|
||||
let invitationCode = ''
|
||||
let qdCode = ''
|
||||
if (uni.getStorageSync('invitationCode')) {
|
||||
@@ -306,7 +306,7 @@
|
||||
if (uni.getStorageSync('qdCode')) {
|
||||
qdCode = uni.getStorageSync('qdCode')
|
||||
}
|
||||
let url = config.APIHOST2 + '/pages/login/registerApp?invitation=' + invitationCode + '&qdCode=' + qdCode
|
||||
let url = config.APIHOST2 + '/pages/ghtwwlkXYG/WVEtZeeghKApp?invitation=' + invitationCode + '&qdCode=' + qdCode
|
||||
uni.setClipboardData({
|
||||
data: url,
|
||||
success(res) {
|
||||
@@ -317,7 +317,7 @@
|
||||
})
|
||||
},
|
||||
//收藏
|
||||
collectVideo(item) {
|
||||
collectVideoDEghTTorsp(item) {
|
||||
if (uni.getStorageSync('token')) {
|
||||
let data = {
|
||||
courseId: item.courseId,
|
||||
@@ -336,14 +336,14 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
//点赞
|
||||
dianzan(item) {
|
||||
dianzanDEghTTorsp(item) {
|
||||
if (uni.getStorageSync('token')) {
|
||||
let data = {
|
||||
courseId: item.courseId,
|
||||
@@ -364,12 +364,12 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
ended() {
|
||||
endedDEghTTorsp() {
|
||||
console.log(this.current, 'eeeeeeeeeeeee')
|
||||
if (this.current < this.videoList.length - 1) {
|
||||
// this.current += 1
|
||||
@@ -388,7 +388,7 @@
|
||||
* @param {Number} courseDetailsId 当前视频id
|
||||
* @param {boolean} type 是购买后返回的还是直接进来的
|
||||
*/
|
||||
getDataList() {
|
||||
getDataListDEghTTorsp() {
|
||||
let data = {
|
||||
page: this.page,
|
||||
limit: this.limit,
|
||||
@@ -419,7 +419,7 @@
|
||||
})
|
||||
if (uni.getStorageSync('token')) { //如果有token则插入
|
||||
//插入历史记录
|
||||
this.setHistor(this.videoList[this.current].courseId, this.videoList[this
|
||||
this.setHistorDEghTTorsp(this.videoList[this.current].courseId, this.videoList[this
|
||||
.current]
|
||||
.courseDetailsId)
|
||||
}
|
||||
@@ -439,7 +439,7 @@
|
||||
})
|
||||
},
|
||||
//插入观看记录
|
||||
setHistor(courseId, courseDetailsId) {
|
||||
setHistorDEghTTorsp(courseId, courseDetailsId) {
|
||||
if (uni.getStorageSync('token')) {
|
||||
let data = {
|
||||
courseId: courseId,
|
||||
@@ -455,7 +455,7 @@
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.bs {
|
||||
.bsDEghTTorsp {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
@@ -464,12 +464,12 @@
|
||||
|
||||
}
|
||||
|
||||
.bs-title {
|
||||
.bsDEghTTorsp-title {
|
||||
font-size: 24rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.bs-se {
|
||||
.bsDEghTTorsp-se {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
@@ -478,129 +478,129 @@
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.bs-se-it {
|
||||
.bsDEghTTorsp-se-it {
|
||||
font-size: 24rpx;
|
||||
width: 100rpx;
|
||||
padding: 16rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bsActive {
|
||||
.bsActiveDEghTTorsp {
|
||||
background-color: #ffffff;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
|
||||
.detail {
|
||||
.detailDEghTTorsp {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
background-color: #000;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.swipers {
|
||||
.swipersDEghTTorsp {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.swipers-item {
|
||||
.swipersDEghTTorsp-item {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.swipers-items {
|
||||
.swipersDEghTTorsp-items {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
position: relative;
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
.swipers-items-video {
|
||||
.swipersDEghTTorsp-items-video {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.swipers-items-imgsbg {
|
||||
.swipersDEghTTorsp-items-imgsbg {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.swipers-items-right {
|
||||
.swipersDEghTTorsp-items-right {
|
||||
position: absolute;
|
||||
width: 60rpx;
|
||||
top: 100rpx;
|
||||
right: 20rpx;
|
||||
}
|
||||
|
||||
.swipers-items-right-item {
|
||||
.swipersDEghTTorsp-items-right-item {
|
||||
width: 60rpx;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
|
||||
.swipers-items-right-item-imgs {
|
||||
.swipersDEghTTorsp-items-right-item-imgs {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.swipers-items-right-item-img {
|
||||
.swipersDEghTTorsp-items-right-item-img {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.swipers-items-right-item-imgs {
|
||||
.swipersDEghTTorsp-items-right-item-imgs {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.swipers-items-right-item-txt {
|
||||
.swipersDEghTTorsp-items-right-item-txt {
|
||||
width: 60rpx;
|
||||
}
|
||||
|
||||
.swipers-items-right-item-txts {
|
||||
.swipersDEghTTorsp-items-right-item-txts {
|
||||
width: 60rpx;
|
||||
color: #ffffff;
|
||||
font-size: 24rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.swipers-items-btom {
|
||||
.swipersDEghTTorsp-items-btom {
|
||||
width: 750rpx;
|
||||
position: absolute;
|
||||
/* bottom: 140rpx; */
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box {
|
||||
.swipersDEghTTorsp-items-btom-box {
|
||||
width: 710rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-title {
|
||||
.swipersDEghTTorsp-items-btom-box-title {
|
||||
width: 710rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-titles {
|
||||
.swipersDEghTTorsp-items-btom-box-titles {
|
||||
width: 710rpx;
|
||||
color: #ffffff;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-content {
|
||||
.swipersDEghTTorsp-items-btom-box-content {
|
||||
width: 710rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-contents {
|
||||
.swipersDEghTTorsp-items-btom-box-contents {
|
||||
width: 710rpx;
|
||||
color: #ffffff;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-num {
|
||||
.swipersDEghTTorsp-items-btom-box-num {
|
||||
width: 750rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-nums {
|
||||
.swipersDEghTTorsp-items-btom-box-nums {
|
||||
width: 710rpx;
|
||||
color: #ffffff;
|
||||
font-size: 30rpx;
|
||||
|
||||
@@ -1,36 +1,36 @@
|
||||
<template>
|
||||
<view>
|
||||
<swiper @longpress="openBs()" :style="{height:winHeight}" :circular="false" class="swipers" @change="change"
|
||||
<swiper @longpress="openBsDEghTTorsp()" :style="{height:winHeight}" :circular="false" class="swipers" @change="changeDEghTTorsp"
|
||||
:current="current" :vertical="true" :indicator-dots="false" :autoplay="false" :interval="0" :duration="1">
|
||||
<swiper-item class="swipers-item" v-for="(item,index) in videoList" :key="item.courseDetailsId">
|
||||
<view class="swipers-items">
|
||||
<!-- 视频 -->
|
||||
<!-- #ifndef MP-TOUTIAO -->
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" @timeupdate="timeupdate"
|
||||
@waiting="waiting()" object-fit="cover" v-if="current == index" :play-strategy="2"
|
||||
<video :show-fullscreen-btn="false" @controlstoggle="controlstogglesDEghTTorsp" @timeupdate="timeupdate"
|
||||
@waiting="waitingDEghTTorsp()" object-fit="cover" v-if="current == index" :play-strategy="2"
|
||||
:show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="false"
|
||||
@ended="ended" @play="videoPlay('myVideo'+item.courseDetailsId)"
|
||||
@ended="ended" @play="videoPlayDEghTTorsp('myVideo'+item.courseDetailsId)"
|
||||
:enable-progress-gesture="false" :ref="'myVideo'+item.courseDetailsId"
|
||||
:id="'myVideo'+item.courseDetailsId" :src="item.wxCourseDetailsId?item.wxUrl:item.videoUrl"
|
||||
:poster="item.titleImg" :autoplay="item.autoPlay" initial-time="0"
|
||||
class="swipers-items-video"></video>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<video :show-fullscreen-btn="false" @click.stop.prevent="isSelectType" :controls="false"
|
||||
@controlstoggle="controlstoggles" @timeupdate="timeupdate" @waiting="waiting()"
|
||||
<video :show-fullscreen-btn="false" @click.stop.prevent="isSelectTypeDEghTTorsp" :controls="false"
|
||||
@controlstoggle="controlstogglesDEghTTorsp" @timeupdate="timeupdate" @waiting="waitingDEghTTorsp()"
|
||||
object-fit="cover" v-if="current == index" :play-strategy="2" :show-loading="true"
|
||||
codec="software" :muted="false" :show-center-play-btn="true" :loop="false" @ended="ended"
|
||||
@play="videoPlay('myVideo'+item.courseDetailsId)" :enable-progress-gesture="false"
|
||||
@play="videoPlayDEghTTorsp('myVideo'+item.courseDetailsId)" :enable-progress-gesture="false"
|
||||
:ref="'myVideo'+item.courseDetailsId" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl"
|
||||
:poster="item.titleImg" :autoplay="item.autoPlay" initial-time="0" class="swipers-items-video"
|
||||
@contextmenu.prevent="disableContextMenu"></video>
|
||||
@contextmenu.prevent="disableContextMenuDEghTTorsp"></video>
|
||||
<!-- #endif -->
|
||||
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef MP-TOUTIAO -->
|
||||
<video-player :show-fullscreen-btn="false" @controlstoggle="controlstoggles" @error="videoError"
|
||||
version="1" @ended="ended" object-fit="cover" @play="videoPlay('myVideo'+item.courseDetailsId)"
|
||||
<video-player :show-fullscreen-btn="false" @controlstoggle="controlstogglesDEghTTorsp" @error="videoErrorDEghTTorsp"
|
||||
version="1" @ended="ended" object-fit="cover" @play="videoPlayDEghTTorsp('myVideo'+item.courseDetailsId)"
|
||||
:autoplay="item.autoPlay" :id="'myVideo'+item.courseDetailsId"
|
||||
:ref="'myVideo'+item.courseDetailsId" :album-id="item.dyCourseDetailsId"
|
||||
:episode-id="item.dyEpisodeId" :cloud-type="playType" :three-party-cloud="item.videoUrl"
|
||||
@@ -53,14 +53,14 @@
|
||||
|
||||
</view>
|
||||
<!-- 集数 -->
|
||||
<view class="swipers-items-info-num" @click="goCourse(item.courseId,item.courseDetailsId)">
|
||||
<view class="swipers-items-info-num" @click="goCourseDEghTTorsp(item.courseId,item.courseDetailsId)">
|
||||
查看更多续集 >
|
||||
</view>
|
||||
</view>
|
||||
<!-- 右侧操作 -->
|
||||
<view class="swipers-items-right" :style="[tabBarStyles]">
|
||||
<view class="swipers-items-right-item">
|
||||
<view class="swipers-items-right-item-img" @click.stop="dianzan(item)">
|
||||
<view class="swipers-items-right-item-img" @click.stop="dianzanDEghTTorsp(item)">
|
||||
<u-icon name="heart-fill" v-if="item.isGood!=null && item.isGood!=0" color="red"
|
||||
size="60"></u-icon>
|
||||
<u-icon name="heart-fill" v-else color="#ffffff" size="60"></u-icon>
|
||||
@@ -71,7 +71,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- #ifndef MP-KUAISHOU -->
|
||||
<view class="swipers-items-right-item" @click="share(item)">
|
||||
<view class="swipers-items-right-item" @click="shareDEghTTorsp(item)">
|
||||
<view class="swipers-items-right-item-img">
|
||||
<image src="../../static/images/me/share.png" mode=""></image>
|
||||
</view>
|
||||
@@ -82,7 +82,7 @@
|
||||
<!-- #endif -->
|
||||
|
||||
<view class="swipers-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
|
||||
<view class="swipers-items-right-item-img" @click.stop="shoucang(item)">
|
||||
<view class="swipers-items-right-item-img" @click.stop="shoucangDEghTTorsp(item)">
|
||||
<image src="../../static/images/me/shuqian.png" style="height: 60rpx;" mode=""></image>
|
||||
</view>
|
||||
<view class="swipers-items-right-item-txt">
|
||||
@@ -90,7 +90,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="swipers-items-right-item" v-else>
|
||||
<view class="swipers-items-right-item-img" @click.stop="shoucang(item)">
|
||||
<view class="swipers-items-right-item-img" @click.stop="shoucangDEghTTorsp(item)">
|
||||
<image src="../../static/images/me/shuqian_s.png" style="height: 60rpx;" mode="">
|
||||
</image>
|
||||
</view>
|
||||
@@ -104,40 +104,40 @@
|
||||
</swiper>
|
||||
<!-- #ifdef APP -->
|
||||
<tki-qrcode ref="qrcode" v-if="isStart" :val="erweima" :size="200" background="#ffffff" foreground="#000"
|
||||
pdground="#000" :onval="true" :loadMake="true" @result="qrR" :show="false"></tki-qrcode>
|
||||
pdground="#000" :onval="true" :loadMake="true" @result="qrRDEghTTorsp" :show="false"></tki-qrcode>
|
||||
<!-- @success:成功事件 imgSrc:图片地址 QrSrc:二维码图片地址
|
||||
Title:标题 PriceTxt:价格 OriginalTxt:原始价格 LineType -->
|
||||
<cc-poster v-if="haibaoShow==true && erweima" @error="posterError" @success="posterSuccess" :imgSrc="imgSrc"
|
||||
<cc-poster v-if="haibaoShow==true && erweima" @error="posterErrorDEghTTorsp" @success="posterSuccessDEghTTorsp" :imgSrc="imgSrc"
|
||||
:QrSrc="qrCodeData" :Title="title" :PriceTxt="title" :LineType="false"></cc-poster>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef H5 -->
|
||||
<tki-qrcode ref="qrcode" v-if="isStart" :val="erweima" :size="200" background="#ffffff" foreground="#000"
|
||||
pdground="#000" :onval="true" :loadMake="true" @result="qrR" :show="false"></tki-qrcode>
|
||||
pdground="#000" :onval="true" :loadMake="true" @result="qrRDEghTTorsp" :show="false"></tki-qrcode>
|
||||
<!-- @success:成功事件 imgSrc:图片地址 QrSrc:二维码图片地址
|
||||
Title:标题 PriceTxt:价格 OriginalTxt:原始价格 LineType -->
|
||||
<cc-poster v-if="haibaoShow==true && erweima" @error="posterError" @success="posterSuccess" :imgSrc="imgSrc"
|
||||
<cc-poster v-if="haibaoShow==true && erweima" @error="posterErrorDEghTTorsp" @success="posterSuccessDEghTTorsp" :imgSrc="imgSrc"
|
||||
:QrSrc="qrCodeData" :Title="title" :PriceTxt="title" :LineType="false"></cc-poster>
|
||||
<!-- #endif -->
|
||||
|
||||
|
||||
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<cc-poster v-if="haibaoShow==true && qrCodeData" @error="posterError" @success="posterSuccess" :imgSrc="imgSrc"
|
||||
<cc-poster v-if="haibaoShow==true && qrCodeData" @error="posterErrorDEghTTorsp" @success="posterSuccessDEghTTorsp" :imgSrc="imgSrc"
|
||||
:QrSrc="qrCodeData" :Title="title" :PriceTxt="title" :LineType="false"></cc-poster>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef MP-TOUTIAO -->
|
||||
<cc-poster v-if="haibaoShow==true && qrCodeData" @error="posterError" @success="posterSuccess" :imgSrc="imgSrc"
|
||||
<cc-poster v-if="haibaoShow==true && qrCodeData" @error="posterErrorDEghTTorsp" @success="posterSuccessDEghTTorsp" :imgSrc="imgSrc"
|
||||
:QrSrc="qrCodeData" :Title="title" :PriceTxt="title" :LineType="false"></cc-poster>
|
||||
<!-- #endif -->
|
||||
<u-popup width="686" v-model="showImg" mode="center" border-radius="14">
|
||||
<image :show-menu-by-longpress='true' @click="priveImage(haibaoImg)" @longpress="saveImage()"
|
||||
<image :show-menu-by-longpress='true' @click="priveImageDEghTTorsp(haibaoImg)" @longpress="saveImageDEghTTorsp()"
|
||||
:src="haibaoImg" style="width: 100%;" mode="widthFix"></image>
|
||||
</u-popup>
|
||||
<uni-popup ref="popupBs" :safe-area="true" background-color="#ffffff">
|
||||
<view class="bs">
|
||||
<text class="bs-title">倍速:</text>
|
||||
<view class="bs-se">
|
||||
<view class="bs-se-i" @click="BsChange(index)" :class="nowBs==index?'bsActive':''"
|
||||
<view class="bsDEghTTorsp">
|
||||
<text class="bsDEghTTorsp-title">倍速:</text>
|
||||
<view class="bsDEghTTorsp-se">
|
||||
<view class="bsDEghTTorsp-se-i" @click="BsChangeDEghTTorsp(index)" :class="nowBs==index?'bsActiveDEghTTorsp':''"
|
||||
v-for="(item,index) in subList" :key="index">
|
||||
{{item.name}}
|
||||
</view>
|
||||
@@ -263,7 +263,7 @@
|
||||
}
|
||||
this.page = 1
|
||||
this.randomNum = Math.floor(Math.random() * 33);
|
||||
this.getDataList()
|
||||
this.getDataListDEghTTorsp()
|
||||
|
||||
},
|
||||
onHide() {
|
||||
@@ -282,8 +282,8 @@
|
||||
path: '/pages/video/video?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode + '&id=' + this.courseId + '&courseDetailsId=' + this
|
||||
.courseDetailsId, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.getVideoTitle(),
|
||||
imageUrl: this.getVideoImageUrl()
|
||||
title: this.getVideoTitleDEghTTorsp(),
|
||||
imageUrl: this.getVideoImageUrlDEghTTorsp()
|
||||
}
|
||||
},
|
||||
onShareTimeline(res) {
|
||||
@@ -291,8 +291,8 @@
|
||||
path: '/pages/video/video?invitation=' + this.invitationCode + '&qdCode=' + this
|
||||
.qdCode + '&id=' + this.courseId + '&courseDetailsId=' + this
|
||||
.courseDetailsId, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.getVideoTitle(),
|
||||
imageUrl: this.getVideoImageUrl()
|
||||
title: this.getVideoTitleDEghTTorsp(),
|
||||
imageUrl: this.getVideoImageUrlDEghTTorsp()
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
@@ -316,7 +316,7 @@
|
||||
if (scene[3]) {
|
||||
uni.setStorageSync('qdCodeion', scene[3])
|
||||
}
|
||||
this.getDataList(this.courseId, this.courseDetailsId);
|
||||
this.getDataListDEghTTorsp(this.courseId, this.courseDetailsId);
|
||||
}
|
||||
// #endif
|
||||
if (e.invitation) {
|
||||
@@ -332,7 +332,7 @@
|
||||
if (e.qdCode) {
|
||||
uni.setStorageSync('qdCodeion', e.qdCode)
|
||||
}
|
||||
// this.getDataList()
|
||||
// this.getDataListDEghTTorsp()
|
||||
},
|
||||
onReady() {
|
||||
// #ifdef MP-WEIXIN
|
||||
@@ -350,7 +350,7 @@
|
||||
if ((newData + 1) == (this.limit * this.page)) { //最后一条了
|
||||
if (this.page < this.pages) {
|
||||
this.page += 1
|
||||
this.getDataList()
|
||||
this.getDataListDEghTTorsp()
|
||||
}
|
||||
|
||||
console.log(this.videoList, '2222222222')
|
||||
@@ -385,10 +385,10 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
disableContextMenu(event) {
|
||||
disableContextMenuDEghTTorsp(event) {
|
||||
event.preventDefault();
|
||||
},
|
||||
priveImage(url) {
|
||||
priveImageDEghTTorsp(url) {
|
||||
// #ifdef H5
|
||||
let ua = navigator.userAgent.toLowerCase();
|
||||
if (ua.indexOf('micromessenger') == -1) {
|
||||
@@ -399,17 +399,17 @@
|
||||
// #endif
|
||||
},
|
||||
//获取当前播放视频的封面图
|
||||
getVideoImageUrl() {
|
||||
getVideoImageUrlDEghTTorsp() {
|
||||
console.log(this.videoList[this.current].titleImg)
|
||||
return this.videoList[this.current].titleImg
|
||||
|
||||
},
|
||||
//获取当前播放视频的标题
|
||||
getVideoTitle() {
|
||||
getVideoTitleDEghTTorsp() {
|
||||
return this.videoList[this.current].courseDetailsName
|
||||
},
|
||||
//抖音保存海报
|
||||
saveImage() {
|
||||
saveImageDEghTTorsp() {
|
||||
let that = this
|
||||
// #ifdef MP-TOUTIAO || MP-KUAISHOU
|
||||
uni.saveImageToPhotosAlbum({
|
||||
@@ -428,7 +428,7 @@
|
||||
});
|
||||
// #endif
|
||||
},
|
||||
isSelectType(e) {
|
||||
isSelectTypeDEghTTorsp(e) {
|
||||
// console.log(e)
|
||||
// #ifndef MP-WEIXIN || MP-KUAISHOU
|
||||
this.showControls = !this.showControls
|
||||
@@ -437,7 +437,7 @@
|
||||
|
||||
},
|
||||
//显示/隐藏适配控制器的回调
|
||||
controlstoggles(e) {
|
||||
controlstogglesDEghTTorsp(e) {
|
||||
// #ifndef MP-KUAISHOU
|
||||
this.showControls = e.detail.show
|
||||
// #endif
|
||||
@@ -445,7 +445,7 @@
|
||||
console.log(e.detail.show, '显示/隐藏控制栏')
|
||||
},
|
||||
//获取微信的播放链接
|
||||
getsrc(videoUrl, wxCourseDetailsId) {
|
||||
getsrcDEghTTorsp(videoUrl, wxCourseDetailsId) {
|
||||
// #ifdef MP-WEIXIN
|
||||
let data = {
|
||||
wxCourseDetailsIds: wxCourseDetailsId // 注意:这里应该是单数,除非后端确实接收复数形式
|
||||
@@ -463,16 +463,16 @@
|
||||
// #endif
|
||||
|
||||
},
|
||||
videoError(e) {
|
||||
videoErrorDEghTTorsp(e) {
|
||||
console.log(e, '11111111111')
|
||||
},
|
||||
//打开倍速弹框
|
||||
openBs() {
|
||||
openBsDEghTTorsp() {
|
||||
console.log('打开倍速')
|
||||
this.$refs.popupBs.open('bottom')
|
||||
},
|
||||
//切换倍速
|
||||
BsChange(index) {
|
||||
BsChangeDEghTTorsp(index) {
|
||||
this.nowBs = index
|
||||
this.videoContext.playbackRate(this.subList[index].num)
|
||||
this.$refs.popupBs.close()
|
||||
@@ -502,7 +502,7 @@
|
||||
}
|
||||
},
|
||||
//缓冲中
|
||||
waiting(e) {
|
||||
waitingDEghTTorsp(e) {
|
||||
//在h5状态下视频出现缓冲则显示loding
|
||||
// #ifdef H5
|
||||
uni.showLoading()
|
||||
@@ -516,7 +516,7 @@
|
||||
|
||||
},
|
||||
//生成失败
|
||||
posterError() {
|
||||
posterErrorDEghTTorsp() {
|
||||
this.haibaoImg = ''
|
||||
this.showImg = false
|
||||
// 生成完成后初始化分享
|
||||
@@ -533,14 +533,14 @@
|
||||
/**
|
||||
* @param {String} path //返回的二维码地址
|
||||
*/
|
||||
qrR(path) {
|
||||
qrRDEghTTorsp(path) {
|
||||
this.qrCodeData = path
|
||||
this.haibaoShow = true
|
||||
},
|
||||
/**生成成功
|
||||
* @param {String} img 成功回调的图片
|
||||
*/
|
||||
posterSuccess(img) {
|
||||
posterSuccessDEghTTorsp(img) {
|
||||
console.log(img)
|
||||
this.haibaoImg = img.tempFilePath
|
||||
this.showImg = true
|
||||
@@ -557,7 +557,7 @@
|
||||
});
|
||||
},
|
||||
//分享
|
||||
share(item) {
|
||||
shareDEghTTorsp(item) {
|
||||
this.imgSrc = item.titleImg
|
||||
let qdCode = ""
|
||||
if (uni.getStorageSync('qdCode')) {
|
||||
@@ -599,23 +599,23 @@
|
||||
// #endif
|
||||
},
|
||||
// 跳转资源详情
|
||||
goCourse(e, courseDetailsId) {
|
||||
goCourseDEghTTorsp(e, courseDetailsId) {
|
||||
let userId = uni.getStorageSync('userId')
|
||||
if (userId) {
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/index/course/courseDet?id=' + e
|
||||
// url: '/pages/index/mggghRAnkh/courseDet?id=' + e
|
||||
// });
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + e + '&courseDetailsId=' + courseDetailsId
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
},
|
||||
//收藏
|
||||
shoucang(item) {
|
||||
shoucangDEghTTorsp(item) {
|
||||
if (uni.getStorageSync('token')) {
|
||||
let data = {
|
||||
courseId: item.courseId,
|
||||
@@ -634,12 +634,12 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
},
|
||||
//点赞
|
||||
dianzan(item) {
|
||||
dianzanDEghTTorsp(item) {
|
||||
if (uni.getStorageSync('token')) {
|
||||
let data = {
|
||||
courseId: item.courseId,
|
||||
@@ -660,13 +660,13 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
// 资源详情
|
||||
getDataList() {
|
||||
getDataListDEghTTorsp() {
|
||||
let data = {
|
||||
page: this.page,
|
||||
limit: this.limit,
|
||||
@@ -707,12 +707,12 @@
|
||||
|
||||
if (uni.getStorageSync('token')) { //如果有token则插入
|
||||
//插入历史记录
|
||||
this.setHistor(this.videoList[this.current].courseId, this.videoList[this
|
||||
this.setHistorDEghTTorsp(this.videoList[this.current].courseId, this.videoList[this
|
||||
.current]
|
||||
.courseDetailsId)
|
||||
}
|
||||
}
|
||||
this.getsrc(this.videoList[this.current].videoUrl, this.videoList[this.current]
|
||||
this.getsrcDEghTTorsp(this.videoList[this.current].videoUrl, this.videoList[this.current]
|
||||
.wxCourseDetailsId)
|
||||
this.$forceUpdate()
|
||||
}
|
||||
@@ -727,7 +727,7 @@
|
||||
})
|
||||
},
|
||||
//记录观看记录
|
||||
setHistor(courseId, courseDetailsId) {
|
||||
setHistorDEghTTorsp(courseId, courseDetailsId) {
|
||||
//如果没有登录则不进行记录直接return
|
||||
if (!uni.getStorageSync('token')) {
|
||||
return
|
||||
@@ -741,7 +741,7 @@
|
||||
this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
|
||||
},
|
||||
//swiper上下切换事件
|
||||
change(e) {
|
||||
changeDEghTTorsp(e) {
|
||||
//拿出当前的swiper索引
|
||||
let current = Number(e.detail.current)
|
||||
//考虑向上滑动的时候
|
||||
@@ -842,22 +842,22 @@
|
||||
this.scrollIntoView = 'video' + scrollIndex;
|
||||
this.current = current
|
||||
this.$nextTick(() => {
|
||||
this.getsrc(this.videoList[this.current].videoUrl, this.videoList[this.current]
|
||||
this.getsrcDEghTTorsp(this.videoList[this.current].videoUrl, this.videoList[this.current]
|
||||
.wxCourseDetailsId)
|
||||
//插入历史记录
|
||||
this.setHistor(this.videoList[this.current].courseId, this.videoList[this.current]
|
||||
this.setHistorDEghTTorsp(this.videoList[this.current].courseId, this.videoList[this.current]
|
||||
.courseDetailsId)
|
||||
// 把选择的视频的自动播放设置为true
|
||||
this.videoList[this.current].autoPlay = true
|
||||
//让当前选择的视频播放
|
||||
this.startPlay(this.current)
|
||||
this.startPlayDEghTTorsp(this.current)
|
||||
//更新视图
|
||||
this.$forceUpdate()
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
startPlay(current) {
|
||||
startPlayDEghTTorsp(current) {
|
||||
if (this.videoContext) { //判断之前是否有视频的上下文
|
||||
this.videoContext.stop();
|
||||
this.videoContext = null;
|
||||
@@ -878,7 +878,7 @@
|
||||
|
||||
},
|
||||
//在播放时候的回调
|
||||
videoPlay(videoId) {
|
||||
videoPlayDEghTTorsp(videoId) {
|
||||
this.$Request.getT('app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
@@ -916,7 +916,7 @@
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
.bs {
|
||||
.bsDEghTTorsp {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -924,12 +924,12 @@
|
||||
padding-bottom: 100rpx;
|
||||
}
|
||||
|
||||
.bs-title {
|
||||
.bsDEghTTorsp-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.bs-se {
|
||||
.bsDEghTTorsp-se {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #eeeeef;
|
||||
@@ -937,41 +937,41 @@
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.bs-se-i {
|
||||
.bsDEghTTorsp-se-i {
|
||||
width: 100rpx;
|
||||
padding: 16rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bsActive {
|
||||
.bsActiveDEghTTorsp {
|
||||
background-color: #ffffff;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
|
||||
.list {
|
||||
.listDEghTTorsp {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #202020;
|
||||
color: #ffffff;
|
||||
|
||||
.list-title {
|
||||
.listDEghTTorsp-title {
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
// padding-top: 30rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
|
||||
.list-title-icon {
|
||||
.listDEghTTorsp-title-icon {
|
||||
padding-left: 30rpx;
|
||||
padding-right: 30rpx;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.list-item {
|
||||
.listDEghTTorsp-item {
|
||||
padding: 0 30rpx;
|
||||
|
||||
.list-item-box {
|
||||
.listDEghTTorsp-item-box {
|
||||
width: 100%;
|
||||
line-height: 90rpx;
|
||||
background-color: #ffffff;
|
||||
@@ -984,19 +984,19 @@
|
||||
|
||||
}
|
||||
|
||||
.list-box {
|
||||
.listDEghTTorsp-box {
|
||||
width: 100%;
|
||||
height: calc(100% - 100rpx);
|
||||
}
|
||||
|
||||
.list-box-item {
|
||||
.listDEghTTorsp-box-item {
|
||||
width: calc(100% - 40rpx);
|
||||
|
||||
margin: 0 auto;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.list-box-item-l {
|
||||
.listDEghTTorsp-box-item-l {
|
||||
width: 140rpx;
|
||||
height: 100%;
|
||||
border-radius: 10rpx;
|
||||
@@ -1008,23 +1008,23 @@
|
||||
}
|
||||
}
|
||||
|
||||
.list-box-item-r {
|
||||
.listDEghTTorsp-box-item-r {
|
||||
width: calc(100% - 160rpx);
|
||||
height: 100%;
|
||||
color: #ffffff;
|
||||
font-size: 32rpx;
|
||||
|
||||
.list-box-item-r-title {
|
||||
.listDEghTTorsp-box-item-r-title {
|
||||
width: 100%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.list-box-item-r-titles {
|
||||
.listDEghTTorsp-box-item-r-titles {
|
||||
margin-top: 10rpx;
|
||||
|
||||
}
|
||||
|
||||
.list-box-item-r-content {
|
||||
.listDEghTTorsp-box-item-r-content {
|
||||
width: 100%;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
margin-top: 10rpx;
|
||||
|
||||
@@ -1,86 +1,86 @@
|
||||
<template>
|
||||
<view class="detail">
|
||||
<swiper @longpress="openBs()" :circular="false" class="swipers" @change="change" :current="current"
|
||||
<view class="detailDEghTTorsp">
|
||||
<swiper @longpress="openBsDEghTTorsp()" :circular="false" class="swipersDEghTTorsp" @change="changeDEghTTorsp" :current="current"
|
||||
:vertical="true" :indicator-dots="false" :autoplay="false" :interval="3000" :duration="300">
|
||||
<swiper-item class="swipers-item" v-for="(item,index) in videoList" :key="item.courseDetailsId">
|
||||
<view class="swipers-items">
|
||||
<swiper-item class="swipersDEghTTorsp-item" v-for="(item,index) in videoList" :key="item.courseDetailsId">
|
||||
<view class="swipersDEghTTorsp-items">
|
||||
<!-- 视频 -->
|
||||
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" object-fit="cover"
|
||||
<video :show-fullscreen-btn="false" @controlstoggle="controlstogglesDEghTTorsp" object-fit="cover"
|
||||
v-if="current === index && item.videoUrl" :play-strategy="2" :show-loading="true"
|
||||
codec="software" :muted="false" :show-center-play-btn="true" :loop="true" @ended="ended"
|
||||
@timeupdate="timeupdate"
|
||||
@play="videoPlay('myVideo'+item.courseDetailsId, item.courseDetailsId)"
|
||||
codec="software" :muted="false" :show-center-play-btn="true" :loop="true" @ended="endedDEghTTorsp"
|
||||
@timeupdate="timeupdateDEghTTorsp"
|
||||
@play="videoPlayDEghTTorsp('myVideo'+item.courseDetailsId, item.courseDetailsId)"
|
||||
:enable-progress-gesture="false" :poster="item.titleImg" :ref="'myVideo'+item.courseDetailsId"
|
||||
:id="'myVideo'+item.courseDetailsId" :src="item.videoUrl" :autoplay="item.autoPlay"
|
||||
class="swipers-items-video"></video>
|
||||
<image v-else :src="item.titleImg" class="swipers-items-imgsbg" mode="aspectFill">
|
||||
class="swipersDEghTTorsp-items-video"></video>
|
||||
<image v-else :src="item.titleImg" class="swipersDEghTTorsp-items-imgsbg" mode="aspectFill">
|
||||
</image>
|
||||
<!-- 右边操作 -->
|
||||
<view class="swipers-items-right" :style="rightTop" v-if="showControls">
|
||||
<view class="swipers-items-right-item">
|
||||
<view class="swipers-items-right-item-img" @click.stop="dianzan(item)">
|
||||
<image v-if="item.isGood!=null && item.isGood!=0" class="swipers-items-right-item-imgs"
|
||||
<view class="swipersDEghTTorsp-items-right" :style="rightTop" v-if="showControls">
|
||||
<view class="swipersDEghTTorsp-items-right-item">
|
||||
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="dianzanDEghTTorsp(item)">
|
||||
<image v-if="item.isGood!=null && item.isGood!=0" class="swipersDEghTTorsp-items-right-item-imgs"
|
||||
src="../../static/images/me/myLove_.png" mode=""></image>
|
||||
<image v-else class="swipers-items-right-item-imgs"
|
||||
<image v-else class="swipersDEghTTorsp-items-right-item-imgs"
|
||||
src="../../static/images/me/myLove.png" mode=""></image>
|
||||
</view>
|
||||
<view class="swipers-items-right-item-txt">
|
||||
<text class="swipers-items-right-item-txts">
|
||||
<view class="swipersDEghTTorsp-items-right-item-txt">
|
||||
<text class="swipersDEghTTorsp-items-right-item-txts">
|
||||
{{item.goodNum}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="swipers-items-right-item" @click="share()">
|
||||
<view class="swipers-items-right-item-img">
|
||||
<image class="swipers-items-right-item-imgs" src="../../static/images/me/share.png"
|
||||
<view class="swipersDEghTTorsp-items-right-item" @click="shareDEghTTorsp()">
|
||||
<view class="swipersDEghTTorsp-items-right-item-img">
|
||||
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/share.png"
|
||||
mode=""></image>
|
||||
</view>
|
||||
<view class="swipers-items-right-item-txt">
|
||||
<text class="swipers-items-right-item-txts">
|
||||
<view class="swipersDEghTTorsp-items-right-item-txt">
|
||||
<text class="swipersDEghTTorsp-items-right-item-txts">
|
||||
分享
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="swipers-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
|
||||
<view class="swipers-items-right-item-img" @click.stop="shoucang(item)">
|
||||
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian.png"
|
||||
<view class="swipersDEghTTorsp-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
|
||||
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="shoucangDEghTTorsp(item)">
|
||||
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/shuqian.png"
|
||||
mode=""></image>
|
||||
</view>
|
||||
<view class="swipers-items-right-item-txt">
|
||||
<text class="swipers-items-right-item-txts">
|
||||
<view class="swipersDEghTTorsp-items-right-item-txt">
|
||||
<text class="swipersDEghTTorsp-items-right-item-txts">
|
||||
追剧
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="swipers-items-right-item" v-else>
|
||||
<view class="swipers-items-right-item-img" @click.stop="shoucang(item)">
|
||||
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
|
||||
<view class="swipersDEghTTorsp-items-right-item" v-else>
|
||||
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="shoucangDEghTTorsp(item)">
|
||||
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
|
||||
mode=""></image>
|
||||
</view>
|
||||
<view class="swipers-items-right-item-txt">
|
||||
<text class="swipers-items-right-item-txts">
|
||||
<view class="swipersDEghTTorsp-items-right-item-txt">
|
||||
<text class="swipersDEghTTorsp-items-right-item-txts">
|
||||
已追
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 底部视频信息 -->
|
||||
<view class="swipers-items-btom" v-if="showControls">
|
||||
<view class="swipers-items-btom-box">
|
||||
<view class="swipersDEghTTorsp-items-btom" v-if="showControls">
|
||||
<view class="swipersDEghTTorsp-items-btom-box">
|
||||
<!-- 标题 -->
|
||||
<view class="swipers-items-btom-box-title">
|
||||
<text class="swipers-items-btom-box-titles">
|
||||
<view class="swipersDEghTTorsp-items-btom-box-title">
|
||||
<text class="swipersDEghTTorsp-items-btom-box-titles">
|
||||
{{item.title}}
|
||||
</text>
|
||||
</view>
|
||||
<!-- 介绍 -->
|
||||
<view v-if="item.content" class="swipers-items-btom-box-content">
|
||||
<text class="swipers-items-btom-box-contents">{{item.content}}</text>
|
||||
<view v-if="item.content" class="swipersDEghTTorsp-items-btom-box-content">
|
||||
<text class="swipersDEghTTorsp-items-btom-box-contents">{{item.content}}</text>
|
||||
</view>
|
||||
<!-- 集数 -->
|
||||
<view @click="goCourse(item.courseId,item.courseDetailsId)"
|
||||
class="swipers-items-btom-box-num">
|
||||
<text class="swipers-items-btom-box-nums">
|
||||
<view @click="goCourseDEghTTorsp(item.courseId,item.courseDetailsId)"
|
||||
class="swipersDEghTTorsp-items-btom-box-num">
|
||||
<text class="swipersDEghTTorsp-items-btom-box-nums">
|
||||
查看更多续集 >
|
||||
</text>
|
||||
</view>
|
||||
@@ -90,12 +90,12 @@
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<uni-popup ref="popupBs" :safe-area="true" background-color="#ffffff">
|
||||
<view class="bs">
|
||||
<text class="bs-title">倍速:</text>
|
||||
<view class="bs-se">
|
||||
<view class="bs-se-i" @click="BsChange(index)" :class="nowBs==index?'bsActive':''"
|
||||
<view class="bsDEghTTorsp">
|
||||
<text class="bsDEghTTorsp-title">倍速:</text>
|
||||
<view class="bsDEghTTorsp-se">
|
||||
<view class="bsDEghTTorsp-se-i" @click="BsChangeDEghTTorsp(index)" :class="nowBs==index?'bsActiveDEghTTorsp':''"
|
||||
v-for="(item,index) in subList" :key="index">
|
||||
<text class="bs-se-it">{{item.name}}</text>
|
||||
<text class="bsDEghTTorsp-se-it">{{item.name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -166,7 +166,7 @@
|
||||
if ((newData + 1) == (this.limit * this.page)) { //最后一条了
|
||||
if (this.page < this.pages) {
|
||||
this.page += 1
|
||||
this.getDataList()
|
||||
this.getDataListDEghTTorsp()
|
||||
}
|
||||
this.$forceUpdate()
|
||||
}
|
||||
@@ -187,7 +187,7 @@
|
||||
})
|
||||
this.page = 1
|
||||
this.randomNum = Math.floor(Math.random() * 33);
|
||||
this.getDataList()
|
||||
this.getDataListDEghTTorsp()
|
||||
},
|
||||
onHide() {
|
||||
try {
|
||||
@@ -205,7 +205,7 @@
|
||||
},
|
||||
methods: {
|
||||
//播放时的回掉
|
||||
videoPlay(videoId,courseDetailsId) {
|
||||
videoPlayDEghTTorsp(videoId,courseDetailsId) {
|
||||
this.courseDetailsId = courseDetailsId
|
||||
if ( !this.playFlag ) {
|
||||
this.playFlag = true
|
||||
@@ -220,7 +220,7 @@
|
||||
|
||||
},
|
||||
//播放进度变化回掉
|
||||
timeupdate(e) {
|
||||
timeupdateDEghTTorsp(e) {
|
||||
|
||||
if (e.detail.currentTime > e.detail.duration*0.9) {
|
||||
if ( this.playFlag) {
|
||||
@@ -237,16 +237,16 @@
|
||||
|
||||
},
|
||||
//显示/隐藏适配控制器的回调
|
||||
controlstoggles(e) {
|
||||
controlstogglesDEghTTorsp(e) {
|
||||
this.showControls = e.detail.show
|
||||
console.log(e.detail.show, '显示/隐藏控制栏')
|
||||
},
|
||||
//打开倍速弹框
|
||||
openBs() {
|
||||
openBsDEghTTorsp() {
|
||||
this.$refs.popupBs.open('bottom')
|
||||
},
|
||||
//切换倍速
|
||||
BsChange(index) {
|
||||
BsChangeDEghTTorsp(index) {
|
||||
this.nowBs = index
|
||||
this.videoContext.playbackRate(this.subList[index].num)
|
||||
this.$refs.popupBs.close()
|
||||
@@ -257,23 +257,23 @@
|
||||
})
|
||||
},
|
||||
// 跳转资源详情
|
||||
goCourse(e, courseDetailsId) {
|
||||
goCourseDEghTTorsp(e, courseDetailsId) {
|
||||
let userId = uni.getStorageSync('userId')
|
||||
if (userId) {
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/index/course/courseDet?id=' + e
|
||||
// url: '/pages/index/mggghRAnkh/courseDet?id=' + e
|
||||
// });
|
||||
uni.navigateTo({
|
||||
url: '/me/detail/detail?id=' + e + '&courseDetailsId=' + courseDetailsId
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
},
|
||||
//分享-复制app下载连接
|
||||
share() {
|
||||
shareDEghTTorsp() {
|
||||
let invitationCode = ''
|
||||
let qdCode = ''
|
||||
if (uni.getStorageSync('invitationCode')) {
|
||||
@@ -282,7 +282,7 @@
|
||||
if (uni.getStorageSync('qdCode')) {
|
||||
qdCode = uni.getStorageSync('qdCode')
|
||||
}
|
||||
let url = config.APIHOST2 + '/pages/login/registerApp?invitation=' + invitationCode + '&qdCode=' + qdCode
|
||||
let url = config.APIHOST2 + '/pages/ghtwwlkXYG/WVEtZeeghKApp?invitation=' + invitationCode + '&qdCode=' + qdCode
|
||||
uni.setClipboardData({
|
||||
data: url,
|
||||
success(res) {
|
||||
@@ -293,7 +293,7 @@
|
||||
})
|
||||
},
|
||||
//收藏
|
||||
shoucang(item) {
|
||||
shoucangDEghTTorsp(item) {
|
||||
if (uni.getStorageSync('token')) {
|
||||
let data = {
|
||||
courseId: item.courseId,
|
||||
@@ -312,14 +312,14 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
//点赞
|
||||
dianzan(item) {
|
||||
dianzanDEghTTorsp(item) {
|
||||
if (uni.getStorageSync('token')) {
|
||||
let data = {
|
||||
courseId: item.courseId,
|
||||
@@ -340,13 +340,13 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//swiper上下切换事件
|
||||
change(e) {
|
||||
changeDEghTTorsp(e) {
|
||||
console.log(e, '111111111111111111')
|
||||
this.showControls = true
|
||||
//拿出当前的swiper索引
|
||||
@@ -354,16 +354,16 @@
|
||||
this.scrollIntoView = 'video' + current
|
||||
this.$nextTick(() => {
|
||||
this.current = current
|
||||
this.startPlay(current)
|
||||
this.startPlayDEghTTorsp(current)
|
||||
})
|
||||
if (uni.getStorageSync('token')) {
|
||||
//插入历史记录
|
||||
this.setHistor(this.videoList[this.current].courseId, this.videoList[this.current].courseDetailsId);
|
||||
this.setHistorDEghTTorsp(this.videoList[this.current].courseId, this.videoList[this.current].courseDetailsId);
|
||||
}
|
||||
|
||||
},
|
||||
//控制播放
|
||||
startPlay(current) {
|
||||
startPlayDEghTTorsp(current) {
|
||||
if (this.videoContext) { //判断之前是否有视频的上下文
|
||||
this.videoContext.stop();
|
||||
this.videoContext = null;
|
||||
@@ -378,7 +378,7 @@
|
||||
this.$forceUpdate();
|
||||
})
|
||||
},
|
||||
ended() {
|
||||
endedDEghTTorsp() {
|
||||
if (this.current < this.videoList.length - 1) {
|
||||
this.current += 1
|
||||
}
|
||||
@@ -388,7 +388,7 @@
|
||||
* @param {Number} courseDetailsId 当前视频id
|
||||
* @param {boolean} type 是购买后返回的还是直接进来的
|
||||
*/
|
||||
getDataList() {
|
||||
getDataListDEghTTorsp() {
|
||||
let data = {
|
||||
page: this.page,
|
||||
limit: this.limit,
|
||||
@@ -419,7 +419,7 @@
|
||||
})
|
||||
if (uni.getStorageSync('token')) { //如果有token则插入
|
||||
//插入历史记录
|
||||
this.setHistor(this.videoList[this.current].courseId, this.videoList[this
|
||||
this.setHistorDEghTTorsp(this.videoList[this.current].courseId, this.videoList[this
|
||||
.current]
|
||||
.courseDetailsId)
|
||||
}
|
||||
@@ -439,7 +439,7 @@
|
||||
})
|
||||
},
|
||||
//插入观看记录
|
||||
setHistor(courseId, courseDetailsId) {
|
||||
setHistorDEghTTorsp(courseId, courseDetailsId) {
|
||||
let data = {
|
||||
courseId: courseId,
|
||||
courseDetailsId: courseDetailsId,
|
||||
@@ -453,7 +453,7 @@
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.bs {
|
||||
.bsDEghTTorsp {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
@@ -462,12 +462,12 @@
|
||||
|
||||
}
|
||||
|
||||
.bs-title {
|
||||
.bsDEghTTorsp-title {
|
||||
font-size: 24rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.bs-se {
|
||||
.bsDEghTTorsp-se {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
@@ -476,122 +476,122 @@
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.bs-se-it {
|
||||
.bsDEghTTorsp-se-it {
|
||||
font-size: 24rpx;
|
||||
width: 100rpx;
|
||||
padding: 16rpx 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bsActive {
|
||||
.bsActiveDEghTTorsp {
|
||||
background-color: #ffffff;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
|
||||
.detail {
|
||||
.detailDEghTTorsp {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
.swipers {
|
||||
.swipersDEghTTorsp {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.swipers-item {
|
||||
.swipersDEghTTorsp-item {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.swipers-items {
|
||||
.swipersDEghTTorsp-items {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
position: relative;
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
.swipers-items-video {
|
||||
.swipersDEghTTorsp-items-video {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.swipers-items-imgsbg {
|
||||
.swipersDEghTTorsp-items-imgsbg {
|
||||
width: 750rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.swipers-items-right {
|
||||
.swipersDEghTTorsp-items-right {
|
||||
position: absolute;
|
||||
width: 60rpx;
|
||||
top: 100rpx;
|
||||
right: 20rpx;
|
||||
}
|
||||
|
||||
.swipers-items-right-item {
|
||||
.swipersDEghTTorsp-items-right-item {
|
||||
width: 60rpx;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
|
||||
.swipers-items-right-item-img {
|
||||
.swipersDEghTTorsp-items-right-item-img {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.swipers-items-right-item-imgs {
|
||||
.swipersDEghTTorsp-items-right-item-imgs {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.swipers-items-right-item-txt {
|
||||
.swipersDEghTTorsp-items-right-item-txt {
|
||||
width: 60rpx;
|
||||
}
|
||||
|
||||
.swipers-items-right-item-txts {
|
||||
.swipersDEghTTorsp-items-right-item-txts {
|
||||
width: 60rpx;
|
||||
color: #ffffff;
|
||||
font-size: 24rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.swipers-items-btom {
|
||||
.swipersDEghTTorsp-items-btom {
|
||||
width: 750rpx;
|
||||
position: absolute;
|
||||
bottom: 100rpx;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box {
|
||||
.swipersDEghTTorsp-items-btom-box {
|
||||
width: 710rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-title {
|
||||
.swipersDEghTTorsp-items-btom-box-title {
|
||||
width: 710rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-titles {
|
||||
.swipersDEghTTorsp-items-btom-box-titles {
|
||||
width: 710rpx;
|
||||
color: #ffffff;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-content {
|
||||
.swipersDEghTTorsp-items-btom-box-content {
|
||||
width: 710rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-contents {
|
||||
.swipersDEghTTorsp-items-btom-box-contents {
|
||||
width: 710rpx;
|
||||
color: #ffffff;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-num {
|
||||
.swipersDEghTTorsp-items-btom-box-num {
|
||||
width: 750rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.swipers-items-btom-box-nums {
|
||||
.swipersDEghTTorsp-items-btom-box-nums {
|
||||
width: 710rpx;
|
||||
color: #ffffff;
|
||||
font-size: 30rpx;
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -239,7 +239,7 @@
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
url: '/pages/ghtwwlkXYG/wVghNzmqkQ'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user