Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
8c0359f5
Commit
8c0359f5
authored
May 08, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nativehome_tst' of
http://code.mayi888.com/chengmo/mayi-mp-shop
into nativehome_tst
parents
00363e8e
703ac7b3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
+7
-10
config/index.js
+1
-1
package.json
+1
-0
src/App.vue
+4
-7
static/nativeComponents/Banner/index.js
+1
-2
No files found.
config/index.js
View file @
8c0359f5
...
@@ -52,7 +52,7 @@ module.exports = {
...
@@ -52,7 +52,7 @@ module.exports = {
fileExt
:
fileExt
fileExt
:
fileExt
},
},
dev
:
{
dev
:
{
env
:
require
(
'./dev.env'
),
env
:
process
.
env
.
NODE_ENV
==
'production'
?
require
(
'./prod.env'
):
require
(
'./dev.env'
),
port
:
8080
,
port
:
8080
,
// 在小程序开发者工具中不需要自动打开浏览器
// 在小程序开发者工具中不需要自动打开浏览器
autoOpenBrowser
:
false
,
autoOpenBrowser
:
false
,
...
...
package.json
View file @
8c0359f5
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"dev:wx"
:
"cross-env NODE_ENV=development node build/dev-server.js wx"
,
"dev:wx"
:
"cross-env NODE_ENV=development node build/dev-server.js wx"
,
"pro"
:
"cross-env NODE_ENV=production node build/dev-server.js wx"
,
"start:wx"
:
"npm run dev:wx"
,
"start:wx"
:
"npm run dev:wx"
,
"build:wx"
:
"cross-env NODE_ENV=production node build/build.js wx"
,
"build:wx"
:
"cross-env NODE_ENV=production node build/build.js wx"
,
"test:wx"
:
"cross-env NODE_ENV=development node build/build.js wx"
,
"test:wx"
:
"cross-env NODE_ENV=development node build/build.js wx"
,
...
...
src/App.vue
View file @
8c0359f5
...
@@ -10,14 +10,11 @@ export default {
...
@@ -10,14 +10,11 @@ export default {
// NODE_ENV
// NODE_ENV
let
extConfig
=
wx
.
getExtConfigSync
?
wx
.
getExtConfigSync
()
:
{};
let
extConfig
=
wx
.
getExtConfigSync
?
wx
.
getExtConfigSync
()
:
{};
console
.
log
(
extConfig
,
"-----------extConfig"
);
console
.
log
(
extConfig
,
"-----------extConfig"
);
if
(
if
(
JSON
.
stringify
(
extConfig
)
==
"{}"
)
{
process
.
env
.
NODE_ENV
==
"production"
||
extConfig
=
process
.
env
.
NODE_ENV
==
"development"
?
{
mixid
:
"antgood"
,
shopid
:
67
}:{
mixid
:
"xyyx"
,
shopid
:
133
};
JSON
.
stringify
(
extConfig
)
==
"{}"
)
{
extConfig
=
{
mixid
:
"antgood"
,
shopid
:
67
};
// extConfig = { "mixid":"xyyx",
// "shopid":133 };
}
}
console
.
log
(
"1444444444"
,
extConfig
);
console
.
log
(
"1444444444"
,
extConfig
);
this
.
$store
.
commit
(
"setExtConfig"
,
extConfig
.
mixid
);
this
.
$store
.
commit
(
"setExtConfig"
,
extConfig
.
mixid
);
this
.
$store
.
commit
(
'setExtConfigInfo'
,
extConfig
)
this
.
$store
.
commit
(
'setExtConfigInfo'
,
extConfig
)
...
...
static/nativeComponents/Banner/index.js
View file @
8c0359f5
...
@@ -18,7 +18,7 @@ Component({
...
@@ -18,7 +18,7 @@ Component({
message
:
"Hello World"
,
message
:
"Hello World"
,
indicatorDots
:
false
,
indicatorDots
:
false
,
vertical
:
false
,
vertical
:
false
,
autoplay
:
fals
e
,
autoplay
:
tru
e
,
interval
:
2000
,
interval
:
2000
,
duration
:
500
,
duration
:
500
,
activeIndex
:
0
,
activeIndex
:
0
,
...
@@ -30,7 +30,6 @@ Component({
...
@@ -30,7 +30,6 @@ Component({
console
.
log
(
"hello world! I am learning 微信小程序"
);
console
.
log
(
"hello world! I am learning 微信小程序"
);
},
},
bannerChange
(
val
)
{
bannerChange
(
val
)
{
console
.
log
(
val
,
"--------30"
);
this
.
setData
({
activeIndex
:
val
.
detail
.
current
});
this
.
setData
({
activeIndex
:
val
.
detail
.
current
});
},
},
onClick
(
data
)
{
onClick
(
data
)
{
...
...
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