1
jyy
2021-01-16 13bb7a1c1b2bbded055b3a7109a5b1d9443eba1e
1
6 files modified
27 ■■■■■ changed files
app.js 4 ●●●● patch | view | raw | blame | history
app.json 2 ●●● patch | view | raw | blame | history
pages/service/details.wxml 3 ●●●● patch | view | raw | blame | history
pages/service/service2.js 9 ●●●●● patch | view | raw | blame | history
project.config.json 7 ●●●●● patch | view | raw | blame | history
utils/util.js 2 ●●● patch | view | raw | blame | history
app.js
@@ -6,11 +6,11 @@
    //  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: "",
app.json
@@ -53,7 +53,7 @@
  ],
  "window": {
    "backgroundTextStyle": "light",
    "navigationBarTitleText": "肽妍",
    "navigationBarTitleText": "蜂巢美业",
    "navigationBarTextStyle": "black",
    "navigationBarBackgroundColor": "#fff"
  },
pages/service/details.wxml
@@ -182,8 +182,7 @@
      </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>
pages/service/service2.js
@@ -178,22 +178,13 @@
    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,
      })
    }
  },
project.config.json
@@ -21,21 +21,22 @@
    "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",
utils/util.js
@@ -2,7 +2,7 @@
 * 通用js
 */
var debugHost='www.baidu.com';
var debugHost='testhive.jyymatrix.cc';
// api地址,请求参数,回调函数,是否遮罩
function request(params) {