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 {
if
(
JSON
.
stringify
(
extConfig
)
==
"{}"
)
{
let
shopItem
=
{
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_prod
:
{
"mixid"
:
"antgood"
,
"shopid"
:
67
},
}
...
...
src/components/bottomCont.vue
View file @
bee2533c
<
template
>
<div
class=
"bottomCont"
>
<template
v-if=
"shopInfo.showPowerByAntFlag"
>
<div
class=
"bc1 flex"
>
<i></i>
<p
@
click=
"showVConsoles"
>
底线在此,不能更低了
</p>
...
...
@@ -18,11 +19,11 @@
@
click=
"showCookie"
>
{{
this
.
$store
.
state
.
sceneModule
.
songCopyright
.
some
(
item
=>
item
==
shopInfo
.
shopCode
)?
'送颂科技提供技术支持'
:
'小工蚁(上股交N板企业300258)提供平台服务'
}}
</p>
-->
</div>
<div
class=
"height7"
></div
>
<div
class=
"hide-wrap"
v-if=
"showHideWrap"
@
click=
"showActionSheet"
>
<i
class=
"ant-fenlei-line"
style=
"font-size:22px"
></i>
</div>
</
template
>
<div
class=
"height7"
></div>
<div
class=
"hide-wrap"
v-if=
"showHideWrap"
@
click=
"showActionSheet"
>
<i
class=
"ant-fenlei-line"
style=
"font-size:22px"
></i>
</div>
</div>
</template>
...
...
@@ -34,7 +35,8 @@ export default {
data
()
{
return
{
shopInfo
:
{
logoUrl
:
''
logoUrl
:
''
,
showPowerByAntFlag
:
true
,
},
showVConsole
:
0
,
showHideWrap
:
false
,
...
...
@@ -50,11 +52,14 @@ export default {
globalDataShopInfo
:{
handler
(
newVal
,
oldVal
){
if
(
newVal
){
console
.
log
(
newVal
,
oldVal
,
'------------------globalDataShopInfo'
)
console
.
log
(
newVal
,
'------------------globalDataShopInfo'
)
this
.
shopInfo
=
this
.
mpApp
.
globalData
.
shopInfo
if
(
this
.
shopInfo
&&
this
.
shopInfo
.
logoUrl
)
{
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'
)
}
},
...
...
@@ -69,6 +74,7 @@ export default {
if
(
wx
.
getStorageSync
(
'workBox'
)){
this
.
showHideWrap
=
true
}
this
.
mpApp
.
showActionSheet
=
this
.
showActionSheet
;
},
onLoad
()
{
console
.
log
(
'bottomCont-------onLoad'
);
...
...
@@ -101,6 +107,7 @@ export default {
},
showActionSheet
(){
this
.
showHideWrap
=
true
let
vm
=
this
let
accountInfo
=
wx
.
getAccountInfoSync
();
let
version
=
accountInfo
.
miniProgram
.
version
;
// 1.0.0 小程序版本号
...
...
src/pages/index/index.vue
View file @
bee2533c
...
...
@@ -143,7 +143,6 @@ export default {
}
},
onLoad
(
options
)
{
// this.getLocationHandle();
console
.
log
(
options
,
'---options'
)
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
...
...
@@ -453,11 +452,12 @@ export default {
// var query = options.query.dentistId; // 参数二维码传递过来的场景参数
}
//
this.newPageUrl = this.pageUrl;
this
.
newPageUrl
=
this
.
pageUrl
;
this
.
init
();
},
onShow
(){
console
.
log
(
'index页面------onShow'
)
this
.
withoutScene
=
true
;
console
.
log
(
this
.
withoutScene
,
this
.
newPageUrl
,
'index页面------onShow'
)
log
.
info
(
'index页面------onShow'
)
},
methods
:
{
...
...
@@ -489,22 +489,6 @@ export default {
// 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
()
{
await
spokesman
.
getSpokesmanidByShare
().
then
(
res
=>
{
log
.
info
(
'onShareAppMessage-getSpokesmanidByShare'
,
res
)
...
...
static/nativeComponents/custom-tab-bar/index.js
View file @
bee2533c
...
...
@@ -17,7 +17,8 @@ Component({
show
:
true
,
mainColor
:
""
,
showFlag
:
"up"
,
cartNum
:
0
cartNum
:
0
,
showVConsole
:
0
,
},
attached
()
{
this
.
init
()
...
...
@@ -95,6 +96,17 @@ Component({
},
switchTab
(
e
)
{
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
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