Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
6973d102
Commit
6973d102
authored
Oct 09, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序代码提交
parent
1a747ef3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
8 deletions
+30
-8
launch.json
.hbuilderx/launch.json
+10
-5
manifest.json
manifest.json
+1
-1
pages.json
pages.json
+10
-0
api.js
plugin/api.js
+9
-2
No files found.
.hbuilderx/launch.json
View file @
6973d102
...
...
@@ -2,10 +2,15 @@
//
launchtype项可配置值为local或remote
,
local代表前端连本地云函数,remote代表前端连云端云函数
"version"
:
"0.0"
,
"configurations"
:
[{
"type"
:
"uniCloud"
,
"default"
:
{
"launchtype"
:
"remote"
}
"default"
:
{
"launchtype"
:
"remote"
},
"mp-weixin"
:
{
"launchtype"
:
"remote"
},
"type"
:
"uniCloud"
}
]
}
manifest.json
View file @
6973d102
...
...
@@ -66,7 +66,7 @@
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
"wx
974a776429e03ee6
"
,
"appid"
:
"wx
5349e63aea0c8529
"
,
"setting"
:
{
"urlCheck"
:
false
,
"minified"
:
false
...
...
pages.json
View file @
6973d102
...
...
@@ -896,5 +896,15 @@
"titleNView"
:
false
//#endif
}
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[
{
"name"
:
""
,
//模式名称
"path"
:
""
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}
]
}
}
\ No newline at end of file
plugin/api.js
View file @
6973d102
...
...
@@ -2,7 +2,7 @@ export default {
install
(
Vue
,
options
)
{
Vue
.
prototype
.
host
=
"https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
Vue
.
prototype
.
host2
=
"http://192.168.10.1
1:8088
"
Vue
.
prototype
.
host2
=
"http://192.168.10.1
28:8200
"
// Vue.prototype.host2 = "http://192.168.10.46:8200"
// Vue.prototype.host2 = "https://mallApi.oytour.com"
...
...
@@ -165,7 +165,7 @@ export default {
// 获取小程序APPID
Vue
.
prototype
.
GetMiniAppId
=
function
()
{
let
appObj
=
{};
let
appType
=
8
;
let
appType
=
13
;
switch
(
appType
)
{
case
1
:
//赞羊
appObj
=
{
...
...
@@ -252,6 +252,13 @@ export default {
MallBaseId
:
14
,
};
break
;
case
13
:
appObj
=
{
//进阶课堂
AppId
:
'wx5349e63aea0c8529'
,
TenantId
:
27
,
MallBaseId
:
17
,
};
break
;
}
return
appObj
;
}
...
...
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