Commit d4edea00 by 高淑倩

add: 集点详情_popupType == 0 3s 关闭

parent 4bbce7d9
...@@ -182,10 +182,17 @@ wxService.page({ ...@@ -182,10 +182,17 @@ wxService.page({
wxService.get(`/sale/touchpoints/pointConsumptionExchange/exchange?activityId=${activityId}&memberId=${memberId}`).then(res => { wxService.get(`/sale/touchpoints/pointConsumptionExchange/exchange?activityId=${activityId}&memberId=${memberId}`).then(res => {
if (res) { if (res) {
const { result, data } = res.data const { result, data } = res.data
const { popupType } = this.data
if (result == 0) { if (result == 0) {
wx.hideLoading() wx.hideLoading()
// 显示 dialog // 显示 dialog
this.isShowDialog(true) this.isShowDialog(true)
// popupType == 0 3s 关闭
if (popupType == 0){
setTimeout(()=>{
this.isShowDialog(false)
},3000)
}
} }
} }
}) })
......
...@@ -11,10 +11,7 @@ ...@@ -11,10 +11,7 @@
<!-- 被整除 是 显示目标集点 否 显示余数--> <!-- 被整除 是 显示目标集点 否 显示余数-->
<text class="point_color" wx:if="{{tools.parse(countObj.totalPoints % goal) == 0}}"> {{goal}}</text> <text class="point_color" wx:if="{{tools.parse(countObj.totalPoints % goal) == 0}}"> {{goal}}</text>
<text class="point_color" wx:else> {{countObj.totalPoints ? tools.parse(countObj.totalPoints % goal) : 0}}</text> <text class="point_color" wx:else> {{countObj.totalPoints ? tools.parse(countObj.totalPoints % goal) : 0}}</text>
<!-- <text class="point_color" wx:if="{{tools.parse(countObj.totalPoints / goal) == countObj.totalPoints}}"> {{goal}}</text>
<text class="point_color" wx:else> {{countObj.totalPoints ? tools.parse(countObj.totalPoints % goal) : 0}}</text>-->
</span> </span>
<text class="point_color" wx:else> {{countObj.totalPoints ? tools.parse(countObj.totalPoints % goal) : 0}}</text> <text class="point_color" wx:else> {{countObj.totalPoints ? tools.parse(countObj.totalPoints % goal) : 0}}</text>
/ {{goal}} / {{goal}}
</view> </view>
......
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 to comment