123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <template>
- <view>
- <view class="body">
- <view class="pd16_15" style="box-shadow: 0px 0px 20upx 0px rgba(0,0,0,0.2); border-radius: 20upx;">
- <view>
- <view class="flex alcenter space">
- <view class="flex alcenter">
- <text class="ft16 ftw600 cl-main">最近观看</text>
- </view>
- <view class="ft14 cl-notice" v-if="historyList.length > 0" @click="changeList" >{{more_text}}</view>
- </view>
- <view class="mt16 flex space" v-if="historyList.length > 0" >
- <block v-for="(value,key) in newsa" :key="key" v-if="key<3">
- <view class="box pb10" style="width:31%; position: relative; border-radius:20rpx;" @click="detail(value.vid,value.mid)">
- <view class="btn-mini" style="position: absolute; top: 20upx; right: 20upx; border-radius: 10upx;font-size: 18upx;width: 60upx; height: 36upx; z-index: 1;" :style="getBtnStyle">{{value.lxname}}</view>
- <image class="integral-mall-goods" mode="aspectFill" :src="value.img"></image>
- <view class="mt8 plr10 ft14 ftw400 text-center text-over cl-main">{{value.vname}}</view>
- </view>
- </block>
-
- </view>
- <view class="mt16 flex space" v-if="historyList.length < 1" >
- <block>
- <view class="box pb10" style="width:31%; position: relative; border-radius:20rpx;">
-
- </view>
- </block>
- </view>
- </view>
- <view class="mt24">
- <view class="flex alcenter space">
- <view class="flex alcenter">
- <text class="ft16 ftw600 cl-main">我的追剧</text>
- </view>
- <navigator url="/pages/client/tuan/zjjl">
- <!-- <view class="ft14 cl-notice">更多</view> -->
- </navigator>
- </view>
- <view class="mt16">
- <block v-for="(value,key) in record" :key="key">
- <view @click="detail(value.vid,value.mid)" style="position: relative;" class="flex alcenter mb16">
- <image mode="aspectFill" class="tuan-product-l" :src="value.img"></image>
- <!-- <view class="btn-mini" style="position: absolute; top: 40upx; left: 280upx; border-radius: 10upx;font-size: 18upx;width: 60upx; height: 36upx;" :style="getBtnStyle">{{value.lxname}}</view> -->
- <view class="tuan-product-r pl15">
- <view class="ft16 ftw600 cl-main text-over2">{{value.vname}}</view>
- <view class="mt16">
- <text class="ft14 cl-orange">{{value.dqname}}</text>
- </view>
- <view class="mt16 flex space alcenter">
- <view class="ft14 cl-notice">{{value.mname}}</view>
- <view class="btn-vip-adviser ml15">继续观看</view>
- </view>
- </view>
- </view>
- </block>
- </view>
- <view class="mt16">
-
- </view>
- </view>
- </view>
-
- </view>
- </view>
- </template>
- <script>
- import siginIn from '@/components/fanxiao-sign/sigin-in.vue';
- export default{
- components: {
- siginIn
- },
- data(){
- return {
- more_text:"查看全部",
- qdjl:0,
- tdsy:0,
- navLock:false,
- datasa:[],
- showdyxx:true,
- dataconfig:[],
- banners:[],
- datainfo:[],
- dataindex:[],
- newsa:[],
- record:[],
- historyList:[],
- zhuijuLits:[],
- mbgColor:this.$mbgColor,
-
- is_show_more:false,
- }
- },
- computed:{
-
- },
- onPageScroll(e){
-
- },
- onShareAppMessage(e){
-
- },
- onShareTimeline(e){
-
- },
- onLoad(e){
- },
- onShow() {
- this.getList();
- let this_=this
- console.log(this.dataindex)
- },
- methods:{
- cksigin(){
- this.getList();
- },
- getsigin(e) {
- console.log('已点击签到------');
- },changeList(){
- if(this.is_show_more){
- this.more_text = "收起";
- }else{
- this.more_text = "查看全部"
- }
- this.is_show_more = !this.is_show_more;
- },
- getList() {
- let this_=this
- let data = {};
- if(uni.getStorageSync("userinfo")){
- data.uid = uni.getStorageSync("userinfo").id;
- }
- uni.request({
- url: this.configs.webUrl+'/api/video/zuiju',
- data: data,
- success: data => {
- this.newsa=data.data.new
- this.record=data.data.record
- this.sign_list=data.data.getweek
- this.qdjl=data.data.qdjl
- this.tdsy=data.data.tdsy
- },
- fail: (data, code) => {
- }
- });
- },
- saoma(){
- //#ifdef APP-PLUS
- uni.scanCode({
- success: function (res) {
- if(res.result.indexOf("uid") != -1){
- var obj = JSON.parse(res.result);
- if(obj.uid){
- uni.navigateTo({
- url:'/pages/login/reg?uid='+obj.uid
- })
- }
- }else{
- uni.showToast({ title: res.result,icon:"none" });
- }
- }
- });
- //#endif
-
- },
- detail(vid,mid){
- var fxpid=1
- if(uni.getStorageSync("userinfo")){
- fxpid=uni.getStorageSync("userinfo").id
- }
- uni.navigateTo({
- url:'/pages/client/tuan/detail?vid='+vid+'&mid='+mid+'&fxpid='+fxpid
- })
- },
- linkTo(e){
- if(this.isLogin == false){
- this.showLogin = true;
- }else{
- let link = e.currentTarget.dataset.link;
- uni.navigateTo({
- url:link
- })
- }
- },
-
- exchange(e){
- if(this.isLogin == false){
- this.showLogin = true;
- }else{
- let id = e.currentTarget.dataset.id;
- uni.navigateTo({
- url:'/pages/client/integral/exchange?id='+id
- })
- }
- },
- },
- }
- </script>
- <style>
- @import url("style/zui.css");
- </style>
|