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
b559d7b3
Commit
b559d7b3
authored
Apr 29, 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
e78a7208
9af24415
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
src/App.vue
+1
-1
src/main.js
+10
-6
static/nativeComponents/custom-tab-bar/index.wxml
+1
-1
static/nativeComponents/custom-tab-bar/index.wxss
+3
-4
No files found.
src/App.vue
View file @
b559d7b3
...
...
@@ -14,7 +14,7 @@ export default {
process
.
env
.
NODE_ENV
==
"production"
||
JSON
.
stringify
(
extConfig
)
==
"{}"
)
{
extConfig
=
{
mixid
:
"antgood"
,
shopid
:
67
};
//
extConfig = { mixid: "antgood", shopid: 67 };
// extConfig = { "mixid":"xyyx",
// "shopid":133 };
}
...
...
src/main.js
View file @
b559d7b3
...
...
@@ -12,13 +12,15 @@ import classificationApi from "./api/classification";
import
spokesmanApi
from
'./api/spokesman'
import
{
DFSImg
,
concatUrl
}
from
"@/utils/index"
;
import
fenxiaoModel
from
"@/utils/fenxiaoModel"
;
import
{
$themeAddToCard
,
$themeArticleLike
,
getCoupon
,
themeMemberCardClick
}
from
"@/utils/mayi"
;
// import {
// $themeAddToCard,
// $themeArticleLike,
// getCoupon,
// themeMemberCardClick
// } from "@/utils/mayi";
import
{
$themeToLink
,
$themeAddToCard
,
$themeArticleLike
}
from
"@/utils/mayi"
;
import
"@/utils/themeModule"
;
// import { themeToLinkInit } from "@/utils/themeModule";
import
shop
from
"./api/shop"
;
import
spokesman
from
"@/api/spokesman"
;
...
...
@@ -83,6 +85,8 @@ mpApp.indexBgCallBack = function(){ }
// 全局数据
mpApp
.
processEnv
=
process
.
env
;
// 全局跳转 data为link对象
mpApp
.
$themeToLink
=
$themeToLink
console
.
log
(
'3555555'
,
wx
)
// 全局加入购物车
mpApp
.
$themeAddToCard
=
$themeAddToCard
...
...
static/nativeComponents/custom-tab-bar/index.wxml
View file @
b559d7b3
...
...
@@ -29,7 +29,7 @@
</view>
</view>
<!-- 名称 -->
<view class="text" style="color: {{selected === index ? componentData.selectTextColor : componentData.defaultTextColor}};font-size:{{selected === index ?
componentData.selectionTextNum*2 : componentData.defaultTextNum
*2}}rpx">
<view class="text" style="color: {{selected === index ? componentData.selectTextColor : componentData.defaultTextColor}};font-size:{{selected === index ?
(componentData.selectText==1?10:componentData.selectionTextNum)*2 : (componentData.defaultText==1?10:componentData.defaultTextNum)
*2}}rpx">
{{item.title}}</view>
<!-- 购物车商品数量 -->
<view class="isCart" wx:if="{{item.link&&item.link.link&&item.link.link=='/shopCart/shoppingCart'&&cartNum>0}}">
...
...
static/nativeComponents/custom-tab-bar/index.wxss
View file @
b559d7b3
...
...
@@ -1237,10 +1237,9 @@
/* font-size: 10px; */
}
/* .img-view{
display: flex;
align-items: center;
} */
.img-view{
margin:auto;
}
.img-view image{
/* object-fit: contain; */
width: 100%;
...
...
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