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
ef0bfb09
Commit
ef0bfb09
authored
Feb 03, 2021
by
程智春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主题色
parent
451c0cc8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
src/utils/request.js
+6
-2
static/nativeComponents/AreaNavigation/index.wxss
+1
-2
static/nativeComponents/CubeNav/index.wxml
+3
-3
No files found.
src/utils/request.js
View file @
ef0bfb09
...
...
@@ -15,7 +15,8 @@ export async function requestGET(url, options) {
"Shop-Mixid"
:
store
.
state
.
mixid
,
"Offline-Shop-Code"
:
store
.
state
.
offlineShopCode
,
"Authorization"
:
wx
.
getStorageSync
(
'sessionid'
)
||
""
,
"Location-Id"
:
wx
.
getStorageSync
(
'location'
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
'location'
)).
systemRegionId
:
''
"Region-id"
:
wx
.
getStorageSync
(
'location'
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
'location'
)).
systemRegionId
:
''
,
"Area-Id"
:
wx
.
getStorageSync
(
'location'
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
'location'
)).
id
:
''
,
// "dubbo-tag": "ljx"
},
success
:
function
(
res
)
{
...
...
@@ -39,7 +40,8 @@ export async function requestPOST(url, options) {
"Authorization"
:
wx
.
getStorageSync
(
'sessionid'
)
||
""
,
"Offline-Shop-Code"
:
store
.
state
.
offlineShopCode
,
"openId"
:
wx
.
getStorageSync
(
"openid"
)
||
''
,
"Location-Id"
:
wx
.
getStorageSync
(
'location'
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
'location'
)).
systemRegionId
:
''
"Region-id"
:
wx
.
getStorageSync
(
'location'
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
'location'
)).
systemRegionId
:
''
,
"Area-Id"
:
wx
.
getStorageSync
(
'location'
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
'location'
)).
id
:
''
,
// "dubbo-tag": "ljx"
},
success
:
function
(
res
)
{
...
...
@@ -63,6 +65,8 @@ export function requestPOST1(url, options) {
"Shop-Mixid"
:
store
.
state
.
mixid
,
Authorization
:
wx
.
getStorageSync
(
'sessionid'
)
||
""
,
"Offline-Shop-Code"
:
store
.
state
.
offlineShopCode
,
"Region-id"
:
wx
.
getStorageSync
(
'location'
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
'location'
)).
systemRegionId
:
''
,
"Area-Id"
:
wx
.
getStorageSync
(
'location'
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
'location'
)).
id
:
''
,
// "dubbo-tag": "ljx"
},
success
:
function
(
res
)
{
...
...
static/nativeComponents/AreaNavigation/index.wxss
View file @
ef0bfb09
...
...
@@ -58,8 +58,7 @@
width: 100%;
box-sizing: border-box;
color: white;
/* background-color: var(--main-color); */
background-color: red;
background-color: var(--main-color);
text-align: center;
font-size: 28rpx;
padding: 0 20rpx;
...
...
static/nativeComponents/CubeNav/index.wxml
View file @
ef0bfb09
...
...
@@ -27,15 +27,15 @@
</view>
<view class="nav-wrap" wx:if="{{navShow && datas.componentData.layoutType == 1}}">
<view class="nav">
<view class="inner-nav" style="left :{{navLeft*2}}rpx
;background-color:#f00
"></view>
<view class="inner-nav" style="left :{{navLeft*2}}rpx"></view>
</view>
</view>
</view>
<view class="cube3 clearfix" wx:if="{{datas.componentData.layoutType == 2}}" style="background-color:{{datas.componentData.backgroundColor || ''}};border-radius:{{datas.componentData.moduleRadius}}px;">
<swiper indicator-dots="{{true}}" style="height:{{cube3H}}px">
<swiper-item wx:for="{{swiperList}}" style="width:{{swiperItemW}}px">
<swiper indicator-dots="{{true}}"
indicator-active-color="var(--main-color)"
style="height:{{cube3H}}px">
<swiper-item wx:for="{{swiperList}}"
style="width:{{swiperItemW}}px">
<view class="cube-item" style="padding-top:{{datas.componentData.lineHeight}}px;padding-bottom:{{datas.componentData.lineHeight}}px;width:{{getColumnWidth}};position:relative" wx:for-item="item1" wx:for="{{item}}" data-item="{{item1}}" bindtap="onclickHandle">
<view style="padding-left:{{getImgSize}}%;padding-right:{{getImgSize}}%">
<view class="item-img {{item1.imageUrl == '' ? 'item-bg' : ''}}">
...
...
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