Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-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 838e517d
authored
Feb 10, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
申请业务-数据结构
1 parent
9e487268
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
packagesList/apply/pages/apply.js
packagesList/apply/pages/apply.wxml
pages/tab/index/constant/data.js
project.private.config.json
packagesList/apply/pages/apply.js
View file @
838e517
...
@@ -5,7 +5,7 @@ import applyApi from '~/api/applyApi/index'
...
@@ -5,7 +5,7 @@ import applyApi from '~/api/applyApi/index'
// `${IMG_URL}index/car2.png`,
// `${IMG_URL}index/car2.png`,
//本地图片路径
//本地图片路径
let
IMG_URLLocal
=
'../../images/'
let
IMG_URLLocal
=
'../../images/'
import
{
s
enceData
}
from
'~/pages/tab/index/constant/data'
import
{
s
cenceList
}
from
'~/pages/tab/index/constant/data'
import
{
behavior
as
computedBehavior
}
from
'~/utils/lib/miniprogram-computed'
import
{
behavior
as
computedBehavior
}
from
'~/utils/lib/miniprogram-computed'
Page
({
Page
({
...
@@ -14,7 +14,7 @@ Page({
...
@@ -14,7 +14,7 @@ Page({
*/
*/
behaviors
:
[
computedBehavior
],
behaviors
:
[
computedBehavior
],
data
:
{
data
:
{
s
enceData
,
s
cenceList
,
// navStyle,
// navStyle,
IMG_URL
,
IMG_URL
,
carObj
:
{
carObj
:
{
...
...
packagesList/apply/pages/apply.wxml
View file @
838e517
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<!-- wx:if="{{item.sceneStatus == 1}}" -->
<!-- wx:if="{{item.sceneStatus == 1}}" -->
<scroll-view scroll-x="{{true}}">
<scroll-view scroll-x="{{true}}">
<view class="scene-wrap">
<view class="scene-wrap">
<view class="item-wrap {{actNum== index ? 'act':''}}" data-num="{{index}}" data-scenestatus="{{item.sceneStatus}}" bindtap="selectCar" wx:for="{{s
enceData
}}" wx:key="name">
<view class="item-wrap {{actNum== index ? 'act':''}}" data-num="{{index}}" data-scenestatus="{{item.sceneStatus}}" bindtap="selectCar" wx:for="{{s
cenceList
}}" wx:key="name">
<view class="item">
<view class="item">
<!-- <image class="open-img" wx:if="{{item.sceneStatus == 1}}" src="{{IMG_URL}}/output/openedIcon.png" /> -->
<!-- <image class="open-img" wx:if="{{item.sceneStatus == 1}}" src="{{IMG_URL}}/output/openedIcon.png" /> -->
<image webp class="img" src="{{item.src}}" />
<image webp class="img" src="{{item.src}}" />
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<view class="tip" hover-class="none" hover-stop-propagation="false">(可多选)</view>
<view class="tip" hover-class="none" hover-stop-propagation="false">(可多选)</view>
</view>
</view>
<view class="scene-select">
<view class="scene-select">
<view class="scene-item {{filter.hasProdAct(item,selectProdArr)?'act':''}}" wx:for="{{s
enceData
[actNum]['productList']}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" bindtap="selectProd">
<view class="scene-item {{filter.hasProdAct(item,selectProdArr)?'act':''}}" wx:for="{{s
cenceList
[actNum]['productList']}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" bindtap="selectProd">
<glsx-image webp class="act-img" src="index/act-img.png"></glsx-image>
<glsx-image webp class="act-img" src="index/act-img.png"></glsx-image>
{{item.productName}}
{{item.productName}}
</view>
</view>
...
...
pages/tab/index/constant/data.js
View file @
838e517
...
@@ -303,6 +303,7 @@ const scenceList = [
...
@@ -303,6 +303,7 @@ const scenceList = [
sceneCode
:
'SC002'
,
sceneCode
:
'SC002'
,
sceneImgs
:
sceneImgs1
,
sceneImgs
:
sceneImgs1
,
productImgs
:
productImgs1
,
productImgs
:
productImgs1
,
src
:
`
${
IMG_URL
}
index/car2.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner1.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner1.png`
,
productList
:
[
productList
:
[
{
{
...
@@ -334,6 +335,7 @@ const scenceList = [
...
@@ -334,6 +335,7 @@ const scenceList = [
sceneCode
:
'SC003'
,
sceneCode
:
'SC003'
,
sceneImgs
:
sceneImgs2
,
sceneImgs
:
sceneImgs2
,
productImgs
:
productImgs2
,
productImgs
:
productImgs2
,
src
:
`
${
IMG_URL
}
index/car3.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner2.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner2.png`
,
productList
:
[
productList
:
[
{
{
...
@@ -387,6 +389,7 @@ const scenceList = [
...
@@ -387,6 +389,7 @@ const scenceList = [
sceneid
:
3
,
sceneid
:
3
,
name
:
'售后众筹'
,
name
:
'售后众筹'
,
sceneCode
:
'SC004'
,
sceneCode
:
'SC004'
,
src
:
`
${
IMG_URL
}
index/car4.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner3.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner3.png`
,
productList
:
[
productList
:
[
{
{
...
@@ -509,6 +512,7 @@ const scenceList = [
...
@@ -509,6 +512,7 @@ const scenceList = [
sceneCode
:
'SC001'
,
sceneCode
:
'SC001'
,
sceneImgs
:
sceneImgs0
,
sceneImgs
:
sceneImgs0
,
productImgs
:
productImgs0
,
productImgs
:
productImgs0
,
src
:
`
${
IMG_URL
}
index/car1.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner0.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner0.png`
,
productList
:
[
productList
:
[
{
{
...
...
project.private.config.json
View file @
838e517
...
@@ -73,6 +73,13 @@
...
@@ -73,6 +73,13 @@
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
{
"name"
:
"申请业务+产品"
,
"pathName"
:
"packagesList/apply/pages/apply"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
}
]
]
}
}
...
...
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