Bläddra i källkod

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

tags/C.10.02
hurui 5 år sedan
förälder
incheckning
a1660d89c6
2 ändrade filer med 10 tillägg och 5 borttagningar
  1. +9
    -4
      pages/integralmall/index.js
  2. +1
    -1
      pages/integralmall/payIntegcoupondetail/index.wxml

+ 9
- 4
pages/integralmall/index.js Visa fil

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


+ 1
- 1
pages/integralmall/payIntegcoupondetail/index.wxml Visa fil

@@ -35,7 +35,7 @@
</view> </view>
</view> </view>
<view class='edit'> <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> <button class='user-motto user-enough' style='' wx:if="{{remainingPoints<0}}" bindtap='cannotPay'>积分不足</button>
</view> </view>
</view> </view>

Laddar…
Avbryt
Spara