index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <template>
  2. <view class="pb30">
  3. <view class="integral-mall-header">
  4. <image class="bg" :src="statics.integralMallHeader"></image>
  5. <view class="main pd24_20">
  6. <view class="flex alcenter center">
  7. <text class="ft14 cl-w">当前积分</text>
  8. <text class="ml10 ft24 ftw600 cl-w">--</text>
  9. </view>
  10. <view class="mt16">
  11. <swiper :indicator-dots="false" class="swiper-integral" :autoplay="true" :vertical="true" :interval="2000" :duration="400">
  12. <swiper-item>
  13. <view class="flex alcenter">
  14. <text class="iconfont iconicon_notice ft14 cl-w"></text>
  15. <text class="ml10 ft14 cl-w" style="width: calc(100% - 50rpx); overflow: hidden;">恭喜franckever成功兑换了洗剪吹加护理一次套餐</text>
  16. </view>
  17. </swiper-item>
  18. <swiper-item>
  19. <view class="flex alcenter">
  20. <text class="iconfont iconicon_notice ft14 cl-w"></text>
  21. <text class="ml10 ft14 cl-w" style="width: calc(100% - 50rpx); overflow: hidden;">恭喜111111成功兑换了洗剪吹加护理一次套餐</text>
  22. </view>
  23. </swiper-item>
  24. <swiper-item>
  25. <view class="flex alcenter">
  26. <text class="iconfont iconicon_notice ft14 cl-w"></text>
  27. <text class="ml10 ft14 cl-w" style="width: calc(100% - 50rpx); overflow: hidden;">恭喜22222成功兑换了洗剪吹加护理一次套餐</text>
  28. </view>
  29. </swiper-item>
  30. </swiper>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="integral-mall-main plr15">
  35. <view class="integal-mall-menu flex pt16 pb16">
  36. <view class="col2 text-center" @click="linkTo" data-link="/pages/client/vipcard/integrallog">
  37. <view>
  38. <image style="width: 60rpx; height: 60rpx;" :src="statics.integralMallMenus[0]"></image>
  39. </view>
  40. <view class="ft14 ftw600 mt6">积分明细</view>
  41. </view>
  42. <view class="col2 text-center bd-left" @click="linkTo" data-link="/pages/client/integral/role">
  43. <view>
  44. <image style="width: 60rpx; height: 60rpx;" :src="statics.integralMallMenus[1]"></image>
  45. </view>
  46. <view class="ft14 ftw600 mt6">赚积分</view>
  47. </view>
  48. </view>
  49. <view class="mt24">
  50. <view class="flex alcenter space">
  51. <view class="flex alcenter">
  52. <image style="width: 40rpx;height: 40rpx;" :src="statics.integralMallCat[0]"></image>
  53. <text class="ft16 ftw600 cl-main ml15">特惠套餐</text>
  54. </view>
  55. <navigator url="/pages/client/integral/list?id=0">
  56. <view class="ft14 cl-notice">更多</view>
  57. </navigator>
  58. </view>
  59. <view class="box pd16_15 flex alcenter mt16">
  60. <navigator url="/pages/client/integral/tuan">
  61. <image class="integral-tuan-l"></image>
  62. </navigator>
  63. <view class="pl15" style="width: calc(100% - 240rpx);">
  64. <navigator url="/pages/client/integral/tuan">
  65. <view class="ft14 cl-main ftw600 text-over">洗剪吹加护理一次套餐 会…</view>
  66. <view class="flex alcenter space mt12 cl-notice">
  67. <view class="flex alcenter">
  68. <text class="ft12">门市价:</text>
  69. <text class="ft12 text-line">¥88</text>
  70. </view>
  71. <view class="flex alcenter">
  72. <text class="ft12">已兑</text>
  73. <text class="ft12">868</text>
  74. </view>
  75. </view>
  76. </navigator>
  77. <view class="mt12 flex alend space">
  78. <view class="flex alcenter">
  79. <image :src="statics.integralImg01" style="width: 32rpx; height: 32rpx;"></image>
  80. <text class="ft16 cl-orange ftw600">3000 + ¥10</text>
  81. </view>
  82. <button @click="exchange" :data-id="1" class="btn-mini" :style="getBtnStyle">兑换</button>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="box pd16_15 flex alcenter mt16">
  87. <image class="integral-tuan-l"></image>
  88. <view class="pl15" style="width: calc(100% - 240rpx);">
  89. <view class="ft14 cl-main ftw600 text-over">洗剪吹加护理一次套餐 会…</view>
  90. <view class="flex alcenter space mt12 cl-notice">
  91. <view class="flex alcenter">
  92. <text class="ft12">门市价:</text>
  93. <text class="ft12 text-line">¥88</text>
  94. </view>
  95. <view class="flex alcenter">
  96. <text class="ft12">已兑</text>
  97. <text class="ft12">868</text>
  98. </view>
  99. </view>
  100. <view class="mt12 flex alend space">
  101. <view class="flex alcenter">
  102. <image :src="statics.integralImg01" style="width: 32rpx; height: 32rpx;"></image>
  103. <text class="ft16 cl-orange ftw600">3000 + ¥10</text>
  104. </view>
  105. <button class="btn-mini" :style="getBtnStyle">兑换</button>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="mt24">
  111. <view class="flex alcenter space">
  112. <view class="flex alcenter">
  113. <image style="width: 40rpx;height: 40rpx;" :src="statics.integralMallCat[1]"></image>
  114. <text class="ft16 ftw600 cl-main ml15">优惠券</text>
  115. </view>
  116. <navigator url="/pages/client/integral/list?id=1">
  117. <view class="ft14 cl-notice">更多</view>
  118. </navigator>
  119. </view>
  120. <view class="mt16 flex space ">
  121. <view class="integral-mall-coupon">
  122. <view class="top">
  123. <view class="text-center ft14 ftw600 cl-main">
  124. 洗剪吹优惠券
  125. </view>
  126. <view class="flex center mt12">
  127. <view class="coupon-value">
  128. <image :src="statics.couponNumBg"></image>
  129. <view class="num cl-orange">
  130. <text class="ft24 ftw600">¥</text>
  131. <text class="ft24 ftw600 ml4">20</text>
  132. </view>
  133. </view>
  134. </view>
  135. <view class="text-center mt8 ft12 cl-notice">满50元可用</view>
  136. <view class="flex alcenter center mt12">
  137. <image :src="statics.integralImg01" style="width: 32rpx; height: 32rpx;"></image>
  138. <text class="ft16 cl-orange ftw600">3000 + ¥10</text>
  139. </view>
  140. </view>
  141. <view class="mt12 flex center">
  142. <view class="btn-small" :data-id="1" @click="exchange" style="width:250rpx;" :style="getBtnStyle">兑换</view>
  143. </view>
  144. <view class="y-l"></view>
  145. <view class="y-r"></view>
  146. </view>
  147. <view class="integral-mall-coupon">
  148. <view class="top">
  149. <view class="text-center ft14 ftw600 cl-main">
  150. 洗剪吹优惠券
  151. </view>
  152. <view class="flex center mt12">
  153. <view class="coupon-value">
  154. <image :src="statics.couponNumBg"></image>
  155. <view class="num cl-orange">
  156. <text class="ft24 ftw600">¥</text>
  157. <text class="ft24 ftw600 ml4">20</text>
  158. </view>
  159. </view>
  160. </view>
  161. <view class="text-center mt8 ft12 cl-notice">满50元可用</view>
  162. <view class="flex alcenter center mt12">
  163. <image :src="statics.integralImg01" style="width: 32rpx; height: 32rpx;"></image>
  164. <text class="ft16 cl-orange ftw600">3000 + ¥10</text>
  165. </view>
  166. </view>
  167. <view class="mt12 flex center">
  168. <view class="btn-small" :data-id="1" @click="exchange" style="width: 250rpx;" :style="getBtnStyle">兑换</view>
  169. </view>
  170. <view class="y-l"></view>
  171. <view class="y-r"></view>
  172. </view>
  173. </view>
  174. </view>
  175. <view class="mt24">
  176. <view class="flex alcenter space">
  177. <view class="flex alcenter">
  178. <image style="width: 40rpx;height: 40rpx;" :src="statics.integralMallCat[2]"></image>
  179. <text class="ft16 ftw600 cl-main ml15">兑换商品</text>
  180. </view>
  181. <navigator url="/pages/client/integral/list?id=2">
  182. <view class="ft14 cl-notice">更多</view>
  183. </navigator>
  184. </view>
  185. <view class="mt16 flex space">
  186. <view class="box pd16_15" style="width: 330rpx;">
  187. <navigator url="/pages/client/integral/goods">
  188. <image class="integral-mall-goods"></image>
  189. <view class="mt8 ft14 ftw600 text-over cl-main">专业去屑洗发水-么尚</view>
  190. <view class="flex alcenter center mt12">
  191. <image :src="statics.integralImg01" style="width: 32rpx; height: 32rpx;"></image>
  192. <text class="ft16 cl-orange ftw600">3000 + ¥10</text>
  193. </view>
  194. </navigator>
  195. <view class="mt12 flex center">
  196. <view class="btn-small" @click="exchange" :data-id="1" style="width: 250rpx;" :style="getBtnStyle">兑换</view>
  197. </view>
  198. </view>
  199. <view class="box pd16_15" style="width: 330rpx;">
  200. <image class="integral-mall-goods"></image>
  201. <view class="mt8 ft14 ftw600 text-over cl-main">专业去屑洗发水-么尚</view>
  202. <view class="flex alcenter center mt12">
  203. <image :src="statics.integralImg01" style="width: 32rpx; height: 32rpx;"></image>
  204. <text class="ft16 cl-orange ftw600">3000 + ¥10</text>
  205. </view>
  206. <view class="mt12 flex center">
  207. <view class="btn-small" style="width: 250rpx;" :style="getBtnStyle">兑换</view>
  208. </view>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. <dialog-login v-if="showLogin" @closed="showLogin = false" @loginYes="loginYes"></dialog-login>
  214. <com-footer model="integral"></com-footer>
  215. </view>
  216. </template>
  217. <script>
  218. export default{
  219. data(){
  220. return {
  221. isLogin:true,
  222. showLogin:false,
  223. }
  224. },
  225. onLoad(){
  226. },
  227. methods:{
  228. loginYes(){
  229. },
  230. exchange(e){
  231. if(this.isLogin == false){
  232. this.showLogin = true;
  233. }else{
  234. let id = e.currentTarget.dataset.id;
  235. uni.navigateTo({
  236. url:'/pages/client/integral/exchange?id='+id
  237. })
  238. }
  239. },
  240. linkTo(e){
  241. if(this.isLogin == false){
  242. this.showLogin = true;
  243. }else{
  244. let link = e.currentTarget.dataset.link;
  245. uni.navigateTo({
  246. url:link
  247. })
  248. }
  249. },
  250. }
  251. }
  252. </script>
  253. <style>
  254. .integral-mall-header{
  255. position: relative;
  256. height: 320rpx;
  257. }
  258. .integral-mall-header .bg{
  259. width: 100%;
  260. height: 320rpx;
  261. }
  262. .integral-mall-header .main{
  263. position: absolute;
  264. left: 0;
  265. top: 0;
  266. width: 100%;
  267. height: 320rpx;
  268. }
  269. .swiper-integral{
  270. height: 32rpx;
  271. width: 100%;
  272. }
  273. .integral-mall-main{
  274. position: relative;
  275. margin-top: -104rpx;
  276. }
  277. .integal-mall-menu{
  278. width: 100%;
  279. height: 176rpx;
  280. background: #FFFFFF;
  281. border-radius: 48rpx;
  282. }
  283. .integral-tuan-l{
  284. width: 240rpx;
  285. height: 180rpx;
  286. background: #f2f2f2;
  287. }
  288. .integral-mall-coupon{
  289. height: 408rpx;
  290. width: 330rpx;
  291. background: #FFFFFF;
  292. position: relative;
  293. border-radius: 16rpx;
  294. overflow: hidden;
  295. }
  296. .integral-mall-coupon .top{
  297. padding: 32rpx 40rpx 24rpx 40rpx;
  298. border-bottom: 2rpx dashed #FEC675;
  299. }
  300. .integral-mall-coupon .y-l,.integral-mall-coupon .y-r{
  301. width: 20rpx;
  302. height: 20rpx;
  303. border-radius: 10rpx;
  304. background: #F5F6FA;
  305. position: absolute;
  306. z-index: 2;
  307. top: 284rpx;
  308. }
  309. .integral-mall-coupon .y-l{
  310. left: -10rpx;
  311. }
  312. .integral-mall-coupon .y-r{
  313. right: -10rpx;
  314. }
  315. .integral-mall-coupon .coupon-value{
  316. width: 190rpx;
  317. height: 64rpx;
  318. position: relative;
  319. }
  320. .integral-mall-coupon .coupon-value image{
  321. width: 100%;
  322. height: 64rpx;
  323. }
  324. .integral-mall-coupon .coupon-value .num{
  325. width: 100%;
  326. height: 64rpx;
  327. display: flex;
  328. justify-content: center;
  329. align-items: center;
  330. position: absolute;
  331. left: 0;
  332. top: 0;
  333. }
  334. .integral-mall-goods{
  335. width: 100%;
  336. height: 200rpx;
  337. background: #F2F2F2;
  338. }
  339. </style>