Commit 838e517d by chenwq

申请业务-数据结构

1 parent 9e487268
......@@ -5,7 +5,7 @@ import applyApi from '~/api/applyApi/index'
// `${IMG_URL}index/car2.png`,
//本地图片路径
let IMG_URLLocal = '../../images/'
import { senceData } from '~/pages/tab/index/constant/data'
import { scenceList } from '~/pages/tab/index/constant/data'
import { behavior as computedBehavior } from '~/utils/lib/miniprogram-computed'
Page({
......@@ -14,7 +14,7 @@ Page({
*/
behaviors: [computedBehavior],
data: {
senceData,
scenceList,
// navStyle,
IMG_URL,
carObj: {
......
......@@ -41,7 +41,7 @@
<!-- wx:if="{{item.sceneStatus == 1}}" -->
<scroll-view scroll-x="{{true}}">
<view class="scene-wrap">
<view class="item-wrap {{actNum== index ? 'act':''}}" data-num="{{index}}" data-scenestatus="{{item.sceneStatus}}" bindtap="selectCar" wx:for="{{senceData}}" wx:key="name">
<view class="item-wrap {{actNum== index ? 'act':''}}" data-num="{{index}}" data-scenestatus="{{item.sceneStatus}}" bindtap="selectCar" wx:for="{{scenceList}}" wx:key="name">
<view class="item">
<!-- <image class="open-img" wx:if="{{item.sceneStatus == 1}}" src="{{IMG_URL}}/output/openedIcon.png" /> -->
<image webp class="img" src="{{item.src}}" />
......@@ -58,7 +58,7 @@
<view class="tip" hover-class="none" hover-stop-propagation="false">(可多选)</view>
</view>
<view class="scene-select">
<view class="scene-item {{filter.hasProdAct(item,selectProdArr)?'act':''}}" wx:for="{{senceData[actNum]['productList']}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" bindtap="selectProd">
<view class="scene-item {{filter.hasProdAct(item,selectProdArr)?'act':''}}" wx:for="{{scenceList[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>
{{item.productName}}
</view>
......
......@@ -303,6 +303,7 @@ const scenceList = [
sceneCode:'SC002',
sceneImgs: sceneImgs1,
productImgs: productImgs1,
src: `${IMG_URL}index/car2.png`,
banner: `${IMG_URL}index/banner/banner1.png`,
productList: [
{
......@@ -334,6 +335,7 @@ const scenceList = [
sceneCode:'SC003',
sceneImgs: sceneImgs2,
productImgs: productImgs2,
src: `${IMG_URL}index/car3.png`,
banner: `${IMG_URL}index/banner/banner2.png`,
productList: [
{
......@@ -387,6 +389,7 @@ const scenceList = [
sceneid: 3,
name: '售后众筹',
sceneCode:'SC004',
src: `${IMG_URL}index/car4.png`,
banner: `${IMG_URL}index/banner/banner3.png`,
productList: [
{
......@@ -509,6 +512,7 @@ const scenceList = [
sceneCode:'SC001',
sceneImgs:sceneImgs0,
productImgs: productImgs0,
src: `${IMG_URL}index/car1.png`,
banner: `${IMG_URL}index/banner/banner0.png`,
productList: [
{
......
......@@ -73,6 +73,13 @@
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "申请业务+产品",
"pathName": "packagesList/apply/pages/apply",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!