Explorar el Código

id修改为couponChannelId

tags/2.2.4
Stormeye.Wu hace 6 años
padre
commit
449f77b9b8
Se han modificado 6 ficheros con 13 adiciones y 13 borrados
  1. +1
    -1
      components/coupons/index.wxml
  2. +7
    -7
      pages/coupon/detail/index.js
  3. +1
    -1
      pages/getphoneInfo/index.js
  4. +1
    -1
      pages/index/rushToBuy/index.js
  5. +1
    -1
      pages/phoneinput/phoneinput.js
  6. +2
    -2
      pages/rushToBuy/index.js

+ 1
- 1
components/coupons/index.wxml Ver fichero

@@ -1,4 +1,4 @@
<navigator url="/pages/coupon/detail/index?id={{data.id}}&couponId={{data.couponId}}">
<navigator url="/pages/coupon/detail/index?couponChannelId={{data.id}}&couponId={{data.couponId}}">
<!-- 首页优惠券列表页面 -->
<view class="coupons">
<view class="coupons-img">


+ 7
- 7
pages/coupon/detail/index.js Ver fichero

@@ -14,9 +14,9 @@ Page({
},
onLoad(options) {
let that = this;
console.log(options.id);
console.log(options.couponChannelId);
that.setData({
couponChannelId: options.id,
couponChannelId: options.couponChannelId,
couponId: options.couponId
})
wx.showLoading({
@@ -29,7 +29,7 @@ Page({
Http.get({
url: config.api.couponDetail,
data: {
id: options.id,
id: options.couponChannelId,
}
}).then(res => {
console.log(res);
@@ -143,7 +143,7 @@ Page({
}
}).then(res => {
console.log(res);
/*
/// Begin payment ----
var payOrderId = "" + res.data.payOrderId;
wx.hideLoading();
@@ -202,10 +202,10 @@ Page({
}
});
/// End payment --------
*/
///// virtual pay
var payOrderId = "" + res.data.out_trade_no;
that.payOrderUpdate(that.data.orderId, payOrderId, 1); // 支付成功
//var payOrderId = "" + res.data.out_trade_no;
//that.payOrderUpdate(that.data.orderId, payOrderId, 1); // 支付成功
///// end virtual pay
});
} else {


+ 1
- 1
pages/getphoneInfo/index.js Ver fichero

@@ -34,7 +34,7 @@ Page({
icon: "success",
success: function(res) {
wx.redirectTo({
url: '/pages/coupon/detail/index?id='+ that.data.couponChannelId + '&couponId='+ that.data.couponId +'&flag=pay'
url: '/pages/coupon/detail/index?couponChannelId='+ that.data.couponChannelId + '&couponId='+ that.data.couponId +'&flag=pay'
})
}
})


+ 1
- 1
pages/index/rushToBuy/index.js Ver fichero

@@ -39,7 +39,7 @@ Component({
console.log(e.currentTarget.dataset.id);
console.log(e.currentTarget.dataset.targetad);
wx.navigateTo({
url: `/pages/coupon/detail/index?id=${
url: `/pages/coupon/detail/index?couponChannelId=${
e.currentTarget.dataset.id
}&couponId=${e.currentTarget.dataset.couponId}
}&targetAd=${e.currentTarget.dataset.targetad}`


+ 1
- 1
pages/phoneinput/phoneinput.js Ver fichero

@@ -40,7 +40,7 @@ Page({
})
.then(res => {
wx.redirectTo({
url: '/pages/coupon/detail/index?id=' + that.data.couponChannelId + "&flag=pay",
url: '/pages/coupon/detail/index?couponChannelId=' + that.data.couponChannelId + '&couponId=' + that.data.couponId + "&flag=pay",
})
})
.catch(error => {


+ 2
- 2
pages/rushToBuy/index.js Ver fichero

@@ -116,9 +116,9 @@ Page({
console.log(e.currentTarget.dataset.couponid);
console.log(e.currentTarget.dataset.targetad);
wx.navigateTo({
url: `/pages/coupon/detail/index?id=${
url: `/pages/coupon/detail/index?couponChannelId=${
e.currentTarget.dataset.id
}`,
}&couponId=${e.currentTarget.dataset.couponId}`,
success: function(res) {
// success
},


Cargando…
Cancelar
Guardar