jiazhipeng 10 months ago
parent
commit
05f7960446
  1. 53
      pages/index/index.vue
  2. 5
      static/css/base.css
  3. 29
      subPackages/daoyou/order.vue
  4. 33
      subPackages/line/orders.vue
  5. 2
      unpackage/dist/build/web/index.html
  6. 3
      unpackage/dist/build/web/static/css/base.css
  7. 2
      unpackage/dist/build/web/static/js/index.741e8866.js
  8. 1
      unpackage/dist/build/web/static/js/pages-index-index.49793e0e.js
  9. 1
      unpackage/dist/build/web/static/js/pages-index-index.9e92e72d.js
  10. 2
      unpackage/dist/build/web/static/js/request.js
  11. 1
      unpackage/dist/build/web/static/js/subPackages-daoyou-order.2d5c9104.js
  12. 1
      unpackage/dist/build/web/static/js/subPackages-daoyou-order.919eedc8.js
  13. 1
      unpackage/dist/build/web/static/js/subPackages-line-orders.5394564e.js
  14. 1
      unpackage/dist/build/web/static/js/subPackages-line-orders.f6338357.js
  15. 1
      unpackage/dist/build/web/static/js/subPackages-search-searchList.34154ba8.js
  16. 1
      unpackage/dist/build/web/static/js/subPackages-search-searchList.9c8ff535.js
  17. 1
      unpackage/dist/build/web/static/js/subPackages-user-profile.0485ed15.js
  18. 1
      unpackage/dist/build/web/static/js/subPackages-user-profile.f6620374.js

53
pages/index/index.vue

@ -28,17 +28,17 @@
</view> </view>
<view class="type-box"> <view class="type-box">
<view v-for="(item,index) in typeList" :key="index" :class="['type-item', {'type-active': index == typeIndex}]" @click="typeIndex = index"> <view v-for="(item,index) in typeList" :key="index" :class="['type-item', {'type-active': index == typeIndex}]" @click="typeIndex = index;getTouristList()">
{{item.title}} {{item.title}}
</view> </view>
</view> </view>
<view class="tour-box"> <view class="tour-box">
<view v-for="(item,index) in tourList" :key="index" class="tour-item"> <navigator :url="'/subPackages/daoyou/detail?id=' + item.id" v-for="(item,index) in tourList" :key="index" class="tour-item">
<image :src="showImg(item.img)" mode="aspectFill" class="tour-img"></image> <image :src="showImg(item.image)" mode="aspectFill" class="tour-img"></image>
<!-- <image src="https://static.ticket.sz-trip.com/tourist/index/play.png" class="playImg"></image> --> <!-- <image src="https://static.ticket.sz-trip.com/tourist/index/play.png" class="playImg"></image> -->
<!-- <view class="time">{{item.time}}</view> --> <!-- <view class="time">{{item.time}}</view> -->
</view> </navigator>
</view> </view>
<!-- 精选线路 --> <!-- 精选线路 -->
@ -51,13 +51,13 @@
</view> </view>
<view class="line-box"> <view class="line-box">
<view v-for="(item,index) in lineList" :key="index" class="line-item"> <navigator :url="'/subPackages/line/detail?id=' + item.id" v-for="(item,index) in lineList" :key="index" class="line-item">
<image :src="showImg(item.image)" mode="aspectFill" class="line-img"></image> <image :src="showImg(item.image)" mode="aspectFill" class="line-img"></image>
<view class="line-content"> <view class="line-content">
<view class="line-title text-overflowRows">{{item.title}}</view> <view class="line-title text-overflowRows">{{item.title}}</view>
<view class="line-price">{{item.money / 100}}</view> <view class="line-price">{{item.money / 100}}</view>
</view> </view>
</view> </navigator>
</view> </view>
</view> </view>
</template> </template>
@ -71,36 +71,30 @@
typeList: [ typeList: [
{ {
title: '品牌导游', title: '品牌导游',
id: '57' id: '2'
},
{
title: '选项2',
id: '58'
} }
], ],
typeIndex: 0, typeIndex: 0,
tourList: [ tourList: [],
{
img: 'https://static.ticket.sz-trip.com/uploads/20241126/50d406ead15c861f76b8df7dab401802.png',
time: '0:30'
},
{
img: 'https://static.ticket.sz-trip.com/uploads/20241126/50d406ead15c861f76b8df7dab401802.png',
time: '0:30'
},
{
img: 'https://static.ticket.sz-trip.com/uploads/20241126/50d406ead15c861f76b8df7dab401802.png',
time: '0:30'
}
],
lineList: [] lineList: []
} }
}, },
onReady() { onReady() {
this.getTopBanner() this.getTopBanner()
this.getLineList() this.getLineList()
this.getTouristList()
}, },
methods: { methods: {
//
getTouristList() {
this.Post({
type_id: this.typeList[this.typeIndex].id,
offset: 0,
limit: 5
},'/api/goods/getGoodsByDateType').then(res => {
this.tourList = res.data
})
},
// 线 // 线
getLineList() { getLineList() {
this.Post({ this.Post({
@ -132,9 +126,10 @@
}); });
break; break;
case 3: case 3:
uni.navigateTo({ window.location.href = item.tdata
url: '/subPackages/webPage/webPage?url=' + item.tdata // uni.navigateTo({
}); // url: '/subPackages/webPage/webPage?url=' + item.tdata
// });
break; break;
case 4: case 4:
uni.navigateToMiniProgram({ uni.navigateToMiniProgram({
@ -279,6 +274,7 @@
width: 266.73rpx; width: 266.73rpx;
height: 333.4rpx; height: 333.4rpx;
padding: 6rpx; padding: 6rpx;
box-sizing: border-box;
.tour-img { .tour-img {
width: 253rpx; width: 253rpx;
@ -325,6 +321,7 @@
border: 1rpx solid #96684F; border: 1rpx solid #96684F;
margin-right: 13rpx; margin-right: 13rpx;
padding: 22rpx; padding: 22rpx;
box-sizing: border-box;
.line-img { .line-img {
width: 423rpx; width: 423rpx;

5
static/css/base.css

@ -48,10 +48,13 @@ view {
/*单行隐藏*/ /*单行隐藏*/
.text-overflow { .text-overflow {
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden; overflow-y: inherit;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.text-overflow::-webkit-scrollbar {
display: none;
}
/* 两行隐藏 */ /* 两行隐藏 */
.text-overflowRows { .text-overflowRows {

29
subPackages/daoyou/order.vue

@ -222,7 +222,36 @@
method: 'POST', method: 'POST',
data: JSON.stringify(data) data: JSON.stringify(data)
}, '/api/order/place').then(res => { }, '/api/order/place').then(res => {
let order_id = res.data.order_id
this.$store.commit("changeTouristInfo", null);
this.$store.commit("choseCoupon", "");
this.Post({
order_id: order_id,
type: "miniprogram",
platform: 'miniprogram'
}, '/api/pay/unify').then(res => {
if (res.data) {
let data = res.data
WeixinJSBridge.invoke('getBrandWCPayRequest', {
"appId": data.appId, //ID
"timeStamp": data.timeStamp, //1970
"nonceStr": data.timeStamp, //
"package": data.package,
"signType": data.signType, //
"paySign": data.paySign //
},
function(res) {
// if (res.err_msg == "get_brand_wcpay_request:ok") {
// // 使,
// //res.err_msgok
// }
uni.navigateTo({
url: '/subPackages/order/trades'
})
});
}
})
}) })
}else { }else {
this.isBottom = false this.isBottom = false

33
subPackages/line/orders.vue

@ -266,25 +266,28 @@
this.Post({ this.Post({
order_id: order_id, order_id: order_id,
type: "wx", type: "miniprogram",
platform: 'miniprogram' platform: 'miniprogram'
}, '/api/pay/unify').then(res => { }, '/api/pay/unify').then(res => {
if (res.data) { if (res.data) {
// uni.requestPayment({ let data = res.data
// nonceStr: res.data.nonceStr, WeixinJSBridge.invoke('getBrandWCPayRequest', {
// package: res.data.package, "appId": data.appId, //ID
// paySign: res.data.paySign, "timeStamp": data.timeStamp, //1970
// signType: res.data.signType, "nonceStr": data.timeStamp, //
// timeStamp: res.data.timeStamp, "package": data.package,
// success: () => { "signType": data.signType, //
// this.getSubscribeMessage() "paySign": data.paySign //
// }, },
// fail() { function(res) {
// uni.navigateTo({ // if (res.err_msg == "get_brand_wcpay_request:ok") {
// url: '/subPackages/order/trades' // // 使,
// }) // //res.err_msgok
// } // }
// }) uni.navigateTo({
url: '/subPackages/order/trades'
})
});
} }
}) })
} }

2
unpackage/dist/build/web/index.html

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>daoyous</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) <!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>daoyous</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.690d039f.js></script><script src=/static/js/index.fd846d3a.js></script></body></html> document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.690d039f.js></script><script src=/static/js/index.741e8866.js></script></body></html>

3
unpackage/dist/build/web/static/css/base.css

@ -52,6 +52,9 @@ view {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.text-overflow::-webkit-scrollbar {
display: none;
}
/* 两行隐藏 */ /* 两行隐藏 */
.text-overflowRows { .text-overflowRows {

2
unpackage/dist/build/web/static/js/index.fd846d3a.js → unpackage/dist/build/web/static/js/index.741e8866.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/pages-index-index.49793e0e.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/pages-index-index.9e92e72d.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/build/web/static/js/request.js

@ -10,7 +10,7 @@ Vue.prototype.NEWAPIURL = NEWAPIURL
Vue.prototype.Post = (params, apiurl) => { Vue.prototype.Post = (params, apiurl) => {
if (uni.getStorageSync('userInfo') && JSON.parse(uni.getStorageSync('userInfo')).token) params.token = JSON.parse(uni.getStorageSync('userInfo')).token if (uni.getStorageSync('userInfo') && JSON.parse(uni.getStorageSync('userInfo')).token) params.token = JSON.parse(uni.getStorageSync('userInfo')).token
else if (store.state.user.userInfo.token) params.token = store.state.user.userInfo.token else if (store.state.user.userInfo.token) params.token = store.state.user.userInfo.token
params.token = '84bf42c7-e4b9-48b7-976e-2dddcc596d39' // params.token = '84bf42c7-e4b9-48b7-976e-2dddcc596d39'
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'

1
unpackage/dist/build/web/static/js/subPackages-daoyou-order.2d5c9104.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/subPackages-daoyou-order.919eedc8.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/subPackages-line-orders.5394564e.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/subPackages-line-orders.f6338357.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/subPackages-search-searchList.34154ba8.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/subPackages-search-searchList.9c8ff535.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/subPackages-user-profile.0485ed15.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/web/static/js/subPackages-user-profile.f6620374.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save