Commit b966e4a9 by 杨明

轮胎

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