ff0101 2 napja
szülő
commit
2a519a9c55
8 módosított fájl, 1091 hozzáadás és 317 törlés
  1. 2 2
      package.json
  2. 3 0
      src/api/home.js
  3. 1 1
      src/components/TabBar.vue
  4. 16 0
      src/router/index.js
  5. 439 0
      src/views/Payment2.vue
  6. 2 2
      src/views/Profile.vue
  7. 316 0
      src/views/medical2.vue
  8. 312 312
      yarn.lock

+ 2 - 2
package.json

@@ -3,8 +3,8 @@
   "version": "0.1.0",
   "private": true,
   "scripts": {
-    "serve": "vue-cli-service serve",
-    "build": "vue-cli-service build",
+    "serve": "NODE_OPTIONS=\"--openssl-legacy-provider\" vue-cli-service serve",
+    "build": "NODE_OPTIONS=\"--openssl-legacy-provider\" vue-cli-service build",
     "lint": "vue-cli-service lint"
   },
   "dependencies": {

+ 3 - 0
src/api/home.js

@@ -24,6 +24,9 @@ export const getTong = (data) => request({ url: "index/gettong", method: "post",
 
 // 参与项目 
 export const getChongInfo = (params) => request({ url: "index/get_chong_info_new", method: "get", params,loading:true });
+
+// 参与项目2 
+export const getChongInfo2 = (params) => request({ url: "index/get_chong_info_two", method: "get", params,loading:true });
 // 党员申请 
 export const applyDangyuan = (data) => request({ url: "user/apply_dangyuan", method: "post", data,loading:true });
 // 参与退休计划 

+ 1 - 1
src/components/TabBar.vue

@@ -39,7 +39,7 @@ export default {
         {
           // path: '/dynamic', //邀请百姓
           // path: '/China', // 红旗医疗
-          path: '/Medical', // 红旗原始股
+          path: '/Medical2', // 红旗原始股
           title: '建科基金',
           icon: 'gang0.png',
           iconActive: 'gang1.png'

+ 16 - 0
src/router/index.js

@@ -24,9 +24,12 @@ import InvitePeople from '@/views/InvitePeople.vue'
 import Apply from '@/views/Apply.vue'
 import RetirementSubsidy from '@/views/RetirementSubsidy.vue'
 import Payment from '@/views/Payment.vue'
+import Payment2 from '@/views/Payment2.vue'
 import OrderManagement from '@/views/OrderManagement.vue'
 // 红旗医疗 后期直接替换邀请百姓
 import Medical from '@/views/Medical.vue'
+// 红旗医疗2页面
+import Medical2 from '@/views/medical2.vue'
 // 红旗中国 后期邀请百姓直接替换
 import China from '@/views/China.vue'
 import Jifen from '@/views/jifen.vue'
@@ -64,6 +67,11 @@ const routes = [
     name: "Medical",
     component: Medical
   },
+  {
+    path: "/Medical2",
+    name: "Medical2",
+    component: Medical2
+  },
   {
     path: "/profile",
     name: "Profile",
@@ -243,6 +251,14 @@ const routes = [
       hideTabBar: true
   },
   },
+  {
+    path: "/Payment2",
+    name: "Payment2",
+    component: Payment2,
+    meta: {
+      hideTabBar: true
+  },
+  },
   {
     path: "/jifen",
     name: "Jifen",

+ 439 - 0
src/views/Payment2.vue

@@ -0,0 +1,439 @@
+<template>
+  <div>
+    <div class="headers">
+      <div class="back" @click="goBack">
+        <img src="@/assets/back.png" alt="">
+      </div>
+      <div class="title">{{item.title}}</div>
+    </div>
+    <div class="invite-page">
+      <div class="fund-card">
+        <div class="title">参与【 {{item.title}} 】</div>
+        <div class="subtitle">
+         参与成功科技股收益立即打款到账您的账户
+        </div>
+		
+        <div class="form-section">
+          <div class="label">请选择支付方式</div>
+          <div class="pay-list">
+            <div
+              class="pay-item"
+              v-for="(item, idx) in payList"
+              :key="item.id || idx"
+              @click="payType = item.title"
+            >
+              <img
+                class="pay-icon"
+                :src="item.title.includes('微信') ? require('@/assets/weixin.png') : require('@/assets/zhifubao.png')"
+                alt="icon"
+              />
+              <span class="pay-title">{{ item.title }}</span>
+              <input
+                type="radio"
+                name="pay"
+                :checked="payType === item.title"
+                @change="payType = item.title"
+              />
+            </div>
+          </div>
+        </div>
+        <div class="form-section">
+          <div class="label">产品价格</div>
+          <div class="price-field">
+            <input 
+              type="text" 
+              v-model="item.money" 
+              readonly 
+              class="price-input"
+            >
+          </div>
+        </div>
+        <button 
+          class="submit-btn"
+          :disabled="!payType"
+          @click="handleSubmit"
+        >
+          立即支付
+        </button>
+      </div>
+    </div>
+    <!-- 实名认证提示弹窗 -->
+    <div v-if="showAuthDialog" class="custom-dialog-mask">
+      <div class="custom-dialog auth-dialog">
+        <div class="dialog-close" @click="showAuthDialog = false">
+          <i class="close-icon"></i>
+        </div>
+        <div class="dialog-icon">
+          <svg t="1710401275044" class="auth-icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6356">
+            <path d="M512 512m-448 0a448 448 0 1 0 896 0 448 448 0 1 0-896 0Z" fill="#1890FF" p-id="6357"></path>
+            <path d="M512 320c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32z" fill="#FFFFFF" p-id="6358"></path>
+            <path d="M512 720m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z" fill="#FFFFFF" p-id="6359"></path>
+          </svg>
+        </div>
+        <div class="dialog-title auth-title">温馨提示</div>
+        <div class="dialog-content">您还未完成实名认证<br/>请先进行实名认证</div>
+        <button class="dialog-btn auth-btn" @click="goToAuth">去认证</button>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+import {getTong,getChongInfo2,getUserInfo} from '@/api/home.js'
+import { Toast } from 'vant';
+export default {
+  name: 'Payment2',
+  data() {
+    return {
+      payType: '',
+      payList: [],
+      item:{},
+      userInfo: {},
+      showAuthDialog: false
+    }
+  },
+  methods:{
+    goBack() {
+      this.$router.go(-1)
+    },
+    async getPayType(){
+      const res = await getTong()
+      this.payList = res.data || []
+    },
+    async getUserInfo() {
+      try {
+        const res = await getUserInfo();
+        this.userInfo = res.data;
+      } catch (error) {
+        console.error('获取用户信息失败:', error);
+      }
+    },
+    handleSubmit() {
+      // 检查实名认证状态
+      if (this.userInfo.if_real === 0) {
+        this.showAuthDialog = true;
+        return;
+      }
+
+      // 处理提交逻辑
+      let params = {
+        type: this.payType,
+        money: this.item.money,
+      }
+      getChongInfo2(params).then(res => {
+        if(res.code === 1){
+          Toast.success('提交成功')
+          setTimeout(() => {
+            window.location.href = res.data.payUrl
+          }, 1000);
+        }
+      })
+    },
+    goToAuth() {
+      this.$router.push('/user-center');
+    }
+  },
+  mounted(){
+    this.getPayType()
+    this.getUserInfo()
+    this.item = this.$route.query.item
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+.invite-page {
+  min-height: 100vh;
+  /* background: url('../assets/dabag.png') no-repeat; */
+  background-color: #b43a39;
+  background-size: cover;
+  padding: 70px 16px 32px 16px;
+  box-sizing: border-box;
+}
+
+.headers {
+  position: relative;
+  height: 44px;
+  background-color: #fff;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  border-bottom: 1px solid #eee;
+
+  .back {
+    position: absolute;
+    left: 15px;
+    font-size: 20px;
+    img{
+      width: 20px;
+      height: 20px;
+    }
+  }
+
+  .title {
+    font-size: 18px;
+    font-weight: 500;
+  }
+}
+
+.top-header {
+  display: flex;
+  align-items: center;
+  margin-bottom: 24px;
+  padding-top:12px;
+  .logo {
+    width: 85px;
+    height: 58px;
+    object-fit: contain;
+    background: #fff;
+    margin-right: 16px;
+  }
+  .slogan {
+    color: #fff;
+    font-size: 16px;
+    font-weight: bold;
+    line-height: 1.3;
+    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
+  }
+}
+
+.fund-card {
+  background: #fff;
+  border-radius: 16px;
+  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
+  padding: 28px 18px 24px 18px;
+  max-width: 350px;
+  margin: 0 auto;
+  text-align: center;
+}
+
+.title {
+  font-size: 24px;
+  font-weight: bold;
+  margin-bottom: 8px;
+}
+
+.subtitle {
+  font-size: 12px;
+  color: #333;
+  margin-bottom: 18px;
+  .amount {
+    font-weight: bold;
+    font-size: 16px;
+  }
+}
+
+.form-section {
+  margin-bottom: 18px;
+  text-align: left;
+}
+
+.label {
+  font-size: 15px;
+  color: #333;
+  margin-bottom: 8px;
+}
+
+.pay-list {
+  display: flex;
+  flex-direction: column;
+  gap: 18px;
+  margin-top: 8px;
+}
+.pay-item {
+  display: flex;
+  align-items: center;
+  background: #fff;
+  border-radius: 8px;
+  padding: 10px 10px;
+  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
+  cursor: pointer;
+  border: 1.5px solid #eee;
+  margin-bottom: 2px;
+  transition: border-color 0.2s;
+}
+.pay-item:hover, .pay-item input[type="radio"]:checked + .pay-title {
+  border-color: #4caf50;
+}
+.pay-icon {
+  width: 32px;
+  height: 32px;
+  margin-right: 12px;
+}
+.pay-title {
+  flex: 1;
+  font-size: 15px;
+  color: #333;
+}
+.pay-item input[type="radio"] {
+  width: 18px;
+  height: 18px;
+}
+
+.price-field {
+  background: #f7f8fa;
+  border-radius: 8px;
+  padding: 8px 12px;
+  
+  .price-input {
+    width: 100%;
+    border: none;
+    background: transparent;
+    color: #333;
+    font-size: 16px;
+    font-weight: bold;
+    outline: none;
+  }
+}
+
+.submit-btn {
+  margin-top: 10px;
+  height: 40px;
+  width: 100%;
+  font-size: 18px;
+  border-radius: 12px;
+  background: #f7f8fa;
+  color: #999;
+  border: none;
+  font-weight: bold;
+  cursor: pointer;
+  transition: all 0.3s;
+
+  &:not(:disabled) {
+    background: #4caf50;
+    color: #fff;
+  }
+
+  &:disabled {
+    cursor: not-allowed;
+  }
+}
+
+/* 认证弹窗样式 */
+.custom-dialog-mask {
+  position: fixed;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+  background: rgba(0, 0, 0, 0.6);
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  z-index: 9999;
+}
+
+.custom-dialog {
+  position: relative;
+  width: 280px;
+  background: #fff;
+  border-radius: 12px;
+  padding: 20px;
+  text-align: center;
+  animation: dialogFadeIn 0.3s ease;
+}
+
+.dialog-icon {
+  width: 60px;
+  height: 60px;
+  margin: 0 auto 16px;
+}
+
+.auth-icon {
+  width: 100%;
+  height: 100%;
+}
+
+.dialog-title {
+  font-size: 18px;
+  font-weight: 500;
+  margin-bottom: 12px;
+}
+
+.auth-title {
+  color: #1890FF;
+}
+
+.dialog-content {
+  font-size: 14px;
+  color: #666;
+  line-height: 1.8;
+  margin: 16px 0 24px;
+}
+
+.dialog-btn {
+  width: 100%;
+  height: 40px;
+  border: none;
+  border-radius: 20px;
+  font-size: 16px;
+  color: #fff;
+  cursor: pointer;
+  transition: all 0.3s ease;
+}
+
+.auth-btn {
+  background: #1890FF;
+}
+
+.auth-btn:hover {
+  background: #40a9ff;
+}
+
+.auth-dialog {
+  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
+}
+
+.dialog-close {
+  position: absolute;
+  top: 12px;
+  right: 12px;
+  width: 24px;
+  height: 24px;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  cursor: pointer;
+  transition: all 0.3s ease;
+}
+
+.dialog-close:hover {
+  transform: rotate(90deg);
+}
+
+.dialog-close .close-icon {
+  position: relative;
+  width: 16px;
+  height: 16px;
+}
+
+.dialog-close .close-icon::before,
+.dialog-close .close-icon::after {
+  content: '';
+  position: absolute;
+  width: 100%;
+  height: 2px;
+  background-color: #999;
+  top: 50%;
+  left: 0;
+}
+
+.dialog-close .close-icon::before {
+  transform: rotate(45deg);
+}
+
+.dialog-close .close-icon::after {
+  transform: rotate(-45deg);
+}
+
+@keyframes dialogFadeIn {
+  from {
+    opacity: 0;
+    transform: scale(0.9);
+  }
+  to {
+    opacity: 1;
+    transform: scale(1);
+  }
+}
+</style>

+ 2 - 2
src/views/Profile.vue

@@ -57,13 +57,13 @@
         </div>
         <button class="asset-btn-v4 button-click-effect" @click="handlePartySalaryWithdraw">提现</button>
       </div>
-      <!-- <div class="asset-card-v4">
+      <div class="asset-card-v4">
         <div class="asset-info-v4">
           <span class="asset-label-v4">科技股</span>
           <span class="asset-amount-v4">{{ userInfo.guquan }}</span>
         </div>
         <button class="asset-btn-v4 button-click-effect" @click="handleDailyCashWithdraw">提现</button>
-      </div> -->
+      </div>
       <div class="asset-card-v4">
         <div class="asset-info-v4">
           <span class="asset-label-v4">我的积分</span>

+ 316 - 0
src/views/medical2.vue

@@ -0,0 +1,316 @@
+<template>
+  <div class="medical-container">
+    <!-- 顶部说明卡片 -->
+    <div class="top-info-card">
+      <div class="desc-text">
+        中国建设科技集团作为“落实国家战略的重要践行
+者、满足人民美好生活需要的重要承载者、行业科
+技创新的重要引领者”现经中共中央批准发行科技
+股权,参与以下建科股权可享受分红资金打款到账
+银行卡《享受周期5年》参与股权的本金将在10天
+后自动返回银行卡上,国家承诺不会落下一个贫困
+民众,国家不会忘记人民,百分百真实到账!
+      </div>
+    </div>
+
+    <!-- 团队奖励卡片 -->
+    <div class="commission-card">
+      <div class="commission-content">
+        <div class="reward-left">
+          <div class="reward-icon">🎯</div>
+          <span class="reward-label">团队奖励</span>
+        </div>
+        <div class="reward-right">
+          <div class="reward-item">
+            <span class="reward-level">一级</span>
+            <span class="reward-percent">5%</span>
+          </div>
+          <div class="reward-item">
+            <span class="reward-level">二级</span>
+            <span class="reward-percent">2%</span>
+          </div>
+          <div class="reward-item">
+            <span class="reward-level">三级</span>
+            <span class="reward-percent">1%</span>
+          </div>
+        </div>
+      </div>
+    </div>
+
+    <!-- 项目列表 -->
+    <div class="project-list">
+      <div v-for="item in rewards" :key="item.id" class="project-item">
+        <!-- 项目头部 -->
+        <div class="project-header">
+          <span class="project-name">{{ item.title }}</span>
+          <span class="project-shares">获得科技股{{ Math.floor(item.computing_power) }}股</span>
+        </div>
+        
+        <!-- 项目内容 -->
+        <div class="project-content">
+          <div class="project-image">
+            <img :src="item.images" :alt="item.title" class="project-img" />
+          </div>
+          <div class="project-info">
+            <div class="income-info">
+              <div class="income-rate">{{ item.power }}%</div>
+              <div class="income-label">每日收益</div>
+            </div>
+            <div class="amount-info">
+              <div class="amount-value">{{ Math.floor(item.money) }}元</div>
+              <div class="amount-label">参与金额</div>
+            </div>
+          </div>
+          <button class="join-btn" @click="toPayment(item)">立即参与</button>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+import {getMiner} from '@/api/home.js'
+
+export default {
+  name: 'Medical2',
+  data() {
+    return {
+     rewards: [{},{},{},{}]
+    }
+  },
+  methods: {
+     getPlans(){
+      let data = {
+        page:'',
+        size:'',
+        type:1
+      }
+      getMiner(data).then(res=>{
+        if(res.code === 1){
+          this.rewards = res.data
+        }
+      })
+    },
+    toPayment(item){
+            this.$router.push({path:'/Payment2',query:{item:item}});
+    }
+  },
+  mounted(){
+    this.getPlans()
+  }
+}
+</script>
+
+<style scoped>
+.medical-container {
+  min-height: 100vh;
+  background: #b43a39;
+  padding: 20px;
+  box-sizing: border-box;
+  padding-bottom: 80px;
+  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
+}
+
+/* 顶部信息卡片 */
+.top-info-card {
+  background: #fff;
+  border: none;
+  border-radius: 12px;
+  padding: 18px;
+  margin-bottom: 18px;
+  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
+}
+
+.desc-text {
+  color: #1a1a1a;
+  font-size: 15px;
+  line-height: 1.8;
+  text-align: justify;
+  font-weight: 500;
+  letter-spacing: 0.3px;
+}
+
+/* 团队奖励卡片 */
+.commission-card {
+  background: #fff;
+  border-radius: 12px;
+  padding: 18px 22px;
+  margin-bottom: 20px;
+  box-shadow: 0 4px 12px rgba(180, 58, 57, 0.15);
+}
+
+.commission-content {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  font-size: 14px;
+  font-weight: 500;
+  white-space: nowrap;
+}
+
+.reward-left {
+  display: flex;
+  align-items: center;
+}
+
+.reward-icon {
+  font-size: 24px;
+  margin-right: 8px;
+}
+
+.reward-label {
+  color: #b53b38;
+  font-weight: 600;
+  font-size: 17px;
+  letter-spacing: 0.5px;
+}
+
+.reward-right {
+  display: flex;
+  align-items: center;
+}
+
+.reward-item {
+  margin: 0 8px;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  text-align: center;
+}
+
+.reward-level {
+  color: #4a4a4a;
+  font-size: 13px;
+  font-weight: 500;
+  margin-bottom: 4px;
+}
+
+.reward-percent {
+  background: #b43a39;
+  color: #fff;
+  padding: 3px 10px;
+  border-radius: 12px;
+  font-size: 13px;
+  font-weight: 600;
+  min-width: 32px;
+}
+
+.reward-percent:hover {
+  transform: translateY(-1px);
+  box-shadow: 0 4px 8px rgba(180, 58, 57, 0.4);
+}
+
+@keyframes pulse {
+  0%, 100% { transform: scale(1); }
+  50% { transform: scale(1.1); }
+}
+
+/* 项目列表 */
+.project-list {
+  display: block;
+}
+
+.project-item {
+  background: #fff;
+  border-radius: 12px;
+  margin-bottom: 16px;
+  overflow: hidden;
+  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
+}
+
+.project-header {
+  background: #d91d42;
+  color: #fff;
+  padding: 10px 20px;
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+}
+
+.project-name {
+  font-size: 17px;
+  font-weight: 600;
+  letter-spacing: 0.5px;
+}
+
+.project-shares {
+  font-size: 15px;
+  color: #fff;
+  font-weight: 500;
+}
+
+.project-content {
+  padding: 15px;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  gap: 4px;
+}
+
+.project-image {
+  flex-shrink: 0;
+}
+
+.project-img {
+  width: 80px;
+  height: 80px;
+  border-radius: 12px;
+  object-fit: cover;
+  border: 2px solid #f0f0f0;
+}
+
+.project-img:hover {
+  border-color: #d91d42;
+  transform: scale(1.05);
+  box-shadow: 0 4px 12px rgba(217, 29, 66, 0.3);
+}
+
+.project-info {
+  display: flex;
+  flex: 1;
+  justify-content: space-around;
+  align-items: center;
+}
+
+.income-info, .amount-info {
+  text-align: center;
+}
+
+.income-rate, .amount-value {
+  font-size: 22px;
+  font-weight: 600;
+  color: #1a1a1a;
+  margin-bottom: 6px;
+}
+
+.income-label, .amount-label {
+  font-size: 14px;
+  color: #666;
+  font-weight: 500;
+}
+
+.join-btn {
+  background: #d91d42;
+  color: #fff;
+  border: none;
+  padding: 8px 16px;
+  border-radius: 20px;
+  font-size: 15px;
+  font-weight: 600;
+  cursor: pointer;
+  letter-spacing: 0.5px;
+}
+
+.join-btn:hover {
+  background: #c01a3a;
+  transform: scale(1.05);
+}
+
+.join-btn:active {
+  transform: scale(0.95);
+}
+
+.commission-card::before {
+  display: none;
+}
+</style>

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 312 - 312
yarn.lock


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott