activity20250501.vue 7.4 KB

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