Browse Source

购物车下单提示

master
jiazhipeng 4 months ago
parent
commit
cfe9b1217e
  1. 1
      app.js
  2. 1
      pages/component/TitleHeader.js
  3. 1
      pages/index/index.js
  4. 1
      pages/map/index.js
  5. 1
      pages/order/orderList/index.js
  6. 6
      pages/order/orderList/index.wxml
  7. 15
      pages/order/orderList/index.wxss
  8. 4
      pages/order/postOrder/index.wxml
  9. 17
      pages/order/postOrder/index.wxss
  10. 5
      pages/order/scene/index.js
  11. 7
      pages/order/scene/index.wxml
  12. 21
      pages/order/scene/index.wxss
  13. 2
      pages/pbService/aiHelpYou/index.js
  14. 6
      pages/user/cartlist/list.js
  15. 1
      pages/user/order/list.js
  16. 1
      pages/user/user.js
  17. 4
      subPackages/gwcOrder/index.js
  18. 9
      subPackages/gwcOrder/index.wxml
  19. 21
      subPackages/gwcOrder/index.wxss
  20. 1
      subPackages/techanCart/index.js
  21. 1
      utils/https.js

1
app.js

@ -13,6 +13,7 @@ App({
this.updateApp()
this.globalData.appLaunchFlag = false
this.globalData.isCartBuy = false
},
onShow: function () {

1
pages/component/TitleHeader.js

@ -97,6 +97,7 @@ Component({
console.log("清除购物车")
app.globalData.list = null;app.globalData.createDate = null;
app.globalData.index = 0;app.globalData.productPrice = 0;app.globalData.ticketPrice = 0;
app.globalData.isCartBuy = false
} catch(e) { console.log("清空购物车失败", e) }
wx.navigateTo({
url: '/pages/user/cartlist/list'

1
pages/index/index.js

@ -1069,6 +1069,7 @@ Page({
if (app.globalData.innerAudioContext) {
app.globalData.innerAudioContext.stop()
}
app.globalData.isCartBuy = false
},
goAIUrl () {

1
pages/map/index.js

@ -815,6 +815,7 @@ gotoUrls() {
util.pagePoint({
event:'mapshow_view'
},1)
app.globalData.isCartBuy = false
},
/**

1
pages/order/orderList/index.js

@ -248,6 +248,7 @@ Page({
app.globalData.index = 0
app.globalData.productPrice = 0
app.globalData.ticketPrice = 0
app.globalData.isCartBuy = false
} catch(e) {
console.log("清空购物车失败", e)
}

6
pages/order/orderList/index.wxml

@ -1,5 +1,11 @@
<wxs src="../../../utils/filter.wxs" module="tool" />
<title title="订单列表"></title>
<view class="warning-tip">
<image src="https://static.ticket.sz-trip.com/uploads/20251210/9cad73fff1eaf21f66aa34da4951b2fb.png"></image>
购买须知:使用优惠券的组合订单均不支持部分退款
</view>
<!-- 邮寄 -->
<view class="box" wx:if="{{postList.length != 0}}">
<view class="goods-item" wx:for="{{postList}}" wx:key="index">

15
pages/order/orderList/index.wxss

@ -174,3 +174,18 @@ color: #000000;
top: 30rpx;
right: 30rpx;
}
.warning-tip{
display: flex;
height: 67rpx;
background: #D62828;
align-items: center;
font-weight: bold;
font-size: 27rpx;
color: #FFFFFF;
padding-left: 13rpx;
}
.warning-tip image{
width: 26.67rpx;
height: 26.67rpx;
margin-right: 12rpx;
}

4
pages/order/postOrder/index.wxml

@ -36,6 +36,10 @@
</view>
<view class="sku-info-container">
<view class="warning-tip" wx:if="{{from=='cart'}}">
<image src="https://static.ticket.sz-trip.com/uploads/20251210/9cad73fff1eaf21f66aa34da4951b2fb.png"></image>
购买须知:使用优惠券的组合订单均不支持部分退款
</view>
<view class="header-title textOver" wx:if="{{from=='cart'}}">
供应商:{{item.product.supplier_name}}
</view>

17
pages/order/postOrder/index.wxss

@ -295,3 +295,20 @@ page {
font-size: 23rpx;
color: #D62828;
}
.warning-tip{
display: flex;
height: 67rpx;
background: #D62828;
border-radius: 9rpx 9rpx 0rpx 0rpx;
align-items: center;
font-weight: bold;
font-size: 27rpx;
color: #FFFFFF;
padding-left: 13rpx;
}
.warning-tip image{
width: 26.67rpx;
height: 26.67rpx;
margin-right: 12rpx;
}

5
pages/order/scene/index.js

@ -52,6 +52,8 @@ Page({
selectExplain: false,
explainData: null,
showContent: false,
isCartBuy: false,
},
/**
@ -73,7 +75,8 @@ Page({
is_real_name:app.globalData.product.sku.sku_model.is_real_name,
date: app.globalData.product.date,
time: app.globalData.product.time || {},
showYhq:app.globalData.listName?false:true
showYhq:app.globalData.listName?false:true,
isCartBuy:app.globalData.isCartBuy,
})
console.log('-------',this.data.product,this.data.time, app.globalData);
// debugger

7
pages/order/scene/index.wxml

@ -57,7 +57,14 @@
<text wx:for="{{product.sku.display_tags}}" style="margin-right: 15rpx;">{{item}}</text>
</view> -->
</view>
<view class="{{isCartBuy?'warning-container':''}}">
<view class="warning-tip" wx:if="{{isCartBuy}}">
<image src="https://static.ticket.sz-trip.com/uploads/20251210/9cad73fff1eaf21f66aa34da4951b2fb.png"></image>
购买须知:使用优惠券的组合订单均不支持部分退款
</view>
<contact wx:if="{{isLogin}}" type="{{type}}" bind:setLinkman="setLinkman" productNum="{{productNum}}" is_authentication="{{is_authentication}}" is_real_name="{{is_real_name}}"></contact>
</view>
<!-- 补贴 -->
<view class="box">
<view class="box-title allowance" wx:if="{{allowance_price}}">

21
pages/order/scene/index.wxss

@ -510,3 +510,24 @@ color: #000000;
color: #D62828;
font-size: 33rpx;
}
.warning-tip{
display: flex;
height: 67rpx;
background: #D62828;
border-radius: 9rpx 9rpx 0rpx 0rpx;
align-items: center;
font-weight: bold;
font-size: 27rpx;
color: #FFFFFF;
padding-left: 13rpx;
margin: 0 25rpx;
}
.warning-tip image{
width: 26.67rpx;
height: 26.67rpx;
margin-right: 12rpx;
}
.warning-container .box{
margin-top: 0;
border-radius: 0 0 9rpx 9rpx;
}

2
pages/pbService/aiHelpYou/index.js

@ -84,7 +84,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
app.globalData.isCartBuy = false
},
/**

6
pages/user/cartlist/list.js

@ -266,6 +266,10 @@ Page({
}
app.globalData.postProduct = product;
// 是否从购物车下单
app.globalData.isCartBuy = true;
if (app.globalData.list) {
app.globalData.product = app.globalData.list[app.globalData.index]
}
@ -442,7 +446,9 @@ Page({
app.globalData.productPrice = 0
app.globalData.ticketPrice = 0
app.globalData.product = null
app.globalData.isCartBuy = false
this.data.productType = ''
app.globalData.isCartBuy = false
console.log(app.globalData)
},

1
pages/user/order/list.js

@ -261,6 +261,7 @@ Page({
list:[]
})
this.getList()
app.globalData.isCartBuy = false
},
/**

1
pages/user/user.js

@ -89,6 +89,7 @@ Page({
event:'mine_view'
},1)
this.getList()
app.globalData.isCartBuy = false
},
pagePoint: function(e){
util.pagePoint(e)

4
subPackages/gwcOrder/index.js

@ -39,6 +39,8 @@ Page({
status:false,
skuDays: 30,
isCartBuy: false,
},
/**
@ -59,6 +61,8 @@ Page({
is_need_idcard:app.globalData.product.sku.sku_model.is_need_idcard,
is_authentication:app.globalData.product.sku.sku_model.is_authentication || 0,
is_real_name:app.globalData.product.sku.sku_model.is_real_name,
isCartBuy:app.globalData.isCartBuy,
})
console.log('-------',app.globalData.product.sku.sku_model.is_need_idcard);
console.log('---是否实名----',app.globalData.product.sku.sku_model.is_authentication);

9
subPackages/gwcOrder/index.wxml

@ -21,8 +21,17 @@
<view class="iconfont icon-add-select" wx:if="{{!kjId && !gp_id && type!='activity' && !product.sku.is_compose}}" bindtap="add"></view>
</view>
</view>
<view class="{{isCartBuy?'warning-container':''}}">
<view class="warning-tip" wx:if="{{isCartBuy}}">
<image src="https://static.ticket.sz-trip.com/uploads/20251210/9cad73fff1eaf21f66aa34da4951b2fb.png"></image>
购买须知:使用优惠券的组合订单均不支持部分退款
</view>
<contact wx:if="{{isLogin}}" type="{{type}}" bind:setLinkman="setLinkman" productNum="{{productNum}}"
is_authentication="{{is_authentication}}" is_real_name="{{is_real_name}}"></contact>
</view>
<!-- 补贴 -->
<view class="box">
<view class="box-title allowance" wx:if="{{allowance_price}}">

21
subPackages/gwcOrder/index.wxss

@ -374,3 +374,24 @@ page {
font-size: 36rpx;
background: #D62828;
}
.warning-tip{
display: flex;
height: 67rpx;
background: #D62828;
border-radius: 9rpx 9rpx 0rpx 0rpx;
align-items: center;
font-weight: bold;
font-size: 27rpx;
color: #FFFFFF;
padding-left: 13rpx;
margin: 0 25rpx;
}
.warning-tip image{
width: 26.67rpx;
height: 26.67rpx;
margin-right: 12rpx;
}
.warning-container .box{
margin-top: 0;
border-radius: 0 0 9rpx 9rpx;
}

1
subPackages/techanCart/index.js

@ -372,6 +372,7 @@ Page({
app.globalData.productPrice = 0
app.globalData.ticketPrice = 0
this.data.productType = ''
app.globalData.isCartBuy = false
},
/**

1
utils/https.js

@ -232,6 +232,7 @@ function user_post_new(url, data = {}, type) {
let app = getApp()
app.globalData.list = null;app.globalData.createDate = null;
app.globalData.index = 0;app.globalData.productPrice = 0;app.globalData.ticketPrice = 0;
app.globalData.isCartBuy = false
} catch(e) { console.log("清空购物车失败", e) }
if (res.data.data.pay_status == 1) {

Loading…
Cancel
Save