zsk 1 year ago
parent fee8d0376a
commit 1595789b1a

@ -2,7 +2,7 @@ App({
globalData: {
userInfo: null,
// ip: 'https://test.renminshitang.com.cn/daotian/api_dev',
ip: "https://daotian.matripe.com.cn",
ip: "",
// ip: 'http://localhost:8001',
sessionId: "",
header: {
@ -59,6 +59,28 @@ App({
// },
onLaunch() {
let that = this;
const envVersion = wx.getAccountInfoSync().miniProgram.envVersion;
// export let baseUrl = ""
// 判断当前环境
console.log(envVersion)
if (envVersion === 'develop') {
console.log('当前是开发环境');
// baseUrl = "https://test.renminshitang.com.cn/zhuchangtong/api_dev"
that.globalData.ip = 'https://test.renminshitang.com.cn/daotian/api_dev'
// that.globalData.ip = 'https://daotian.matripe.com.cn'
// that.globalData.ip = 'https://daotian.matripe.com.cn'
} else if (envVersion === 'trial') {
console.log('当前是体验环境');
that.globalData.ip = "https://test.renminshitang.com.cn/daotian/api_dev"
} else if (envVersion === 'release') {
console.log('当前是正式环境');
that.globalData.ip = 'https://daotian.matripe.com.cn'
// baseUrl = "https://test.renminshitang.com.cn/zhuchangtong/api_dev"
}
wx.hideShareMenu();
Array.prototype.logResult = function (data) {
console.log("Array");

@ -2829,6 +2829,7 @@ Page({
*
*/
modalMove () {
console.log("123")
return false;
},
/**

@ -13,8 +13,7 @@
</view>
</form>
</view>
<scroll-view id="listBox" bindscrolltolower="onScrollToLower" scroll-top="{{topNum}}" enhanced binddragstart="listTouchStart" bindscroll="listTouchMove" style="height:calc(100vh - 56px)" enable-passive scroll-x="false" scroll-y="true" scroll-into-view="{{scrollTo}}" scroll-with-animation="false" enable-back-to-top="true">
<scroll-view id="listBox" bindscrolltolower="onScrollToLower" scroll-top="{{topNum}}" enhanced binddragstart="listTouchStart" bindscroll="listTouchMove" style="height:calc(100vh - 56px)" enable-passive scroll-x="{{false}}" scroll-y="{{whichOneShow == 'special' ? false : true}}" scroll-into-view="{{scrollTo}}" scroll-with-animation="false" enable-back-to-top="true">
<view class hover-class="none" hover-stop-propagation="false">
<!-- <view class="pr p010 br8" bindtap="sendMsg">
<image show-menu-by-longpress src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/yicai.png" mode="aspectFill" style="width: 100%;height:200px;display:block;" class="db toppic br8" bind:tap="clear"></image>

Loading…
Cancel
Save