| | |
| | | // baseUrl: "https://xcxhive2.jyymatrix.cc", |
| | | |
| | | //测试环境 |
| | | baseUrl : "https://testhive.jyymatrix.cc", |
| | | // baseUrl : "https://testhive.jyymatrix.cc", |
| | | |
| | | |
| | | //本地环境 |
| | | // baseUrl : "http://localhost:8080", |
| | | baseUrl : "http://localhost:8080", |
| | | |
| | | //登录后获得的token |
| | | loginToken: "", |
| | |
| | | ], |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | | "navigationBarTitleText": "肽妍", |
| | | "navigationBarTitleText": "蜂巢美业", |
| | | "navigationBarTextStyle": "black", |
| | | "navigationBarBackgroundColor": "#fff" |
| | | }, |
| | |
| | | </view> |
| | | </view> |
| | | |
| | | <view wx:if="{{goodsInfo.stockNum>0 && goodsInfo.isService==2 }}" class='detail_cart detail_pay' bindtap='buy'>立刻购买</view> |
| | | <view wx:if="{{goodsInfo.stockNum>0 && goodsInfo.isService==1 }}" class='detail_cart detail_pay' bindtap='yuyue'>预约</view> |
| | | <view wx:if="{{goodsInfo.stockNum>0}}" class='detail_cart detail_pay' bindtap='buy'>立刻购买</view> |
| | | |
| | | <view wx:if="{{goodsInfo.stockNum<1}}" class='detail_cart detail_pay'>已售罄</view> |
| | | </view> |
| | |
| | | var _this = this; |
| | | var id = e.currentTarget.dataset.id; |
| | | var service = e.currentTarget.dataset.service; |
| | | if (service == 1) { |
| | | |
| | | this.checkUserInfoIsBuding() |
| | | |
| | | var index = e.currentTarget.dataset.index; |
| | | |
| | | var product = this.data.productList[index]; |
| | | wx.setStorageSync('chooseService', product); |
| | | wx.switchTab({ |
| | | url: '/pages/yuyue/khyuyue' |
| | | }); |
| | | } else { |
| | | wx.navigateTo({ |
| | | url: '/pages/service/details?id=' + id, |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | |
| | |
| | | "checkSiteMap": true, |
| | | "uploadWithSourceMap": true, |
| | | "compileHotReLoad": false, |
| | | "useMultiFrameRuntime": false, |
| | | "useMultiFrameRuntime": true, |
| | | "useApiHook": true, |
| | | "useApiHostProcess": false, |
| | | "babelSetting": { |
| | | "ignore": [], |
| | | "disablePlugins": [], |
| | | "outputPath": "" |
| | | }, |
| | | "enableEngineNative": false, |
| | | "bundle": false, |
| | | "useIsolateContext": true, |
| | | "useCompilerModule": true, |
| | | "userConfirmedUseCompilerModuleSwitch": false, |
| | | "userConfirmedBundleSwitch": false, |
| | | "packNpmManually": false, |
| | | "packNpmRelationList": [], |
| | | "enableEngineNative": false, |
| | | "userConfirmedBundleSwitch": false, |
| | | "minifyWXSS": true |
| | | }, |
| | | "compileType": "miniprogram", |
| | |
| | | * 通用js |
| | | */ |
| | | |
| | | var debugHost='www.baidu.com'; |
| | | var debugHost='testhive.jyymatrix.cc'; |
| | | |
| | | // api地址,请求参数,回调函数,是否遮罩 |
| | | function request(params) { |