123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <template>
- <view>
- <view style="padding: 0px 30px;margin-top: 5px;">
- <!-- 顶部对方已读和未读按钮 -->
- <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem"
- styleType="text" activeColor="#35b882"></uni-segmented-control>
- <!-- 发出的邀请列表 -->
- </view>
- <view v-show="current === 0">
- <view v-for="(Info,index) in OrderWithdraw" :key="index">
- <view class="invitationWrapper" @click="gotoDetail(Info.orderId)">
- <view class="invitationTitle">
- <view>
- <text>订单号</text>
- <text class="invitatinDetail">{{Info.orderId}}</text>
- </view>
- </view>
- <view class="invitationDateAndStatus">
- <text>日期</text>
- <text class="invitatinDetail">{{Info.datetime}}</text>
- <text class="invitatinStatus" >{{Info.recoStatus}}</text>
- </view>
- </view>
- </view>
- </view>
- <view v-show="current === 1">
- <view v-for="(Info,index) in OrderNotWithdraw" :key="index">
- <view class="invitationWrapper" @click="gotoDetail(Info.orderId)">
- <view class="invitationTitle">
- <view>
- <text>订单号</text>
- <text class="invitatinDetail">{{Info.orderId}}</text>
- </view>
- </view>
- <view class="invitationDateAndStatus">
- <text>日期</text>
- <text class="invitatinDetail">{{Info.datetime}}</text>
- <text class="invitatinStatus" >{{Info.recoStatus}}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState,
- mapMutations
- } from 'vuex'
-
- export default {
- data() {
- return {
- current: 1,
- items: ['已提现', '未提现'],
- OrderWithdraw: [],
- OrderNotWithdraw: []
- };
- },
- created() {
- // this.readYes()
- this.NotWithdraw()
- },
- methods: {
- async Withdraw() {
- const {
- data: result
- } = await uni.$http.get('/payment/order-info/list/recommendUidWithdraw')
- this.OrderWithdraw = result.data.list
- //console.log(this.OrderNotWithdraw)
- },
- async NotWithdraw() {
- const {
- data: result
- } = await uni.$http.get('/payment/order-info/list/recommendUidNotWithdraw')
- this.OrderNotWithdraw = result.data.list
- //console.log(this.OrderNotWithdraw)
- },
- gotoDetail(id) {
- uni.navigateTo({
- url: '/subpkg/my/share/my_share_result_order_detail?orderId=' + id
- })
- },
- onClickItem(e) {
- if (this.current != e.currentIndex) {
- this.current = e.currentIndex
- }
- if (this.current === 1) {
- this.NotWithdraw()
- }
- if (this.current === 0) {
- this.Withdraw()
- }
- }
- }
- }
- </script>
- <!-- 设置页面背景 -->
- <style lang="scss">
- page{
- height: 100%;
- // background-color: #FFF;
- }
- </style>
- <style lang="scss" scoped>
- page {
- padding: 20rpx;
- height: 100%;
- //background-color: #E2F0D9;
- }
- /* 列表样式 */
- .invitationWrapper {
- padding: 30rpx;
- margin: 10rpx 30rpx;
- border-radius: 30rpx;
- background-color: #FFF;
- font-size: 30rpx;
- }
-
- /* 邀请号和对方身份、邀请日期和对方状态 */
- .invitationTitle {
- display: flex;
- position: relative;
- }
-
-
- /* 具体内容的样式 */
- .invitatinDetail {
- margin-left: 10rpx;
- font-weight: bold;
- }
-
- .invitatinStatus {
- margin-left: 60rpx;
- color: red;
- font-weight: bold;
- }
- </style>
|