activity20250501.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <template>
  2. <view>
  3. <ujp-navbar title="充值送折扣卡" :isBack="!(source==1)" ></ujp-navbar>
  4. <view class="back1">
  5. <view class="blur-overlay">
  6. <view class="back2">
  7. </view>
  8. </view>
  9. </view>
  10. <view class="page">
  11. <view class="body1 body">
  12. <view class="activityList">
  13. <view class="activity" v-for="(item,i) in moneyList" :key="i" >
  14. <view class="view1">
  15. 充{{item.amountDesc}}
  16. </view>
  17. <view class="view2">
  18. </view>
  19. <view class="view3">
  20. <view class="view31">
  21. <view class="view312">
  22. {{item.numz}}折
  23. </view>
  24. <view class="view311">
  25. 半年卡
  26. </view>
  27. <view class="view311">
  28. {{item.text}}
  29. </view>
  30. </view>
  31. <view class="view33">
  32. 有效期180天
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="bottom" @click="gotoUrl('pages/user/finance/recharge',1)" >
  38. 前往充值
  39. </view>
  40. </view>
  41. </view>
  42. <view class="body2 body">
  43. <view class="title">活动内容:</view>
  44. <view class="textlist">
  45. <table>
  46. <tr class="tr1">
  47. <td>充值金额</td>
  48. <td>奖励</td>
  49. <td class="jz">有效期</td>
  50. </tr>
  51. <tr v-for="(item,i) in moneyList" :key="i">
  52. <td >{{item.amountDesc}}</td>
  53. <td>{{item.amountRemark}}</td>
  54. <td class="jz">180天</td>
  55. </tr>
  56. </table>
  57. </view>
  58. <view class="title">活动时间:</view>
  59. <view class="textlist">
  60. 2025年5月1日至2025年6月30日
  61. </view>
  62. <view class="title">活动说明:</view>
  63. <view class="textlist">
  64. 1、本次充值活动所充金额仅用于支付本平台充电费用(包含电费和服务费),不可转赠、提现、退款。
  65. <br/>2、本服务费折扣卡仅适用于服务费打折,不适用于电费。
  66. <br/>3、本服务费折扣卡有效期为180天,从充值之日自动激活。
  67. <br/>4、本服务费折扣卡不限充电次数和充电度数,有效期内均可享受对应优惠。
  68. <br/>5、本服务费折扣卡不能与平台的“服务费6折卡”和“服务费包月卡”叠加使用。
  69. <br/>6、充值金额和折扣卡适用于所有优电联盟充电站点。
  70. <br/>7、本次活动最终解释权归湖北鹏育优电新能源科技有限公司所有。
  71. </view>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. import * as API from '@/apis/finance.js'
  77. export default {
  78. data() {
  79. return {
  80. source: 1, //活动来源 1公众号 ,2充电开始 ,3充电结束- 99系统内
  81. activityNo: "1", //活动编号
  82. moneyList: [],
  83. };
  84. },
  85. onLoad(op) {
  86. if(op.source){
  87. this.source = op.source;
  88. }
  89. if(this.source!=99){
  90. this.saveSource()
  91. }
  92. this.init();
  93. },
  94. onReady() {
  95. },
  96. methods: {
  97. saveSource() {
  98. var data = {
  99. activityNo: this.activityNo,
  100. source:this.source
  101. };
  102. API.saveSource(data).then((res) => {
  103. }).catch(error => {
  104. uni.showToast({
  105. title: error
  106. })
  107. })
  108. },
  109. init() {
  110. uni.showLoading({
  111. title: "加载中",
  112. mask: true,
  113. })
  114. var data = {
  115. type: 2
  116. };
  117. API.marketingData(data).then((res) => {
  118. var list= res.data.chargingMarketingList
  119. for(var i in list){
  120. var item=list[i]
  121. if(item.amountRemark){
  122. item.numz=item.amountRemark.substring(1,item.amountRemark.indexOf('折'))
  123. if(item.amountRemark.indexOf('、')!=-1){
  124. item.text=item.amountRemark.substring(item.amountRemark.indexOf('、')+1)
  125. }else{
  126. item.text=""
  127. }
  128. this.moneyList.push(item)
  129. }
  130. }
  131. uni.hideLoading()
  132. }).catch(error => {
  133. uni.showToast({
  134. title: error
  135. })
  136. })
  137. },
  138. }
  139. }
  140. </script>
  141. <style lang="scss" scoped>
  142. table {
  143. border-collapse: collapse;
  144. width: 100%;
  145. }
  146. table,
  147. th,
  148. td {
  149. border: 1px solid #ccc;
  150. }
  151. td{
  152. padding: 4rpx 0 4rpx 12rpx;
  153. }
  154. tr:nth-child(odd) {
  155. background-color: #f2f2f2;
  156. }
  157. .tr1{
  158. font-weight: bold;
  159. }
  160. page {
  161. background: #47A2B4
  162. }
  163. .jz{
  164. text-align: center;
  165. }
  166. .page {
  167. z-index: 99;
  168. position: relative;
  169. background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(3, 164, 183, 1) 100%);
  170. }
  171. .body {
  172. margin: 24rpx;
  173. border-radius: 20px;
  174. background-color: rgba(255, 255, 255, 1);
  175. }
  176. .body2 {
  177. padding: 32rpx;
  178. .title {
  179. color: rgba(16, 16, 16, 1);
  180. font-size: 32rpx;
  181. margin-bottom: 16rpx;
  182. font-weight: bold;
  183. }
  184. .textlist {
  185. color: rgba(51, 51, 51, 1);
  186. font-size: 28rpx;
  187. margin-bottom: 40rpx;
  188. }
  189. }
  190. .body1 {
  191. padding: 24rpx 16rpx;
  192. .activityList {
  193. display: flex;
  194. justify-content: space-around;
  195. color: rgba(255, 255, 255, 1);
  196. .activity {
  197. display: flex;
  198. flex-direction: column;
  199. align-items: center;
  200. border-radius: 12px;
  201. background: linear-gradient(180deg, rgba(233, 236, 245, 1) 0%, rgba(255, 255, 255, 1) 100%);
  202. .view1 {
  203. margin-top: 16rpx;
  204. display: flex;
  205. justify-content: space-around;
  206. align-items: center;
  207. width: 140rpx;
  208. height: 56rpx;
  209. line-height: 40rpx;
  210. font-weight: bold;
  211. border-radius: 16rpx;
  212. background: linear-gradient(180deg, rgba(31,85,255,1) 0%,rgba(39,171,255,1) 100%);
  213. }
  214. .view2 {
  215. color: rgba(51, 51, 51, 1);
  216. font-size: 32rpx;
  217. font-weight: bold;
  218. }
  219. .view3 {
  220. display: flex;
  221. flex-direction: column;
  222. align-items: center;
  223. justify-content: space-between;
  224. width: 160rpx;
  225. height: 160rpx;
  226. background: url(@/assets/img/20250501/index3.png) ;
  227. background-size: cover;
  228. background-size: 100%;
  229. .view31 {
  230. padding-top:8rpx;
  231. text-align: center;
  232. font-size: 24rpx;
  233. font-weight: bold;
  234. .view311 {
  235. color: rgba(51, 51, 51, 1);
  236. }
  237. .view312 {
  238. color: #FF3D00;
  239. text-align: center;
  240. }
  241. }
  242. .view33 {
  243. color: rgba(255, 255, 255, 1);
  244. font-size: 24rpx;
  245. padding-bottom: 16rpx;
  246. }
  247. }
  248. }
  249. }
  250. .bottom {
  251. width: 458rpx;
  252. height: 88rpx;
  253. background: url(@/assets/img/20250501/index4.png) 100% 100% round;
  254. background-size: 100%;
  255. margin: auto;
  256. display: flex;
  257. align-items: center;
  258. justify-content: center;
  259. color: rgba(255, 255, 255, 1);
  260. font-size: 40rpx;
  261. margin-top: 32rpx;
  262. font-weight: bold;
  263. }
  264. }
  265. .back1 {
  266. margin-bottom: -120rpx;
  267. display: flex;
  268. justify-content: center;
  269. align-items: center;
  270. width: 750rpx;
  271. height: 552rpx;
  272. background: url(@/assets/img/20250501/index1.png) 100% 100% round;
  273. background-size: 100%;
  274. }
  275. .blur-overlay {
  276. top: 0;
  277. left: 0;
  278. width: 750rpx;
  279. height: 552rpx;
  280. backdrop-filter: blur(5px);
  281. background-color: rgba(255, 255, 255, 0.2);
  282. display: flex;
  283. justify-content: center;
  284. align-items: center;
  285. }
  286. .back2 {
  287. margin-top: -80rpx;
  288. width: 600rpx;
  289. height: 372rpx;
  290. background: url(@/assets/img/20250501/index2.png) 100% 100% round;
  291. background-size: 100%;
  292. }
  293. </style>