mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-06 21:45:47 +08:00
小程序优化
This commit is contained in:
@ -160,11 +160,13 @@
|
||||
/**
|
||||
* 留言
|
||||
*/
|
||||
.content-textarea-view {
|
||||
.content-textarea-container {
|
||||
padding: 5rpx;
|
||||
}
|
||||
.content-textarea-view textarea {
|
||||
height: 180rpx;
|
||||
.content-textarea-container textarea,
|
||||
.content-textarea-container view {
|
||||
padding: 5rpx 15rpx;
|
||||
height: 170rpx;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -85,8 +85,9 @@
|
||||
</view>
|
||||
|
||||
<!-- 留言 -->
|
||||
<view class="content-textarea-view bg-white spacing-mb">
|
||||
<textarea onInput="bind_user_note_event" value="{{user_note_value}}" maxlength="60" placeholder="留言" />
|
||||
<view class="content-textarea-container bg-white spacing-mb">
|
||||
<textarea a:if="{{user_note_status}}" onBlur="bind_user_note_blur_event" onInput="bind_user_note_event" focus="{{true}}" show-count="{{false}}" value="{{user_note_value}}" maxlength="60" placeholder="留言" />
|
||||
<view a:else onTap="bind_user_note_tap_event" class="{{(user_note_value || null) == null ? 'cr-888' : ''}}">{{user_note_value || '留言'}}</view>
|
||||
</view>
|
||||
|
||||
<!-- 支付方式 -->
|
||||
|
||||
@ -11,6 +11,7 @@ Page({
|
||||
address_id: 0,
|
||||
total_price: 0,
|
||||
user_note_value: '',
|
||||
user_note_status: false,
|
||||
is_first: 1,
|
||||
extension_data: [],
|
||||
payment_id: 0,
|
||||
@ -214,6 +215,16 @@ Page({
|
||||
this.setData({user_note_value: e.detail.value});
|
||||
},
|
||||
|
||||
// 用户留言点击
|
||||
bind_user_note_tap_event(e) {
|
||||
this.setData({user_note_status: true});
|
||||
},
|
||||
|
||||
// 用户留言失去焦点
|
||||
bind_user_note_blur_event(e) {
|
||||
this.setData({user_note_status: false});
|
||||
},
|
||||
|
||||
// 提交订单
|
||||
buy_submit_event(e) {
|
||||
// 表单数据
|
||||
|
||||
@ -160,11 +160,13 @@
|
||||
/**
|
||||
* 留言
|
||||
*/
|
||||
.content-textarea-view {
|
||||
.content-textarea-container {
|
||||
padding: 5rpx;
|
||||
}
|
||||
.content-textarea-view textarea {
|
||||
height: 180rpx;
|
||||
.content-textarea-container textarea,
|
||||
.content-textarea-container view {
|
||||
padding: 5rpx 15rpx;
|
||||
height: 170rpx;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -12,7 +12,7 @@ Page({
|
||||
address_id: null,
|
||||
total_price: 0,
|
||||
user_note_value: '',
|
||||
user_note_disabled: true,
|
||||
user_note_status: false,
|
||||
is_first: 1,
|
||||
extension_data: [],
|
||||
payment_id: 0,
|
||||
@ -175,16 +175,12 @@ Page({
|
||||
|
||||
// 用户留言点击
|
||||
bind_user_note_tap_event(e) {
|
||||
this.setData({
|
||||
user_note_disabled: false,
|
||||
});
|
||||
this.setData({user_note_status: true});
|
||||
},
|
||||
|
||||
// 用户留言失去焦点
|
||||
bind_user_note_blur_event(e) {
|
||||
this.setData({
|
||||
user_note_disabled: true,
|
||||
});
|
||||
this.setData({user_note_status: false});
|
||||
},
|
||||
|
||||
// 提交订单
|
||||
|
||||
@ -88,6 +88,10 @@
|
||||
<view class="content-textarea-view bg-white spacing-mb">
|
||||
<textarea bindblur="bind_user_note_blur_event" bindinput="bind_user_note_event" bindinput="bind_user_note_event" value="{=user_note_value=}" maxlength="60" placeholder="留言" focus="{{!user_note_disabled}}" disabled="{{user_note_disabled}}" />
|
||||
</view>
|
||||
<view class="content-textarea-container bg-white spacing-mb">
|
||||
<textarea s-if="user_note_status" bindblur="bind_user_note_blur_event" bindinput="bind_user_note_event" focus="{{true}}" value="{{user_note_value}}" maxlength="60" placeholder="留言" />
|
||||
<view s-else bindtap="bind_user_note_tap_event" class="{{(user_note_value || null) == null ? 'cr-888' : ''}}">{{user_note_value || '留言'}}</view>
|
||||
</view>
|
||||
|
||||
<!-- 支付方式 -->
|
||||
<view s-if="payment_list.length > 0 && common_order_is_booking != 1" class="payment-list bg-white oh">
|
||||
|
||||
@ -12,7 +12,7 @@ Page({
|
||||
address_id: null,
|
||||
total_price: 0,
|
||||
user_note_value: '',
|
||||
user_note_disabled: true,
|
||||
user_note_status: false,
|
||||
is_first: 1,
|
||||
extension_data: [],
|
||||
payment_id: 0,
|
||||
@ -180,23 +180,19 @@ Page({
|
||||
this.init();
|
||||
},
|
||||
|
||||
// 用户留言事件
|
||||
// 用户留言输入事件
|
||||
bind_user_note_event(e) {
|
||||
this.setData({user_note_value: e.detail.value});
|
||||
},
|
||||
|
||||
// 用户留言点击
|
||||
bind_user_note_tap_event(e) {
|
||||
this.setData({
|
||||
user_note_disabled: false,
|
||||
});
|
||||
this.setData({user_note_status: true});
|
||||
},
|
||||
|
||||
// 用户留言失去焦点
|
||||
bind_user_note_blur_event(e) {
|
||||
this.setData({
|
||||
user_note_disabled: true,
|
||||
});
|
||||
this.setData({user_note_status: false});
|
||||
},
|
||||
|
||||
// 提交订单
|
||||
|
||||
@ -85,8 +85,9 @@
|
||||
</view>
|
||||
|
||||
<!-- 留言 -->
|
||||
<view class="content-textarea-view bg-white spacing-mb">
|
||||
<textarea bindblur="bind_user_note_blur_event" bindinput="bind_user_note_event" bindinput="bind_user_note_event" value="{{user_note_value}}" maxlength="60" placeholder="留言" focus="{{!user_note_disabled}}" disabled="{{user_note_disabled}}" />
|
||||
<view class="content-textarea-container bg-white spacing-mb">
|
||||
<textarea qq:if="{{user_note_status}}" bindblur="bind_user_note_blur_event" bindinput="bind_user_note_event" focus="{{true}}" value="{{user_note_value}}" maxlength="60" placeholder="留言" />
|
||||
<view qq:else bindtap="bind_user_note_tap_event" class="{{(user_note_value || null) == null ? 'cr-888' : ''}}">{{user_note_value || '留言'}}</view>
|
||||
</view>
|
||||
|
||||
<!-- 支付方式 -->
|
||||
|
||||
@ -160,11 +160,13 @@
|
||||
/**
|
||||
* 留言
|
||||
*/
|
||||
.content-textarea-view {
|
||||
.content-textarea-container {
|
||||
padding: 5rpx;
|
||||
}
|
||||
.content-textarea-view textarea {
|
||||
height: 180rpx;
|
||||
.content-textarea-container textarea,
|
||||
.content-textarea-container view {
|
||||
padding: 5rpx 15rpx;
|
||||
height: 170rpx;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -12,7 +12,7 @@ Page({
|
||||
address_id: null,
|
||||
total_price: 0,
|
||||
user_note_value: '',
|
||||
user_note_disabled: true,
|
||||
user_note_status: false,
|
||||
is_first: 1,
|
||||
extension_data: [],
|
||||
payment_id: 0,
|
||||
@ -190,23 +190,17 @@ Page({
|
||||
|
||||
// 用户留言事件
|
||||
bind_user_note_event(e) {
|
||||
this.setData({
|
||||
user_note_value: e.detail.value
|
||||
});
|
||||
this.setData({user_note_value: e.detail.value});
|
||||
},
|
||||
|
||||
// 用户留言点击
|
||||
bind_user_note_tap_event(e) {
|
||||
this.setData({
|
||||
user_note_disabled: false,
|
||||
});
|
||||
this.setData({user_note_status: true});
|
||||
},
|
||||
|
||||
// 用户留言失去焦点
|
||||
bind_user_note_blur_event(e) {
|
||||
this.setData({
|
||||
user_note_disabled: true,
|
||||
});
|
||||
this.setData({user_note_status: false});
|
||||
},
|
||||
|
||||
// 提交订单
|
||||
|
||||
@ -85,8 +85,9 @@
|
||||
</view>
|
||||
|
||||
<!-- 留言 -->
|
||||
<view class="content-textarea-view bg-white spacing-mb">
|
||||
<textarea bindblur="bind_user_note_blur_event" bindinput="bind_user_note_event" bindinput="bind_user_note_event" value="{{user_note_value}}" maxlength="60" placeholder="留言" focus="{{!user_note_disabled}}" disabled="{{user_note_disabled}}" />
|
||||
<view class="content-textarea-container bg-white spacing-mb">
|
||||
<textarea tt:if="{{user_note_status}}" bindblur="bind_user_note_blur_event" bindinput="bind_user_note_event" focus="{{true}}" value="{{user_note_value}}" maxlength="60" placeholder="留言" />
|
||||
<view tt:else bindtap="bind_user_note_tap_event" class="{{(user_note_value || null) == null ? 'cr-888' : ''}}">{{user_note_value || '留言'}}</view>
|
||||
</view>
|
||||
|
||||
<!-- 支付方式 -->
|
||||
|
||||
@ -160,11 +160,13 @@
|
||||
/**
|
||||
* 留言
|
||||
*/
|
||||
.content-textarea-view {
|
||||
.content-textarea-container {
|
||||
padding: 5rpx;
|
||||
}
|
||||
.content-textarea-view textarea {
|
||||
height: 180rpx;
|
||||
.content-textarea-container textarea,
|
||||
.content-textarea-container view {
|
||||
padding: 5rpx 15rpx;
|
||||
height: 170rpx;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -11,7 +11,7 @@ Page({
|
||||
address_id: null,
|
||||
total_price: 0,
|
||||
user_note_value: '',
|
||||
user_note_disabled: true,
|
||||
user_note_status: false,
|
||||
is_first: 1,
|
||||
extension_data: [],
|
||||
payment_id: 0,
|
||||
@ -206,16 +206,12 @@ Page({
|
||||
|
||||
// 用户留言点击
|
||||
bind_user_note_tap_event(e) {
|
||||
this.setData({
|
||||
user_note_disabled: false,
|
||||
});
|
||||
this.setData({user_note_status: true});
|
||||
},
|
||||
|
||||
// 用户留言失去焦点
|
||||
bind_user_note_blur_event(e) {
|
||||
this.setData({
|
||||
user_note_disabled: true,
|
||||
});
|
||||
this.setData({user_note_status: false});
|
||||
},
|
||||
|
||||
// 提交订单
|
||||
|
||||
@ -85,8 +85,9 @@
|
||||
</view>
|
||||
|
||||
<!-- 留言 -->
|
||||
<view class="content-textarea-view bg-white spacing-mb">
|
||||
<textarea bindtap="bind_user_note_tap_event" bindblur="bind_user_note_blur_event" bindinput="bind_user_note_event" value="{{user_note_value}}" maxlength="60" placeholder="留言" focus="{{!user_note_disabled}}" disabled="{{user_note_disabled}}" />
|
||||
<view class="content-textarea-container bg-white spacing-mb">
|
||||
<textarea wx:if="{{user_note_status}}" bindblur="bind_user_note_blur_event" bindinput="bind_user_note_event" focus="{{true}}" disable-default-padding="{{false}}" value="{{user_note_value}}" maxlength="60" placeholder="留言" />
|
||||
<view wx:else bindtap="bind_user_note_tap_event" class="{{(user_note_value || null) == null ? 'cr-888' : ''}}">{{user_note_value || '留言'}}</view>
|
||||
</view>
|
||||
|
||||
<!-- 支付方式 -->
|
||||
|
||||
@ -160,11 +160,13 @@
|
||||
/**
|
||||
* 留言
|
||||
*/
|
||||
.content-textarea-view {
|
||||
.content-textarea-container {
|
||||
padding: 5rpx;
|
||||
}
|
||||
.content-textarea-view textarea {
|
||||
height: 180rpx;
|
||||
.content-textarea-container textarea,
|
||||
.content-textarea-container view {
|
||||
padding: 5rpx 15rpx;
|
||||
height: 170rpx;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user