activity20250501.vue 7.5 KB

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