下单支持留言快捷选择

master
gongfuxiang 2023-12-01 17:04:17 +08:00
parent bb57f4df34
commit 36d619a170
3 changed files with 65 additions and 15 deletions

View File

@ -6,12 +6,12 @@
//
//
// request_url: 'https://new.shopxo.vip/',
request_url: 'https://d1.shopxo.vip/',
request_url: 'https://d1.shopxo.vip/',
// request_url: 'http://shopxo.com/',
// publicpublichttps://d1.shopxo.vip/public/
// static_url: 'https://new.shopxo.vip/',
static_url: 'https://d1.shopxo.vip/',
static_url: 'https://d1.shopxo.vip/',
// static_url: 'http://shopxo.com/',
// default

View File

@ -133,16 +133,16 @@
/**
*
*/
.content-textarea-container {
.content-textarea-container .content {
height: 100rpx;
}
.content-textarea-container view,
.content-textarea-container textarea {
.content-textarea-container .textarea-view,
.content-textarea-container .textarea {
height: 100% !important;
}
.content-textarea-container textarea {
.content-textarea-container .textarea {
padding: 5rpx 0;
}
@ -220,17 +220,22 @@
}
.plugins-points-use-value {
width: 130rpx;
height: 42rpx;
line-height: 42rpx;
border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important;
width: 130rpx;
height: 38rpx;
line-height: 38rpx;
}
.plugins-points-use-submit {
line-height: 42rpx !important;
border-top-left-radius: 0 !important;
border-bottom-left-radius: 0 !important;
height: 38rpx !important;
line-height: 38rpx !important;
/* #ifend H5 || APP */
height: 42rpx !important;
line-height: 42rpx !important;
/* #endif */
}
/**
@ -285,4 +290,12 @@
background: #dfdfdf !important;
color: #c0c0c0 !important;
cursor: no-drop !important;
}
/**
* -
*/
.plugins-intellectstools-data-note-fast .note-fast-data-list {
width: calc(100% - 112rpx);
}

View File

@ -157,9 +157,21 @@
</view>
<!-- 留言 -->
<view class="content-textarea-container padding-main border-radius-main bg-white spacing-mb">
<textarea v-if="user_note_status" @blur="bind_user_note_blur_event" @input="bind_user_note_event" :focus="true" :disable-default-padding="false" :value="user_note_value" maxlength="60" placeholder="留言"></textarea>
<view v-else @tap="bind_user_note_tap_event" :class="(user_note_value || null) == null ? 'cr-grey' : ''">{{ user_note_value || '留言' }}</view>
<view class="content-textarea-container padding-main border-radius-main bg-white spacing-mb">
<view class="content">
<textarea v-if="user_note_status" class="textarea" @blur="bind_user_note_blur_event" @input="bind_user_note_event" :focus="true" :disable-default-padding="false" :value="user_note_value" maxlength="230" placeholder="留言"></textarea>
<view v-else @tap="bind_user_note_tap_event" :class="'textarea-view '+((user_note_value || null) == null ? 'cr-grey' : '')">{{ user_note_value || '留言' }}</view>
</view>
<view v-if="(plugins_intellectstools_data || null) != null && (plugins_intellectstools_data.note_fast_data || null) != null" class="plugins-intellectstools-data-note-fast margin-top-sm">
<text class="cr-grey margin-right-sm va-m text-size-xs">快捷输入</text>
<view class="note-fast-data-list scroll-view-horizontal dis-inline-block va-m">
<scroll-view :scroll-x="true" :show-scrollbar="false" :scroll-with-animation="true">
<block v-for="(item, index) in plugins_intellectstools_data.note_fast_data" :key="index">
<view :class="'dis-inline-block text-size-xs round padding-top-xs padding-bottom-xs padding-left padding-right br-grey-f5 cr-base cp '+(index > 0 ? 'margin-left-sm' : '')" :data-value="item" @tap="note_fast_event">{{ item }}</view>
</block>
</scroll-view>
</view>
</view>
</view>
<!-- 支付方式 -->
@ -320,7 +332,9 @@
plugins_choice_realstore_value: {},
popup_plugins_realstore_status: false,
popup_plugins_realstore_group_id: 0,
popup_plugins_realstore_card_index: 0,
popup_plugins_realstore_card_index: 0,
//
plugins_intellectstools_data: null,
//
pay_url: '',
@ -492,7 +506,8 @@
buy_datetime_info: datetime,
plugins_coupon_data: data.plugins_coupon_data || null,
plugins_points_data: data.plugins_points_data || null,
plugins_realstore_data: data.plugins_realstore_data || null,
plugins_realstore_data: data.plugins_realstore_data || null,
plugins_intellectstools_data: data.plugins_intellectstools_data || null,
});
// 使
@ -606,6 +621,28 @@
this.setData({
user_note_status: false,
});
},
//
note_fast_event(e) {
var value = e.currentTarget.dataset.value;
var user_note = this.user_note_value || '';
if(user_note != '') {
//
if(user_note.indexOf(value) != -1) {
return false;
}
//
user_note += ',';
}
user_note += value;
//
if(user_note.length <= 230) {
this.setData({
user_note_value: user_note
});
}
},
//