Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 0904d153
authored
Dec 26, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
74d46032
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
9 deletions
components/CooperationApply/CooperationApply.scss
components/CooperationApply/CooperationApply.wxml
components/scene/scene.js
packagesList/pages/applySuccess/applySuccess.scss
packagesList/pages/applySuccess/applySuccess.wxml
components/CooperationApply/CooperationApply.scss
View file @
0904d15
...
@@ -88,4 +88,8 @@
...
@@ -88,4 +88,8 @@
.scene-box
{
.scene-box
{
padding-bottom
:
50rpx
;
padding-bottom
:
50rpx
;
}
.cooperate-left
{
margin-right
:
16rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
components/CooperationApply/CooperationApply.wxml
View file @
0904d15
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<text class="info-lable">合作方式<text class="require">*</text>
<text class="info-lable">合作方式<text class="require">*</text>
</text>
</text>
<radio-group name="applyType" class="radio-wrap" bindchange="applyChange">
<radio-group name="applyType" class="radio-wrap" bindchange="applyChange">
<label>
<label
class="cooperate-left"
>
<radio value="1" checked />门店合作
<radio value="1" checked />门店合作
</label>
</label>
<label>
<label>
...
...
components/scene/scene.js
View file @
0904d15
...
@@ -14,7 +14,7 @@ Component({
...
@@ -14,7 +14,7 @@ Component({
},
},
selectApply
:
{
selectApply
:
{
type
:
Number
,
type
:
Number
,
value
:
1
value
:
0
}
}
},
},
...
@@ -226,9 +226,9 @@ Component({
...
@@ -226,9 +226,9 @@ Component({
selectScenePro
(
e
)
{
selectScenePro
(
e
)
{
console
.
log
(
e
.
currentTarget
.
dataset
,
this
.
properties
.
selectApply
);
console
.
log
(
e
.
currentTarget
.
dataset
,
this
.
properties
.
selectApply
);
var
index
=
e
.
currentTarget
.
dataset
.
index
;
var
index
=
e
.
currentTarget
.
dataset
.
index
;
var
item
=
this
.
properties
.
selectApply
==
1
?
this
.
data
.
productList
[
this
.
data
.
sceneName
][
index
]
:
this
.
data
.
productSubscibList
[
this
.
data
.
sceneName
][
index
];
var
item
=
this
.
properties
.
selectApply
==
0
?
this
.
data
.
productList
[
this
.
data
.
sceneName
][
index
]
:
this
.
data
.
productSubscibList
[
this
.
data
.
sceneName
][
index
];
item
.
isSelect
=
!
item
.
isSelect
;
item
.
isSelect
=
!
item
.
isSelect
;
if
(
this
.
properties
.
selectApply
==
1
)
{
if
(
this
.
properties
.
selectApply
==
0
)
{
// let newProductList = `productListt.${this.data.sceneName}[0]`
// let newProductList = `productListt.${this.data.sceneName}[0]`
// console.log(newProductList, item);
// console.log(newProductList, item);
this
.
setData
({
this
.
setData
({
...
@@ -246,7 +246,7 @@ Component({
...
@@ -246,7 +246,7 @@ Component({
resetScene
()
{
resetScene
()
{
if
(
!
this
.
data
.
sceneName
)
return
if
(
!
this
.
data
.
sceneName
)
return
console
.
log
(
this
.
properties
.
selectApply
,
this
.
data
.
sceneName
,
this
.
data
.
sceneNum
);
console
.
log
(
this
.
properties
.
selectApply
,
this
.
data
.
sceneName
,
this
.
data
.
sceneNum
);
if
(
this
.
properties
.
selectApply
==
2
)
{
if
(
this
.
properties
.
selectApply
==
1
)
{
this
.
data
.
productList
[
this
.
data
.
sceneName
].
map
((
item
)
=>
{
this
.
data
.
productList
[
this
.
data
.
sceneName
].
map
((
item
)
=>
{
if
(
item
.
isSelect
)
item
.
isSelect
=
false
if
(
item
.
isSelect
)
item
.
isSelect
=
false
})
})
...
@@ -277,7 +277,7 @@ Component({
...
@@ -277,7 +277,7 @@ Component({
let
selectFlag
=
0
;
let
selectFlag
=
0
;
let
productItems
=
[];
let
productItems
=
[];
let
businessItem
let
businessItem
if
(
this
.
properties
.
selectApply
==
1
)
{
if
(
this
.
properties
.
selectApply
==
0
)
{
this
.
data
.
productList
[
this
.
data
.
sceneName
].
forEach
((
item
)
=>
{
this
.
data
.
productList
[
this
.
data
.
sceneName
].
forEach
((
item
)
=>
{
if
(
item
.
isSelect
)
{
if
(
item
.
isSelect
)
{
selectFlag
=
selectFlag
+
1
;
selectFlag
=
selectFlag
+
1
;
...
...
packagesList/pages/applySuccess/applySuccess.scss
View file @
0904d15
...
@@ -101,6 +101,8 @@
...
@@ -101,6 +101,8 @@
font-family
:
PingFangSC-Regular
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-weight
:
400
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
linear-gradient
(
180deg
,
#65DDCE
0%
,
#406DFB
51%
,
#3666FE
100%
);
background-image
:
linear-gradient
(
180deg
,
#65DDCE
0%
,
#406DFB
51%
,
#3666FE
100%
);
-webkit-background-clip
:
text
;
color
:
transparent
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packagesList/pages/applySuccess/applySuccess.wxml
View file @
0904d15
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</view>
</view>
<view>
<view>
<view class="jump-title">生意助手</view>
<view class="jump-title">生意助手</view>
<view class="jump-text">立即前往</view>
<view class="jump-text">立即前往
>
</view>
</view>
</view>
<view>
<view>
</view>
</view>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</view>
</view>
<view>
<view>
<view class="jump-title">生意助手</view>
<view class="jump-title">生意助手</view>
<view class="jump-text">立即前往</view>
<view class="jump-text">立即前往
>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
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