细节优化
parent
b562f86450
commit
8b77a6abd8
|
|
@ -56,9 +56,9 @@
|
|||
</view>
|
||||
</view>
|
||||
<view v-if="(opt_button || null) != null && opt_button.length > 0" class="padding-bottom-main">
|
||||
<view :class="'oh buy-nav-btn-number-' + (opt_button.length || 0)">
|
||||
<view :class="'flex-row jc-sa gap-20 buy-nav-btn-number-' + (opt_button.length || 0)">
|
||||
<block v-for="(item, index) in opt_button" :key="index">
|
||||
<view v-if="(item.name || null) != null && (item.type || null) != null" class="item fl bs-bb padding-horizontal-main">
|
||||
<view v-if="(item.name || null) != null && (item.type || null) != null" class="item">
|
||||
<button :class="'cr-white round text-size-sm bg-' + ((item.color || 'main') == 'main' ? 'main' : 'main-pair')" type="default" @tap="spec_confirm_event" :data-value="item.value" :data-type="item.type" :data-business="item.business || ''" hover-class="none">{{ item.name }}</button>
|
||||
</view>
|
||||
</block>
|
||||
|
|
@ -905,7 +905,7 @@
|
|||
}
|
||||
.goods-spec-choice-container .number-content {
|
||||
position: absolute;
|
||||
right: 20rpx;
|
||||
right: 0;
|
||||
top: 0;
|
||||
background: #eee;
|
||||
border: 1px solid #eee;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
</view>
|
||||
</block>
|
||||
<block v-else>
|
||||
<view class="tc spacing-mb flex-row jc-c align-c margin-top-xxxxl">
|
||||
<view class="tc spacing-mb flex-row jc-c align-c margin-top-xs">
|
||||
<image :src="common_static_url + 'no-comment.png'" mode="widthFix" class="no-comment margin-right-main" />
|
||||
<view class="cr-grey-d">{{$t('goods-comments.goods-comments.1p1r2e')}}</view>
|
||||
</view>
|
||||
|
|
@ -123,6 +123,6 @@
|
|||
margin-right: 10rpx;
|
||||
}
|
||||
.no-comment {
|
||||
width: 174rpx;
|
||||
width: 100rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -98,6 +98,6 @@
|
|||
border: 0;
|
||||
}
|
||||
.no-ask {
|
||||
width: 174rpx;
|
||||
width: 100rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
</form>
|
||||
<view v-else>
|
||||
<!-- 提示信息 -->
|
||||
<component-no-data :propStatus="data_list_loding_status"></component-no-data>
|
||||
<component-no-data :propStatus="data_list_loding_status" :propMsg="data_list_loding_msg"></component-no-data>
|
||||
</view>
|
||||
|
||||
<!-- 公共 -->
|
||||
|
|
@ -126,7 +126,7 @@
|
|||
init() {
|
||||
var user = app.globalData.get_user_info(this, 'init');
|
||||
if (user != false) {
|
||||
this.get_data_list();
|
||||
this.get_data();
|
||||
} else {
|
||||
// 提示错误
|
||||
this.setData({
|
||||
|
|
@ -137,7 +137,7 @@
|
|||
},
|
||||
|
||||
// 获取初始化信息
|
||||
get_data_list() {
|
||||
get_data() {
|
||||
uni.showLoading({
|
||||
title: this.$t('common.loading_in_text'),
|
||||
});
|
||||
|
|
@ -166,15 +166,14 @@
|
|||
data_list_loding_status: 0,
|
||||
data_list_loding_msg: res.data.msg,
|
||||
});
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading();
|
||||
this.setData({
|
||||
data_list_loding_status: 0,
|
||||
data_list_loding_msg: this.$t('common.internet_error_tips')
|
||||
});
|
||||
app.globalData.showToast(this.$t('common.internet_error_tips'));
|
||||
},
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4,12 +4,4 @@
|
|||
}
|
||||
.input-height {
|
||||
min-height: 200rpx;
|
||||
}
|
||||
.sub-btn {
|
||||
padding: 40rpx 66rpx;
|
||||
}
|
||||
.sub-btn button {
|
||||
height: 88rpx;
|
||||
line-height: 88rpx;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
@ -25,13 +25,15 @@
|
|||
</checkbox-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="sub-btn">
|
||||
<button class="bg-main br-main cr-white round text-size" type="default" form-type="submit" hover-class="none" :loading="form_submit_loading" :disabled="form_submit_loading">{{ $t('common.submit') }}</button>
|
||||
<view class="bottom-fixed" :style="bottom_fixed_style">
|
||||
<view class="bottom-line-exclude">
|
||||
<button class="bg-main br-main cr-white round text-size" type="default" form-type="submit" hover-class="none" :loading="form_submit_loading" :disabled="form_submit_loading">{{ $t('common.submit') }}</button>
|
||||
</view>
|
||||
</view>
|
||||
</form>
|
||||
<view v-else>
|
||||
<!-- 提示信息 -->
|
||||
<component-no-data :propStatus="data_list_loding_status"></component-no-data>
|
||||
<component-no-data :propStatus="data_list_loding_status" :propMsg="data_list_loding_msg"></component-no-data>
|
||||
</view>
|
||||
</view>
|
||||
<block v-else>
|
||||
|
|
@ -54,6 +56,10 @@
|
|||
return {
|
||||
theme_view: app.globalData.get_theme_value_view(),
|
||||
theme_color: theme_color,
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: this.$t('form.form.bniyyt'),
|
||||
bottom_fixed_style: '',
|
||||
form_submit_loading: false,
|
||||
data: {},
|
||||
rate_value: 0,
|
||||
image_list: [],
|
||||
|
|
@ -61,9 +67,6 @@
|
|||
goods_id: '',
|
||||
is_anonymous: '0',
|
||||
text_num: 0,
|
||||
theme_color: theme_color,
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: this.$t('form.form.bniyyt'),
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -124,6 +127,7 @@
|
|||
} else {
|
||||
this.setData({
|
||||
data_list_loding_status: 0,
|
||||
data_list_loding_msg: res.data.msg,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
@ -131,8 +135,8 @@
|
|||
uni.stopPullDownRefresh();
|
||||
this.setData({
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: this.$t('common.internet_error_tips'),
|
||||
});
|
||||
app.globalData.showToast(this.$t('common.internet_error_tips'));
|
||||
},
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue