zui.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <template>
  2. <view>
  3. <!-- 标题栏和状态栏占位符 -->
  4. <!-- <view class="titleNview-placing"> </view> -->
  5. <!-- <siginIn :sign_list="sign_list" :qdjl="qdjl" :tdsy="tdsy" @cksigin="cksigin" @click="getsigin"></siginIn> -->
  6. <view class="pd16_15 mt16">
  7. <view class="pd16_15" style="box-shadow: 0px 0px 20upx 0px rgba(0,0,0,0.2); border-radius: 20upx;">
  8. <view>
  9. <view class="flex alcenter space">
  10. <view class="flex alcenter">
  11. <!-- <image style="width: 40rpx;height: 40rpx;" :src="statics.zhuico[0]"></image> -->
  12. <text class="ft16 ftw600 cl-main">最近观看</text>
  13. </view>
  14. <navigator url="/pages/client/tuan/zjgk">
  15. <view class="ft14 cl-notice">更多</view>
  16. </navigator>
  17. </view>
  18. <view class="mt16 flex space">
  19. <block v-for="(value,key) in newsa" :key="key" v-if="key<3">
  20. <view class="box pb10" style="width:31%; position: relative; border-radius:20rpx;" @click="detail(value.vid,value.mid)">
  21. <!-- <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> -->
  22. <image class="integral-mall-goods" mode="aspectFill" :src="value.img"></image>
  23. <view class="mt8 plr10 ft14 ftw400 text-center text-over cl-main">{{value.vname}}</view>
  24. </view>
  25. </block>
  26. </view>
  27. </view>
  28. <view class="mt24">
  29. <view class="flex alcenter space">
  30. <view class="flex alcenter">
  31. <!-- <image style="width: 40rpx;height: 40rpx;" :src="statics.zhuico[0]"></image> -->
  32. <text class="ft16 ftw600 cl-main">我的追剧</text>
  33. </view>
  34. <navigator url="/pages/client/tuan/zjjl">
  35. <view class="ft14 cl-notice">更多</view>
  36. </navigator>
  37. </view>
  38. <view class="mt16">
  39. <block v-for="(value,key) in record" :key="key">
  40. <view @click="detail(value.vid,value.mid)" style="position: relative;" class="flex alcenter mb16">
  41. <image mode="aspectFill" class="tuan-product-l" :src="value.img"></image>
  42. <!-- <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> -->
  43. <view class="tuan-product-r pl15">
  44. <view class="ft16 ftw600 cl-main text-over2">{{value.vname}}</view>
  45. <view class="mt16">
  46. <text class="ft14 cl-orange">{{value.dqname}}</text>
  47. </view>
  48. <view class="mt16 flex space alcenter">
  49. <view class="ft14 cl-notice">{{value.mname}}</view>
  50. <view class="btn-vip-adviser ml15">继续观看</view>
  51. </view>
  52. </view>
  53. </view>
  54. </block>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. import siginIn from '@/components/fanxiao-sign/sigin-in.vue';
  63. export default{
  64. components: {
  65. siginIn
  66. },
  67. data(){
  68. return {
  69. qdjl:0,
  70. tdsy:0,
  71. navLock:false,
  72. datasa:[],
  73. showdyxx:true,
  74. dataconfig:[],
  75. banners:[],
  76. datainfo:[],
  77. dataindex:[],
  78. newsa:[],
  79. record:[],
  80. mbgColor:this.$mbgColor,
  81. sign_list: []
  82. }
  83. },
  84. computed:{
  85. },
  86. onPageScroll(e){
  87. },
  88. onShareAppMessage(e){
  89. },
  90. onShareTimeline(e){
  91. },
  92. onLoad(e){
  93. },
  94. onShow() {
  95. this.getList();
  96. let this_=this
  97. console.log(this.dataindex)
  98. },
  99. methods:{
  100. cksigin(){
  101. this.getList();
  102. },
  103. getsigin(e) {
  104. console.log('已点击签到------');
  105. },
  106. getList() {
  107. let this_=this
  108. let data = {};
  109. if(uni.getStorageSync("userinfo")){
  110. data.uid = uni.getStorageSync("userinfo").id;
  111. }
  112. uni.request({
  113. url: this.configs.webUrl+'/api/video/zuiju',
  114. data: data,
  115. success: data => {
  116. this.newsa=data.data.new
  117. this.record=data.data.record
  118. this.sign_list=data.data.getweek
  119. this.qdjl=data.data.qdjl
  120. this.tdsy=data.data.tdsy
  121. },
  122. fail: (data, code) => {
  123. }
  124. });
  125. },
  126. saoma(){
  127. //#ifdef APP-PLUS
  128. uni.scanCode({
  129. success: function (res) {
  130. if(res.result.indexOf("uid") != -1){
  131. var obj = JSON.parse(res.result);
  132. if(obj.uid){
  133. uni.navigateTo({
  134. url:'/pages/login/reg?uid='+obj.uid
  135. })
  136. }
  137. }else{
  138. uni.showToast({ title: res.result,icon:"none" });
  139. }
  140. }
  141. });
  142. //#endif
  143. },
  144. detail(vid,mid){
  145. var fxpid=1
  146. if(uni.getStorageSync("userinfo")){
  147. fxpid=uni.getStorageSync("userinfo").id
  148. }
  149. uni.navigateTo({
  150. url:'/pages/client/tuan/detail?vid='+vid+'&mid='+mid+'&fxpid='+fxpid
  151. })
  152. },
  153. linkTo(e){
  154. if(this.isLogin == false){
  155. this.showLogin = true;
  156. }else{
  157. let link = e.currentTarget.dataset.link;
  158. uni.navigateTo({
  159. url:link
  160. })
  161. }
  162. },
  163. exchange(e){
  164. if(this.isLogin == false){
  165. this.showLogin = true;
  166. }else{
  167. let id = e.currentTarget.dataset.id;
  168. uni.navigateTo({
  169. url:'/pages/client/integral/exchange?id='+id
  170. })
  171. }
  172. },
  173. },
  174. }
  175. </script>
  176. <style>
  177. .home-header{
  178. height: 300rpx;
  179. width: 100%;
  180. position: relative;
  181. border-radius: 0rpx 0rpx 48rpx 48rpx;
  182. }
  183. .home-main{
  184. width: 100%;
  185. position: relative;
  186. margin-top: -156rpx;
  187. padding: 0 30rpx;
  188. }
  189. .home-mendian{
  190. width: 100%;
  191. height: 84rpx;
  192. background:rgba(255,255,255,0.1);
  193. border-radius: 42rpx;
  194. }
  195. .integral-mall-header{
  196. position: relative;
  197. height: 320rpx;
  198. }
  199. .integral-mall-header .bg{
  200. width: 100%;
  201. height: 320rpx;
  202. }
  203. .integral-mall-header .main{
  204. position: absolute;
  205. left: 0;
  206. top: 0;
  207. width: 100%;
  208. height: 320rpx;
  209. }
  210. .swiper-integral{
  211. height: 32rpx;
  212. width: 100%;
  213. }
  214. .integral-mall-main{
  215. position: relative;
  216. /* margin-top: -104rpx; */
  217. }
  218. .integal-mall-menu{
  219. width: 100%;
  220. height: 190rpx;
  221. background: #FFFFFF;
  222. border-radius: 20rpx;
  223. }
  224. .integral-tuan-l{
  225. width: 100%;
  226. height: 280rpx;
  227. background: #f2f2f2;
  228. border-radius: 16rpx;
  229. }
  230. .integral-mall-coupon{
  231. background: #FFFFFF;
  232. position: relative;
  233. border-radius: 16rpx;
  234. overflow: hidden;
  235. }
  236. .integral-mall-coupon .top{
  237. padding: 0rpx 0rpx 24rpx 0rpx;
  238. border-bottom: 2rpx dashed #FEC675;
  239. }
  240. .integral-mall-coupon .y-l,.integral-mall-coupon .y-r{
  241. width: 20rpx;
  242. height: 20rpx;
  243. border-radius: 10rpx;
  244. background: #F5F6FA;
  245. position: absolute;
  246. z-index: 2;
  247. top: 284rpx;
  248. }
  249. .integral-mall-coupon .y-l{
  250. left: -10rpx;
  251. }
  252. .integral-mall-coupon .y-r{
  253. right: -10rpx;
  254. }
  255. .integral-mall-coupon .coupon-value{
  256. width: 100%;
  257. }
  258. .integral-mall-coupon .coupon-value image{
  259. width: 100%;
  260. }
  261. .integral-mall-coupon .coupon-value .num{
  262. width: 100%;
  263. height: 64rpx;
  264. display: flex;
  265. justify-content: center;
  266. align-items: center;
  267. position: absolute;
  268. left: 0;
  269. top: 0;
  270. }
  271. .integral-mall-goods{
  272. width: 100%;
  273. height: 280rpx;
  274. background: #F2F2F2;
  275. border-radius: 16upx;
  276. }
  277. .titleNview-placing {
  278. height: var(--status-bar-height);
  279. padding-top: 44px;
  280. box-sizing: content-box;
  281. }
  282. .tuan-product-l{
  283. width: 150rpx;
  284. height: 200rpx;
  285. border-radius: 16rpx;
  286. background: #F2F2F2;
  287. }
  288. .tuan-product-r{
  289. width: calc(100% - 150rpx);
  290. }
  291. .btn-vip-adviser{
  292. width: 150rpx;
  293. height: 60rpx;
  294. border-radius: 20rpx;
  295. display: flex;
  296. justify-content: center;
  297. align-items: center;
  298. font-size: 28rpx;
  299. /* font-weight: 600; */
  300. background: #FF6600;
  301. color:#FFFFFF;
  302. }
  303. </style>