diff --git a/src/pages/demand/demand.vue b/src/pages/demand/demand.vue index edad5c1..98174a7 100644 --- a/src/pages/demand/demand.vue +++ b/src/pages/demand/demand.vue @@ -3,7 +3,9 @@ headerBackgroundColor="#F6F6F6" backgroundColor="#F6F6F6" :title="pageTitle" + :customBtn="customBtn" textColor="dark" + @onClickBtn="clickBackBtn" > 发布需求 @@ -11,15 +13,48 @@ — 多位师傅报价/议价 — 选择师傅 — 师傅上门 - - - - + + + + + + + 选择分类 + (可多选) + + + + + + {{ item.name }} + + + + + + + + + + + 选择报价方式 @@ -74,26 +109,185 @@ + + 下一步 + - 基本信息(报价) - - - 基本信息(议价) + + + + + + + + 需求说明 + + + {{ explain }} + + + + + + + + + + + + + + + 选择报价方式 + (隐私信息完全保密) + + + + + + {{ + addressText + ? addressText + : "请选择上门地址" + }} + + + + + + + + {{ + datetime + ? datetime + : "选择期望上门时间" + }} + + + + + + + + + + + + 需求价格 + + 请勿填写过低价格,避免无师傅接单 + + + + 请填写您的心理价位,等待师傅接单 + + + + ¥ {{ parsePrice(price) }} + + + + + + + + ¥ {{ parsePrice(total) }} + +
立即发布
+
+ +
去支付
+
+
+
+ + + + + + + + + + + 确认 + + + @@ -169,10 +419,71 @@ export default { width: 710rpx; margin: 0 auto; } +.save-form-btn { + margin-top: 70rpx; +} +.demand-container { + padding-bottom: 120rpx; +} .form-container { width: 100%; margin-top: 0; } +.form-container.category { + .input-item { + display: block; + height: auto; + box-sizing: border-box; + padding: 30rpx; + } + .title-box { + width: 100%; + } + .input-box { + position: relative; + width: 100%; + padding: 0; + margin-top: 24rpx; + } + .more { + position: absolute; + right: 0; + bottom: 8rpx; + .iconfont { + color: #a7a7a7; + font-size: 36rpx; + } + } +} +.category-group { + width: 650rpx; + display: flex; + flex-wrap: wrap; + .category-item:nth-child(1), + .category-item:nth-child(2), + .category-item:nth-child(3) { + margin-top: 0; + } + .category-item { + padding: 10rpx 20rpx; + background-color: #f7f7f7; + border-radius: 10rpx; + line-height: 30rpx; + margin: 20rpx 20rpx 0 0; + .text { + font-size: 26rpx; + color: #7b7b7b; + } + .iconfont { + font-size: 30rpx; + color: #d6d6d6; + margin-left: 22rpx; + } + } +} +.form-container.price { + margin-top: 25rpx; +} .form-container.explain { margin-top: 25rpx; .textarea-box { @@ -180,6 +491,8 @@ export default { .textarea { height: 190rpx; padding: 0; + font-size: 26rpx; + color: #666666; } } } @@ -194,4 +507,141 @@ export default { flex-shrink: 1; } } +// 基本信息 +.step-2-main, +.step-3-main { + width: 710rpx; + margin: 0 auto; + .bottom-components { + position: fixed; + left: 0; + right: 0; + bottom: 0; + max-width: 750px; + width: 100%; + height: 100rpx; + margin: 0 auto; + background-color: #ffffff; + box-sizing: border-box; + padding: 0 40rpx; + display: flex; + align-items: center; + justify-content: space-between; + .price { + font-size: 40rpx; + font-weight: bold; + color: #ec7655; + } + .btn { + width: 234rpx; + height: 76rpx; + background: #8b9beb; + border: 2rpx solid #4b65ed; + text-align: center; + .text { + font-size: 24rpx; + color: #ffffff; + line-height: 76rpx; + } + } + } +} +.form-container.form-widget { + margin-top: 22rpx; + .input-item { + height: auto; + padding: 0; + border-bottom: 0; + line-height: unset; + } + .title-box { + width: 100%; + box-sizing: border-box; + padding: 30rpx 0 0 30rpx; + } + .input-box { + width: 100%; + padding-bottom: 0; + } + .widget-item:first-child { + border-bottom: 1rpx solid #e8e7e7; + } +} +.form-container.ext-box { + margin-top: 22rpx; + .custom-price { + padding: 30rpx; + border-bottom: 2rpx solid #e8e7e7; + .title-box { + font-size: 30rpx; + font-weight: bold; + color: #000000; + line-height: 30rpx; + } + .desc { + font-size: 24rpx; + font-weight: bold; + color: #fdb62c; + margin-left: 25rpx; + line-height: 24rpx; + } + .input-desc { + display: inline-block; + font-size: 24rpx; + font-weight: bold; + color: #999999; + line-height: 24rpx; + margin: 24rpx 0 50rpx 0; + line-height: 24rpx; + } + } + .custom-input-box { + width: 100%; + .iconfont { + font-size: 36rpx; + color: #999999; + } + .price { + font-size: 40rpx; + font-weight: bold; + color: #ec7655; + line-height: 40rpx; + margin-left: 30rpx; + } + } +} +.price-box { + .submit-price { + width: 100%; + height: 68rpx; + background: #7286f1; + text-align: center; + line-height: 68rpx; + font-size: 32rpx; + color: #ffffff; + } + .price-input { + display: flex; + justify-content: space-between; + margin: 35rpx 0 50rpx 0; + line-height: 72rpx; + .input-box { + display: flex; + } + .input { + width: 450rpx; + height: 72rpx; + border: 2rpx solid #d8d8d8; + box-sizing: border-box; + padding: 4rpx; + font-size: 30rpx; + font-weight: bold; + color: #000000; + text-align: center; + } + .iconfont { + margin-left: 18rpx; + } + } +} \ No newline at end of file