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
bee2533c
Commit
bee2533c
authored
Mar 15, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
1b332577
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
28 deletions
+34
-28
src/App.vue
+4
-1
src/components/bottomCont.vue
+14
-7
src/pages/index/index.vue
+3
-19
static/nativeComponents/custom-tab-bar/index.js
+13
-1
No files found.
src/App.vue
View file @
bee2533c
...
@@ -16,7 +16,10 @@ export default {
...
@@ -16,7 +16,10 @@ export default {
if
(
JSON
.
stringify
(
extConfig
)
==
"{}"
)
{
if
(
JSON
.
stringify
(
extConfig
)
==
"{}"
)
{
let
shopItem
=
{
let
shopItem
=
{
development
:
{
mixid
:
"antgood"
,
"shopid"
:
67
},
development
:
{
mixid
:
"antgood"
,
"shopid"
:
67
},
production
:
{
"mixid"
:
"qiyeCT"
,
"shopid"
:
1045
},
// production: { "mixid":"qiyeCT", "shopid": 1045 }, // 道可
// production: { "mixid":"5I5Dyk", "shopid": 1306 }, // 星期八
production
:
{
"mixid"
:
"RON"
,
"shopid"
:
1503
},
// 荣恩
// production: { "mixid":"ant", "shopid": 6 }, // 小工蚁
xhyx_uat
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
xhyx_uat
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
xhyx_prod
:
{
"mixid"
:
"antgood"
,
"shopid"
:
67
},
xhyx_prod
:
{
"mixid"
:
"antgood"
,
"shopid"
:
67
},
}
}
...
...
src/components/bottomCont.vue
View file @
bee2533c
<
template
>
<
template
>
<div
class=
"bottomCont"
>
<div
class=
"bottomCont"
>
<template
v-if=
"shopInfo.showPowerByAntFlag"
>
<div
class=
"bc1 flex"
>
<div
class=
"bc1 flex"
>
<i></i>
<i></i>
<p
@
click=
"showVConsoles"
>
底线在此,不能更低了
</p>
<p
@
click=
"showVConsoles"
>
底线在此,不能更低了
</p>
...
@@ -18,11 +19,11 @@
...
@@ -18,11 +19,11 @@
@
click=
"showCookie"
@
click=
"showCookie"
>
{{
this
.
$store
.
state
.
sceneModule
.
songCopyright
.
some
(
item
=>
item
==
shopInfo
.
shopCode
)?
'送颂科技提供技术支持'
:
'小工蚁(上股交N板企业300258)提供平台服务'
}}
</p>
-->
>
{{
this
.
$store
.
state
.
sceneModule
.
songCopyright
.
some
(
item
=>
item
==
shopInfo
.
shopCode
)?
'送颂科技提供技术支持'
:
'小工蚁(上股交N板企业300258)提供平台服务'
}}
</p>
-->
</div>
</div>
<div
class=
"height7"
></div
>
</
template
>
<div
class=
"height7"
></div>
<div
class=
"hide-wrap"
v-if=
"showHideWrap"
@
click=
"showActionSheet"
>
<div
class=
"hide-wrap"
v-if=
"showHideWrap"
@
click=
"showActionSheet"
>
<i
class=
"ant-fenlei-line"
style=
"font-size:22px"
></i>
<i
class=
"ant-fenlei-line"
style=
"font-size:22px"
></i>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -34,7 +35,8 @@ export default {
...
@@ -34,7 +35,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
shopInfo
:
{
shopInfo
:
{
logoUrl
:
''
logoUrl
:
''
,
showPowerByAntFlag
:
true
,
},
},
showVConsole
:
0
,
showVConsole
:
0
,
showHideWrap
:
false
,
showHideWrap
:
false
,
...
@@ -50,11 +52,14 @@ export default {
...
@@ -50,11 +52,14 @@ export default {
globalDataShopInfo
:{
globalDataShopInfo
:{
handler
(
newVal
,
oldVal
){
handler
(
newVal
,
oldVal
){
if
(
newVal
){
if
(
newVal
){
console
.
log
(
newVal
,
oldVal
,
'------------------globalDataShopInfo'
)
console
.
log
(
newVal
,
'------------------globalDataShopInfo'
)
this
.
shopInfo
=
this
.
mpApp
.
globalData
.
shopInfo
this
.
shopInfo
=
this
.
mpApp
.
globalData
.
shopInfo
if
(
this
.
shopInfo
&&
this
.
shopInfo
.
logoUrl
)
{
if
(
this
.
shopInfo
&&
this
.
shopInfo
.
logoUrl
)
{
this
.
shopInfo
.
logoUrl
=
DFSImg
(
this
.
shopInfo
.
logoUrl
,
400
,
400
)
this
.
shopInfo
.
logoUrl
=
DFSImg
(
this
.
shopInfo
.
logoUrl
,
400
,
400
)
}
}
if
(
this
.
shopInfo
)
{
this
.
shopInfo
.
showPowerByAntFlag
=
!
(
this
.
shopInfo
.
hidePowerByAntFlag
==
1
)
}
console
.
log
(
this
.
shopInfo
,
'this.shopInfo'
)
console
.
log
(
this
.
shopInfo
,
'this.shopInfo'
)
}
}
},
},
...
@@ -69,6 +74,7 @@ export default {
...
@@ -69,6 +74,7 @@ export default {
if
(
wx
.
getStorageSync
(
'workBox'
)){
if
(
wx
.
getStorageSync
(
'workBox'
)){
this
.
showHideWrap
=
true
this
.
showHideWrap
=
true
}
}
this
.
mpApp
.
showActionSheet
=
this
.
showActionSheet
;
},
},
onLoad
()
{
onLoad
()
{
console
.
log
(
'bottomCont-------onLoad'
);
console
.
log
(
'bottomCont-------onLoad'
);
...
@@ -101,6 +107,7 @@ export default {
...
@@ -101,6 +107,7 @@ export default {
},
},
showActionSheet
(){
showActionSheet
(){
this
.
showHideWrap
=
true
let
vm
=
this
let
vm
=
this
let
accountInfo
=
wx
.
getAccountInfoSync
();
let
accountInfo
=
wx
.
getAccountInfoSync
();
let
version
=
accountInfo
.
miniProgram
.
version
;
// 1.0.0 小程序版本号
let
version
=
accountInfo
.
miniProgram
.
version
;
// 1.0.0 小程序版本号
...
...
src/pages/index/index.vue
View file @
bee2533c
...
@@ -143,7 +143,6 @@ export default {
...
@@ -143,7 +143,6 @@ export default {
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
// this.getLocationHandle();
console
.
log
(
options
,
'---options'
)
console
.
log
(
options
,
'---options'
)
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
...
@@ -453,11 +452,12 @@ export default {
...
@@ -453,11 +452,12 @@ export default {
// var query = options.query.dentistId; // 参数二维码传递过来的场景参数
// var query = options.query.dentistId; // 参数二维码传递过来的场景参数
}
}
//
this.newPageUrl = this.pageUrl;
this
.
newPageUrl
=
this
.
pageUrl
;
this
.
init
();
this
.
init
();
},
},
onShow
(){
onShow
(){
console
.
log
(
'index页面------onShow'
)
this
.
withoutScene
=
true
;
console
.
log
(
this
.
withoutScene
,
this
.
newPageUrl
,
'index页面------onShow'
)
log
.
info
(
'index页面------onShow'
)
log
.
info
(
'index页面------onShow'
)
},
},
methods
:
{
methods
:
{
...
@@ -489,22 +489,6 @@ export default {
...
@@ -489,22 +489,6 @@ export default {
// this.params += "&logOut=true";
// this.params += "&logOut=true";
}
}
},
},
getLocationHandle
()
{
let
_this
=
this
;
wx
.
getLocation
({
type
:
"wgs84"
,
success
:
res
=>
{
// latitude longitude speed accuracy
this
.
locationObj
=
res
;
log
.
info
(
"~~~~~~~~~1~~~~~~~"
,
res
);
console
.
log
(
"~~~~~~~~~1~~~~~~~"
,
res
);
},
fail
:
res
=>
{
log
.
info
(
"++++++++++2++++++"
,
res
);
console
.
log
(
"++++++++++2++++++"
,
res
);
}
});
},
async
getSpokesman
()
{
async
getSpokesman
()
{
await
spokesman
.
getSpokesmanidByShare
().
then
(
res
=>
{
await
spokesman
.
getSpokesmanidByShare
().
then
(
res
=>
{
log
.
info
(
'onShareAppMessage-getSpokesmanidByShare'
,
res
)
log
.
info
(
'onShareAppMessage-getSpokesmanidByShare'
,
res
)
...
...
static/nativeComponents/custom-tab-bar/index.js
View file @
bee2533c
...
@@ -17,7 +17,8 @@ Component({
...
@@ -17,7 +17,8 @@ Component({
show
:
true
,
show
:
true
,
mainColor
:
""
,
mainColor
:
""
,
showFlag
:
"up"
,
showFlag
:
"up"
,
cartNum
:
0
cartNum
:
0
,
showVConsole
:
0
,
},
},
attached
()
{
attached
()
{
this
.
init
()
this
.
init
()
...
@@ -95,6 +96,17 @@ Component({
...
@@ -95,6 +96,17 @@ Component({
},
},
switchTab
(
e
)
{
switchTab
(
e
)
{
const
{
index
}
=
e
.
currentTarget
.
dataset
;
const
{
index
}
=
e
.
currentTarget
.
dataset
;
this
.
setData
({
showVConsole
:
this
.
data
.
showVConsole
++
,
})
this
.
data
.
showVConsole
++
;
if
(
this
.
data
.
showVConsole
>=
10
)
{
this
.
setData
({
showVConsole
:
0
,
})
wx
.
setStorageSync
(
'workBox'
,
'1'
)
app
.
showActionSheet
();
}
if
(
index
==
this
.
data
.
selected
)
return
if
(
index
==
this
.
data
.
selected
)
return
app
.
$themeToLink
(
this
.
data
.
list
[
index
][
"link"
],
1
);
app
.
$themeToLink
(
this
.
data
.
list
[
index
][
"link"
],
1
);
}
}
...
...
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