123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- <template>
- <view class="">
- <view class="sort">
- <view
- class="sortItem"
- :style="{ color: current == 1 ? '#A5CF49' : '#333333' }"
- @click="sort(1)"
- >
- <text>平台资讯</text>
- </view>
- <view
- class="sortItem"
- @click="sort(2)"
- :style="{ color: current == 2 ? '#A5CF49' : '#333333' }"
- >
- <text>平台规则</text>
- </view>
- </view>
- <view class="notice">
- <u-notice-bar
- v-if="text1"
- :text="text1"
- color="#fff"
- bgColor="#A5CF49"
- fontSize="16"
- ></u-notice-bar>
- </view>
- <view class="content">
- <u-parse v-if="current == 1" :content="platform_information"></u-parse>
- <u-parse v-else :content="platform_rules"></u-parse>
- </view>
- </view>
- </template>
- <script setup>
- import { onLoad, onShow, onPullDownRefresh } from "@dcloudio/uni-app";
- import zpTooltip from "../../uni_modules/zb-tooltip/components/zb-tooltip/zb-tooltip.vue";
- import { ref } from "vue";
- import {
- getplatformeditor,
- getnoticelist,
- getplatformmeun,
- } from "@/utils/api.js";
- let platform_information = ref("");
- let platform_rules = ref("");
- onLoad(() => {
- getplatformmeun().then((res) => {
- uni.setNavigationBarTitle({
- title: res.data.name,
- });
- text1.value = res.data.infomation_notice || "";
- });
- getplatformeditor().then((res) => {
- platform_information.value = res.data.platform_information;
- platform_rules.value = res.data.platform_rules;
- });
- // getnoticelist(3).then(res=>{
- // let data=res.data
- // data.forEach(item=>{
- // text1.value=text1.value+' '+item.content
- // })
- // })
- // text1.value=getApp().globalData.config.infomation_notice
- });
- onShow(() => {});
- let text1 = ref("");
- let current = ref(1);
- let sort = (type) => {
- if (current.value != type) {
- current.value = type;
- }
- };
- onPullDownRefresh(() => {
- setTimeout(function () {
- uni.stopPullDownRefresh();
- }, 1000);
- });
- </script>
- <style lang="scss">
- .content {
- background-color: #fff;
- padding: 40rpx 28rpx;
- }
- .accountList {
- background-color: #ffffff;
- .accountItem {
- border-bottom: 1rpx solid #f5f5f5;
- display: flex;
- padding: 24rpx;
- align-items: center;
- image {
- width: 188rpx;
- max-height: 188rpx;
- border-radius: 10rpx;
- margin-right: 26rpx;
- }
- .introduction {
- flex: 1;
- .title {
- color: #666666;
- font-size: 28rpx;
- }
- .u-fade-enter-active {
- margin-top: 0;
- padding: 10rpx;
- }
- .price {
- color: #ff2828;
- font-size: 24rpx;
- text {
- font-size: 40rpx;
- font-weight: bold;
- }
- }
- }
- }
- }
- .btnBox {
- margin-top: 100rpx;
- display: flex;
- justify-content: right;
- button {
- margin: 0;
- margin-left: 40rpx;
- padding: 0;
- width: 206rpx;
- height: 80rpx;
- line-height: 80rpx;
- background: #f5f5f5;
- border-radius: 40rpx;
- font-size: 24rpx;
- }
- .btn1 {
- background: #f5f5f5;
- }
- .btn2 {
- background: #a5cf49;
- color: #fff;
- }
- }
- .labelItem {
- .label {
- font-size: 24rpx;
- font-weight: bold;
- margin: 24rpx 0 10rpx;
- }
- .value {
- .codeInput {
- font-size: 24rpx;
- width: 562rpx;
- height: 68rpx;
- line-height: 68rpx;
- background: #f5f5f5;
- border-radius: 20rpx;
- padding: 0 24rpx;
- }
- }
- .value1 {
- display: flex;
- align-items: center;
- justify-content: space-between;
- input {
- font-size: 24rpx;
- text-align: center;
- width: 231rpx;
- height: 68rpx;
- line-height: 68rpx;
- background: #f5f5f5;
- border-radius: 20rpx;
- padding: 0 24rpx;
- }
- }
- }
- .popup {
- padding: 0 40rpx;
- font-size: 24rpx;
- .item {
- line-height: 90rpx;
- border-bottom: 1rpx solid #f5f5f5;
- }
- }
- .popup1 {
- padding: 0 40rpx 40rpx;
- }
- ::v-deep .u-checkbox {
- span {
- font-size: 24rpx !important;
- }
- margin-right: 20rpx;
- }
- ::v-deep .u-radio {
- span {
- font-size: 24rpx !important;
- }
- margin-right: 20rpx;
- }
- ::v-deep .u-fade-enter-active {
- margin-top: 89px;
- }
- ::v-deep .u-slide-down-enter-to {
- top: 89px !important;
- }
- .select {
- transform: rotate(180deg);
- }
- page {
- .sort {
- border-top: 1rpx solid #f2f2f2;
- // width: 750rpx;
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- background: #ffffff;
- box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.1);
- display: flex;
- .sortItem {
- flex: 1;
- display: flex;
- justify-content: center;
- text {
- margin-right: 16rpx;
- }
- }
- }
- }
- </style>
|