更改随机名字
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user