3 Commits

4 changed files with 37 additions and 11 deletions
Split View
  1. +5
    -0
      api/model/order.js
  2. +10
    -8
      config.js
  3. +1
    -1
      manifest.json
  4. +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',
method: 'POST',
},
// 创建订单
createOrder: {
url: '/order_common/createOrder',
method: 'POST',
},
}
export default api

+ 10
- 8
config.js View File

@ -13,12 +13,14 @@ const type = 'prod'
// 环境配置
const config = {
dev : {
baseUrl : 'https://popularize-admin.hhlm1688.com/popularize-admin',
baseUrl : 'http://test-lzx.natapp1.cc/popularize-admin',
// baseUrl : 'https://popularize-admin.hhlm1688.com/popularize-admin',
// baseUrl : 'http://h5.xzaiyp.top/popularize-admin',
},
prod : {
baseUrl : 'http://test-lzx.natapp1.cc/popularize-admin',
// baseUrl : 'http://h5.xzaiyp.top/popularize-admin',
baseUrl : 'https://popularize-admin.hhlm1688.com/popularize-admin',
// baseUrl : 'https://popularize-admin.hhlm1688.com/popularize-admin',
}
}
@ -27,17 +29,17 @@ const config = {
const defaultConfig = {
mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
aliOss : {
url : 'https://tennis-oss.xzaiyp.top/',
url : 'https://image.hhlm1688.com/',
config : {
//桶的地址
region: 'oss-cn-guangzhou',
region: 'oss-cn-shenzhen',
//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',
}
},
}


+ 1
- 1
manifest.json View File

@ -52,7 +52,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wx4bf1b331b5f4e8d8",
"appid" : "wx797abcfb479c75ec",
"setting" : {
"urlCheck" : false
},


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

@ -5,7 +5,7 @@
<view class="content">
<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-title">{{activityDetails.title}}</view>
<view class="msg-box-time">开始时间{{activityDetails.startTime}}</view>
@ -123,6 +123,11 @@
]
}
},
computed:{
imageArr() {
return this.activityDetails.image.split(',')
}
},
onPageScroll(e) {
if(e.scrollTop > 50) {
this.bgColor = '#49070c'
@ -148,7 +153,20 @@
this.chooseIndex = i
},
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 {
width: 100%;
height: 546rpx;
border-radius: 12rpx;
}
.msg-box {
background: #1B1713;


Loading…
Cancel
Save