Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0b4747c0
authored
Oct 27, 2022
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去掉场景无缝衔接
1 parent
2a628e96
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
15 deletions
pages/checkProduct/checkProduct.wxml
pages/tab/discovery/components/product/product.wxml
pages/tab/discovery/discovery.js
pages/tab/discovery/discovery.wxml
pages/checkProduct/checkProduct.wxml
View file @
0b4747c
...
@@ -40,6 +40,6 @@
...
@@ -40,6 +40,6 @@
</view>
</view>
</view>
</view>
<block wx:if="{{showAuth}}">
<block wx:if="{{showAuth}}">
<authorize scopeType="writePhotosAlbum" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<authorize
title="下载前需要获取您的‘添加到相册’权限,是否打开授权设置?"
scopeType="writePhotosAlbum" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
</block>
</block>
pages/tab/discovery/components/product/product.wxml
View file @
0b4747c
...
@@ -59,5 +59,5 @@
...
@@ -59,5 +59,5 @@
</scroll-view>
</scroll-view>
</view>
</view>
<block wx:if="{{showAuth}}">
<block wx:if="{{showAuth}}">
<authorize scopeType="writePhotosAlbum" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<authorize
title="下载前需要获取您的‘添加到相册’权限,是否打开授权设置?"
scopeType="writePhotosAlbum" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
</block>
</block>
pages/tab/discovery/discovery.js
View file @
0b4747c
...
@@ -10,7 +10,7 @@ Page({
...
@@ -10,7 +10,7 @@ Page({
data
:
{
data
:
{
senceData
,
senceData
,
headerHeight
:
0
,
headerHeight
:
0
,
actNum
:
3
,
actNum
:
0
,
navStyle
,
navStyle
,
// 预估弹框
// 预估弹框
visible
:
false
,
visible
:
false
,
...
@@ -48,7 +48,7 @@ Page({
...
@@ -48,7 +48,7 @@ Page({
// let res = [
// let res = [
// {
// {
// sceneCode: 'SC001',
// sceneCode: 'SC001',
// status: 1
// status: 0
// },
// },
// {
// {
// sceneCode: 'SC002',
// sceneCode: 'SC002',
...
@@ -67,23 +67,18 @@ Page({
...
@@ -67,23 +67,18 @@ Page({
if
(
item
.
status
==
1
)
{
if
(
item
.
status
==
1
)
{
let
sceneTarget
=
senceData
.
find
(
sitem
=>
sitem
.
sceneCode
==
item
.
sceneCode
)
let
sceneTarget
=
senceData
.
find
(
sitem
=>
sitem
.
sceneCode
==
item
.
sceneCode
)
sceneTarget
.
show
=
1
sceneTarget
.
show
=
1
}
})
senceData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
show
==
1
)
{
sceneCodeList
.
push
(
item
.
sceneCode
)
sceneCodeList
.
push
(
item
.
sceneCode
)
}
}
})
})
let
idx
=
sceneCodeList
.
findIndex
(
item
=>
item
==
'SC004'
)
// senceData.forEach((item,index) => {
// if(item.show==1) {
// sceneCodeList.push(item.sceneCode)
// }
// })
let
actNum
=
0
,
currentId
=
0
;
let
actNum
=
0
,
currentId
=
0
;
if
(
sceneCodeList
?.
length
){
if
(
sceneCodeList
?.
length
){
if
(
idx
>-
1
){
actNum
=
3
currentId
=
idx
}
else
{
actNum
=
senceData
.
findIndex
(
item
=>
item
.
sceneCode
==
sceneCodeList
[
0
])
actNum
=
senceData
.
findIndex
(
item
=>
item
.
sceneCode
==
sceneCodeList
[
0
])
}
}
}
this
.
setData
({
this
.
setData
({
sceneCodeList
,
sceneCodeList
,
senceData
,
senceData
,
...
...
pages/tab/discovery/discovery.wxml
View file @
0b4747c
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<block wx:if="{{sceneCodeList.length>0 && showPage}}">
<block wx:if="{{sceneCodeList.length>0 && showPage}}">
<view style="padding-top: {{headerHeight}}px;">
<view style="padding-top: {{headerHeight}}px;">
<view class="header">
<view class="header">
<swiper bindchange="changeSwiper" current="{{currentId}}" class="scene-wrap"
circular="{{true}}"
previousMargin="40rpx" nextMargin="40rpx">
<swiper bindchange="changeSwiper" current="{{currentId}}" class="scene-wrap" previousMargin="40rpx" nextMargin="40rpx">
<block wx:for="{{senceData}}" wx:key="index">
<block wx:for="{{senceData}}" wx:key="index">
<swiper-item item-id="{{index}}" wx:if="{{item.show}}">
<swiper-item item-id="{{index}}" wx:if="{{item.show}}">
<image class="scene-img" src="{{IMGURL}}{{item.img}}"></image>
<image class="scene-img" src="{{IMGURL}}{{item.img}}"></image>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment