瀏覽代碼

[订单详情,券详情免费券领取成功以后的跳转]

tags/长融世贸广场3.1.4
meo 6 年之前
父節點
當前提交
36218aa398
共有 7 個檔案被更改,包括 19 行新增14 行删除
  1. +1
    -1
      app.json
  2. +1
    -1
      config/config.js
  3. +8
    -7
      pages/coupon/detail/index.js
  4. +6
    -2
      pages/order/detail/index.js
  5. +1
    -1
      pages/order/detail/index.wxml
  6. +1
    -1
      pages/user/index.wxml
  7. +1
    -1
      project.config.json

+ 1
- 1
app.json 查看文件

@@ -49,7 +49,7 @@
"text": "首页"
},
{
"pagePath": "pages/cartest/cartest",
"pagePath": "pages/passCar/passCar",
"iconPath": "assets/img/pass1.png",
"selectedIconPath": "assets/img/pass0.png",
"text": "停车"


+ 1
- 1
config/config.js 查看文件

@@ -166,7 +166,7 @@ var config = {
},

weapp: {
AppId: "wx0d61e1d3a179a34e"
AppId: "wx026ee7f6290aa336"
},
ErrorCode: {
NICK_NOT_AUTH: 11004,


+ 8
- 7
pages/coupon/detail/index.js 查看文件

@@ -280,7 +280,13 @@ Page({
.then(res => {
wx.hideLoading()
console.log(res);
if (!type) {
if (!type&&type!='free') {
wx.navigateTo({
url: `/pages/order/detail/index?orderId=${
orderId
}`
});
} else if (type == 'free'){
wx.navigateTo({
url: `/pages/order/detail/index?orderId=${
orderId
@@ -490,16 +496,11 @@ Page({
})
} else {
// 免费券
that.payOrderUpdate(orderId, "0", 1, '', 'fail');
that.payOrderUpdate(orderId, "0", 1, '', 'free');
wx.setStorage({
key: 'couponNum',
data: "couponNum"
})
wx.navigateTo({
url: `/pages/order/detail/index?orderId=${
that.data.orderId
}`
});
// setTimeout(function () {
// }, 1000)
// if (that.data.data.type == 5) {


+ 6
- 2
pages/order/detail/index.js 查看文件

@@ -153,7 +153,7 @@ Page({
});
} else {
// 免费券
that.payOrderUpdate(orderId, "0", 1,'','fail') // 支付成功
that.payOrderUpdate(orderId, "0", 1,'','free') // 支付成功
wx.showToast({
title: "支付成功",
duration: 2000,
@@ -177,7 +177,7 @@ Page({
})
.then(res => {
wx.hideLoading()
if (!type) {
if (!type&&type!='free') {
wx.showToast({
title: "购买成功",
duration: 2000,
@@ -197,6 +197,10 @@ Page({
}, 1600);
}
});
} else if (type == 'free'){
wx.redirectTo({
url: `/pages/order/detail/index?orderId=${orderId}`
});
}
})
.catch(err => {


+ 1
- 1
pages/order/detail/index.wxml 查看文件

@@ -72,7 +72,7 @@
</view>
</view>
<!-- 待付款 显示立即购买的按钮 -->
<view wx:if="{{order.orderStatus==0}}" class="buy-view app-border-top">
<view wx:if="{{order.orderStatus==0&&order.salePrice!=0}}" class="buy-view app-border-top">
<button bindtap='orderFunc' hover-class='active' data-couponChannelId="{{order.id}}" class='buy'>立即支付</button>
</view>
<view class='game' bindtap="gotogame" wx-if="{{showIf}}">


+ 1
- 1
pages/user/index.wxml 查看文件

@@ -57,7 +57,7 @@
</view>
</view>
</navigator>
<navigator url="/pages/cartest/cartest" open-type="switchTab">
<navigator url="/pages/passCar/passCar" open-type="switchTab">
<view class="user-btn app-border-bottom">
<view>
<image class='icons' src="./../../assets/img/che.png" mode='widthFix'></image>智能停车</view>


+ 1
- 1
project.config.json 查看文件

@@ -12,7 +12,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.0.9",
"appid": "wx0d61e1d3a179a34e",
"appid": "wx026ee7f6290aa336",
"projectname": "C",
"isGameTourist": false,
"condition": {


Loading…
取消
儲存