integral_list.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <template>
  2. <view class="dt-page">
  3. <view class="hd-wrap">
  4. <image class="hd-bg" src="http://139.9.103.171:1888/img/image/integral_hd.png" mode="aspectFill"></image>
  5. <view class="point-wrap" @tap="tapExplain">
  6. <image class="icon" src="http://139.9.103.171:1888/img/image/explain.png" mode="aspectFit"></image>
  7. <text>积分说明</text>
  8. </view>
  9. <view class="hd-mn">
  10. <view>我的积分</view>
  11. <view class="value">8382</view>
  12. </view>
  13. </view>
  14. <view class="mn-wrap">
  15. <view v-for="(item,idx) in dataList" :key="idx" class="item">
  16. <view class="lt">
  17. <view class="title">{{item.title}}</view>
  18. <view class="date">{{item.date}}</view>
  19. </view>
  20. <view class="rt">
  21. <view v-if="item.value>0" class="dt-color-primary">+{{item.value|moneyEx}}</view>
  22. <view v-else class="dt-color-error">{{item.value|moneyEx}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 说明 -->
  27. <view class="description" v-if="isShowDescription" @tap="closeToast">
  28. <view class="description-box" @tap.native.stop="showDescriptionClick">
  29. <view class="description-title">积分说明</view>
  30. <scroll-view scroll-y class="description-scroll-view">
  31. <view class="description-content">
  32. 1.会员通过现金、银行卡、网上移动端支付等方式实际支付的金额,按1元人民币=1积分的方式累计积分。例如,如果会员实际支付人民币500元,可获得500积分。\n\n2.以下情况不积分:促销活动礼品或赠品\n\n3.如果会员对是否发生“不诚实交易行为”有疑义的,应在10个工作日内向客服提出并提交相关举证材料,我们将在10个工作日内告知处理结果。\n\n7.积分不得转移、转让或赠送给第三人。\n\n8.积分不能找零或偿还。已经使用的用于积分兑换的积分,不可变更。\n\n9.FILA有权视情况对积分规则进行修订。FILA将通过官方渠道更新信息并告知会员。如果FILA认定变更事项会对会员权益产生重大影响的,FILA应通过官方途径提前30天通知会员。\n\n积分有效期:积分产生之日起365天,过期前30天会通过FILA VIP微信号提醒会员积分即将到期。
  33. </view>
  34. </scroll-view>
  35. <button class="btn-submit" @tap="closeToast">我知道了</button>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. import DtDialog from '../comps/dt_dialog.vue'
  42. export default {
  43. components:{
  44. DtDialog
  45. },
  46. data(){
  47. return {
  48. isShowDescription:true,
  49. dataList:[
  50. {
  51. title:'赠送',
  52. value:20.50,
  53. date:'2018-01-26 12:33:54'
  54. },
  55. {
  56. title:'兑换《霹雳娇娃》电影票',
  57. value:-65.84,
  58. date:'2018-01-26 12:33:54'
  59. },
  60. {
  61. title:'赠送',
  62. value:20.50,
  63. date:'2018-01-26 12:33:54'
  64. },
  65. ]
  66. }
  67. },
  68. methods:{
  69. showDescriptionClick(){},
  70. tapExplain(){
  71. this.isShowDescription = true
  72. },
  73. closeToast(){
  74. this.isShowDescription = false
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="scss" scoped>
  80. .dt-page{
  81. min-height:100vh;
  82. background-color:#f2f2f2;
  83. .hd-wrap{
  84. position:relative;
  85. width:100%;
  86. height:200upx;
  87. .hd-bg{
  88. position:absolute;
  89. top:0;
  90. left:0;
  91. width:100%;
  92. height:100%;
  93. }
  94. .point-wrap{
  95. position:absolute;
  96. top:0;
  97. right:0;
  98. padding:20upx 30upx;
  99. display:flex;
  100. align-items: center;
  101. font-size:20upx;
  102. font-weight:500;
  103. color:#fff;
  104. z-index:6;
  105. .icon{
  106. margin-right:10upx;
  107. width:20upx;
  108. height:20upx;
  109. }
  110. }
  111. .hd-mn{
  112. position:relative;
  113. display:flex;
  114. flex-direction: column;
  115. justify-content: center;
  116. align-items: center;
  117. width:100%;
  118. height:100%;
  119. font-size:24upx;
  120. font-weight:500;
  121. color:#fff;
  122. line-height: 1;
  123. z-index:2;
  124. .value{
  125. padding-top:20upx;
  126. font-size:60upx;
  127. font-weight:bold;
  128. }
  129. }
  130. }
  131. .mn-wrap{
  132. .item{
  133. display:flex;
  134. align-items: center;
  135. justify-content: space-between;
  136. height: 100upx;
  137. padding:0 30upx;
  138. background-color:#fff;
  139. border-bottom:1upx solid #f2f2f2;
  140. .lt{
  141. flex:3;
  142. display:flex;
  143. justify-content: center;
  144. height:100%;
  145. display:flex;
  146. flex-direction:column;
  147. .title{
  148. font-size:26upx;
  149. font-weight:bold;
  150. }
  151. .date{
  152. padding-top:15upx;
  153. line-height: 1;
  154. font-size:20upx;
  155. font-weight:400;
  156. color:#999;
  157. }
  158. }
  159. .rt{
  160. flex:1;
  161. display:flex;
  162. justify-content: flex-end;
  163. align-items: center;
  164. height:100%;
  165. font-size:30upx;
  166. font-weight:bold;
  167. }
  168. }
  169. }
  170. .description {
  171. position: fixed;
  172. width:100vw;
  173. height: 100vh;
  174. top: 0;
  175. background: rgba(0, 0, 0, 0.4);
  176. z-index: 9999;
  177. .description-box {
  178. position: fixed;
  179. top:50%;left:50%;
  180. transform: translate(-50%,-50%);
  181. width:600upx;
  182. height: fit-content;
  183. max-height: 740upx;
  184. padding-bottom:90upx;
  185. background: #fff;
  186. border-radius: 10upx;
  187. .btn-submit{
  188. position:absolute;
  189. bottom:0;left:0;
  190. width:100%;
  191. height:90upx;
  192. background-color:$dt-color-primary;
  193. font-size:32upx;
  194. line-height: 90upx;
  195. border-radius:0 0 10upx 10upx;
  196. border: 0;
  197. }
  198. .description-scroll-view {
  199. height: fit-content;
  200. max-height: 50vh;
  201. }
  202. .description-title {
  203. padding: 35upx 0 39upx 0;
  204. line-height: 1;
  205. text-align: center;
  206. font-size:30upx;
  207. font-weight:bold;
  208. }
  209. .description-content {
  210. padding: 0 30upx 50upx 30upx;
  211. display: flex;
  212. flex-direction: column;
  213. white-space: pre-wrap;
  214. font-size:28upx;
  215. color:#666666;
  216. }
  217. }
  218. }
  219. }
  220. </style>