下单支持留言快捷选择
parent
bb57f4df34
commit
36d619a170
4
App.vue
4
App.vue
|
|
@ -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/',
|
||||
|
||||
// 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://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、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 提交订单
|
||||
|
|
|
|||
Loading…
Reference in New Issue