zui.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <template>
  2. <view>
  3. <view class="body">
  4. <view class="pd16_15" style="box-shadow: 0px 0px 20upx 0px rgba(0,0,0,0.2); border-radius: 20upx;">
  5. <view>
  6. <view class="flex alcenter space">
  7. <view class="flex alcenter">
  8. <text class="ft16 ftw600 cl-main">最近观看</text>
  9. </view>
  10. <view class="ft14 cl-notice" v-if="historyList.length > 0" @click="changeList" >{{more_text}}</view>
  11. </view>
  12. <view class="mt16 flex space" v-if="historyList.length > 0" >
  13. <block v-for="(value,key) in newsa" :key="key" v-if="key<3">
  14. <view class="box pb10" style="width:31%; position: relative; border-radius:20rpx;" @click="detail(value.vid,value.mid)">
  15. <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>
  16. <image class="integral-mall-goods" mode="aspectFill" :src="value.img"></image>
  17. <view class="mt8 plr10 ft14 ftw400 text-center text-over cl-main">{{value.vname}}</view>
  18. </view>
  19. </block>
  20. </view>
  21. <view class="mt16 flex space" v-if="historyList.length < 1" >
  22. <block>
  23. <view class="box pb10" style="width:31%; position: relative; border-radius:20rpx;">
  24. </view>
  25. </block>
  26. </view>
  27. </view>
  28. <view class="mt24">
  29. <view class="flex alcenter space">
  30. <view class="flex alcenter">
  31. <text class="ft16 ftw600 cl-main">我的追剧</text>
  32. </view>
  33. <navigator url="/pages/client/tuan/zjjl">
  34. <!-- <view class="ft14 cl-notice">更多</view> -->
  35. </navigator>
  36. </view>
  37. <view class="mt16">
  38. <block v-for="(value,key) in record" :key="key">
  39. <view @click="detail(value.vid,value.mid)" style="position: relative;" class="flex alcenter mb16">
  40. <image mode="aspectFill" class="tuan-product-l" :src="value.img"></image>
  41. <!-- <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> -->
  42. <view class="tuan-product-r pl15">
  43. <view class="ft16 ftw600 cl-main text-over2">{{value.vname}}</view>
  44. <view class="mt16">
  45. <text class="ft14 cl-orange">{{value.dqname}}</text>
  46. </view>
  47. <view class="mt16 flex space alcenter">
  48. <view class="ft14 cl-notice">{{value.mname}}</view>
  49. <view class="btn-vip-adviser ml15">继续观看</view>
  50. </view>
  51. </view>
  52. </view>
  53. </block>
  54. </view>
  55. <view class="mt16">
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </template>
  62. <script>
  63. import siginIn from '@/components/fanxiao-sign/sigin-in.vue';
  64. export default{
  65. components: {
  66. siginIn
  67. },
  68. data(){
  69. return {
  70. more_text:"查看全部",
  71. qdjl:0,
  72. tdsy:0,
  73. navLock:false,
  74. datasa:[],
  75. showdyxx:true,
  76. dataconfig:[],
  77. banners:[],
  78. datainfo:[],
  79. dataindex:[],
  80. newsa:[],
  81. record:[],
  82. historyList:[],
  83. zhuijuLits:[],
  84. mbgColor:this.$mbgColor,
  85. is_show_more:false,
  86. }
  87. },
  88. computed:{
  89. },
  90. onPageScroll(e){
  91. },
  92. onShareAppMessage(e){
  93. },
  94. onShareTimeline(e){
  95. },
  96. onLoad(e){
  97. },
  98. onShow() {
  99. this.getList();
  100. let this_=this
  101. console.log(this.dataindex)
  102. },
  103. methods:{
  104. cksigin(){
  105. this.getList();
  106. },
  107. getsigin(e) {
  108. console.log('已点击签到------');
  109. },changeList(){
  110. if(this.is_show_more){
  111. this.more_text = "收起";
  112. }else{
  113. this.more_text = "查看全部"
  114. }
  115. this.is_show_more = !this.is_show_more;
  116. },
  117. getList() {
  118. let this_=this
  119. let data = {};
  120. if(uni.getStorageSync("userinfo")){
  121. data.uid = uni.getStorageSync("userinfo").id;
  122. }
  123. uni.request({
  124. url: this.configs.webUrl+'/api/video/zuiju',
  125. data: data,
  126. success: data => {
  127. this.newsa=data.data.new
  128. this.record=data.data.record
  129. this.sign_list=data.data.getweek
  130. this.qdjl=data.data.qdjl
  131. this.tdsy=data.data.tdsy
  132. },
  133. fail: (data, code) => {
  134. }
  135. });
  136. },
  137. saoma(){
  138. //#ifdef APP-PLUS
  139. uni.scanCode({
  140. success: function (res) {
  141. if(res.result.indexOf("uid") != -1){
  142. var obj = JSON.parse(res.result);
  143. if(obj.uid){
  144. uni.navigateTo({
  145. url:'/pages/login/reg?uid='+obj.uid
  146. })
  147. }
  148. }else{
  149. uni.showToast({ title: res.result,icon:"none" });
  150. }
  151. }
  152. });
  153. //#endif
  154. },
  155. detail(vid,mid){
  156. var fxpid=1
  157. if(uni.getStorageSync("userinfo")){
  158. fxpid=uni.getStorageSync("userinfo").id
  159. }
  160. uni.navigateTo({
  161. url:'/pages/client/tuan/detail?vid='+vid+'&mid='+mid+'&fxpid='+fxpid
  162. })
  163. },
  164. linkTo(e){
  165. if(this.isLogin == false){
  166. this.showLogin = true;
  167. }else{
  168. let link = e.currentTarget.dataset.link;
  169. uni.navigateTo({
  170. url:link
  171. })
  172. }
  173. },
  174. exchange(e){
  175. if(this.isLogin == false){
  176. this.showLogin = true;
  177. }else{
  178. let id = e.currentTarget.dataset.id;
  179. uni.navigateTo({
  180. url:'/pages/client/integral/exchange?id='+id
  181. })
  182. }
  183. },
  184. },
  185. }
  186. </script>
  187. <style>
  188. @import url("style/zui.css");
  189. </style>