activity20250501.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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/10}}折
  19. </view>
  20. <view class="view311" v-if="item.giftMemberLevelDuration==180">
  21. 半年卡
  22. </view>
  23. <view class="view311">
  24. {{item.text}}
  25. </view>
  26. </view>
  27. <view class="view33" v-if="item.giftMemberLevelDuration==180">
  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">{{item.giftMemberLevelDuration}}天</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&&item.marketingCardList.length){
  119. var mk=item.marketingCardList[0]
  120. item.numz=mk.serviceFeeDiscountRate
  121. item.text=mk.giftMemberLevelStr
  122. item.giftMemberLevelDuration=mk.giftMemberLevelDuration;
  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. padding-bottom: 32rpx;
  163. }
  164. .jz{
  165. text-align: center;
  166. }
  167. .page {
  168. z-index: 99;
  169. position: relative;
  170. background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(3, 164, 183, 1) 100%);
  171. }
  172. .body {
  173. margin: 24rpx;
  174. border-radius: 20px;
  175. background-color: rgba(255, 255, 255, 1);
  176. }
  177. .body2 {
  178. padding: 32rpx;
  179. .title {
  180. color: rgba(16, 16, 16, 1);
  181. font-size: 32rpx;
  182. margin-bottom: 16rpx;
  183. font-weight: bold;
  184. }
  185. .textlist {
  186. color: rgba(51, 51, 51, 1);
  187. font-size: 28rpx;
  188. margin-bottom: 40rpx;
  189. p{
  190. margin-bottom: 16rpx;
  191. }
  192. }
  193. }
  194. .body1 {
  195. padding: 24rpx 16rpx;
  196. .activityList {
  197. display: flex;
  198. justify-content: space-around;
  199. color: rgba(255, 255, 255, 1);
  200. .activity {
  201. display: flex;
  202. flex-direction: column;
  203. align-items: center;
  204. border-radius: 12px;
  205. background: linear-gradient(180deg, rgba(233, 236, 245, 1) 0%, rgba(255, 255, 255, 1) 100%);
  206. .view1 {
  207. margin-top: 16rpx;
  208. display: flex;
  209. justify-content: space-around;
  210. align-items: center;
  211. width: 140rpx;
  212. height: 56rpx;
  213. line-height: 40rpx;
  214. font-weight: bold;
  215. border-radius: 16rpx;
  216. background: linear-gradient(180deg, rgba(31,85,255,1) 0%,rgba(39,171,255,1) 100%);
  217. }
  218. .view2 {
  219. color: rgba(51, 51, 51, 1);
  220. font-size: 32rpx;
  221. font-weight: bold;
  222. padding: 16rpx 0;
  223. }
  224. .view3 {
  225. display: flex;
  226. flex-direction: column;
  227. align-items: center;
  228. justify-content: space-between;
  229. width: 160rpx;
  230. height: 160rpx;
  231. background: url(@/assets/img/20250501/index3.png) ;
  232. background-size: cover;
  233. background-size: 100%;
  234. .view31 {
  235. padding-top:8rpx;
  236. text-align: center;
  237. font-size: 24rpx;
  238. font-weight: bold;
  239. .view311 {
  240. color: rgba(51, 51, 51, 1);
  241. }
  242. .view312 {
  243. color: #FF3D00;
  244. text-align: center;
  245. }
  246. }
  247. .view33 {
  248. color: rgba(255, 255, 255, 1);
  249. font-size: 24rpx;
  250. padding-bottom: 16rpx;
  251. }
  252. }
  253. }
  254. }
  255. .bottom {
  256. width: 458rpx;
  257. height: 88rpx;
  258. background: url(@/assets/img/20250501/index4.png) 100% 100% round;
  259. background-size: 100%;
  260. margin: auto;
  261. display: flex;
  262. align-items: center;
  263. justify-content: center;
  264. color: rgba(255, 255, 255, 1);
  265. font-size: 40rpx;
  266. margin-top: 32rpx;
  267. font-weight: bold;
  268. }
  269. }
  270. .back1 {
  271. margin-bottom: -120rpx;
  272. display: flex;
  273. justify-content: center;
  274. align-items: center;
  275. width: 750rpx;
  276. height: 552rpx;
  277. background: url(@/assets/img/20250501/index0.jpg) ;
  278. background-size: 100%;
  279. }
  280. .blur-overlay {
  281. top: 0;
  282. left: 0;
  283. width: 750rpx;
  284. height: 552rpx;
  285. backdrop-filter: blur(5px);
  286. background-color: rgba(255, 255, 255, 0.2);
  287. display: flex;
  288. justify-content: center;
  289. align-items: center;
  290. }
  291. .back2 {
  292. margin-top: -80rpx;
  293. width: 600rpx;
  294. height: 372rpx;
  295. background: url(@/assets/img/20250501/index2.png) 100% 100% round;
  296. background-size: 100%;
  297. }
  298. </style>