This commit is contained in:
Vinjor 2025-04-29 14:54:31 +08:00
parent e18d73b70a
commit f74fd332bc
4 changed files with 107 additions and 27 deletions

View File

@ -11,7 +11,14 @@
</view> </view>
<view class="left-dom-bottom">{{pointsBalance}}</view> <view class="left-dom-bottom">{{pointsBalance}}</view>
</view> </view>
<view class="right-dom" @click="outData()">提现</view> <view>
<view class="right-dom" @click="outData()">提现</view>
<view class="tips">
<uni-icons type="info" size="12"></uni-icons>
1积分=1
</view>
</view>
</view> </view>
<view v-if="!ifMember" class="huiyuan-box"> <view v-if="!ifMember" class="huiyuan-box">
<view class="dl-member-box" @click="goMemberCard()"> <view class="dl-member-box" @click="goMemberCard()">
@ -24,6 +31,9 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="ifHasWaiting" class="daiban-box">
您有一笔金额为<text>10</text>元的提现订单请及时处理
</view>
<view class="data-list-box"> <view class="data-list-box">
<view class="content-box"> <view class="content-box">
<view class="dl-opt-box"> <view class="dl-opt-box">
@ -32,7 +42,8 @@
:class="index==menuIndex?'dl-menu click':'dl-menu'">{{item}}</view> :class="index==menuIndex?'dl-menu click':'dl-menu'">{{item}}</view>
</view> </view>
</view> </view>
<view :class="['data-list',!ifMember?'no-member':'member']"> <view
:class="['data-list',!ifMember?(ifHasWaiting?'no-member-and-wating':'no-member'):(ifHasWaiting?'member-and-wating':'member')]">
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower="onReachBottomCus" <scroll-view style="height: 100%;" scroll-y="true" @scrolltolower="onReachBottomCus"
refresher-enabled @refresherrefresh="onRefresherrefresh" :refresher-triggered="isTriggered"> refresher-enabled @refresherrefresh="onRefresherrefresh" :refresher-triggered="isTriggered">
<view class="item-dom" v-for="(item,index) in dataList"> <view class="item-dom" v-for="(item,index) in dataList">
@ -56,8 +67,8 @@
</view> </view>
<!-- 输入框示例 --> <!-- 输入框示例 -->
<uni-popup ref="inputDialog" type="dialog"> <uni-popup ref="inputDialog" type="dialog">
<uni-popup-dialog ref="inputClose" mode="input" title="积分提现" placeholder="请输入提现金额" <uni-popup-dialog tixian="true" inputType="number" :money="money" ref="inputClose" mode="input" title="积分提现"
@confirm="dialogInputConfirm"></uni-popup-dialog> placeholder="请输入提现金额" @confirm="dialogInputConfirm" @getEndMoney="getEndMoney"></uni-popup-dialog>
</uni-popup> </uni-popup>
</view> </view>
</template> </template>
@ -86,6 +97,8 @@
return { return {
// //
ifMember: true, ifMember: true,
//
ifHasWaiting: false,
menus: ['积分收支明细'], menus: ['积分收支明细'],
menuIndex: 0, menuIndex: 0,
// //
@ -113,7 +126,8 @@
// //
isTriggered: false, isTriggered: false,
userId: null, userId: null,
pointsBalance: 0 pointsBalance: 0,
money: ""
} }
}, },
@ -146,7 +160,18 @@
} }
}) })
}, },
/**
* 计算提现的积分等于多少钱
* @param {Object} val
*/
getEndMoney(val) {
if (!val) {
this.money = "0"
} else {
this.money = (val / 10).toFixed(2) + ""
}
},
/** /**
* 提现 * 提现
*/ */
@ -297,6 +322,27 @@
color: white; color: white;
border-radius: 40rpx; border-radius: 40rpx;
} }
.tips {
color: #929292;
display: flex;
justify-content: center;
align-items: center;
font-size: 22rpx;
}
}
.daiban-box {
width: 100%;
padding-top: 10rpx;
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: center;
text {
color: #FC1F3E;
}
} }
.huiyuan-box { .huiyuan-box {
@ -409,11 +455,19 @@
} }
.no-member { .no-member {
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 450rpx); height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 460rpx);
} }
.member { .member {
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 340rpx); height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 350rpx);
}
.no-member-and-wating {
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 520rpx);
}
.member-and-wating {
height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 400rpx);
} }
.data-list { .data-list {

View File

@ -498,24 +498,12 @@
// //
this.$refs.canvas.canvasCreate(); this.$refs.canvas.canvasCreate();
} else if ('wx' == dataObj.item.name) { } else if ('wx' == dataObj.item.name) {
this.onShareAppMessage()
} else if ('jb' == dataObj.item.name) { } else if ('jb' == dataObj.item.name) {
this.goReportForm() this.goReportForm()
} }
}, },
/**
* 微信分享
* @param {Object} res
*/
onShareAppMessage(res) {
if (res.from === 'button') { //
console.log(res.target)
}
return {
title: '【' + this.noticeDetail.platformName + '】' + this.noticeDetail.title,
path: '/pages/notice/detail?id=' + this.noticeDetail.id
}
},
dialogConfirm() { dialogConfirm() {
console.log('点击确认') console.log('点击确认')
this.$tab.navigateTo('/pages/mine/card/my-card') this.$tab.navigateTo('/pages/mine/card/my-card')

View File

@ -13,6 +13,7 @@
<slot> <slot>
<input class="uni-dialog-input" v-model="val" :type="inputType" :placeholder="placeholderText" <input class="uni-dialog-input" v-model="val" :type="inputType" :placeholder="placeholderText"
:focus="focus"> :focus="focus">
<view v-if="tixian && ''!=money" class="dl-tixian-text">到账金额<text>{{money}}</text></view>
</slot> </slot>
</view> </view>
<view class="uni-dialog-button-group"> <view class="uni-dialog-button-group">
@ -104,13 +105,21 @@
iconPath: { iconPath: {
type: String, type: String,
default: '' default: ''
} },
tixian: {
type: Boolean,
default: false
},
money: {
type: String,
default: ''
},
}, },
data() { data() {
return { return {
dialogType: 'error', dialogType: 'error',
focus: false, focus: false,
val: "" val: "",
} }
}, },
computed: { computed: {
@ -138,6 +147,9 @@
}, },
value(val) { value(val) {
this.val = val this.val = val
},
val(val) {
this.$emit("getEndMoney", val)
} }
}, },
created() { created() {
@ -284,6 +296,14 @@
color: #555; color: #555;
} }
.dl-tixian-text {
font-size: 25rpx;
text {
color: #FC1F3E;
}
}
.uni-popup__success { .uni-popup__success {
color: #4cd964; color: #4cd964;
} }

View File

@ -85,15 +85,33 @@
return this.title || t("uni-popup.shareTitle") return this.title || t("uni-popup.shareTitle")
} }
}, },
/**
* 微信分享
* @param {Object} res
*/
onShareAppMessage(res) {
if (res.from === 'button') { //
console.log(res.target)
}
return {
title: '【' + this.noticeDetail.platformName + '】' + this.noticeDetail.title,
path: '/pages/notice/detail?id=' + this.noticeDetail.id
}
},
methods: { methods: {
/** /**
* 选择内容 * 选择内容
*/ */
select(item, index) { select(item, index) {
this.$emit('select', { if ('wx' == item.name) {
item, this.close()
index } else {
}) this.$emit('select', {
item,
index
})
}
this.close() this.close()
}, },
/** /**