activity20250501.vue 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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" >
  21. 半年卡
  22. </view>
  23. <view class="view311">
  24. {{item.text}}
  25. </view>
  26. </view>
  27. <view class="view33" >
  28. 可省约{{item.giftMemberLevelDuration}}
  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月10日至2025年6月30日
  57. </view> -->
  58. <view class="title">活动说明:</view>
  59. <view class="textlist">
  60. <p>1、本次充值活动所充金额仅用于支付本平台充电费用(包含电费和服务费),不可转赠、提现、退款。</p>
  61. <p>2、本服务费折扣卡仅<span style="color: red;">适用于服务费打折,不适用于电费。</span> </p>
  62. <p>3、本服务费折扣卡有效期为180天,充值后自动激活。</p>
  63. <p>4、本服务费折扣卡不限充电次数和充电度数,有效期内均可享受对应优惠。</p>
  64. <p>5、本服务费折扣卡不能与平台的“服务费6折卡”和“服务费包月卡”叠加使用。</p>
  65. <p>6、本服务费折扣卡为一车一卡,不转赠、转借,如有发现上述行为,平台有权对折扣卡关停,并保留进一步追究负责的权利。</p>
  66. <p>7、充值金额和折扣卡适用于所有优电联盟充电站点。</p>
  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. amountDesc: "500元",
  82. amountRemark: "送8.5折半年卡",
  83. giftMemberLevelDuration:"40元",
  84. numz:85,
  85. text:""
  86. },{
  87. amountDesc: "1000元",
  88. amountRemark: "送7.5折半年卡+白银会员",
  89. giftMemberLevelDuration:"133元",
  90. numz:75,
  91. text:"白银会员"
  92. },{
  93. amountDesc: "2000元",
  94. amountRemark: "送6折半年卡+黄金会员",
  95. giftMemberLevelDuration:"427元",
  96. numz:60,
  97. text:"黄金会员"
  98. },{
  99. amountDesc: "3000元",
  100. amountRemark: "送5折半年卡+白金会员",
  101. giftMemberLevelDuration:"800元",
  102. numz:50,
  103. text:"白金会员"
  104. }
  105. ],
  106. };
  107. },
  108. onLoad(op) {
  109. if(op.source){
  110. this.source = op.source;
  111. if(this.source!=99){
  112. this.saveSource()
  113. }
  114. }
  115. //this.init();
  116. },
  117. onReady() {
  118. },
  119. methods: {
  120. saveSource() {
  121. var data = {
  122. activityNo: this.activityNo,
  123. source:this.source
  124. };
  125. API.saveSource(data).then((res) => {
  126. }).catch(error => {
  127. uni.showToast({
  128. title: error
  129. })
  130. })
  131. },
  132. init() {
  133. uni.showLoading({
  134. title: "加载中",
  135. mask: true,
  136. })
  137. var data = {
  138. type: 2
  139. };
  140. API.marketingData(data).then((res) => {
  141. var list= res.data.chargingMarketingList
  142. for(var i in list){
  143. var item=list[i]
  144. if(item.amountRemark&&item.marketingCardList.length){
  145. var mk=item.marketingCardList[0]
  146. item.numz=mk.serviceFeeDiscountRate
  147. item.text=mk.giftMemberLevelStr
  148. item.giftMemberLevelDuration=mk.giftMemberLevelDuration;
  149. // if(item.amountRemark.indexOf('、')!=-1){
  150. // item.text=item.amountRemark.substring(item.amountRemark.indexOf('、')+1)
  151. // }else{
  152. // item.text=""
  153. // }
  154. this.moneyList.push(item)
  155. }
  156. }
  157. uni.hideLoading()
  158. }).catch(error => {
  159. uni.showToast({
  160. title: error
  161. })
  162. })
  163. },
  164. }
  165. }
  166. </script>
  167. <style lang="scss" scoped>
  168. table {
  169. border-collapse: collapse;
  170. width: 100%;
  171. }
  172. table,
  173. th,
  174. td {
  175. border: 1px solid #ccc;
  176. }
  177. td{
  178. padding: 4rpx 0 4rpx 12rpx;
  179. }
  180. tr:nth-child(odd) {
  181. background-color: #f2f2f2;
  182. }
  183. .tr1{
  184. font-weight: bold;
  185. }
  186. page {
  187. background: #47A2B4;
  188. padding-bottom: 32rpx;
  189. }
  190. .jz{
  191. text-align: center;
  192. }
  193. .page {
  194. z-index: 99;
  195. position: relative;
  196. background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(3, 164, 183, 1) 100%);
  197. }
  198. .body {
  199. margin: 24rpx;
  200. border-radius: 20px;
  201. background-color: rgba(255, 255, 255, 1);
  202. }
  203. .body2 {
  204. padding: 32rpx;
  205. .title {
  206. color: rgba(16, 16, 16, 1);
  207. font-size: 32rpx;
  208. margin-bottom: 16rpx;
  209. font-weight: bold;
  210. }
  211. .textlist {
  212. color: rgba(51, 51, 51, 1);
  213. font-size: 28rpx;
  214. margin-bottom: 40rpx;
  215. p{
  216. margin-bottom: 16rpx;
  217. }
  218. }
  219. }
  220. .body1 {
  221. padding: 24rpx 16rpx;
  222. .activityList {
  223. display: flex;
  224. justify-content: space-around;
  225. color: rgba(255, 255, 255, 1);
  226. .activity {
  227. display: flex;
  228. flex-direction: column;
  229. align-items: center;
  230. border-radius: 12px;
  231. background: linear-gradient(180deg, rgba(233, 236, 245, 1) 0%, rgba(255, 255, 255, 1) 100%);
  232. .view1 {
  233. margin-top: 16rpx;
  234. display: flex;
  235. justify-content: space-around;
  236. align-items: center;
  237. width: 140rpx;
  238. height: 56rpx;
  239. line-height: 40rpx;
  240. font-weight: bold;
  241. border-radius: 16rpx;
  242. background: linear-gradient(180deg, rgba(31,85,255,1) 0%,rgba(39,171,255,1) 100%);
  243. }
  244. .view2 {
  245. color: rgba(51, 51, 51, 1);
  246. font-size: 32rpx;
  247. font-weight: bold;
  248. padding: 16rpx 0;
  249. }
  250. .view3 {
  251. display: flex;
  252. flex-direction: column;
  253. align-items: center;
  254. justify-content: space-between;
  255. width: 160rpx;
  256. height: 160rpx;
  257. background: url(@/assets/img/20250501/index3.png) ;
  258. background-size: cover;
  259. background-size: 100%;
  260. .view31 {
  261. padding-top:8rpx;
  262. text-align: center;
  263. font-size: 24rpx;
  264. font-weight: bold;
  265. .view311 {
  266. color: rgba(51, 51, 51, 1);
  267. }
  268. .view312 {
  269. color: #FF3D00;
  270. text-align: center;
  271. }
  272. }
  273. .view33 {
  274. color: rgba(255, 255, 255, 1);
  275. font-size: 24rpx;
  276. padding-bottom: 8rpx;
  277. }
  278. }
  279. }
  280. }
  281. .bottom {
  282. width: 458rpx;
  283. height: 88rpx;
  284. background: url(@/assets/img/20250501/index4.png) 100% 100% round;
  285. background-size: 100%;
  286. margin: auto;
  287. display: flex;
  288. align-items: center;
  289. justify-content: center;
  290. color: rgba(255, 255, 255, 1);
  291. font-size: 40rpx;
  292. margin-top: 32rpx;
  293. font-weight: bold;
  294. }
  295. }
  296. .back1 {
  297. margin-bottom: -120rpx;
  298. display: flex;
  299. justify-content: center;
  300. align-items: center;
  301. width: 750rpx;
  302. height: 552rpx;
  303. background: url(@/assets/img/20250501/index0.jpg) ;
  304. background-size: 100%;
  305. }
  306. .blur-overlay {
  307. top: 0;
  308. left: 0;
  309. width: 750rpx;
  310. height: 552rpx;
  311. backdrop-filter: blur(5px);
  312. background-color: rgba(255, 255, 255, 0.2);
  313. display: flex;
  314. justify-content: center;
  315. align-items: center;
  316. }
  317. .back2 {
  318. margin-top: -80rpx;
  319. width: 600rpx;
  320. height: 372rpx;
  321. background: url(@/assets/img/20250501/index2.png) 100% 100% round;
  322. background-size: 100%;
  323. }
  324. </style>