Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
panyongping
uni-pdtravel
Commits
75dc1b15
Commit
75dc1b15
authored
Sep 02, 2024
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码还原
parent
c2c86fb7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
869 additions
and
806 deletions
+869
-806
pages.json
pages.json
+567
-563
exchangeChoose.vue
pages/my/exchangeCode/exchangeChoose/exchangeChoose.vue
+280
-0
exchangeComplete.vue
pages/my/exchangeCode/exchangeComplete/exchangeComplete.vue
+8
-4
exchangeIndex.vue
pages/my/exchangeCode/exchangeIndex/exchangeIndex.vue
+13
-238
exchangePage.vue
pages/my/exchangeCode/exchangePage/exchangePage.vue
+1
-1
No files found.
pages.json
View file @
75dc1b15
{
"pages"
:
[
//pages数组中第一项表示应用启动页
{
"path"
:
"pages/indexs/index/index"
,
"style"
:
{
"navigationBarTitleText"
:
"首页"
}
},
{
"path"
:
"pages/payment/orderPayment/orderPayment"
,
"style"
:
{
"navigationBarTitleText"
:
"订单支付"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/login/login"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/payment/paySuccess/paySuccess"
,
"style"
:
{
"navigationBarTitleText"
:
"支付成功"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/payment/ourPayment/ourPayment"
,
"style"
:
{
"navigationBarTitleText"
:
"订单支付"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/combination/combiChoose/combiChoose"
,
"style"
:
{
"navigationBarTitleText"
:
"产品选择"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/combination/sourceCombiChoose/sourceCombiChoose"
,
"style"
:
{
"navigationBarTitleText"
:
"产品选择"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/combination/distributionCombiChoose/distributionCombiChoose"
,
"style"
:
{
"navigationBarTitleText"
:
"产品选择"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/combination/combiOrder/combiOrder"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/common/coupon/coupon"
,
"style"
:
{
"navigationBarTitleText"
:
"领劵中心"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/common/getTicket/getTicket"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/common/questionConsultation/questionConsultation"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/indexs/dongjianIndex/dongjianIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"洞舰"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/indexs/hghgIndex/hghgIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"湖广会馆"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/common/simpleProduct/simpleProduct"
,
"style"
:
{
"navigationBarTitleText"
:
"产品选择"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/payment/distributionPayment/distributionPayment"
,
"style"
:
{
"navigationBarTitleText"
:
"订单支付"
,
"enablePullDownRefresh"
:
false
}
},
//
{
//
"path"
:
"pages/indexs/merchantListIndex/merchantListIndex"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"商品列表"
,
//
"enablePullDownRefresh"
:
false
//
}
//
},
{
"path"
:
"pages/hotel/hotelIndex/hotelIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"酒店"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/specialProduct/specialIndex/specialIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"特产"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/indexs/center/center"
,
"style"
:
{
"navigationBarTitleText"
:
"个人中心"
,
"enablePullDownRefresh"
:
false
}
}
],
//分包加载配置,此配置为小程序的分包加载机制。
"subPackages"
:
[{
"root"
:
"pages/my"
,
//个人中心分包
"pages"
:
[{
"path"
:
"order/electronicTicket/electronicTicket"
,
"style"
:
{
"navigationBarTitleText"
:
"电子门票"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"order/intelTicket/intelTicket"
,
"style"
:
{
"navigationBarTitleText"
:
"电子门票"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"order/orderList/orderList"
,
"style"
:
{
"navigationBarTitleText"
:
"订单列表"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"order/afterSale/applyAfterSale/applyAfterSale"
,
"style"
:
{
"navigationBarTitleText"
:
"售后"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"exchangeCode/exchangeIndex/exchangeIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"胖丁旅游"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"shopCart/shopCart"
,
"style"
:
{
"navigationBarTitleText"
:
"购物车"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"commonInfo/commonInfo"
,
"style"
:
{
"navigationBarTitleText"
:
"常用信息"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"passCode/codeResult/codeResult"
,
"style"
:
{
"navigationBarTitleText"
:
"通行码"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"customerService/enterpriseWechat/enterpriseWechat"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"couponCenter/myCouponList/myCouponList"
,
"style"
:
{
"navigationBarTitleText"
:
"我的券列表"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"travelList/travelList/travelList"
,
"style"
:
{
"navigationBarTitleText"
:
"行程单"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"travelNotes/myTravelogue/myTravelogue"
,
"style"
:
{
"navigationBarTitleText"
:
"我的行记"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"order/afterSale/afterSaleList/afterSaleList"
,
"style"
:
{
"navigationBarTitleText"
:
"售后列表"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"takeNumber/numberChoose/numberChoose"
,
"style"
:
{
"navigationBarTitleText"
:
"选择出发站点"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"takeNumber/numberIndex/numberIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"取号"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"takeNumber/rowNumber/rowNumber"
,
"style"
:
{
"navigationBarTitleText"
:
"取号"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"order/jointElectronicTicket/jointElectronicTicket"
,
"style"
:
{
"navigationBarTitleText"
:
"电子门票"
,
"enablePullDownRefresh"
:
false
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarBackgroundColor"
:
"#F7F8FA"
}
},
{
"path"
:
"exchangeCode/exchangePage/exchangePage"
,
"style"
:
{
"navigationBarTitleText"
:
"兑换票"
}
},
{
"path"
:
"exchangeCode/exchangeComplete/exchangeComplete"
,
"style"
:
{
"navigationBarTitleText"
:
"兑换结果"
}
}
]
},
{
"root"
:
"pages/scenic"
,
//景区分包
"pages"
:
[{
"path"
:
"scenicJointOrder/scenicJointOrder"
,
"style"
:
{
"navigationBarTitleText"
:
"订单填写"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"scenicSingleOrder/scenicSingleOrder"
,
"style"
:
{
"navigationBarTitleText"
:
"订单填写"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"scenicProduct/scenicProduct"
,
"style"
:
{
"navigationBarTitleText"
:
"产品"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"scenicIndex/scenicIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"景区"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"scenicCombiOrder/scenicCombiOrder"
,
"style"
:
{
"navigationBarTitleText"
:
"订单填写"
,
"enablePullDownRefresh"
:
false
}
}
]
},
{
"root"
:
"pages/vlog"
,
//vlogo分包
"pages"
:
[{
"path"
:
"vlogIndex/vlogIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"欢乐影集"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"vlogface/vlogface"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"scenicList/scenicList"
,
"style"
:
{
"enablePullDownRefresh"
:
false
,
"backgroundColor"
:
"#192033"
}
},
{
"path"
:
"vlogList/vlogList"
,
"style"
:
{
"navigationBarTitleText"
:
"我的Vlog集"
,
"enablePullDownRefresh"
:
false
,
"backgroundColor"
:
"#192033"
}
},
{
"path"
:
"share/share"
,
"style"
:
{
"navigationBarTitleText"
:
"Vlog"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"myVlog/myVlog"
,
"style"
:
{
"navigationBarTitleText"
:
"我的Vlog集"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"product/product"
,
"style"
:
{
"navigationBarTitleText"
:
"产品列表"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"productDetails/productDetails"
,
"style"
:
{
"navigationBarTitleText"
:
"产品详情"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"uploadPictures/uploadPictures"
,
"style"
:
{
"navigationBarTitleText"
:
"上传照片"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"u-avatar-cropper/u-avatar-cropper"
,
"style"
:
{
"navigationBarTitleText"
:
"照片裁剪"
,
"navigationBarBackgroundColor"
:
"#000000"
}
},
{
"path"
:
"pictureFormat/pictureFormat"
,
"style"
:
{
"navigationBarTitleText"
:
"照片调整"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"myVlogPhotos/myVlogPhotos"
,
"style"
:
{
"navigationBarTitleText"
:
"我的vlog照片"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"orderPay/orderPay"
,
"style"
:
{
"navigationBarTitleText"
:
"确认订单"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"shippingAddress/shippingAddress"
,
"style"
:
{
"navigationBarTitleText"
:
"填写收货地址"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
}
]
},
{
"root"
:
"pages/album"
,
//影集分包
"pages"
:
[{
"path"
:
"albumIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"相册首页"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"chooseFavorite"
,
"style"
:
{
"navigationBarTitleText"
:
"景区喜好"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"getPortrait"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"myPhotoAlbum/myPhotoAlbum"
,
"style"
:
{
"navigationBarTitleText"
:
"我的相册"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"albumOrderdetail/albumOrderdetail"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"purchasedPhotoAlbum/purchasedPhotoAlbum"
,
"style"
:
{
"navigationBarTitleText"
:
"我的影集"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"DIYPurchase/DIYPurchase"
,
"style"
:
{
"navigationBarTitleText"
:
"影像DIY"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"DIYDetails/DIYDetails"
,
"style"
:
{
"navigationBarTitleText"
:
"我的相片"
,
"enablePullDownRefresh"
:
false
}
}
]
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"white"
,
"navigationBarTitleText"
:
""
,
"navigationBarBackgroundColor"
:
"#192033"
,
"backgroundColor"
:
"#F8F8F8"
},
//
配置tabbar导航栏
"tabBar"
:
{
"color"
:
"#7A7E83"
,
//字体颜色
"selectedColor"
:
"#007AFF"
,
//选中时字体颜色
"borderStyle"
:
"black"
,
//底部的上边框线条
"backgroundColor"
:
"#F8F8F8"
,
//底部背景色
"list"
:
[{
"pagePath"
:
"pages/indexs/index/index"
,
"iconPath"
:
"static/img/index/home.png"
,
"selectedIconPath"
:
"static/img/index/homeChoose.png"
,
"text"
:
"首页"
},
{
"pagePath"
:
"pages/indexs/center/center"
,
"iconPath"
:
"static/img/index/my.png"
,
"selectedIconPath"
:
"static/img/index/myChoose.png"
,
"text"
:
"我的"
}]
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[{
"name"
:
""
,
//模式名称
"path"
:
""
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}]
},
"easycom"
:
{
//
下载安装的方式需要前面的
"@/"
,npm安装的方式无需
"@/"
//
下载安装方式
"^u-(.*)"
:
"@/uview-ui/components/u-$1/u-$1.vue"
}
}
//
npm安装方式
{
"pages"
:
[
//pages数组中第一项表示应用启动页
{
"path"
:
"pages/indexs/index/index"
,
"style"
:
{
"navigationBarTitleText"
:
"首页"
}
},
{
"path"
:
"pages/payment/orderPayment/orderPayment"
,
"style"
:
{
"navigationBarTitleText"
:
"订单支付"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/login/login"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/payment/paySuccess/paySuccess"
,
"style"
:
{
"navigationBarTitleText"
:
"支付成功"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/payment/ourPayment/ourPayment"
,
"style"
:
{
"navigationBarTitleText"
:
"订单支付"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/combination/combiChoose/combiChoose"
,
"style"
:
{
"navigationBarTitleText"
:
"产品选择"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/combination/sourceCombiChoose/sourceCombiChoose"
,
"style"
:
{
"navigationBarTitleText"
:
"产品选择"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/combination/distributionCombiChoose/distributionCombiChoose"
,
"style"
:
{
"navigationBarTitleText"
:
"产品选择"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/combination/combiOrder/combiOrder"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/common/coupon/coupon"
,
"style"
:
{
"navigationBarTitleText"
:
"领劵中心"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/common/getTicket/getTicket"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/common/questionConsultation/questionConsultation"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/indexs/dongjianIndex/dongjianIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"洞舰"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/indexs/hghgIndex/hghgIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"湖广会馆"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/common/simpleProduct/simpleProduct"
,
"style"
:
{
"navigationBarTitleText"
:
"产品选择"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/payment/distributionPayment/distributionPayment"
,
"style"
:
{
"navigationBarTitleText"
:
"订单支付"
,
"enablePullDownRefresh"
:
false
}
},
//
{
//
"path"
:
"pages/indexs/merchantListIndex/merchantListIndex"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"商品列表"
,
//
"enablePullDownRefresh"
:
false
//
}
//
},
{
"path"
:
"pages/hotel/hotelIndex/hotelIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"酒店"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/specialProduct/specialIndex/specialIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"特产"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/indexs/center/center"
,
"style"
:
{
"navigationBarTitleText"
:
"个人中心"
,
"enablePullDownRefresh"
:
false
}
}
],
//分包加载配置,此配置为小程序的分包加载机制。
"subPackages"
:
[{
"root"
:
"pages/my"
,
//个人中心分包
"pages"
:
[{
"path"
:
"order/electronicTicket/electronicTicket"
,
"style"
:
{
"navigationBarTitleText"
:
"电子门票"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"order/intelTicket/intelTicket"
,
"style"
:
{
"navigationBarTitleText"
:
"电子门票"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"order/orderList/orderList"
,
"style"
:
{
"navigationBarTitleText"
:
"订单列表"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"order/afterSale/applyAfterSale/applyAfterSale"
,
"style"
:
{
"navigationBarTitleText"
:
"售后"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"exchangeCode/exchangeIndex/exchangeIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"胖丁旅游"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"shopCart/shopCart"
,
"style"
:
{
"navigationBarTitleText"
:
"购物车"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"commonInfo/commonInfo"
,
"style"
:
{
"navigationBarTitleText"
:
"常用信息"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"passCode/codeResult/codeResult"
,
"style"
:
{
"navigationBarTitleText"
:
"通行码"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"customerService/enterpriseWechat/enterpriseWechat"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"couponCenter/myCouponList/myCouponList"
,
"style"
:
{
"navigationBarTitleText"
:
"我的券列表"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"travelList/travelList/travelList"
,
"style"
:
{
"navigationBarTitleText"
:
"行程单"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"travelNotes/myTravelogue/myTravelogue"
,
"style"
:
{
"navigationBarTitleText"
:
"我的行记"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"order/afterSale/afterSaleList/afterSaleList"
,
"style"
:
{
"navigationBarTitleText"
:
"售后列表"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"takeNumber/numberChoose/numberChoose"
,
"style"
:
{
"navigationBarTitleText"
:
"选择出发站点"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"takeNumber/numberIndex/numberIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"取号"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"takeNumber/rowNumber/rowNumber"
,
"style"
:
{
"navigationBarTitleText"
:
"取号"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"order/jointElectronicTicket/jointElectronicTicket"
,
"style"
:
{
"navigationBarTitleText"
:
"电子门票"
,
"enablePullDownRefresh"
:
false
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarBackgroundColor"
:
"#F7F8FA"
}
},
{
"path"
:
"exchangeCode/exchangePage/exchangePage"
,
"style"
:
{
"navigationBarTitleText"
:
"兑换票"
}
},
{
"path"
:
"exchangeCode/exchangeComplete/exchangeComplete"
,
"style"
:
{
"navigationBarTitleText"
:
"兑换结果"
}
},
{
"path"
:
"exchangeCode/exchangeChoose/exchangeChoose"
,
"style"
:
{
"navigationBarTitleText"
:
"胖丁旅游"
,
"enablePullDownRefresh"
:
false
}
}
]
},
{
"root"
:
"pages/scenic"
,
//景区分包
"pages"
:
[{
"path"
:
"scenicJointOrder/scenicJointOrder"
,
"style"
:
{
"navigationBarTitleText"
:
"订单填写"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"scenicSingleOrder/scenicSingleOrder"
,
"style"
:
{
"navigationBarTitleText"
:
"订单填写"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"scenicProduct/scenicProduct"
,
"style"
:
{
"navigationBarTitleText"
:
"产品"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"scenicIndex/scenicIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"景区"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"scenicCombiOrder/scenicCombiOrder"
,
"style"
:
{
"navigationBarTitleText"
:
"订单填写"
,
"enablePullDownRefresh"
:
false
}
}
]
},
{
"root"
:
"pages/vlog"
,
//vlogo分包
"pages"
:
[{
"path"
:
"vlogIndex/vlogIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"欢乐影集"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"vlogface/vlogface"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"scenicList/scenicList"
,
"style"
:
{
"enablePullDownRefresh"
:
false
,
"backgroundColor"
:
"#192033"
}
},
{
"path"
:
"vlogList/vlogList"
,
"style"
:
{
"navigationBarTitleText"
:
"我的Vlog集"
,
"enablePullDownRefresh"
:
false
,
"backgroundColor"
:
"#192033"
}
},
{
"path"
:
"share/share"
,
"style"
:
{
"navigationBarTitleText"
:
"Vlog"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"myVlog/myVlog"
,
"style"
:
{
"navigationBarTitleText"
:
"我的Vlog集"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"product/product"
,
"style"
:
{
"navigationBarTitleText"
:
"产品列表"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"productDetails/productDetails"
,
"style"
:
{
"navigationBarTitleText"
:
"产品详情"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"uploadPictures/uploadPictures"
,
"style"
:
{
"navigationBarTitleText"
:
"上传照片"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"u-avatar-cropper/u-avatar-cropper"
,
"style"
:
{
"navigationBarTitleText"
:
"照片裁剪"
,
"navigationBarBackgroundColor"
:
"#000000"
}
},
{
"path"
:
"pictureFormat/pictureFormat"
,
"style"
:
{
"navigationBarTitleText"
:
"照片调整"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"myVlogPhotos/myVlogPhotos"
,
"style"
:
{
"navigationBarTitleText"
:
"我的vlog照片"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"orderPay/orderPay"
,
"style"
:
{
"navigationBarTitleText"
:
"确认订单"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"shippingAddress/shippingAddress"
,
"style"
:
{
"navigationBarTitleText"
:
"填写收货地址"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
}
]
},
{
"root"
:
"pages/album"
,
//影集分包
"pages"
:
[{
"path"
:
"albumIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"相册首页"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"chooseFavorite"
,
"style"
:
{
"navigationBarTitleText"
:
"景区喜好"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"getPortrait"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"myPhotoAlbum/myPhotoAlbum"
,
"style"
:
{
"navigationBarTitleText"
:
"我的相册"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"albumOrderdetail/albumOrderdetail"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"purchasedPhotoAlbum/purchasedPhotoAlbum"
,
"style"
:
{
"navigationBarTitleText"
:
"我的影集"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"DIYPurchase/DIYPurchase"
,
"style"
:
{
"navigationBarTitleText"
:
"影像DIY"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"DIYDetails/DIYDetails"
,
"style"
:
{
"navigationBarTitleText"
:
"我的相片"
,
"enablePullDownRefresh"
:
false
}
}
]
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"white"
,
"navigationBarTitleText"
:
""
,
"navigationBarBackgroundColor"
:
"#192033"
,
"backgroundColor"
:
"#F8F8F8"
},
//
配置tabbar导航栏
"tabBar"
:
{
"color"
:
"#7A7E83"
,
//字体颜色
"selectedColor"
:
"#007AFF"
,
//选中时字体颜色
"borderStyle"
:
"black"
,
//底部的上边框线条
"backgroundColor"
:
"#F8F8F8"
,
//底部背景色
"list"
:
[{
"pagePath"
:
"pages/indexs/index/index"
,
"iconPath"
:
"static/img/index/home.png"
,
"selectedIconPath"
:
"static/img/index/homeChoose.png"
,
"text"
:
"首页"
},
{
"pagePath"
:
"pages/indexs/center/center"
,
"iconPath"
:
"static/img/index/my.png"
,
"selectedIconPath"
:
"static/img/index/myChoose.png"
,
"text"
:
"我的"
}]
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[{
"name"
:
""
,
//模式名称
"path"
:
""
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}]
},
"easycom"
:
{
//
下载安装的方式需要前面的
"@/"
,npm安装的方式无需
"@/"
//
下载安装方式
"^u-(.*)"
:
"@/uview-ui/components/u-$1/u-$1.vue"
}
}
//
npm安装方式
//
"^u-(.*)"
:
"uview-ui/components/u-$1/u-$1.vue"
\ No newline at end of file
...
...
pages/my/exchangeCode/exchangeChoose/exchangeChoose.vue
0 → 100644
View file @
75dc1b15
<
template
>
<view
class=
"bigBox"
>
<view
class=
"exchange-btn exchange-btnTop"
@
click=
"distributionCombiChooseFun()"
>
<image
class=
"btn-img"
src=
"../../static/exchangeCode/GIbuyTicket.png"
></image>
<view
class=
"btn-name"
>
立即购票
</view>
<view
class=
"btn-ENname"
>
BUY TICKETS NOW
</view>
</view>
<view
class=
"exchange-btn"
@
click=
"exchangeCodeChoose()"
>
<image
class=
"btn-img"
src=
"../../static/exchangeCode/GIExchange.png"
></image>
<view
class=
"btn-name"
>
兑换票
</view>
<view
class=
"btn-ENname"
>
EXCHANGE TICKETS
</view>
</view>
<view
class=
"exchange-btn"
@
click=
"orderListFun()"
>
<image
class=
"btn-img"
src=
"../../static/exchangeCode/GIOrder.png"
></image>
<view
class=
"btn-name"
>
查看订单
</view>
<view
class=
"btn-ENname"
>
VIEW ORDERS
</view>
</view>
<view
class=
"exchange-mask"
v-if=
"maskType==true"
>
<view
class=
"mask-case"
>
<view
class=
"mask-list"
>
<view
class=
"list-box"
:class=
"active == index?'list-boxAct':''"
@
click=
"listNumFun(index)"
v-for=
"(item,index) in stringProduct"
:key=
"index"
>
{{
item
.
exchangeProductName
}}
</view>
</view>
<view
class=
"mask-btn"
>
<view
class=
"btn-style"
@
click=
"enterFun()"
>
确定
</view>
<view
class=
"btn-style btn-stylehui"
@
click=
"maskType=false"
>
关闭
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
productId
:
''
,
merchantId
:
''
,
ticketCode
:
''
,
userId
:
''
,
companyMess
:{},
//公司信息
companyId
:
''
,
//公司ID
fromOrderId
:
''
,
//历史ID
pdFromOrderId
:
''
,
stringProduct
:
[],
//可兑换产品列表
maskType
:
false
,
active
:
0
,
}
},
onLoad
(
option
)
{
//this.userId = ''//uni.getStorageSync('openid')
//this.productId = option.productId||'z001700015788731bfffd2581156dcfa'
this
.
ticketCode
=
this
.
$commonjs
.
getKey
(
option
,
'ticketCode'
)
||
''
this
.
merchantId
=
this
.
$commonjs
.
getKey
(
option
,
'merchantId'
)
||
''
console
.
log
(
this
.
merchantId
)
this
.
loadMerchantInfo
()
},
methods
:
{
enterFun
(){
//产品选择确定
this
.
productId
=
this
.
stringProduct
[
this
.
active
].
exchangeProductId
this
.
exchangeCode
()
},
listNumFun
(
index
){
//当可选产品>1时 选择的产品是
this
.
active
=
index
},
loadMerchantInfo
(){
//景区详情
var
data
=
{
id
:
this
.
merchantId
,
isDetail
:
1
}
this
.
$request
(
'scenic/newMerchant/loadMerchantInfo'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
this
.
companyMess
=
res
.
data
this
.
companyId
=
res
.
data
.
productCompanyId
this
.
productListFun
(
res
.
data
.
productCompanyId
)
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
productListFun
(
productCompanyId
){
//可兑换的产品列表
var
data
=
{
companyId
:
productCompanyId
,
}
this
.
$request
(
'scenic/exchangeProduct/loadExchangeList'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
this
.
stringProduct
=
res
.
data
this
.
stringProduct
.
forEach
((
item
,
index
)
=>
{
var
productNameGroup
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
productName
)).
split
(
'('
)
item
.
productNameGroup
=
JSON
.
parse
(
JSON
.
stringify
(
productNameGroup
))
})
console
.
log
(
this
.
stringProduct
)
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
exchangeCodeChoose
(){
//大于1出现遮罩 等于1跳转
if
(
this
.
stringProduct
.
length
>
1
){
this
.
maskType
=
true
}
else
{
this
.
exchangeCode
()
}
},
exchangeCode
(){
//订单查询
var
data
=
{
ticketCode
:
this
.
ticketCode
,
//userId : this.userId,//上线之前注销 此为普通票
//productId : this.productId,
//orderStatus : 2,//上线之前注销 此为普通票
}
this
.
$request
(
'order/userOrder/findExchangeOrderList'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
data
.
list
.
length
>
0
)
{
this
.
checkExchangeFun
(
res
.
data
.
list
[
0
].
id
,
res
.
data
.
list
[
0
].
productId
,
res
.
data
.
list
[
0
].
userId
)
this
.
fromOrderId
=
res
.
data
.
list
[
0
].
thirdOrderId
this
.
pdFromOrderId
=
res
.
data
.
list
[
0
].
id
}
else
{
this
.
$toast
.
fail
(
'未查询到相应订单'
)
}
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
checkExchangeFun
(
id
,
productId
,
userId
){
//兑换检测
this
.
productId
=
this
.
stringProduct
[
this
.
active
].
exchangeProductId
var
data
=
{
fromOrderId
:
id
,
}
this
.
$request
(
'order/exchange/checkExchange'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
data
.
exchangeStatus
==
0
)
{
uni
.
navigateTo
({
url
:
'/pages/my/exchangeCode/exchangePage/exchangePage?productId='
+
this
.
productId
+
'&id='
+
id
+
'&userId='
+
userId
+
'&merchantId='
+
this
.
merchantId
+
'&fromOrderId='
+
this
.
fromOrderId
+
'&pdFromOrderId='
+
this
.
pdFromOrderId
+
'&ticketCode='
+
this
.
ticketCode
})
}
else
{
uni
.
showToast
({
title
:
'当前兑换码已兑换,若需兑换其他兑换码,请扫描对应门票二维码进行兑换。'
,
icon
:
'none'
})
}
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
orderListFun
(){
//跳转订单列表
uni
.
navigateTo
({
url
:
'/pages/my/order/orderList/orderList'
})
},
distributionCombiChooseFun
(){
//跳转立即购票
uni
.
navigateTo
({
url
:
'/pages/combination/distributionCombiChoose/distributionCombiChoose?channelId=1&merchantId=z0015605022691a5945bbe463141668c&groupId=z0016038113016708b8ad38c637b2f26&groupChannelId=z00160423712018998e6260ffcaf3369'
})
},
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.bigBox
{
height
:
100vh
;
background-color
:
#F4F6F8
;
overflow-y
:
auto
;
}
.exchange-btn
{
width
:
628rpx
;
height
:
216rpx
;
margin
:
0
auto
;
margin-bottom
:
54rpx
;
position
:
relative
;
.btn-img
{
display
:
block
;
width
:
628rpx
;
height
:
216rpx
;
}
.btn-name
{
font-weight
:
600
;
font-size
:
40rpx
;
color
:
#FFFFFF
;
line-height
:
56rpx
;
position
:
absolute
;
top
:
56rpx
;
left
:
60rpx
;
}
.btn-ENname
{
font-weight
:
600
;
font-size
:
24rpx
;
color
:
#FFFFFF
;
line-height
:
34rpx
;
position
:
absolute
;
top
:
120rpx
;
left
:
60rpx
;
}
}
.exchange-btnTop
{
margin-top
:
126rpx
;
}
.exchange-mask
{
position
:
fixed
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
998
;
background-color
:
rgba
(
0
,
0
,
0
,.
3
);
.mask-case
{
width
:
700rpx
;
height
:
800rpx
;
margin
:
auto
;
background-color
:
#fff
;
border-radius
:
18rpx
;
position
:
fixed
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
.mask-list
{
height
:
600rpx
;
padding
:
20rpx
0
0
0
;
overflow-y
:
auto
;
.list-box
{
width
:
680rpx
;
margin
:
0
auto
20rpx
auto
;
padding
:
30rpx
20rpx
;
border
:
solid
1px
#EEEFF0
;
border-radius
:
8rpx
;
line-height
:
30rpx
;
font-size
:
26rpx
;
color
:
#333333
;
}
.list-boxAct
{
color
:
#FE6600
;
border
:
1px
solid
#FE6600
;
}
}
.mask-btn
{
height
:
200rpx
;
.btn-style
{
width
:
680rpx
;
height
:
80rpx
;
border
:
1px
solid
#FE6600
;
background-color
:
#FE6600
;
color
:
#fff
;
line-height
:
78rpx
;
font-size
:
26rpx
;
text-align
:
center
;
margin
:
0
auto
20rpx
auto
;
}
.btn-stylehui
{
color
:
#333333
;
border
:
solid
1px
#EEEFF0
;
background-color
:
#fff
;
}
}
}
}
</
style
>
pages/my/exchangeCode/exchangeComplete/exchangeComplete.vue
View file @
75dc1b15
...
...
@@ -3,7 +3,7 @@
<u-icon
name=
"checkmark-circle-fill"
></u-icon>
<view
class=
"exchange-name"
>
兑换成功
</view>
<view
class=
"exchange-text"
>
可在胖丁旅行“我的-我的订单”中查找您的电子门票
</view>
<view
class=
"exchange-btn"
>
完成
</view>
<view
class=
"exchange-btn"
@
click=
"orderJump()"
>
完成
</view>
</view>
</
template
>
...
...
@@ -11,14 +11,18 @@
export
default
{
data
()
{
return
{
orderId
:
''
,
}
},
onLoad
(
option
)
{
this
.
orderId
=
option
.
orderId
},
methods
:
{
orderJump
(){
//-------------------订单详情跳转
uni
.
navigateTo
({
url
:
'/pages/my/order/electronicTicket/electronicTicket?orderId='
+
this
.
orderId
})
},
}
}
</
script
>
...
...
pages/my/exchangeCode/exchangeIndex/exchangeIndex.vue
View file @
75dc1b15
<
template
>
<view
class=
"bigBox"
>
<view
class=
"exchange-btn exchange-btnTop"
@
click=
"distributionCombiChooseFun()"
>
<image
class=
"btn-img"
src=
"../../static/exchangeCode/GIbuyTicket.png"
></image>
<view
class=
"btn-name"
>
立即购票
</view>
<view
class=
"btn-ENname"
>
BUY TICKETS NOW
</view>
</view>
<view
class=
"exchange-btn"
@
click=
"exchangeCodeChoose()"
>
<image
class=
"btn-img"
src=
"../../static/exchangeCode/GIExchange.png"
></image>
<view
class=
"btn-name"
>
兑换票
</view>
<view
class=
"btn-ENname"
>
EXCHANGE TICKETS
</view>
</view>
<view
class=
"exchange-btn"
@
click=
"orderListFun()"
>
<image
class=
"btn-img"
src=
"../../static/exchangeCode/GIOrder.png"
></image>
<view
class=
"btn-name"
>
查看订单
</view>
<view
class=
"btn-ENname"
>
VIEW ORDERS
</view>
</view>
<view
class=
"exchange-mask"
v-if=
"maskType==true"
>
<view
class=
"mask-case"
>
<view
class=
"mask-list"
>
<view
class=
"list-box"
:class=
"active == index?'list-boxAct':''"
@
click=
"listNumFun(index)"
v-for=
"(item,index) in stringProduct"
:key=
"index"
>
{{
item
.
productName
}}
</view>
</view>
<view
class=
"mask-btn"
></view>
</view>
</view>
<view>
<web-view
:src=
"outUrl"
></web-view>
</view>
</
template
>
...
...
@@ -32,225 +8,24 @@
export
default
{
data
()
{
return
{
productId
:
''
,
merchantId
:
''
,
ticketCode
:
''
,
userId
:
''
,
companyMess
:{},
//公司信息
companyId
:
''
,
//公司ID
fromOrderId
:
''
,
//历史ID
pdFromOrderId
:
''
,
stringProduct
:
[],
//可兑换产品列表
maskType
:
true
,
active
:
0
,
outUrl
:
''
,
//跳出页面路由
}
},
onLoad
(
option
)
{
//this.userId = ''//uni.getStorageSync('openid')
//this.productId = option.productId||'z001700015788731bfffd2581156dcfa'
this
.
ticketCode
=
this
.
$commonjs
.
getKey
(
option
.
ticketCode
)
||
''
this
.
merchantId
=
this
.
$commonjs
.
getKey
(
option
.
merchantId
)
||
''
console
.
log
(
this
.
merchantId
)
this
.
loadMerchantInfo
()
let
merchantId
=
option
.
merchantId
||
''
let
pdOpenid
=
uni
.
getStorageSync
(
'openid'
)
||
''
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let
pdToken
=
uni
.
getStorageSync
(
'token'
)
||
''
let
pdCreateUserId
=
uni
.
getStorageSync
(
'createUserId'
)
||
''
let
pdUserId
=
uni
.
getStorageSync
(
'userId'
)
||
''
let
baseUrl
=
this
.
$wxurl
+
'exchangeIndex?merchantId='
+
merchantId
this
.
outUrl
=
baseUrl
+
'&pdOpenid='
+
pdOpenid
+
'&pdToken='
+
pdToken
+
'&pdCreateUserId='
+
pdCreateUserId
+
'&pdUserId='
+
pdUserId
},
methods
:
{
listNumFun
(
index
){
//当可选产品>1时 选择的产品是
this
.
active
=
index
},
loadMerchantInfo
(){
//景区详情
var
data
=
{
id
:
this
.
merchantId
,
isDetail
:
1
}
this
.
$request
(
'scenic/newMerchant/loadMerchantInfo'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
this
.
companyMess
=
res
.
data
this
.
companyId
=
res
.
data
.
productCompanyId
this
.
productListFun
(
res
.
data
.
productCompanyId
)
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
productListFun
(
productCompanyId
){
//可兑换的产品列表
var
data
=
{
companyId
:
productCompanyId
,
}
this
.
$request
(
'scenic/exchangeProduct/loadExchangeList'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
this
.
stringProduct
=
res
.
data
this
.
stringProduct
.
forEach
((
item
,
index
)
=>
{
var
productNameGroup
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
productName
)).
split
(
'('
)
item
.
productNameGroup
=
JSON
.
parse
(
JSON
.
stringify
(
productNameGroup
))
})
console
.
log
(
this
.
stringProduct
)
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
exchangeCodeChoose
(){
//大于1出现遮罩 等于1跳转
if
(
this
.
stringProduct
.
length
>
1
){
this
.
maskType
=
true
}
else
{
this
.
exchangeCode
()
}
},
exchangeCode
(){
//订单查询
var
data
=
{
ticketCode
:
this
.
ticketCode
,
//userId : this.userId,//上线之前注销 此为普通票
//productId : this.productId,
//orderStatus : 2,//上线之前注销 此为普通票
}
this
.
$request
(
'order/userOrder/findExchangeOrderList'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
data
.
list
.
length
>
0
)
{
this
.
checkExchangeFun
(
res
.
data
.
list
[
0
].
id
,
res
.
data
.
list
[
0
].
productId
,
res
.
data
.
list
[
0
].
userId
)
this
.
fromOrderId
=
res
.
data
.
list
[
0
].
thirdOrderId
this
.
pdFromOrderId
=
res
.
data
.
list
[
0
].
id
}
else
{
this
.
$toast
.
fail
(
'未查询到相应订单'
)
}
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
checkExchangeFun
(
id
,
productId
,
userId
){
//兑换检测
var
data
=
{
fromOrderId
:
id
,
}
this
.
$request
(
'order/exchange/checkExchange'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
data
.
exchangeStatus
==
0
)
{
uni
.
navigateTo
({
url
:
'/pages/my/exchangeCode/exchangePage/exchangePage?productId='
+
this
.
productId
+
'&id='
+
id
+
'&userId='
+
userId
+
'&merchantId='
+
this
.
merchantId
+
'&fromOrderId='
+
this
.
fromOrderId
+
'&pdFromOrderId='
+
this
.
pdFromOrderId
+
'&ticketCode='
+
this
.
ticketCode
})
}
else
{
uni
.
showToast
({
title
:
'当前兑换码已兑换,若需兑换其他兑换码,请扫描对应门票二维码进行兑换。'
,
icon
:
'none'
})
}
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
orderListFun
(){
//跳转订单列表
uni
.
navigateTo
({
url
:
'/pages/my/order/orderList/orderList'
})
},
distributionCombiChooseFun
(){
//跳转立即购票
uni
.
navigateTo
({
url
:
'/pages/combination/distributionCombiChoose/distributionCombiChoose?channelId=1&merchantId=z0015605022691a5945bbe463141668c&groupId=z0016038113016708b8ad38c637b2f26&groupChannelId=z00160423712018998e6260ffcaf3369'
})
},
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.bigBox
{
height
:
100vh
;
background-color
:
#F4F6F8
;
overflow-y
:
auto
;
}
.exchange-btn
{
width
:
628rpx
;
height
:
216rpx
;
margin
:
0
auto
;
margin-bottom
:
54rpx
;
position
:
relative
;
.btn-img
{
display
:
block
;
width
:
628rpx
;
height
:
216rpx
;
}
.btn-name
{
font-weight
:
600
;
font-size
:
40rpx
;
color
:
#FFFFFF
;
line-height
:
56rpx
;
position
:
absolute
;
top
:
56rpx
;
left
:
60rpx
;
}
.btn-ENname
{
font-weight
:
600
;
font-size
:
24rpx
;
color
:
#FFFFFF
;
line-height
:
34rpx
;
position
:
absolute
;
top
:
120rpx
;
left
:
60rpx
;
}
}
.exchange-btnTop
{
margin-top
:
126rpx
;
}
.exchange-mask
{
position
:
fixed
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
998
;
background-color
:
rgba
(
0
,
0
,
0
,.
3
);
.mask-case
{
width
:
700rpx
;
height
:
800rpx
;
margin
:
auto
;
background-color
:
#fff
;
border-radius
:
18rpx
;
position
:
fixed
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
.mask-list
{
height
:
600rpx
;
padding
:
20rpx
0
0
0
;
overflow-y
:
auto
;
.list-box
{
width
:
680rpx
;
margin
:
0
auto
20rpx
auto
;
padding
:
30rpx
20rpx
;
border
:
solid
1px
#EEEFF0
;
border-radius
:
8rpx
;
line-height
:
30rpx
;
font-size
:
26rpx
;
color
:
#333333
;
}
.list-boxAct
{
color
:
#FE6600
;
border
:
1px
solid
#FE6600
;
}
}
.mask-btn
{
height
:
200rpx
;
}
}
}
<
style
>
</
style
>
pages/my/exchangeCode/exchangePage/exchangePage.vue
View file @
75dc1b15
...
...
@@ -394,7 +394,7 @@ export default {
//#endif
let
data
=
{
'orderId'
:
orderId
,
//订单Id
'userId'
:
this
.
userId
,
//用户Id
'userId'
:
uni
.
getStorageSync
(
'openid'
)
,
//用户Id
'payType'
:
payType
,
//支付类型
'fromOrderId'
:
this
.
fromOrderId
,
'pdFromOrderId'
:
this
.
pdFromOrderId
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment