Commit a9f3543a by 梁建民

js

parent 8226644a
...@@ -24,16 +24,14 @@ ...@@ -24,16 +24,14 @@
</template> </template>
<template v-else> <template v-else>
<li class="no-data"> <li class="no-data">
<p style="color: #333;width: 80%;margin: 0 auto;font-size: 13px;margin-top: 28px;">您的钱包当前还没有记录哦,去看看商品吧~ <a style="color: #1080d0;" href="/v3/s">去搜索</a></p> <i class="iconfont icon-zanwushuju" style="color: #999;margin: 0 auto;display: block;text-align: center;font-size: 90px;padding-top: 60px;"></i>
</li> <p style="color: #333;width: 80%;margin: 0 auto;font-size: 13px;margin-top: 28px;">您的钱包当前还没有记录哦,去看看商品吧~ <a style="color: #1080d0;" href="/v3/s">去搜索</a></p> </li>
</template> </template>
</ul> </ul>
<van-popup v-model="dateShow" position="bottom" :overlay="true"> <van-popup v-model="dateShow" position="bottom" :overlay="true">
<van-datetime-picker v-model="currentDate" type="year-month" :formatter="formatter" @cancel="onDateCancel" @confirm="onDateConfirm" @change="dateChange"/> <van-datetime-picker v-model="currentDate" type="year-month" :formatter="formatter" @cancel="onDateCancel" @confirm="onDateConfirm" @change="dateChange"/>
</van-popup> </van-popup>
<van-popup v-model="typeShow" position="bottom" :overlay="true">
<van-picker show-toolbar title="交易类型" :columns="columns" @cancel="onTypeCancel" @confirm="onTypeConfirm"/>
</van-popup>
</div> </div>
<!--记录类型弹出框--> <!--记录类型弹出框-->
<div class="dialog-layer-shade" v-if="dialog"> <div class="dialog-layer-shade" v-if="dialog">
...@@ -209,15 +207,13 @@ ...@@ -209,15 +207,13 @@
}) })
}, },
onTypeConfirm(value, index) { onTypeConfirm(value, index) {
this.dialog = false; this.dialog = false;
this.active=index; this.active=index;
this.text=this.columns[index].text; this.text=this.columns[index].text;
this.typeCheckedkeyId = value.keyId; this.typeCheckedkeyId = value;
this.typeCheckedText = value.text;
this.recordYear = this.updateYear || this.recordYear; this.recordYear = this.updateYear || this.recordYear;
this.recordMonth = this.updateMonth || this.recordMonth; this.recordMonth = this.updateMonth || this.recordMonth;
......
...@@ -214,8 +214,7 @@ ...@@ -214,8 +214,7 @@
this.active=index; this.active=index;
this.text=this.columns[index].text; this.text=this.columns[index].text;
this.typeCheckedkeyId = value.keyId; this.typeCheckedkeyId = value;
this.typeCheckedText = value.text;
this.dateYear = this.updateYear || this.dateYear; this.dateYear = this.updateYear || this.dateYear;
this.dateMonth = this.updateMonth || this.dateMonth; this.dateMonth = this.updateMonth || this.dateMonth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment