Browse Source

更新

master
xiaobo 2 months ago
parent
commit
bc8e0915eb
3 changed files with 32 additions and 8 deletions
  1. +5
    -0
      api/model/order.js
  2. +6
    -6
      config.js
  3. +21
    -2
      pages_order/huodong-detail.vue

+ 5
- 0
api/model/order.js View File

@ -32,6 +32,11 @@ const api = {
url: '/order_common/signIn', url: '/order_common/signIn',
method: 'POST', method: 'POST',
}, },
// 创建订单
createOrder: {
url: '/order_common/createOrder',
method: 'POST',
},
} }
export default api export default api

+ 6
- 6
config.js View File

@ -29,17 +29,17 @@ const config = {
const defaultConfig = { const defaultConfig = {
mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU', mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
aliOss : { aliOss : {
url : 'https://tennis-oss.xzaiyp.top/',
url : 'https://image.hhlm1688.com/',
config : { config : {
//桶的地址 //桶的地址
region: 'oss-cn-guangzhou',
region: 'oss-cn-shenzhen',
//id //id
accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
accessKeyId:'LTAI5tQSs47izVy8DLVdwUU9',
//密钥 //密钥
accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
accessKeySecret:'qHI7C3PaXYZySr84HTToviC71AYlFq',
//桶的名字 //桶的名字
bucket: 'zhuoqiu-image',
endpoint:'oss-cn-guangzhou.aliyuncs.com',
bucket: 'hanhaiimage',
endpoint:'oss-cn-shenzhen.aliyuncs.com',
} }
}, },
} }


+ 21
- 2
pages_order/huodong-detail.vue View File

@ -5,7 +5,7 @@
<view class="content"> <view class="content">
<view class="content-head"> <view class="content-head">
<image class="image-box" :src="activityDetails.image" mode=""></image>
<image class="image-box" :src="imageArr[0]" mode=""></image>
<view class="msg-box"> <view class="msg-box">
<view class="msg-box-title">{{activityDetails.title}}</view> <view class="msg-box-title">{{activityDetails.title}}</view>
<view class="msg-box-time">开始时间{{activityDetails.startTime}}</view> <view class="msg-box-time">开始时间{{activityDetails.startTime}}</view>
@ -123,6 +123,11 @@
] ]
} }
}, },
computed:{
imageArr() {
return this.activityDetails.image.split(',')
}
},
onPageScroll(e) { onPageScroll(e) {
if(e.scrollTop > 50) { if(e.scrollTop > 50) {
this.bgColor = '#49070c' this.bgColor = '#49070c'
@ -148,7 +153,20 @@
this.chooseIndex = i this.chooseIndex = i
}, },
confirmClick() { confirmClick() {
this.$api('createOrder',{id:this.activityDetails.id},res=>{
if(res.code === 200) {
uni.requestPaymentWxPay(res)
.then(res => {
uni.showToast({
title: '下单成功',
icon: 'none'
})
}).catch(n => {
})
}
})
} }
} }
} }
@ -176,6 +194,7 @@
.image-box { .image-box {
width: 100%; width: 100%;
height: 546rpx; height: 546rpx;
border-radius: 12rpx;
} }
.msg-box { .msg-box {
background: #1B1713; background: #1B1713;


Loading…
Cancel
Save