Merge branch 'dev-yxl' of gitee.com:zongzhige/shopxo-uniapp into dev
commit
b786fa0ce9
|
|
@ -325,6 +325,9 @@ export default {
|
|||
child.com_data.common_style = this.get_form_border_style(child.com_data.common_config, mobile.arrang == 'direction' ? (emobile.flex_direction || 'row') : 'column', overall_config.type_value);
|
||||
if (!isEmpty(item1[child.id])) {
|
||||
child.com_data.form_value = item1[child.id];
|
||||
if (!isEmpty(item1[child.id + '_custom_option_list'])) {
|
||||
child.com_data.custom_option_list = item1[child.id + '_custom_option_list'];
|
||||
}
|
||||
}
|
||||
});
|
||||
data_list.push({
|
||||
|
|
|
|||
|
|
@ -40,10 +40,13 @@
|
|||
</template>
|
||||
<view class="bottom-line-exclude">
|
||||
<view class="form-footer flex-row align-c">
|
||||
<view v-if="overall_config.is_show_save_draft == '1'" class="save_draft_title flex-col jc-c align-c">
|
||||
<iconfont name="icon-detail" size="30rpx" color="#666" propContainerDisplay="flex" ></iconfont>
|
||||
{{ overall_config.save_draft_title }}
|
||||
<view class="save_draft_title flex-col jc-c align-c" @tap="top_nav_left_back_event">
|
||||
<iconfont :name="'icon-' + back_icon" size="30rpx" color="#666" propContainerDisplay="flex" ></iconfont>
|
||||
{{ back_icon == 'back' ? $t('common.return') : $t('common.home') }}
|
||||
</view>
|
||||
<!-- <view class="bottom-line-back" @tap.stop="bottom_line_back">
|
||||
<iconfont :name="'icon-' + back_icon" size="46rpx" color="#666" propContainerDisplay="flex" ></iconfont>
|
||||
</view> -->
|
||||
<button v-if="overall_config.is_show_submit == '1'" class="flex-1 submit_title flex-row align-c jc-c" :style="'background:' + submit_bg_color" type="default" :disabled="is_submit_disable" @tap="on_submit_event">{{ overall_config.submit_title }}</button>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -99,6 +102,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
back_icon: 'home',
|
||||
data_list: [],
|
||||
form_name: '',
|
||||
img_url: '',
|
||||
|
|
@ -135,6 +139,14 @@ export default {
|
|||
methods: {
|
||||
isEmpty,
|
||||
init() {
|
||||
// 判断应该显示什么icon
|
||||
const pages = getCurrentPages();
|
||||
const length = pages.length;
|
||||
if (length > 1) {
|
||||
this.back_icon = 'back';
|
||||
} else {
|
||||
this.back_icon = 'home';
|
||||
}
|
||||
const data = this.propValue;
|
||||
// 公共配置信息
|
||||
const overall_config = data.config?.overall_config || {};
|
||||
|
|
@ -157,6 +169,10 @@ export default {
|
|||
})
|
||||
}, 500);
|
||||
},
|
||||
// 返回事件
|
||||
top_nav_left_back_event(e) {
|
||||
app.globalData.page_back_prev_event();
|
||||
},
|
||||
/*
|
||||
* 点击提交按钮触发方法
|
||||
*/
|
||||
|
|
@ -243,9 +259,9 @@ export default {
|
|||
width: 100%;
|
||||
border-top: 2rpx solid #eee;
|
||||
.save_draft_title {
|
||||
min-width: 180rpx;
|
||||
min-width: 120rpx;
|
||||
font-size: 24rpx;
|
||||
margin: 0 20rpx 0 0;
|
||||
// margin: 0 20rpx 0 0;
|
||||
}
|
||||
.submit_title {
|
||||
text-align: center;
|
||||
|
|
@ -283,4 +299,8 @@ export default {
|
|||
background: transparent;
|
||||
z-index: 999;
|
||||
}
|
||||
// 返回按钮的显示逻辑
|
||||
.bottom-line-back {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue