Commit 838e517d by chenwq

申请业务-数据结构

1 parent 9e487268
...@@ -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 { senceData } from '~/pages/tab/index/constant/data' import { scenceList } 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: {
senceData, scenceList,
// navStyle, // navStyle,
IMG_URL, IMG_URL,
carObj: { carObj: {
......
...@@ -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="{{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"> <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="{{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> <glsx-image webp class="act-img" src="index/act-img.png"></glsx-image>
{{item.productName}} {{item.productName}}
</view> </view>
......
...@@ -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: [
{ {
......
...@@ -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
} }
] ]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!