Browse Source

修改

master
liaoxinyu 2 years ago
parent
commit
6e8f4455ab
  1. 13
      layout/vPaging.vue
  2. 1
      pages/assets/draw.vue
  3. 2
      pages/exchange/exchange-transaction.vue
  4. 10
      pages/notice/index.vue
  5. 2
      pages/reg/index.vue

13
layout/vPaging.vue

@ -41,12 +41,13 @@ export default {
this.getList(over); this.getList(over);
}, },
getList(over) { getList(over) {
let data = Object.assign( let data = {}
{ if(this.$router.currentRoute.fullPath=='/pages/exchange/exchangeHis'){
page: this.page data = Object.assign({page: this.page,symbol: sessionStorage.getItem('symbol')},this.data);
}, }else{
this.data data = Object.assign({page: this.page,},this.data);
); }
// let data = Object.assign({page: this.page,symbol: sessionStorage.getItem('symbol')},this.data);
this.ajax(data).then((res) => { this.ajax(data).then((res) => {
let queryVo = res.data; let queryVo = res.data;
if (queryVo.current_page == 1) this.list = []; if (queryVo.current_page == 1) this.list = [];

1
pages/assets/draw.vue

@ -138,6 +138,7 @@
<li>·{{ $t("assets.c7") }}</li> <li>·{{ $t("assets.c7") }}</li>
</ul> </ul>
</view> </view>
<view style="height: 10vh;"></view>
<!-- <view class="rounded-md m-b-lg" v-if="list.length" style="padding-bottom: 100px !important;"> <!-- <view class="rounded-md m-b-lg" v-if="list.length" style="padding-bottom: 100px !important;">
<view class="title d-flex justify-between p-x-md p-y-xs align-center color-light"> <view class="title d-flex justify-between p-x-md p-y-xs align-center color-light">
<span class="fn-lg">{{ $t("assets.c8") }}</span> <span class="fn-lg">{{ $t("assets.c8") }}</span>

2
pages/exchange/exchange-transaction.vue

@ -513,6 +513,7 @@ export default {
symbol(n, o) { symbol(n, o) {
this.getBooks(); this.getBooks();
this.getUserBalance(); this.getUserBalance();
sessionStorage.setItem('symbol',n)
if (o) { if (o) {
this.unLink(o.replace("/", "").toLocaleLowerCase()); this.unLink(o.replace("/", "").toLocaleLowerCase());
} }
@ -839,6 +840,7 @@ export default {
this.getBooks(); this.getBooks();
this.getUserBalance(); this.getUserBalance();
this.socketMessage(); this.socketMessage();
sessionStorage.setItem('symbol',this.symbol)
if (this.query.direction) { if (this.query.direction) {
this.form.direction = this.query.direction; this.form.direction = this.query.direction;
} }

10
pages/notice/index.vue

@ -21,11 +21,11 @@
<v-paging class="layout-main" :key="1" :ajax="article" :data="{type:'notice'}" v-if="active==0"> <v-paging class="layout-main" :key="1" :ajax="article" :data="{type:'notice'}" v-if="active==0">
<template #box="list"> <template #box="list">
<view class="list m-t-md" key="ul1"> <view class="list m-t-md" key="ul1">
<v-link tag="li" :to="{path:'/pages/notice/detail',query:{id:item.id}}" class="item d-flex p-md align-center m-x-md m-b-xs bg-panel-3 rounded box-shadow" v-for="item in $list(list)" :key="item.id"> <v-link tag="li" :to="{path:'/pages/notice/detail',query:{id:item.id}}" v-if="item.title!==null" class="item d-flex p-md align-center m-x-md m-b-xs bg-panel-3 rounded box-shadow" v-for="item in $list(list)" :key="item.id">
<view class="flex-fill"> <view class="flex-fill">
<view class="title color-light eps-2 m-b-xs">{{item.title}}</view> <view class="title color-light eps-2 m-b-xs">{{item.title}}</view>
<!-- <view class="time fn-sm">{{item.created_at}}</view> --> <view class="time fn-sm">{{item.created_at}}</view>
<view class="time fn-sm">{{item.created_ats| parseTime}}</view> <!-- <view class="time fn-sm">{{item.created_ats| parseTime}}</view> -->
</view> </view>
<van-icon name="arrow" /> <van-icon name="arrow" />
</v-link> </v-link>
@ -39,8 +39,8 @@
<v-link tag="li" :to="{path:'/pages/notice/msg-detail',query:{id:item.id}}" class="item d-flex p-md align-center m-x-md m-b-xs bg-panel-3 rounded box-shadow" v-for="item in $list(list)" :key="item.id"> <v-link tag="li" :to="{path:'/pages/notice/msg-detail',query:{id:item.id}}" class="item d-flex p-md align-center m-x-md m-b-xs bg-panel-3 rounded box-shadow" v-for="item in $list(list)" :key="item.id">
<view class="flex-fill"> <view class="flex-fill">
<view class="title color-light eps-2 m-b-xs">{{item.data.title}}</view> <view class="title color-light eps-2 m-b-xs">{{item.data.title}}</view>
<!-- <view class="time fn-sm">{{item.created_at}}</view> --> <view class="time fn-sm">{{item.created_at}}</view>
<view class="time fn-sm">{{item.created_ats| parseTime}}</view> <!-- <view class="time fn-sm">{{item.created_ats| parseTime}}</view> -->
</view> </view>
<van-icon name="arrow" /> <van-icon name="arrow" />
</v-link> </v-link>

2
pages/reg/index.vue

@ -216,7 +216,7 @@ export default {
methods: { methods: {
register() { register() {
if (!this.form.account) { if (!this.form.account) {
this.$toast(this.$t('reg.a3')); this.$toast(this.$t('reg.a5'));
return; return;
} }
if (!this.check) { if (!this.check) {

Loading…
Cancel
Save