Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
50105f3d
Commit
50105f3d
authored
Sep 18, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_7.1.0' of
ssh://gitlab.bigaka.net:2287/gaoshq/7-Eleven
into dev_7.1.0
parents
6c416292
fde2e5b2
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
7 deletions
+19
-7
buyImageSwiper.wxml
src/component/buyImageSwiper/buyImageSwiper.wxml
+3
-1
categoryPro.wxml
src/subPackage/page/pages/categoryPro/categoryPro.wxml
+3
-1
grassCommunity.js
src/subPackage/page/pages/grassCommunity/grassCommunity.js
+2
-0
myReleaseDetail.json
...ubPackage/page/pages/myReleaseDetail/myReleaseDetail.json
+3
-1
myReleaseDetail.wxml
...ubPackage/page/pages/myReleaseDetail/myReleaseDetail.wxml
+3
-2
Http.js
src/utils/Http.js
+5
-2
No files found.
src/component/buyImageSwiper/buyImageSwiper.wxml
View file @
50105f3d
<!--component/buyImageSwiper/buyImageSwiper.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<view class="image-wrap">
<swiper
indicator-dots="{{indicatorDots}}"
...
...
@@ -11,7 +12,8 @@
>
<block wx:for="{{imageData}}" wx:key="{{item}}">
<swiper-item class="swiper-item">
<image src="{{item.url}}" data-appid="{{item.id}}" data-path="{{item.link.url}}" data-link="{{item.link}}" data-item="{{item}}" bindtap='preview' class="slide-image" />
<image src="{{item.url}}" wx:if="{{!item.videoUrl}}" data-appid="{{item.id}}" data-path="{{item.link.url}}" data-link="{{item.link}}" data-item="{{item}}" bindtap='preview' class="slide-image" />
<video class="slide-image" src="{{utils.formateUrl(item.videoUrl,baseImgUrl)}}" wx:if="{{item.videoUrl}}" controls="true" autoplay="true"></video>
</swiper-item>
</block>
...
...
src/subPackage/page/pages/categoryPro/categoryPro.wxml
View file @
50105f3d
...
...
@@ -3,7 +3,9 @@
<view class="pro-nav-wrap">
<view class="nav-list">
<block wx:for="{{navTab}}" wx:key="{{index}}">
<view class="nav-item {{currentTab == item.type ? 'nav-active' : ''}}" bindtap="switchTab" data-type="{{item.type}}">{{item.name}}</view>
<view class="nav-item {{currentTab == item.type ? 'nav-active' : ''}}" bindtap="switchTab" data-type="{{item.type}}">{{item.name}}
<!-- <image mode="widthFix" src="{{}}"></image> -->
</view>
</block>
</view>
<view class="pro-style" bindtap="switchProStyle">
...
...
src/subPackage/page/pages/grassCommunity/grassCommunity.js
View file @
50105f3d
...
...
@@ -87,6 +87,7 @@ wxService.page({
// 获取关联商品
getInitPro
(
productIds
){
if
(
productIds
&&
productIds
.
length
>
0
){
wxService
.
post
(
`/sale/product/buyer/listPage?pageNo=
${
this
.
data
.
pageNo
}
&pageSize=
${
this
.
data
.
pageSize
}
`
,{
productIds
:
productIds
}).
then
(
res
=>
{
...
...
@@ -107,6 +108,7 @@ wxService.page({
}
}).
finally
(()
=>
{
})
}
},
// 关联商品
...
...
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.json
View file @
50105f3d
...
...
@@ -4,6 +4,7 @@
"x-dialog"
:
"/component/dialog/dialog"
,
"card-modal"
:
"/component/cardModal/cardModal"
,
"go-home"
:
"/component/goHome/goHome"
,
"x-html"
:
"/component/html2wxml/wxHtml"
"x-html"
:
"/component/html2wxml/wxHtml"
,
"buy-image-swiper"
:
"/component/buyImageSwiper/buyImageSwiper"
}
}
\ No newline at end of file
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.wxml
View file @
50105f3d
<!--subPackage/page/pages/myReleaseDetail.wxml-->
<view class="release-detail">
<view class="detail-img">
<
!-- <
view class="detail-img">
<image src="{{contentInfo.sspList[0].url}}" />
</view>
</view> -->
<buy-image-swiper bind:updatePage="updatePage" image-data="{{contentInfo.sspList}}" />
<view class="detail-content border_box">
<view class="detail-title">{{contentInfo.headline}}</view>
<view class="detail-desc"><x-html html="{{contentInfo.article}}" /></view>
...
...
src/utils/Http.js
View file @
50105f3d
...
...
@@ -109,7 +109,8 @@ class Http {
post
(
url
,
parmas
,
channel
)
{
let
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
console
.
log
(
'has base info ----'
,
baseUserInfo
)
console
.
log
(
'header tentacle info ----'
,
this
.
getTentacle
())
if
(
baseUserInfo
){
return
this
.
request
({
url
,
...
...
@@ -213,8 +214,10 @@ class Http {
tentacle
=
storage
.
obj
;
}
console
.
log
(
tentacle
)
if
(
tentacle
&&
TIME_EXPIRATION
>
time
){
wx
.
setStorageSync
(
'TIME_EXPIRATION'
,
time
)
wx
.
setStorageSync
(
'TIME_EXPIRATION'
,
time
+
30
*
60
*
1000
);
return
JSON
.
stringify
(
tentacle
);
}
else
{
wx
.
removeStorageSync
(
'TENTACLE_CONTENT'
)
...
...
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