jiazhipeng 4 months ago
parent
commit
0a363bbe48
  1. 6
      pages.json
  2. 15
      pages/user/user.vue
  3. 29
      subPackages/order/cartOrder.vue

6
pages.json

@ -17,19 +17,19 @@
{
"path": "pages/map/map",
"style": {
"navigationBarTitleText": "uni-app"
"navigationBarTitleText": "特产地图"
}
},
{
"path": "pages/cart/cart",
"style": {
"navigationBarTitleText": "uni-app"
"navigationBarTitleText": "购物车"
}
},
{
"path": "pages/coupon/coupon",
"style": {
"navigationBarTitleText": "uni-app"
"navigationBarTitleText": "领取中心"
}
},
{

15
pages/user/user.vue

@ -51,7 +51,7 @@
<view class="cygj">
<view v-for="(item,index) in cyList" :key="index"
@click="gotoUrl(item.path,index)" v-if="item.isShow">
@click="gotoUrl(item,index)" v-if="item.isShow">
<button id="contact" class="cyItem flex-between" open-type="contact" bindcontact="handleContact" session-from="sessionFrom" v-if="index == 2">
<view class="flex-center">
<img src="https://static.ticket.sz-trip.com/shiweisuzhou/images/user/lxkf.png" class="headIcon">
@ -152,7 +152,8 @@
src: 'https://static.ticket.sz-trip.com/shiweisuzhou/images/user/shhx.png',
title: '商户核销',
path: '',
isShow: true
isShow: true,
webUrl: "https://swsz.supplier-h5.js-dyyj.com/Login",
},
{
src: 'https://static.ticket.sz-trip.com/shiweisuzhou/images/user/yhxy.png',
@ -298,13 +299,19 @@
// open(){
// this.$refs.popup.open('center')
// },
gotoUrl(path, index) {
gotoUrl(item, index) {
if (index == 2) {
// this.$refs.popup.open()
return;
}
if (index == 4) {
uni.navigateTo({
url:'/subPackages/webPage/webPage?url='+item.webUrl
})
return
}
uni.navigateTo({
url: path
url: item.path
})
},
qidai() {

29
subPackages/order/cartOrder.vue

@ -294,20 +294,7 @@ export default {
//
order() {
let goods = []
//
this.hotelOrderList.forEach(item=>{
let param = {
type: 'hotel',
customer_name: item.roomNames.toString(),
reserve_mobile: item.phone,
product_id: item.product_id,
sku_id: item.id,
start_date: item.selectDate.startDay,
end_date: item.selectDate.endDay,
product_num: item.buyNum
}
goods.push(param)
})
//
this.playOrderList.forEach(item=>{
@ -353,6 +340,20 @@ export default {
}
goods.push(param)
})
//
this.hotelOrderList.forEach(item=>{
let param = {
type: 'hotel',
customer_name: item.roomNames.toString(),
reserve_mobile: item.phone,
product_id: item.product_id,
sku_id: item.id,
start_date: item.selectDate.startDay,
end_date: item.selectDate.endDay,
product_num: item.buyNum
}
goods.push(param)
})

Loading…
Cancel
Save