Commit b966e4a9 by 杨明

轮胎

1 parent fb6c6d02
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<wxs src="./GLForm.wxs" module="filterUtils" /> <wxs src="./GLForm.wxs" module="filterUtils" />
<view wx:for="{{formDataList}}" wx:key="index" class="custom-class gl-form"> <view wx:for="{{formDataList}}" wx:key="index" class="custom-class gl-form">
<gl-cell <gl-cell
wx:if="{{filterUtils.isShowFn(formData, item)}}" wx:if="{{filterUtils.isShowFn(formData, item) && item.type != 'otherSlot'}}"
border="{{!item.noBorder}}" border="{{!item.noBorder}}"
class="{{item.name}}" class="{{item.name}}"
haveArrow="{{item.haveArrow || false}}" haveArrow="{{item.haveArrow || false}}"
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
requiredAfter="{{item.requiredAfter}}" requiredAfter="{{item.requiredAfter}}"
cellHeight="{{!item.noCellHeight}}" cellHeight="{{!item.noCellHeight}}"
cellStyle="{{item.cellStyle||''}}" cellStyle="{{item.cellStyle||''}}"
labelStyle="{{item.labelStyle}}"
cellBoxStyle="{{item.cellBoxStyle||''}}"> cellBoxStyle="{{item.cellBoxStyle||''}}">
<!-- slot --> <!-- slot -->
<slot wx:if="{{item.type == 'slot'}}" name="{{item.name}}" /> <slot wx:if="{{item.type == 'slot'}}" name="{{item.name}}" />
...@@ -81,5 +82,6 @@ ...@@ -81,5 +82,6 @@
<view wx:else class="placeholder-class">{{item.placeholder || '请选择'}}</view> <view wx:else class="placeholder-class">{{item.placeholder || '请选择'}}</view>
</view> </view>
</gl-cell> </gl-cell>
<slot wx:if="{{item.type == 'otherSlot'}}" name="{{item.name}}" />
</view> </view>
// packageEquity/pages/carEquity/components/SecondStep/SecondStep.js // packageEquity/pages/carEquity/components/SecondStep/SecondStep.js
import constantData from '../constant/secondStepData' import constantData from '../constant/secondStepData'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import fn from '../constant/ruleFn' import fn from '../constant/ruleFn'
const defaultLabelWidth = '140rpx' const defaultLabelWidth = '140rpx'
import api from '~/api/api' import api from '~/api/api'
...@@ -32,6 +33,7 @@ Component({ ...@@ -32,6 +33,7 @@ Component({
const productFormList = secondObj.productFormList.filter(item => item.name != 'card') const productFormList = secondObj.productFormList.filter(item => item.name != 'card')
delete formRule.card delete formRule.card
// formRule = formRule.filter(item=> ) // formRule = formRule.filter(item=> )
console.log(productFormList)
this.setData({ this.setData({
['secondObj.productFormList']: productFormList, ['secondObj.productFormList']: productFormList,
formRule formRule
...@@ -45,6 +47,9 @@ Component({ ...@@ -45,6 +47,9 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
IMG_URL,
imgShow:false,
imgType:'rule',
defaultLabelWidth, defaultLabelWidth,
secondObj: constantData.secondObj, secondObj: constantData.secondObj,
formRule: constantData.formRule, formRule: constantData.formRule,
...@@ -107,6 +112,13 @@ Component({ ...@@ -107,6 +112,13 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
onClickShow(e) {
const {type} = e.target.dataset
this.setData({imgShow:true,imgType:type})
},
onClickHide() {
this.setData({imgShow:false})
},
dealFormRule() { dealFormRule() {
let formData = this.getPageData() let formData = this.getPageData()
var { formRule } = this.data var { formRule } = this.data
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"gl-form": "/packageEquity/components/GLForm/GLForm", "gl-form": "/packageEquity/components/GLForm/GLForm",
"popup-select": "/packageEquity/pages/carQuotation/components/PopupSelect/PopupSelect" "popup-select": "/packageEquity/pages/carQuotation/components/PopupSelect/PopupSelect",
"van-overlay": "@vant/weapp/overlay/index"
} }
} }
/* packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxss */ /* packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxss */
.box { .box {
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0 6rpx 16rpx 0 #cdcdd159; box-shadow: 0 6rpx 16rpx 0 #cdcdd159;
border-radius: 16rpx; border-radius: 16rpx;
margin: 20rpx; margin: 20rpx;
color: #222222; color: #222222;
overflow: hidden; overflow: hidden;
} }
.m-b-40 { .m-b-40 {
margin-bottom: 40rpx; margin-bottom: 40rpx;
} }
.up-down-box { .up-down-box {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 48rpx; height: 48rpx;
margin-left: 32rpx; margin-left: 32rpx;
} }
.up-down-arrow { .up-down-arrow {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 48rpx; width: 48rpx;
height: 32rpx; height: 32rpx;
background: #F4F5F7; background: #F4F5F7;
border-radius: 16rpx; border-radius: 16rpx;
text-align: center; text-align: center;
} }
.arrow-up { .arrow-up {
width: 10rpx; width: 10rpx;
height: 10rpx; height: 10rpx;
border: 2rpx solid #B6B6B8; border: 2rpx solid #B6B6B8;
border-width: 2rpx 2rpx 0 0; border-width: 2rpx 2rpx 0 0;
transform: rotate(-45deg); transform: rotate(-45deg);
transition: all .3s; transition: all .3s;
margin-top: 4rpx; margin-top: 4rpx;
} }
.arrow-down { .arrow-down {
transform: rotate(135deg); transform: rotate(135deg);
transition: all .3s; transition: all .3s;
margin-top: 0; margin-top: 0;
} }
.flex { .flex {
display: flex; display: flex;
} }
.title { .title {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
height: 96rpx; height: 96rpx;
line-height: 96rpx; line-height: 96rpx;
font-weight: 600; font-weight: 600;
font-size: 32rpx; font-size: 32rpx;
padding: 0 32rpx; padding: 0 32rpx;
} }
.ocrBtn { .ocrBtn {
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
height: 48rpx; height: 48rpx;
align-items: center; align-items: center;
background-color: #e5f2fd; background-color: #e5f2fd;
border-radius: 32rpx; border-radius: 32rpx;
padding: 6rpx 20rpx; padding: 6rpx 20rpx;
} }
.ocrBtn .pictureIcon { .ocrBtn .pictureIcon {
width: 28rpx; width: 28rpx;
height: 28rpx; height: 28rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
.ocrBtn .text { .ocrBtn .text {
font-size: 26rpx; font-size: 26rpx;
color: #347BFF; color: #347BFF;
} }
.picker { .picker {
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row-reverse;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
text-align: right; text-align: right;
} }
.placeholder { .placeholder {
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: 28rpx;
color: #B6B6B8; color: #B6B6B8;
} }
.gearbox .arrow { .gearbox .arrow {
width: 28rpx; width: 28rpx;
height: 26rpx; height: 26rpx;
margin-top: 26rpx; margin-top: 26rpx;
flex-shrink: 0; flex-shrink: 0;
} }
.text-hide { .text-hide {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.input { .input {
text-align: right; text-align: right;
font-size: 28rpx; font-size: 28rpx;
} }
.placeholder-class { .placeholder-class {
color: #C3C3C3; color: #C3C3C3;
} }
.tire-box { .tire-box {
padding: 0 40rpx 44rpx; padding: 0 40rpx 44rpx;
font-size: 28rpx; font-size: 28rpx;
color: #9B9B9E; color: #9B9B9E;
} }
.tire-block { .tire-block {
width: 240rpx; width: 240rpx;
height: 240rpx; height: 240rpx;
box-sizing: border-box; box-sizing: border-box;
background-color: #F4F5F7; background-color: #F4F5F7;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
} }
.tire-block:first-child { .tire-block:first-child {
margin-right: 20rpx; margin-right: 20rpx;
} }
.tire-tip { .tire-tip {
height: 40rpx; height: 40rpx;
line-height: 40rpx; line-height: 40rpx;
background-color: #ebf2fd; background-color: #ebf2fd;
border-radius: 8rpx; border-radius: 8rpx;
font-size: 24rpx; font-size: 24rpx;
color: #347BFF; color: #347BFF;
margin-top: 28rpx; margin-top: 28rpx;
padding: 4rpx 24rpx; padding: 4rpx 24rpx;
border-radius: 8rpx; border-radius: 8rpx;
} }
.icon-plus { .icon-plus {
width: 35rpx; width: 35rpx;
height: 35rpx; height: 35rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.btn { .btn {
box-sizing: border-box; box-sizing: border-box;
height: 88rpx; height: 88rpx;
line-height: 88rpx; line-height: 88rpx;
text-align: center; text-align: center;
font-size: 32rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;
background: #347BFF; background: #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
margin: 0 64rpx 20rpx; margin: 0 64rpx 20rpx;
} }
.draft-btn { .draft-btn {
background: #FFFFFF; background: #FFFFFF;
color: #347BFF; color: #347BFF;
}
.wrapper {
position: absolute;
top: 50%;
width: 100%;
height: auto;
transform: translateY(-50%);
} }
.h-40 { .h-40 {
height: 40rpx; height: 40rpx;
} }
.pro-head { .pro-head {
margin: 30rpx 0; margin: 30rpx 0;
}
.flex-b {
display: flex;
justify-content: space-between;
} }
.pro-head .pro-service { .pro-head .pro-service {
font-size: 24rpx; font-size: 24rpx;
color: #999999; color: #999999;
margin-top: 4rpx; margin-top: 4rpx;
}
.pro-view {
color: #347BFF;
}
.pro-rule {
position: relative;
}
.pro-rule-view {
font-size: 24rpx;
color: #347BFF;
position: absolute;
top: 44rpx;
left: 170rpx;
z-index: 9999;
} }
.pro-list { .pro-list {
border: 4rpx solid #F4F5F7;
border-radius: 8rpx; border: 4rpx solid #F4F5F7;
margin: 30rpx 0; border-radius: 8rpx;
margin: 30rpx 0;
} }
.label { .label {
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
font-size: 28rpx; font-size: 28rpx;
color: #222222; color: #222222;
} }
.selectItem { .selectItem {
box-sizing: border-box; box-sizing: border-box;
height: 88rpx; height: 88rpx;
line-height: 88rpx; line-height: 88rpx;
text-align: right; text-align: right;
} }
.selectItem .arrow { .selectItem .arrow {
width: 28rpx; width: 28rpx;
height: 26rpx; height: 26rpx;
margin-top: 32rpx; margin-top: 32rpx;
} }
.warranty { .warranty {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
} }
.warranty .input-suffix { .warranty .input-suffix {
/* width: calc((100% - 212rpx) / 2); */ /* width: calc((100% - 212rpx) / 2); */
margin-left: 12rpx; margin-left: 12rpx;
} }
.upload { .upload {
padding-bottom: 40rpx; padding-bottom: 40rpx;
} }
.upload .van-uploader .van-uploader__wrapper .van-uploader__preview .van-uploader__preview-delete { .upload .van-uploader .van-uploader__wrapper .van-uploader__preview .van-uploader__preview-delete {
background-color: #B2B2B2 !important; background-color: #B2B2B2 !important;
border-radius: 0 4rpx !important; border-radius: 0 4rpx !important;
top: 0rpx !important; top: 0rpx !important;
right: 0rpx !important; right: 0rpx !important;
} }
.upload .plus .van-icon-photograph:before { .upload .plus .van-icon-photograph:before {
content: ''; content: '';
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/icon-plus.png'); background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/icon-plus.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.upload .driveFront { .upload .driveFront {
margin-right: 24rpx; margin-right: 24rpx;
} }
.upload .driveFront .van-icon-photograph:before { .upload .driveFront .van-icon-photograph:before {
content: ''; content: '';
width: 152rpx; width: 152rpx;
height: 108rpx; height: 108rpx;
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/icon-front.png'); background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/icon-front.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.upload .driveBack .van-icon-photograph:before { .upload .driveBack .van-icon-photograph:before {
content: ''; content: '';
width: 152rpx; width: 152rpx;
height: 108rpx; height: 108rpx;
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/icon-back.png'); background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/icon-back.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.upload .van-uploader__upload-text { .upload .van-uploader__upload-text {
font-size: 22rpx !important; font-size: 22rpx !important;
color: #9B9B9E !important; color: #9B9B9E !important;
} }
.upload .driveFront .van-uploader .van-uploader__wrapper .van-uploader__upload, .upload .driveFront .van-uploader .van-uploader__wrapper .van-uploader__upload,
.upload .driveBack .van-uploader .van-uploader__wrapper .van-uploader__upload { .upload .driveBack .van-uploader .van-uploader__wrapper .van-uploader__upload {
width: 256rpx !important; width: 256rpx !important;
} }
.upload .driveFront .van-uploader .van-uploader__wrapper .van-uploader__preview image, .upload .driveFront .van-uploader .van-uploader__wrapper .van-uploader__preview image,
.upload .driveBack .van-uploader .van-uploader__wrapper .van-uploader__preview image { .upload .driveBack .van-uploader .van-uploader__wrapper .van-uploader__preview image {
width: 256rpx !important; width: 256rpx !important;
} }
.upload .van-uploader .van-uploader__wrapper .van-uploader__upload { .upload .van-uploader .van-uploader__wrapper .van-uploader__upload {
order: 0 !important; order: 0 !important;
} }
\ No newline at end of file \ No newline at end of file
var find = function(arr,value,name){
var idx;
for(var i=0;i<arr.length;i++) {
if(arr[i][name] == value) {
idx=i;
break
}
}
return arr[idx]
}
module.exports = {
find:find
}
\ No newline at end of file \ No newline at end of file
...@@ -23,5 +23,9 @@ module.exports = { ...@@ -23,5 +23,9 @@ module.exports = {
/** 分页查询我的种草 */ /** 分页查询我的种草 */
GETGRASSLIST(data) { GETGRASSLIST(data) {
return api.post('dj.api.smartcarlife.orderShareRecord.own.page', data) return api.post('dj.api.smartcarlife.orderShareRecord.own.page', data)
} },
/** 根据园区店商户号获取服务商列表 */
queryPartnersByYqShop(data) {
return api.post('dj.api.scenemerchantref.queryPartnersByYqShop', data)
}
} }
...@@ -60,6 +60,15 @@ Page({ ...@@ -60,6 +60,15 @@ Page({
selectedSceneDesc: '', selectedSceneDesc: '',
versionData: {} versionData: {}
}, },
getByYqShop() {
let {sceneType,merchantId} = wx.$util.getUserInfo()
api.queryPartnersByYqShop({scene:sceneType,merchantId}).then(res=>{
const merchantInfo = ([res.data] ||[]).slice(0,3)
this.setData({
merchantInfo
})
})
},
goReservationCouponPage() { goReservationCouponPage() {
wx.$router.go('tabMine.collectCoupons') wx.$router.go('tabMine.collectCoupons')
}, },
...@@ -322,6 +331,7 @@ Page({ ...@@ -322,6 +331,7 @@ Page({
selectedSceneDesc: constantData?.sceneList?.filter(val => val.sceneType == userInfo?.sceneType)[0]?.sceneDesc selectedSceneDesc: constantData?.sceneList?.filter(val => val.sceneType == userInfo?.sceneType)[0]?.sceneDesc
}) })
this.getVersionInfo() this.getVersionInfo()
this.getByYqShop()
// console.log(app.globalData.isYqdSuper) // console.log(app.globalData.isYqdSuper)
}, },
jump: e => wx.$router.jump(e), jump: e => wx.$router.jump(e),
......
...@@ -70,6 +70,9 @@ ...@@ -70,6 +70,9 @@
font-size: 24rpx; font-size: 24rpx;
margin: 4rpx; margin: 4rpx;
} }
.item.flex {
display: flex;
}
.scene_box{ .scene_box{
margin: 20rpx; margin: 20rpx;
......
...@@ -61,6 +61,12 @@ export default { ...@@ -61,6 +61,12 @@ export default {
url: 'tabOperating.index', url: 'tabOperating.index',
recordId: 11, recordId: 11,
icon: 'business_data' icon: 'business_data'
},
{
name: '生意助手',
type:"mini",
recordId: 12,
icon: 'boutique-syzs'
} }
], ],
totalTableSum: [ totalTableSum: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!