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", "path": "pages/map/map",
"style": { "style": {
"navigationBarTitleText": "uni-app" "navigationBarTitleText": "特产地图"
} }
}, },
{ {
"path": "pages/cart/cart", "path": "pages/cart/cart",
"style": { "style": {
"navigationBarTitleText": "uni-app" "navigationBarTitleText": "购物车"
} }
}, },
{ {
"path": "pages/coupon/coupon", "path": "pages/coupon/coupon",
"style": { "style": {
"navigationBarTitleText": "uni-app" "navigationBarTitleText": "领取中心"
} }
}, },
{ {

15
pages/user/user.vue

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

29
subPackages/order/cartOrder.vue

@ -294,20 +294,7 @@ export default {
// //
order() { order() {
let goods = [] 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=>{ this.playOrderList.forEach(item=>{
@ -353,6 +340,20 @@ export default {
} }
goods.push(param) 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