index.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <template class="body">
  2. <view class="uni-main">
  3. <cover-view class="uni-header">
  4. <view class="uni-header-box">
  5. <img @click="backHome()" class="back" src="../../../static/index/icon/buddha_back.png" width="16">
  6. <text class="text_title">超度</text>
  7. </view>
  8. <img class="right_menu" src="../../../static/index/icon/menu_more_white.png" width="40">
  9. </cover-view>
  10. <cover-view v-show="k==curIndex" :class="'uni-desk '+ k" v-for="(v,k) in foList" :key="k">
  11. <view class="uni-desk-box">
  12. <view class="fo">
  13. <img src="" alt="">
  14. </view>
  15. <cover-view class="gf">
  16. <img v-if="xiuxingStatus" class="hua" src="../../../static/index/qifu/xiuxing_huaping.png" alt="">
  17. <img v-else class="hua" src="../../../static/index/qifu/xiuxing_huaping_2.png" alt="">
  18. <img v-if="xiuxingStatus" class="guo" src="../../../static/index/qifu/xiuxing_fruit_panzi.png" alt="">
  19. <img v-else class="guo" src="../../../static/index/qifu/xiuxing_fruit_panzi_1.png" alt="">
  20. <text class="lz">
  21. <img class="zhutai" src="../../../static/index/qifu/xiuxing_zhutai_no.png" alt="">
  22. </text>
  23. <text class="xiang-box">
  24. <img class="xiang-icon" src="../../../static/index/chaodu/foxiang_dizang1.png" width="80">
  25. <img class="paiwei-icon" src="../../../static/index/chaodu/chao_du_pai.png" width="80">
  26. <img v-if="xiuxingStatus" class="xiang" src="../../../static/index/qifu/xiuxing/xiuxing_xiang_2.png" alt="">
  27. <img v-else class="xiang" src="../../../static/index/qifu/xiuxing/xiuxing_xiang.png" alt="">
  28. <img class="cup" src="../../../static/index/qifu/cup_no_tea.png" width="60">
  29. </text>
  30. <text class="lz">
  31. <img class="zhutai" src="../../../static/index/qifu/xiuxing_zhutai_no.png" alt="">
  32. </text>
  33. <img v-if="xiuxingStatus" class="guo" src="../../../static/index/qifu/xiuxing_fruit_panzi.png" alt="">
  34. <img v-else class="guo" src="../../../static/index/qifu/xiuxing_fruit_panzi_1.png" alt="">
  35. <img v-if="xiuxingStatus" class="hua" src="../../../static/index/qifu/xiuxing_huaping.png" alt="">
  36. <img v-else class="hua" src="../../../static/index/qifu/xiuxing_huaping_2.png" alt="">
  37. </cover-view>
  38. </view>
  39. </cover-view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. curIndex: 'xiang_1',
  47. xiuxingStatus: false,
  48. foList: {
  49. xiang_1: {
  50. fo_url: '',
  51. pingzi: '',
  52. guo: '',
  53. xiuxing: '',
  54. cup: '',
  55. xiang: '',
  56. },
  57. xiang_2: {
  58. fo_url: '',
  59. pingzi: '',
  60. guo: '',
  61. xiuxing: '',
  62. cup: '',
  63. xiang: '',
  64. },
  65. },
  66. }
  67. },
  68. onLoad() {
  69. let _uni = this;
  70. //
  71. setInterval(function(){
  72. _uni.xiuxingStatus = _uni.xiuxingStatus? false : true;
  73. }, 800)
  74. },
  75. methods: {
  76. backHome() {
  77. uni.navigateBack({
  78. delta: 1
  79. });
  80. },
  81. switchIndex(){
  82. console.log(this.curIndex)
  83. this.curIndex = this.curIndex == 'xiang_1'? 'xiang_2' : 'xiang_1'
  84. },
  85. }
  86. }
  87. </script>
  88. <style>
  89. page {
  90. height: 100%;
  91. padding: 0;
  92. margin: 0;
  93. }
  94. .uni-main {
  95. width: 100%;
  96. height: 100%;
  97. min-height: 800rpx;
  98. display: block;
  99. /*
  100. background: url('../../../static/index/qifu/bg1.jpg') no-repeat 100%/100% #f5c163;
  101. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  102. */
  103. background: url(../../../static/index/qifu/bg1.jpg) no-repeat center 100%/100% #f5c163;
  104. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  105. background-size: cover;
  106. }
  107. .uni-header {
  108. height: 80rpx;
  109. line-height: 80rpx;
  110. padding: 10rpx 20rpx;
  111. position: relative;
  112. display: flex;
  113. top: 0;
  114. align-items: center;
  115. overflow: visible;
  116. }
  117. .uni-header-box {
  118. width: 100%;
  119. display: inline-block;
  120. }
  121. .uni-header-box .text_title {
  122. color: #FFFFFF;
  123. font-size: 40rpx;
  124. margin-left: 20rpx;
  125. }
  126. .uni-header .right_menu {
  127. float: right;
  128. }
  129. .uni-header .music_icon {
  130. position: absolute;
  131. bottom: -126rpx;
  132. right: 20rpx;
  133. }
  134. .uni-action-btn {
  135. margin-top: 70%;
  136. position: relative;
  137. overflow: visible;
  138. }
  139. .uni-action-btn img {
  140. width: 44rpx;
  141. }
  142. .uni-action-btn .left_btn {
  143. margin-left: 56rpx;
  144. }
  145. .uni-action-btn .right_btn {
  146. float: right;
  147. margin-right: 58rpx;
  148. }
  149. .uni-action-btn .right_row {
  150. width: 40rpx;
  151. position: absolute;
  152. right: 10rpx;
  153. bottom: -40rpx;
  154. }
  155. .uni-action-btn .left_row {
  156. width: 40rpx;
  157. position: absolute;
  158. left: 10rpx;
  159. bottom: -40rpx;
  160. }
  161. .uni-desk {
  162. overflow: visible;
  163. position: absolute;
  164. bottom: 0rpx;
  165. width: 100%;
  166. }
  167. .uni-desk-box {
  168. margin: 0 auto;
  169. width: 480rpx;
  170. height: 320rpx;
  171. background: url('../../../static/index/chaodu/fo_tang_tribute_bg.png') no-repeat center/103%;
  172. position: relative;
  173. overflow: visible;
  174. }
  175. .uni-desk-box .gf {
  176. position: relative;
  177. top: -62rpx;
  178. margin-left: -16rpx;
  179. overflow: visible;
  180. }
  181. .uni-desk-box .gf .xiang-box {
  182. width: 120rpx;
  183. position: relative;
  184. overflow: visible;
  185. }
  186. .uni-desk-box .gf .xiang-box img {
  187. position: relative;
  188. z-index: 2;
  189. }
  190. .uni-desk-box .gf img.xiang-icon {
  191. position: absolute;
  192. bottom: 72rpx;
  193. width: 720rpx;
  194. z-index: 0;
  195. right: 0;
  196. left: -300rpx;
  197. }
  198. .uni-desk-box .gf img.paiwei-icon {
  199. position: absolute;
  200. bottom: -4rpx;
  201. width: 250rpx;
  202. z-index: 0;
  203. right: 0;
  204. left: -62rpx;
  205. }
  206. .uni-desk-box .gf .xiang {
  207. width: 120rpx;
  208. margin: 0 auto;
  209. position: relative;
  210. margin-bottom: -20rpx;
  211. z-index: 2;
  212. /* width: 100%; */
  213. }
  214. .uni-desk-box .gf .hua {
  215. width: 70rpx;
  216. position: relative;
  217. margin-bottom: -10rpx;
  218. z-index: 2;
  219. }
  220. .uni-desk-box .gf .guo {
  221. width: 80rpx;
  222. margin-bottom: -20rpx;
  223. position: relative;
  224. z-index: 2;
  225. }
  226. .uni-desk-box .gf img.cup {
  227. width: 120rpx;
  228. position: absolute;
  229. bottom: -24rpx;
  230. right: 0;
  231. left: 0;
  232. margin: auto;
  233. z-index: 2;
  234. }
  235. .uni-desk-box .gf .zhutai {
  236. width: 40rpx;
  237. margin-bottom: -28rpx;
  238. position: relative;
  239. z-index: 2;
  240. }
  241. @media screen and (max-width: 414px) {
  242. .uni-desk-box .gf {
  243. top: -62rpx;
  244. }
  245. }
  246. </style>