1
李凌
2025-10-17 1927f50d962dfe4478fda88b88b5cf83061036e2
1
3 files modified
46 ■■■■■ changed files
src/views/C2C/c2c-trade/components/C2cTrade.vue 2 ●●● patch | view | raw | blame | history
src/views/C2C/c2c-trade/page/SellGenerate.vue 10 ●●●●● patch | view | raw | blame | history
src/views/homePage/index.vue 34 ●●●●● patch | view | raw | blame | history
src/views/C2C/c2c-trade/components/C2cTrade.vue
@@ -41,7 +41,7 @@
          <span class="text-grey">{{ $t("交易方式") }}</span>
          <div class="h-56 tabBackground rounded-md">
            <template v-if="detail.direction === 'buy'">
              <van-popover class="w-full h-full" placement="left-end" :theme="$store.state.home.theme"
              <van-popover class="w-full h-full" :theme="$store.state.home.theme"
                v-model:show="showPopover" trigger="click" :actions="payList" @select="onSelect">
                <template #reference>
                  <div class="flex justify-center items-center w-full h-full">
src/views/C2C/c2c-trade/page/SellGenerate.vue
@@ -14,7 +14,7 @@
            </div>
          </div>
          <div class="w-140 h-144">
            <otc-circle :time="orderDetail.expireTime * 60" @finish="finish" class="w-full h-full" />
            <otc-circle :time="orderDetail.autoCancelTimeRemain" @finish="finish" class="w-full h-full" />
          </div>
        </div>
        <div class="w-full mt-48 pt-46 pl-32 pb-42 box-border border-ra tabBackground c2cColor">
@@ -87,9 +87,10 @@
          :create-order-time="fullTime(orderDetail.createTime)" :seller-name="orderDetail.c2cUserNickName"
          :unit-price="orderDetail.symbolValue" />
        <!--   已超时   -->
        <cancel-success v-if="timeout" :title="$t('出售')" :count="orderDetail.coinAmount" :total-price="orderDetail.amount"
          :order-number="orderDetail.orderNo" :create-order-time="fullTime(orderDetail.createTime)"
          :seller-name="orderDetail.c2cUserNickName" :unit-price="orderDetail.symbolValue">
        <cancel-success v-if="timeout" :title="$t('出售')" :count="orderDetail.coinAmount"
          :total-price="orderDetail.amount" :order-number="orderDetail.orderNo"
          :create-order-time="fullTime(orderDetail.createTime)" :seller-name="orderDetail.c2cUserNickName"
          :unit-price="orderDetail.symbolValue">
          <template #title>{{ $t('已超时') }}</template>
          <template #desc>{{ $t('买家付款超时,您的订单已取消') }}</template>
        </cancel-success>
@@ -252,6 +253,7 @@
<style lang="scss" scoped>
@import "@/assets/css/copy2.scss";
.border-ra {
  border-radius: 20px;
}
src/views/homePage/index.vue
@@ -55,13 +55,11 @@
      <div class="flex-centerY flex-position-between" style="margin-top: 15px">
       <div class="flex flex-justify-between">
         <div style="font-size: 33px;font-weight: bold;color: black">
           {{showMoney?myAssets.capital.toFixed(0):"*****" }}
         </div>
         <div style="font-size: 24px;font-weight: bold;color: black;margin-top: 3px">
           {{showMoney?myAssets.capital.toFixed(2).substring(myAssets.capital.toFixed(2).indexOf(".")):""}}
            {{ showMoney ? todayMoney.money_contract : "*****" }}
         </div>
       </div>
        <div style="background: black;color: white;padding: 4px 17px;border-radius: 90px;font-size: 14px">
        <div style="background: black;color: white;padding: 4px 17px;border-radius: 90px;font-size: 14px"
          @click="toPage('/cryptos/recharge/rechargeList?isForeign=true')">
          {{$t("充值")}}
        </div>
      </div>
@@ -73,7 +71,8 @@
          {{showMoney? todayMoney.money_contract_profit_today:"****"}}
        </div>
        <div style="margin-left: 15px">
          {{showMoney?(Number(todayMoney.money_contract_profit_today+'')/(myAssets.capital==0?1:myAssets.capital)*100).toFixed(2)+'%':"****"}}
          {{ showMoney ? (Number(todayMoney.money_contract_profit_today + '') / (todayMoney.money_contract == 0 ? 1 :
            todayMoney.money_contract) * 100).toFixed(2) + '%' : "****" }}
        </div>
      </div>
    </div>
@@ -89,7 +88,8 @@
        <van-swipe @change="current=$event" indicator-color="#999" class="notice-swipe" :autoplay="2000"
                   :show-indicators="false" style="border-radius: 8px;overflow: hidden">
          <van-swipe-item v-for="item in announceList" style="border-radius: 8px;overflow: hidden;border: #eee 1px solid"  :key="item.id" @click="toAnnounceDetail(item.uuid)">
        <van-swipe-item v-for="item in announceList" style="border-radius: 8px;overflow: hidden;border: #eee 1px solid"
          :key="item.id" @click="toAnnounceDetail(item.uuid)">
<!--            <div class="flex justify-start items-center">-->
<!--              <img :src="item.imgUrl" style="width:100%" alt="" class="notice_img mr-5">-->
<!--&lt;!&ndash;              <div class="notice_content textColor">&ndash;&gt;-->
@@ -103,7 +103,8 @@
<!--      </van-notice-bar>-->
      <div class="flex-center" style="position:absolute;bottom:5px;left:0;;z-index:999;width: 100%">
        <div v-for="(i,index) in announceList">
          <div v-if="current!=index" style="width:3px;height:3px;background:#bbb;margin-right:5px;border-radius: 3px"></div>
          <div v-if="current != index" style="width:3px;height:3px;background:#bbb;margin-right:5px;border-radius: 3px">
          </div>
          <div v-else style="width:3px;height:3px;background:#333;;margin-right:5px;border-radius: 3px"></div>
        </div>
      </div>
@@ -137,7 +138,8 @@
<!--      </div>-->
<!--    </div>-->
    <div class="tabs flex justify-start items-center textColor1">
      <div v-for="i in tabList" :key="i" :class="i.key == tab ? 'textColor' : ''" @click="tab = i.key" style="font-size: 16px;margin-top: 20px">
      <div v-for="i in tabList" :key="i" :class="i.key == tab ? 'textColor' : ''" @click="tab = i.key"
        style="font-size: 16px;margin-top: 20px">
        {{ i.name }}
      </div>
    </div>
@@ -224,8 +226,16 @@
const store = useStore();
const showMoney=ref(true)
const myAssets=ref({})
const myAssetsz = ref({})
  _getassets().then(res => {
    myAssets.value = res
})
const todayMoney = ref({
  money_contract_profit_today: 0
})
_getContractBySymbolType().then(data => {
  todayMoney.value = data
  })
const tabbers = [
@@ -299,9 +309,6 @@
// 手风琴选中
const activeName = ref('0')
const todayMoney=ref({
  money_contract_profit_today:0
})
// tab切换
const tab = ref(1)
@@ -313,9 +320,6 @@
// 获取公告数据
const announceList = ref([])
_getContractBySymbolType().then(data => {
  todayMoney.value = data
})
_getNewsList1({
  language: useI18n().locale.value,
}).then(res => {