From 8771da2ccf6f7c3fd2a8c89a1a0e230c6386db7f Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期一, 17 十一月 2025 15:40:48 +0800
Subject: [PATCH] feat(api): 新增多个API接口并优化配置
---
pages/pay/shuaKa/introduce.vue | 92 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 92 insertions(+), 0 deletions(-)
diff --git a/pages/pay/shuaKa/introduce.vue b/pages/pay/shuaKa/introduce.vue
new file mode 100644
index 0000000..4d87bcf
--- /dev/null
+++ b/pages/pay/shuaKa/introduce.vue
@@ -0,0 +1,92 @@
+<template>
+ <view>
+ <view class="title">
+ <image class="title-icon" src="/static/shuaka/title-icon1.png"></image>
+ <view class="title-text">娲诲姩绱Н瑙勫垯</view>
+ </view>
+ <view class="content">
+ <view class="u-m-t-20">
+ 1銆佸弬涓庢椂闂达細{{$u.timeFormat(info.actStartTime, 'yyyy骞磎m鏈坉d鏃�')}}鍒皗{$u.timeFormat(info.actEndTime, 'yyyy骞磎m鏈坉d鏃�')}}锛屽悕棰漿{info.numOfUser}}浜恒��
+ </view>
+ <view>2銆佺疮绉埛鍗$瑪鏁版湁鏁堟椂闂达細鐢ㄦ埛鎴愬姛鍙備笌娲诲姩鍚巤{info.dayMax}}澶╁唴銆�</view>
+ <view class="u-m-t-20">3銆佺疮绉鍒欙細鐢ㄦ埛浣跨敤娲诲姩鎸囧畾閾惰鍗¤繘琛屾敮浠橈紝鍗曠瑪鏀粯瀹為檯鏀粯閲戦澶т簬绛変簬{{info.numOfMin/100}}鍏冪殑浜ゆ槗锛屾柟鍙疮绉椿鍔ㄥ埛鍗$瑪鏁般��</view>
+ <view class="u-m-t-20">
+ 4銆佺疮绉笂闄愶細鐢ㄦ埛鍙備笌娲诲姩鍚庯紝姣忎釜鑷劧鏃ユ渶澶氱疮绉瘂{info.numOfDay}}绗旀椿鍔ㄥ埛鍗$瑪鏁帮紝瓒呰繃{{info.numOfDay}}绗斿悗锛屽綋澶╃户缁氦鏄撳皢涓嶄細璁″叆娲诲姩鍒峰崱绗旀暟銆�</view>
+ </view>
+ <view class="title">
+ <image class="title-icon" src="/static/shuaka/title-icon2.png"></image>
+ <view class="title-text">娲诲姩瑙勫垯</view>
+ </view>
+ <view class="content">{{info.actRules}}</view>
+
+ </view>
+</template>
+
+<script>
+ import {
+ activityInfo
+ } from '@/common/api/shuaka'
+ export default {
+ data() {
+ return {
+ info: {
+ bankCardName: '',
+ totalDiscount: 0,
+ dayMax: 0,
+ numOfMin: 0,
+ numOfDay: 0,
+ numOfUser: 0,
+ actRules: ''
+ },
+ };
+ },
+ onLoad() {
+ activityInfo().then(res => {
+ if (res) {
+ res.actRules = decodeURIComponent(res.actRules || '')
+ this.info = res
+ }
+ })
+ }
+ }
+</script>
+
+<style lang="scss" scoped>
+ page {
+ box-sizing: border-box;
+ background-color: #ffffff;
+ padding: 0 32rpx 32rpx;
+ }
+
+ .title {
+ display: flex;
+ justify-content: center;
+ margin: 60rpx 0;
+ }
+
+ .title-icon {
+ width: 42rpx;
+ height: 42rpx;
+ margin-top: 10rpx;
+ margin-right: 10rpx;
+ }
+
+ .title-text {
+ font-size: 36rpx;
+ font-weight: 500;
+ padding-bottom: 20rpx;
+ color: #333333;
+ background-image: url('~@/static/shuaka/title-bg.png');
+ background-position: left bottom;
+ background-size: 170rpx 14rpx;
+ background-repeat: no-repeat;
+ }
+
+ .content {
+ line-height: 1.5;
+ font-size: 30rpx;
+ font-weight: 400;
+ counter-reset: #333333;
+ white-space: pre-wrap;
+ }
+</style>
--
Gitblit v1.9.1