|
@@ -14,6 +14,7 @@
|
|
|
class="students_list"
|
|
class="students_list"
|
|
|
scroll-y
|
|
scroll-y
|
|
|
>
|
|
>
|
|
|
|
|
+ <block v-if="!$util.isEmpty(initData)">
|
|
|
<view
|
|
<view
|
|
|
class="list_item"
|
|
class="list_item"
|
|
|
v-for="(item, index) in initData"
|
|
v-for="(item, index) in initData"
|
|
@@ -29,11 +30,11 @@
|
|
|
<text
|
|
<text
|
|
|
class="status_apply"
|
|
class="status_apply"
|
|
|
v-if="item.status === '1'"
|
|
v-if="item.status === '1'"
|
|
|
- style="color: #09bb07;"
|
|
|
|
|
|
|
+ style="color: #49484b;"
|
|
|
>待付款</text>
|
|
>待付款</text>
|
|
|
<text
|
|
<text
|
|
|
class="status_apply"
|
|
class="status_apply"
|
|
|
- style="color: #333333;"
|
|
|
|
|
|
|
+ style="color: #3da239;"
|
|
|
v-if="item.status === '2'"
|
|
v-if="item.status === '2'"
|
|
|
>已报名</text>
|
|
>已报名</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -44,15 +45,23 @@
|
|
|
<view class="class_odd">单号:{{item.orderSn}} </view>
|
|
<view class="class_odd">单号:{{item.orderSn}} </view>
|
|
|
<view class="class_odd">日期:{{item.applyTime.length > 10 ? item.applyTime.substr(0, 10) : item.applyTime}}</view>
|
|
<view class="class_odd">日期:{{item.applyTime.length > 10 ? item.applyTime.substr(0, 10) : item.applyTime}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="price">¥985.80</view>
|
|
|
|
|
|
|
+ <view class="price">¥{{item.actPrice}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <block v-else>
|
|
|
|
|
+ <AppWrapperEmpty
|
|
|
|
|
+ title="暂无数据"
|
|
|
|
|
+ :is-empty="$util.isEmpty(initData)"
|
|
|
|
|
+ />
|
|
|
|
|
+ </block>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { pxApplyList } from '@/api/px-apply/index'
|
|
import { pxApplyList } from '@/api/px-apply/index'
|
|
|
|
|
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
export default {
|
|
export default {
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
@@ -60,14 +69,20 @@ export default {
|
|
|
query: ''
|
|
query: ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- mounted () {
|
|
|
|
|
- this.getData()
|
|
|
|
|
|
|
+ components: {
|
|
|
|
|
+ AppWrapperEmpty,
|
|
|
|
|
+ },
|
|
|
|
|
+ onPullDownRefresh() {
|
|
|
|
|
+ this.getData().then(res => {
|
|
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ init() {
|
|
|
|
|
+ this.getData()
|
|
|
|
|
+ },
|
|
|
getData () {
|
|
getData () {
|
|
|
- console.log(1111)
|
|
|
|
|
- pxApplyList({ name: this.query }).then(res => {
|
|
|
|
|
- console.log('res===>', res)
|
|
|
|
|
|
|
+ return pxApplyList({ name: this.query }).then(res => {
|
|
|
this.initData = res.data.list
|
|
this.initData = res.data.list
|
|
|
}).catch(err => { console.log(err) })
|
|
}).catch(err => { console.log(err) })
|
|
|
}
|
|
}
|
|
@@ -123,9 +138,9 @@ export default {
|
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
|
}
|
|
}
|
|
|
& > ._icon_new {
|
|
& > ._icon_new {
|
|
|
- width: 64upx;
|
|
|
|
|
- height: 26upx;
|
|
|
|
|
|
|
+ padding: 0 5upx;
|
|
|
margin-left: 20upx;
|
|
margin-left: 20upx;
|
|
|
|
|
+ font-size: 20upx;
|
|
|
vertical-align: middle;
|
|
vertical-align: middle;
|
|
|
background: #3385ff;
|
|
background: #3385ff;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|