diff --git a/App.vue b/App.vue index ae008cb..e3a005b 100644 --- a/App.vue +++ b/App.vue @@ -5,7 +5,8 @@ export default { onLaunch: function() { weixin.getOpenidInfo(() => {}, true) - console.log('App Launch') + console.log('App Launch') + const updateManager = uni.getUpdateManager(); updateManager.onCheckForUpdate(function(res) { diff --git a/config.js b/config.js index c818a9c..806801c 100644 --- a/config.js +++ b/config.js @@ -2,8 +2,8 @@ export const appConfig = { appId: 'wx9b4762770771d98a', //孕育邦 //appId:"wx3dc65ce9b588727a",//孕育咨询 //baseUrl: 'http://yunyubang.localhost.com', - baseUrl: 'https://yunyubang2021.langye.net', //孕育邦 - //baseUrl: 'http://yybtest.ali251.langye.net', + baseUrl:'https://yunyubang.ali251.langye.net',// 'https://yunyubang2021.langye.net', //孕育邦 + //baseUrl: 'https://yybtest.ali251.langye.net', newBaseUrl: 'https://yunyubang.ali251.langye.net', //newBaseUrl: 'http://yybtest.ali251.langye.net', //baseUrl:'https://yybtest2021.langye.net',//孕育咨询 diff --git a/main.js b/main.js index 4b8b0c7..621ffad 100644 --- a/main.js +++ b/main.js @@ -1,9 +1,11 @@ import Vue from 'vue' import App from './App' import {appConfig} from './config' -import {weixin} from './utils/weixin.js' +import {weixin} from './utils/weixin.js' +import {util} from './utils/util.js' import uView from "uview-ui"; Vue.use(uView); +Vue.prototype.util = util; Vue.config.productionTip = false Vue.prototype.baseUrl = appConfig.baseUrl diff --git a/packages/packageBuy/pages/shopDetail/shopDetail.vue b/packages/packageBuy/pages/shopDetail/shopDetail.vue index 98aef78..1e12559 100644 --- a/packages/packageBuy/pages/shopDetail/shopDetail.vue +++ b/packages/packageBuy/pages/shopDetail/shopDetail.vue @@ -285,8 +285,11 @@ }, onShow() { - var that = this; - weixin.getOpenidInfo(info => { + var that = this; + console.log("01.onShow",that); + weixin.getOpenidInfo(info => { + + console.log("02.getOpenidInfo",info); that.user_info = info.user_info; that.openid = that.user_info.openid; that.form.member_name = that.user_info.name || that.user_info.wechat_nickname; @@ -417,7 +420,7 @@ this.form.hospital = this.arrHospital[e.target.value]; } }, - + getPoster: function() { var that = this; uni.getImageInfo({ @@ -804,7 +807,9 @@ for (var m of res) { m.poster = (weixin.isNull(m.poster) ? "../../static/750x500.jpg" : m.poster_url) - m.created_at = m.created_at.split("T")[0] + " " + m.created_at.split("T")[1] + if (m.created_at.indexOf('T') > 0) + m.created_at = m.created_at.split("T")[0] + " " + m.created_at.split("T")[ + 1] .split(".")[0] } diff --git a/packages/packageBuy/pages/shopList/shopList.vue b/packages/packageBuy/pages/shopList/shopList.vue index 580c794..74eeecc 100644 --- a/packages/packageBuy/pages/shopList/shopList.vue +++ b/packages/packageBuy/pages/shopList/shopList.vue @@ -129,6 +129,9 @@ } if (options.product_type_id) { this.product_type_id = options.product_type_id + } + if (options.keyword) { + this.keyword = options.keyword; } }, onShow() { @@ -190,8 +193,11 @@ var dataList = that.dataList; for (var m of res) { - m.created_at = m.created_at.split("T")[0] + " " + m.created_at.split("T")[1] - .split(".")[0]; + if (m.created_at.indexOf('T') > 0) + m.created_at = m.created_at.split("T")[0] + " " + m.created_at.split("T")[ + 1].split(".")[0]; + + m.poster = (weixin.isNull(m.poster) ? "../../static/rishang.png" : m .poster_url) } diff --git a/packages/packageOrder/pages/orderPackageDetail/orderPackageDetail.vue b/packages/packageOrder/pages/orderPackageDetail/orderPackageDetail.vue index 38de7e6..08d02e8 100644 --- a/packages/packageOrder/pages/orderPackageDetail/orderPackageDetail.vue +++ b/packages/packageOrder/pages/orderPackageDetail/orderPackageDetail.vue @@ -79,8 +79,8 @@ 取消 付款 退单 + v-if="info.state!='unpaid'&&info.bookable_type=='product'&&info.items.state=='pending'" + @click="tocancelApply(info.items.id)">退单 diff --git a/pages/home/home.vue b/pages/home/home.vue index de4a58e..cc8b6d9 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -1,7 +1,13 @@