Browse Source

v1.1.4 formal

course
刘嘉炜 4 years ago
parent
commit
8b61c5a722
  1. 15
      src/components/site/order_modal/order_modal.vue
  2. 4
      src/js/api.js
  3. 2
      src/manifest.json

15
src/components/site/order_modal/order_modal.vue

@ -95,7 +95,7 @@
<!-- 小程序预定 -->
<view class="om-btns" v-if="orderInfo.type == 'mini_program'">
<view class="ob-view" @click="toOrderInfo">订单详情</view>
<view class="ob-view red" @click="refundBtn">退款</view>
<!-- <view class="ob-view red" @click="refundBtn">退款</view> -->
</view>
<!-- 课程预定 -->
<view class="om-btns" v-if="orderInfo.type == 'course_venue'">
@ -172,6 +172,17 @@ export default {
util.showNone('待开放')
},
refundBtn: util.debounce(function(){
util.showModal({
title: '提示',
content: '是否确认退款,退款后释放场地',
showCancel: true,
success: mRes => {
if(mRes.confirm)this.refundReq();
}
})
}, 300, true),
refundReq(){
let { orderInfo, queryInfo } = this;
servers.post({
url: API.venue.orderRefund,
@ -189,7 +200,7 @@ export default {
util.showNone(res.data.message || '操作失败!');
}
})
}, 300, true),
},
toOrderInfo(){
let { orderInfo, queryInfo } = this;
let _query = {}

4
src/js/api.js

@ -1,5 +1,5 @@
export const ORIGIN = `https://testmanager.ouxuanzhineng.cn`; // 测试
// export const ORIGIN = `https://minimanage.ouxuanzhineng.cn`; // 正式
// export const ORIGIN = `https://testmanager.ouxuanzhineng.cn`; // 测试
export const ORIGIN = `https://minimanage.ouxuanzhineng.cn`; // 正式
export const API = {
wechatMiniAppLoginAndSync: `${ORIGIN}/assistant/WechatMiniAppGetToken`, // 小程序授权获取token,为空就登录

2
src/manifest.json

@ -54,7 +54,7 @@
},
"mp-weixin": { /* */
"appid": "wx7106e84614cf0060",
"appid": "wxf1294b279ad1b845",
"setting": {
"urlCheck": false
},

Loading…
Cancel
Save