Commit 73705778 by 李伟康

commit 修改交互&样式

1 parent f035a677
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
@click="close" @click="close"
>取消</view> >取消</view>
<view <view
class="btn" :class="['btn',{disabled:component_chooseList.length == 0}]"
@click="choose" @click="choose"
>确定</view> >确定</view>
</view> </view>
...@@ -105,6 +105,7 @@ export default { ...@@ -105,6 +105,7 @@ export default {
return component_chooseList.findIndex(e => e.labelId == item.labelId) != -1 return component_chooseList.findIndex(e => e.labelId == item.labelId) != -1
}, },
choose () { choose () {
if (this.component_chooseList.length == 0) return
this.$emit('select', this.component_chooseList) this.$emit('select', this.component_chooseList)
this.close(); this.close();
} }
...@@ -186,5 +187,8 @@ export default { ...@@ -186,5 +187,8 @@ export default {
background: #dae9ff; background: #dae9ff;
color: #2c66f7; color: #2c66f7;
} }
.disabled {
background-image: linear-gradient(0deg, #2c66f799 0%, #48a6ff99 100%);
}
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -267,7 +267,13 @@ export default { ...@@ -267,7 +267,13 @@ export default {
this.formObject.map(e => { this.formObject.map(e => {
if (e.required) { if (e.required) {
if (!this.formData[e.key]) throw false if (!this.formData[e.key]) throw false
if (!all && e.key == 'phoneNumber' && !phoneRex.test(this.formData[e.key])) throw false if (!all && e.key == 'phoneNumber' && !phoneRex.test(this.formData[e.key])) {
uni.showToast({
title: "请输入正确的车主电话",
icon: "none",
});
throw false
}
} }
}) })
} catch (error) { } catch (error) {
......
...@@ -465,7 +465,7 @@ export default { ...@@ -465,7 +465,7 @@ export default {
} }
} }
.record-list { .record-list {
height: calc(100% - 240rpx); height: calc(100% - 242rpx);
position: relative; position: relative;
z-index: 4; z-index: 4;
} }
......
...@@ -424,7 +424,7 @@ export default { ...@@ -424,7 +424,7 @@ export default {
} }
} }
.record-content { .record-content {
padding: 96rpx 0; padding: 96rpx 0 80rpx;
.data-container { .data-container {
background: #ffffff; background: #ffffff;
border-radius: 48rpx; border-radius: 48rpx;
...@@ -479,12 +479,12 @@ export default { ...@@ -479,12 +479,12 @@ export default {
} }
} }
.record-list { .record-list {
height: calc(100% - 248rpx); height: calc(100% - 242rpx);
position: relative; position: relative;
z-index: 4; z-index: 4;
} }
.type-1 { .type-1 {
height: calc(100% - 128rpx); height: calc(100% - 126rpx);
margin-top: -48rpx; margin-top: -48rpx;
.list { .list {
padding-top: 48rpx; padding-top: 48rpx;
......
...@@ -234,10 +234,14 @@ export default { ...@@ -234,10 +234,14 @@ export default {
.then((res) => { .then((res) => {
this.$store.dispatch("setEmployeeList", res); this.$store.dispatch("setEmployeeList", res);
}); });
uni.showLoading({
mask: true
})
/**获取车型素材配置 */ /**获取车型素材配置 */
uni.$api.boutiqueApi.getBoutiqueMaterialConfig({ uni.$api.boutiqueApi.getBoutiqueMaterialConfig({
merchantId: shopMerchantId merchantId: shopMerchantId
}).then(({ materials, hidePackage }) => { }).then(({ materials, hidePackage }) => {
uni.hideLoading()
let boutiqueMediaConfig = { let boutiqueMediaConfig = {
M5: [], M5: [],
M7: [], M7: [],
...@@ -260,6 +264,12 @@ export default { ...@@ -260,6 +264,12 @@ export default {
e.configList = boutiqueMediaConfig[e.title] e.configList = boutiqueMediaConfig[e.title]
}) })
this.$store.state.user.boutiqueMediaConfig = boutiqueMediaConfig this.$store.state.user.boutiqueMediaConfig = boutiqueMediaConfig
}).catch(error => {
uni.hideLoading()
uni.showToast({
title: error,
icon: 'none',
});
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!