Bladeren bron

[c端][修改][点击积分兑换没反应]

tags/C.10.02
hurui 5 jaren geleden
bovenliggende
commit
a1660d89c6
2 gewijzigde bestanden met toevoegingen van 10 en 5 verwijderingen
  1. +9
    -4
      pages/integralmall/index.js
  2. +1
    -1
      pages/integralmall/payIntegcoupondetail/index.wxml

+ 9
- 4
pages/integralmall/index.js Bestand weergeven

@@ -31,7 +31,8 @@ Page({
creditAmount: 0,
score: '0',
sort:'',
hidden:false
hidden:false,
creditPrice:''
},
qrcodeH: function () {
var that = this;
@@ -200,13 +201,14 @@ Page({
that.setData({
sort :imgurl.up.url
})
this.getList(1)
}
else {
hid = true;
that.setData({
sort: imgurl.down.url
})
this.getList(1)
}
this.setData({
hidden: hid // 改变状态
@@ -215,6 +217,7 @@ Page({
//sortColumn=shopNumber&sortOrder=desc
getList(pageNum) {
var that = this;
let desc = 1
if (that.data.allow_load) {
that.setData({
loading: true,
@@ -224,13 +227,15 @@ Page({
var param = {
pageNum: pageNum,
pageSize: 10,
targetAd: 50
targetAd: 50,
// sortColumn:,
// sortOrder:
};
var url = config.api.couponChannelList;
// 请求接口
Http.get({
url: url,
data: param
data: param,
}).then(res => {
console.log(res)
/**


+ 1
- 1
pages/integralmall/payIntegcoupondetail/index.wxml Bestand weergeven

@@ -35,7 +35,7 @@
</view>
</view>
<view class='edit'>
<button class='user-motto user-enough' wx:if="{{remainingPoints>=0}}" bindtap='{{"submitAble"?gotoPay:""}}'>{{'确认'+data.creditPrice+'积分支付'}}</button>
<button class='user-motto user-enough' wx:if="{{remainingPoints>=0}}" bindtap="{{'submitAble'?'gotoPay':''}}">{{'确认'+data.creditPrice+'积分支付'}}</button>
<button class='user-motto user-enough' style='' wx:if="{{remainingPoints<0}}" bindtap='cannotPay'>积分不足</button>
</view>
</view>

Laden…
Annuleren
Opslaan