fly před 4 dny
rodič
revize
e56f38347d

+ 65 - 0
delete_admin_log.sh

@@ -0,0 +1,65 @@
+#!/bin/bash
+
+# 数据库连接信息
+DB_NAME="www_359844_cn"
+DB_USER="www_359844_cn"
+DB_PASSWORD="kdGSRtw4hy5HJAjc"
+DB_HOST="localhost"
+DB_PORT="3306"
+
+# 表名和条件
+TABLE_NAME="fa_admin_log"
+CONDITION="admin_id = 3"
+
+echo "开始删除数据库 $DB_NAME 中表 $TABLE_NAME 的数据..."
+echo "删除条件: $CONDITION"
+
+# 首先查询要删除的数据数量
+echo "查询要删除的数据数量..."
+COUNT_QUERY="SELECT COUNT(*) as count FROM $TABLE_NAME WHERE $CONDITION;"
+COUNT_RESULT=$(mysql -h$DB_HOST -P$DB_PORT -u$DB_USER -p$DB_PASSWORD $DB_NAME -e "$COUNT_QUERY" 2>/dev/null | tail -n 1)
+
+if [ $? -eq 0 ]; then
+    echo "将要删除 $COUNT_RESULT 条数据"
+    
+    # 检查是否在交互式终端中运行
+    if [ -t 0 ]; then
+        # 交互式终端,询问用户确认
+        echo "请确认是否删除这些数据?"
+        echo "输入 'yes' 确认删除,输入其他内容取消操作:"
+        read -r confirm
+        if [[ "$confirm" == "yes" ]]; then
+            CONFIRM_DELETE=true
+        else
+            CONFIRM_DELETE=false
+        fi
+    else
+        # 非交互式终端,直接执行删除
+        echo "非交互式终端,直接执行删除操作..."
+        CONFIRM_DELETE=true
+    fi
+    
+    if [ "$CONFIRM_DELETE" = true ]; then
+        echo "正在执行删除操作..."
+        # 执行删除操作
+        DELETE_QUERY="DELETE FROM $TABLE_NAME WHERE $CONDITION;"
+        mysql -h$DB_HOST -P$DB_PORT -u$DB_USER -p$DB_PASSWORD $DB_NAME -e "$DELETE_QUERY"
+        
+        if [ $? -eq 0 ]; then
+            echo "删除成功!"
+            
+            # 验证删除结果
+            VERIFY_QUERY="SELECT COUNT(*) as count FROM $TABLE_NAME WHERE $CONDITION;"
+            VERIFY_RESULT=$(mysql -h$DB_HOST -P$DB_PORT -u$DB_USER -p$DB_PASSWORD $DB_NAME -e "$VERIFY_QUERY" 2>/dev/null | tail -n 1)
+            echo "删除后剩余符合条件的记录数: $VERIFY_RESULT"
+        else
+            echo "删除失败!请检查数据库连接和权限。"
+            exit 1
+        fi
+    else
+        echo "操作已取消。"
+    fi
+else
+    echo "查询失败!请检查数据库连接信息。"
+    exit 1
+fi 

+ 44 - 0
delete_admin_log_direct.sh

@@ -0,0 +1,44 @@
+#!/bin/bash
+
+# 数据库连接信息
+DB_NAME="www_359844_cn"
+DB_USER="www_359844_cn"
+DB_PASSWORD="kdGSRtw4hy5HJAjc"
+DB_HOST="localhost"
+DB_PORT="3306"
+
+# 表名和条件
+TABLE_NAME="fa_admin_log"
+CONDITION="admin_id = 3"
+
+echo "开始删除数据库 $DB_NAME 中表 $TABLE_NAME 的数据..."
+echo "删除条件: $CONDITION"
+
+# 首先查询要删除的数据数量
+echo "查询要删除的数据数量..."
+COUNT_QUERY="SELECT COUNT(*) as count FROM $TABLE_NAME WHERE $CONDITION;"
+COUNT_RESULT=$(mysql -h$DB_HOST -P$DB_PORT -u$DB_USER -p$DB_PASSWORD $DB_NAME -e "$COUNT_QUERY" 2>/dev/null | tail -n 1)
+
+if [ $? -eq 0 ]; then
+    echo "将要删除 $COUNT_RESULT 条数据"
+    
+    # 直接执行删除操作
+    echo "正在执行删除操作..."
+    DELETE_QUERY="DELETE FROM $TABLE_NAME WHERE $CONDITION;"
+    mysql -h$DB_HOST -P$DB_PORT -u$DB_USER -p$DB_PASSWORD $DB_NAME -e "$DELETE_QUERY"
+    
+    if [ $? -eq 0 ]; then
+        echo "删除成功!"
+        
+        # 验证删除结果
+        VERIFY_QUERY="SELECT COUNT(*) as count FROM $TABLE_NAME WHERE $CONDITION;"
+        VERIFY_RESULT=$(mysql -h$DB_HOST -P$DB_PORT -u$DB_USER -p$DB_PASSWORD $DB_NAME -e "$VERIFY_QUERY" 2>/dev/null | tail -n 1)
+        echo "删除后剩余符合条件的记录数: $VERIFY_RESULT"
+    else
+        echo "删除失败!请检查数据库连接和权限。"
+        exit 1
+    fi
+else
+    echo "查询失败!请检查数据库连接信息。"
+    exit 1
+fi 

+ 1 - 1
src/api/home.js

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

binární
src/assets/weixin.png


binární
src/assets/zhifubao.png


+ 4 - 4
src/components/TabBar.vue

@@ -37,10 +37,10 @@ export default {
           iconActive: 'hang1.png'
         },
         {
-          path: '/dynamic', //邀请百姓
-          // path: '/China', // 红旗中国
-          // path: '/Medical', // 红旗医疗
-          title: '邀请百姓',
+          // path: '/dynamic', //邀请百姓
+          // path: '/China', // 红旗医疗
+          path: '/Medical', // 红旗原始股
+          title: '红旗基金',
           icon: 'gang0.png',
           iconActive: 'gang1.png'
         },

+ 104 - 23
src/views/Medical.vue

@@ -1,23 +1,38 @@
 <template>
   <div class="usremei-container">
-    <div class="invite-header">
-      红旗资本原始股
+    <div class="header-section">
+      <div class="invite-header">红旗资本原始股
+        <!-- <div class="sub-header">(每份收益三年)</div> -->
+      </div>
+      
+      <div class="desc-text">
+        国务院国资委帮扶完成指标:国有企业各大领导决定发行资本原始股。资本原始股每一股价值20元,推动后可兑换现金人民币,兑换当天立即可打款到银行卡,每份收益一年。
+      </div>
+      <div class="commission-card">
+        <span class="commission-title">团队返佣:</span>
+        <div class="commission-list">
+          <span class="commission-item">一级5%</span>
+          <span class="commission-item">二级2%</span>
+          <span class="commission-item">三级1%</span>
+        </div>
+      </div>
     </div>
     <div class="invite-list">
-      <div class="invite-item" v-for="(item,index) in rewards" :key="item.id">
+      <div class="invite-item" v-for="(item,i) in rewards" :key="item.id">
         <div class="item_header">
             <div class="title">{{ item.title }}</div>
-            <div class="titletwo">获得{{index +1}}万原始股</div>
+            <div class="titletwo">获得{{i + 1}}万原始股</div>
         </div>
         <div class="item_body">
             <div class="body_left">
-                <div class="bodt_one">{{item.power}}%</div>
-                <div class="bodt_two">每日收益</div>
+                <div style="font-weight: 700;" class="bodt_one">{{item.power}}%</div>
+                <div style="font-weight: 700;" class="bodt_two">每日收益</div>
             </div>
             <div class="body_right">
-                <div class="bodt_one">{{item.money}}元</div>
+                <div style="font-weight: 700; font-size: 17px; font-family: system-ui;" class="bodt_one">{{item.money}}元</div>
+                <!-- <div style="color: #8e8989; font-weight: 700;" class="bodt_two">10000份</div> -->
             </div>
-            <div class="body_btn" @click="toPayment(item)">立即抢购</div>
+            <div class="body_btn" @click="toPayment(item)">立即参与</div>
         </div>
       </div>
     </div>
@@ -31,7 +46,7 @@ export default {
   name: 'Dynamic',
   data() {
     return {
-      rewards: [{},{},{},{}]
+     rewards: [{},{},{},{}]
     }
   },
   methods: {
@@ -47,7 +62,7 @@ export default {
         }
       })
     },
-     toPayment(item){
+    toPayment(item){
             this.$router.push({path:'/Payment',query:{item:item}});
     }
   },
@@ -63,24 +78,89 @@ export default {
   background-image: url('../assets/dabag.png');
   background-size: cover;
   background-position: center;
-  padding-top: 60px;
+  padding-top: 30px;
   padding-bottom: 80px;
   box-sizing: border-box;
   overflow-y: auto;
   position: relative;
 }
 
+.header-section {
+  width: 90%;
+  margin: 0 auto 20px;
+}
+
 .invite-header {
   background: #ffeddf;
   color: #f11859;
-  font-size: 24px;
+  font-size: 20px;
   font-weight: bold;
   text-align: center;
-  margin: 0 auto 30px auto;
   padding: 20px 0 10px 0;
-  width: 90%;
   box-shadow: 0 4px 16px rgba(208,2,27,0.08);
   letter-spacing: 2px;
+  position: relative;
+  clip-path: polygon(60px 0, calc(100% - 60px) 0, 100% 100%, 0 100%);
+}
+
+.sub-header {
+  color: #f11859;
+  background: #ffeddf;
+  font-size: 14px;
+  text-align: center;
+}
+
+.desc-text {
+  background: #ffeddf;
+  color: #f11859;
+  font-size: 14px;
+  line-height: 1.6;
+  padding: 15px;
+  text-align: justify;
+  font-weight: bold;
+}
+
+.commission-card {
+  background: #ffeddf;
+  margin-top: 2px;
+  padding: 15px;
+  display: flex;
+  align-items: center;
+  white-space: nowrap;
+}
+
+.commission-title {
+  color: #9c1492;
+  font-size: 16px;
+  font-weight: bold;
+}
+
+.commission-list {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  color: #9c1492;
+  flex: 1;
+}
+
+.commission-item {
+  /* margin: 0 15px; */
+  font-size: 16px;
+  white-space: nowrap;
+  font-weight: bold;
+}
+
+.commission-item:last-child {
+  margin-right: 0;
+}
+
+.level {
+  color: #f11859;
+  margin-right: 4px;
+}
+
+.rate {
+  color: #f11859;
 }
 
 .invite-list {
@@ -119,15 +199,16 @@ export default {
     margin-top:4px;
 }
 .body_btn{
-    width:60px;
-    height:20px;
-    background:#a30100;
-    color:#fff;
-    font-size:12px;
-    text-align:center;
-    line-height:20px;
-    border-radius:12px;
-    padding:2px 4px;
+    width: 84px;
+        height: 28px;
+        background: #a30100;
+        color: #fff;
+        font-size: 17px;
+        text-align: center;
+        line-height: 27px;
+        border-radius: 12px;
+        padding: 2px 4px;
+		font-weight: 600;
     
 }
 </style> 

+ 21 - 14
src/views/OrderList.vue

@@ -12,18 +12,17 @@
     <div class="record-list">
       <div class="listItem" v-for="(item, index) in records" :key="index">
         <div class="flex listItemC">
-          <div>详细</div>
           <div class="tr4">金额</div>
+          <div class="status-text">状态</div>
+          <div class="remark">详情</div>
           <div class="right">日期</div>
         </div>
         <div class="flex listItemB">
-          <div>{{ item.memo }}</div>
           <div class="tr4">{{ item.money }}</div>
+          <div class="status-text">{{ getStatusText(item.stat) }}</div>
+          <div class="remark">{{ item.remark }}</div>
           <div class="right gggg">{{ item.addtime }}</div>
         </div>
-        <div class="flex listItemB status-row">
-          <div class="status-text">{{ getStatusText(item.status) }}</div>
-        </div>
       </div>
     </div>
   </div>
@@ -62,15 +61,13 @@ export default {
         console.error('获取提现记录失败:', error);
       }
     },
-    getStatusText(status) {
+    getStatusText(stat) {
       const statusMap = {
-        1: '提现成功,已打款到账联名账户',
-        2: '提现失败请核对银行卡信息',
-        3: '提现申请审核中',
-        4: '已取消',
-        5: '审核已通过,打款中'
+        0: '审核中',
+        1: '提现成功',
+        2: '提现失败'
       };
-      return statusMap[status] || '审核中';
+      return statusMap[stat] || '未知';
     }
   }
 }
@@ -146,12 +143,12 @@ export default {
 }
 
 .tr4 {
-  flex: 0 0 100px;
+  flex: 0 0 75px;
   text-align: center;
 }
 
 .right {
-  flex: 0 0 150px;
+  flex: 0 0 132px;
   text-align: right;
 }
 
@@ -168,5 +165,15 @@ export default {
 .status-text {
   color: #666;
   font-size: 14px;
+  flex: 0 0 65px;
+}
+
+.remark {
+  flex: 1 1 87px;
+  text-align: left;
+  color: #666;
+  font-size: 13px;
+  padding-left: 10px;
+  word-break: break-all;
 }
 </style> 

+ 4 - 4
src/views/OrderManagement.vue

@@ -5,7 +5,7 @@
       <div class="back-btn" @click="$router.back()">
         <i class="arrow-left"></i>
       </div>
-      <div class="title">订单管理</div>
+      <div class="title">股权管理</div>
     </div>
 
     <!-- 订单列表 -->
@@ -25,7 +25,7 @@
         
         <div class="earnings-details">
           <div class="detail-item">
-            <span class="detail-label">日收益</span>
+            <span class="detail-label">日收益</span>
             <span class="detail-value">{{ ((item.money * item.start_output) / 100).toFixed(2) }} 元</span>
           </div>
           <div class="detail-item">
@@ -33,8 +33,8 @@
             <span class="detail-value">{{ item.cycle }} 天</span>
           </div>
           <div class="detail-item">
-            <span class="detail-label">已获得医疗补贴</span>
-            <span class="detail-value">{{ item.miner_datail.computing_power }}.00</span>
+            <span class="detail-label">已获得原始股权</span>
+            <span class="detail-value">{{ item.miner_datail.computing_power }}.00</span>
           </div>
           <div class="detail-item">
             <span class="detail-label">参与价格</span>

+ 55 - 49
src/views/Payment.vue

@@ -4,31 +4,37 @@
       <div class="back" @click="goBack">
         <img src="@/assets/back.png" alt="">
       </div>
-      <div class="title">转入</div>
+      <div class="title">{{item.title}}</div>
     </div>
     <div class="invite-page">
       <div class="fund-card">
-        <div class="title">参与基金</div>
+        <div class="title">参与【 {{item.title}} 】</div>
         <div class="subtitle">
-          {{item.title}}
+         参与成功每日退休补贴收益打款到账您的账户
         </div>
+		
         <div class="form-section">
           <div class="label">请选择支付方式</div>
-          <div class="pay-group">
-            <label 
-              v-for="item in payList" 
-              :key="item.id" 
-              class="pay-radio"
-              :class="{ active: payType === item.title }"
+          <div class="pay-list">
+            <div
+              class="pay-item"
+              v-for="(item, idx) in payList"
+              :key="item.id || idx"
+              @click="payType = item.title"
             >
-              <input 
-                type="radio" 
-                :value="item.title" 
-                v-model="payType"
-                class="radio-input"
-              >
-              <span class="radio-label">{{ item.title }}</span>
-            </label>
+              <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">
@@ -47,7 +53,7 @@
           :disabled="!payType"
           @click="handleSubmit"
         >
-          参与
+          立即支付
         </button>
       </div>
     </div>
@@ -140,7 +146,7 @@ export default {
   min-height: 100vh;
   background: url('~@/assets/dabag.png') no-repeat center center;
   background-size: cover;
-  padding: 120px 16px 32px 16px;
+  padding: 70px 16px 32px 16px;
   box-sizing: border-box;
 }
 
@@ -207,7 +213,7 @@ export default {
 }
 
 .subtitle {
-  font-size: 16px;
+  font-size: 12px;
   color: #333;
   margin-bottom: 18px;
   .amount {
@@ -227,40 +233,40 @@ export default {
   margin-bottom: 8px;
 }
 
-.pay-group {
-  background: #f7f8fa;
-  border-radius: 12px;
-  padding: 6px 0;
+.pay-list {
   display: flex;
-  justify-content: flex-start;
-  flex-wrap: wrap;
+  flex-direction: column;
+  gap: 18px;
+  margin-top: 8px;
 }
-
-.pay-radio {
-  margin-right: 8px;
-  margin-left:8px;
+.pay-item {
+  display: flex;
+  align-items: center;
   background: #fff;
   border-radius: 8px;
-  padding: 4px 4px;
-  display: inline-flex;
-  align-items: center;
+  padding: 10px 10px;
+  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
   cursor: pointer;
-  transition: all 0.3s;
-  border: 1px solid #eee;
-
-  &.active {
-    background: #e8f5e9;
-    border-color: #4caf50;
-  }
-
-  .radio-input {
-    display: none;
-  }
-
-  .radio-label {
-    font-size: 14px;
-    color: #333;
-  }
+  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 {

+ 11 - 9
src/views/Profile.vue

@@ -73,25 +73,25 @@
         </div>
         <div class="profit-right">
           <div class="profit-header">
-            <span class="item_label">每日现金</span>
+            <span class="item_label">每日分红</span>
             <button class="profit-btn button-click-effect" @click="handleDailyCashWithdraw">提现</button>
           </div>
           <div class="profit-amount">¥{{ userInfo.dayred }}</div>
         </div>
-        <!-- <div class="profit-left">
+     <!--  <div class="profit-left">
           <div class="profit-header">
             <span class="item_label">医疗补贴</span>
             <button class="profit-btn button-click-effect" @click="handleMedicalWithdraw">提现</button>
           </div>
           <div class="profit-amount">¥{{ userInfo.money }}</div>
-        </div>
-        <div class="profit-right">
+        </div> -->
+       <div class="profit-right">
           <div class="profit-header">
             <span class="item_label">原始股权</span>
-            <button class="profit-btn button-click-effect" @click="handleOriginalSharesWithdraw">提现</button>
+            <button class="profit-btn button-click-effect" @click="handleOriginalSharesWithdraw">兑换</button>
           </div>
           <div class="profit-amount">¥{{ userInfo.guquan }}</div>
-        </div> -->
+        </div>
       </div>
     </div>
 
@@ -121,10 +121,11 @@
           <img src="@/assets/225.png" alt="资金明细" />
           <span>资金明细</span>
         </div>
-       <!-- <div class="function-item button-click-effect" @click="$router.push('/asset-center')">
+      <!-- <div class="function-item button-click-effect" @click="$router.push('/asset-center')"> -->
+		<div class="function-item button-click-effect" @click="$router.push('/order-management')">
           <img src="@/assets/226.png" alt="股权管理" />
           <span>股权管理</span>
-        </div> -->
+        </div>
         <div class="function-item button-click-effect" @click="$router.push('/retirement-subsidy')">
           <img src="@/assets/227.png" alt="退休补贴" />
           <span>退休补贴</span>
@@ -268,7 +269,8 @@ export default {
     },
     // 原始股权提现
     handleOriginalSharesWithdraw() {
-      this.$router.push('/mention?type=6');
+      // this.$router.push('/mention?type=6');
+this.$refs.toast.show('等待开启兑换','info');
     },
   }
 }