Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4eaa1f81
authored
Feb 07, 2021
by
严立
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
日常保存
parent
69af6051
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
12 deletions
app.js
environmental.js
pages/home/home/home.wxml
project.config.json
utils/extend/page.js
utils/request/option.js
app.js
View file @
4eaa1f81
...
@@ -23,6 +23,7 @@ App({
...
@@ -23,6 +23,7 @@ App({
appStatus
:
false
,
appStatus
:
false
,
appImageBase
:
'../../../image/'
,
appImageBase
:
'../../../image/'
,
appResourcesBase
:
iEnvironmental
.
host
+
'/userfiles/appResourcesS2/'
,
appResourcesBase
:
iEnvironmental
.
host
+
'/userfiles/appResourcesS2/'
,
sourceValue
:
1000
,
shopId
:
iEnvironmental
.
shopId
,
shopId
:
iEnvironmental
.
shopId
,
pointInfo
:
iEnvironmental
.
pointInfo
,
pointInfo
:
iEnvironmental
.
pointInfo
,
payStateTimer
:
0
,
payStateTimer
:
0
,
...
@@ -30,7 +31,9 @@ App({
...
@@ -30,7 +31,9 @@ App({
baseUrl
:
iOption
.
baseUrl
,
//测试
baseUrl
:
iOption
.
baseUrl
,
//测试
},
},
onLaunch
:
function
()
{
onLaunch
:
function
(
options
)
{
this
.
globalData
.
sourceValue
=
options
.
scene
console
.
log
(
this
.
globalData
.
sourceValue
)
wxApiExtend
(
wx
)
// wx.api 拓展,重新定义某些 api 接口。
wxApiExtend
(
wx
)
// wx.api 拓展,重新定义某些 api 接口。
pageExtend
(
this
)
// Page 实例拓展,为所有 Page 统一增加属性或者方法
pageExtend
(
this
)
// Page 实例拓展,为所有 Page 统一增加属性或者方法
iMui
(
this
)
// m-ui 相关函数引入
iMui
(
this
)
// m-ui 相关函数引入
...
...
environmental.js
View file @
4eaa1f81
let
Development
=
{
let
Development
=
{
//
host: 'https://sm-web.meiqicloud.com',
host
:
'https://sm-web.meiqicloud.com'
,
host
:
'https://smbhyh-web.meiqicloud.com'
,
//
host: 'https://smbhyh-web.meiqicloud.com',
// 景点信息
// 景点信息
pointInfo
:
[
pointInfo
:
[
...
...
pages/home/home/home.wxml
View file @
4eaa1f81
<m-nav scrollHeight="{{navScroll}}" changeHeight="650rpx" styleIndex="{{4}}" isOccupy="{{false}}"></m-nav>
<m-nav scrollHeight="{{navScroll}}" changeHeight="650rpx" styleIndex="{{4}}" isOccupy="{{false}}"></m-nav>
<view class="container iphoneX-bottom-fill">
<view class="container iphoneX-bottom-fill">
<view class="banner">
<view class="banner">
<swiper autoplay circular class="banner-swiper" indicator-dots="{{false}}" interval="5000" duration="500" bindchange="eventSwiperChange">
<swiper autoplay circular class="banner-swiper" indicator-dots="{{false}}" interval="5000" duration="500" bindchange="eventSwiperChange">
...
...
project.config.json
View file @
4eaa1f81
...
@@ -28,18 +28,18 @@
...
@@ -28,18 +28,18 @@
"disablePlugins"
:
[],
"disablePlugins"
:
[],
"outputPath"
:
""
"outputPath"
:
""
},
},
"enableEngineNative"
:
false
,
"bundle"
:
false
,
"useIsolateContext"
:
true
,
"useIsolateContext"
:
true
,
"useCompilerModule"
:
true
,
"useCompilerModule"
:
true
,
"userConfirmedUseCompilerModuleSwitch"
:
false
,
"userConfirmedUseCompilerModuleSwitch"
:
false
,
"userConfirmedBundleSwitch"
:
false
,
"packNpmManually"
:
false
,
"packNpmManually"
:
false
,
"packNpmRelationList"
:
[],
"packNpmRelationList"
:
[],
"minifyWXSS"
:
true
,
"minifyWXSS"
:
true
"bundle"
:
false
},
},
"compileType"
:
"miniprogram"
,
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.11.0"
,
"libVersion"
:
"2.11.0"
,
"appid"
:
"wx
7c468a29cb33a246
"
,
"appid"
:
"wx
37a9b7a3d92029f2
"
,
"projectname"
:
"%E4%B8%96%E8%8C%82%E5%B0%8F%E7%A8%8B%E5%BA%8F%E4%BA%8C%E6%9C%9F"
,
"projectname"
:
"%E4%B8%96%E8%8C%82%E5%B0%8F%E7%A8%8B%E5%BA%8F%E4%BA%8C%E6%9C%9F"
,
"debugOptions"
:
{
"debugOptions"
:
{
"hidedInDevtools"
:
[]
"hidedInDevtools"
:
[]
...
...
utils/extend/page.js
View file @
4eaa1f81
...
@@ -8,6 +8,7 @@ let funcPageExtend = function (App) {
...
@@ -8,6 +8,7 @@ let funcPageExtend = function (App) {
'imageBase'
:
App
.
globalData
.
appImageBase
,
'imageBase'
:
App
.
globalData
.
appImageBase
,
'resourcesBase'
:
App
.
globalData
.
appResourcesBase
,
'resourcesBase'
:
App
.
globalData
.
appResourcesBase
,
'isViewDataReady'
:
false
,
// 视图显示控制,当页面数据请求到位时设置为 true ,以显示视图。避免请求过程中页面显示不完整问题。
'isViewDataReady'
:
false
,
// 视图显示控制,当页面数据请求到位时设置为 true ,以显示视图。避免请求过程中页面显示不完整问题。
'sourceValue'
:
App
.
globalData
.
sourceValue
,
})
})
// 捕获发送给当前页面的待处理事件
// 捕获发送给当前页面的待处理事件
...
...
utils/request/option.js
View file @
4eaa1f81
const
output
=
{
const
output
=
{
// 三期测试环境
baseUrl
:
'https://sm-web.meiqicloud.com/api/'
,
// baseUrl: 'https://sm-web.meiqicloud.com/api/',
// 正式环境
// 正式环境
baseUrl
:
'https://smbhyh-web.meiqicloud.com/api/'
,
//
baseUrl: 'https://smbhyh-web.meiqicloud.com/api/',
}
}
export
default
output
export
default
output
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment