提交 900f0f0d 编写于 作者: D devil_gong

小程序优惠劵

上级 dac1db76
...@@ -123,6 +123,18 @@ ...@@ -123,6 +123,18 @@
color: #ff8f44; color: #ff8f44;
} }
/**
* 留言
*/
.content-textarea-view {
height: 220rpx;
}
.content-textarea-view textarea {
height: 180rpx;
}
.content-textarea-view view {
padding: 8rpx 10rpx;
}
/** /**
* 插件样式区域 * 插件样式区域
......
...@@ -43,7 +43,10 @@ ...@@ -43,7 +43,10 @@
</view> </view>
<!-- 留言 --> <!-- 留言 -->
<textarea onInput="bind_user_note_event" maxlength="60" auto-height placeholder="留言" class="spacing-mb" /> <view class="content-textarea-view bg-white spacing-mb">
<textarea a:if="{{!popup_plugins_coupon_status}}" onInput="bind_user_note_event" value="{{user_note_value}}" maxlength="60" placeholder="留言" />
<view a:if="{{popup_plugins_coupon_status}}" class="cr-888">{{user_note_value || '留言'}}</view>
</view>
<!-- 优惠劵 --> <!-- 优惠劵 -->
<view a:if="{{(plugins_coupon_data || null) != null && plugins_coupon_data.coupon_list.length > 0}}" class="plugins-coupon bg-white spacing-mb arrow-right" onTap="plugins_coupon_open_event"> <view a:if="{{(plugins_coupon_data || null) != null && plugins_coupon_data.coupon_list.length > 0}}" class="plugins-coupon bg-white spacing-mb arrow-right" onTap="plugins_coupon_open_event">
......
...@@ -106,6 +106,10 @@ Page({ ...@@ -106,6 +106,10 @@ Page({
// 显示秒杀插件-倒计时 // 显示秒杀插件-倒计时
plugins_limitedtimediscount_countdown() { plugins_limitedtimediscount_countdown() {
// 销毁之前的任务
clearInterval(this.data.plugins_limitedtimediscount_timer);
// 定时参数
var status = this.data.plugins_limitedtimediscount_data.time.status || 0; var status = this.data.plugins_limitedtimediscount_data.time.status || 0;
var msg = this.data.plugins_limitedtimediscount_data.time.msg || ''; var msg = this.data.plugins_limitedtimediscount_data.time.msg || '';
var hours = parseInt(this.data.plugins_limitedtimediscount_data.time.hours) || 0; var hours = parseInt(this.data.plugins_limitedtimediscount_data.time.hours) || 0;
......
...@@ -126,12 +126,14 @@ ...@@ -126,12 +126,14 @@
/** /**
* 留言 * 留言
*/ */
.content-textarea { .content-textarea-view,
padding: 10rpx; .content-textarea-view textarea {
min-height: 10vh; height: 180rpx;
width: 100%; }
.content-textarea-view textarea,
.content-textarea-view view {
padding: 10rpx;
} }
/** /**
* 插件样式区域 * 插件样式区域
......
...@@ -42,7 +42,10 @@ ...@@ -42,7 +42,10 @@
</view> </view>
<!-- 留言 --> <!-- 留言 -->
<textarea bindinput="bind_user_note_event" maxlength="60" auto-height placeholder="留言" class="content-textarea bg-white spacing-mb" /> <view class="content-textarea-view bg-white spacing-mb">
<textarea s-if="!popup_plugins_coupon_status" bindinput="bind_user_note_event" value="{{user_note_value}}" maxlength="60" placeholder="留言" class="wh-auto" />
<view s-if="popup_plugins_coupon_status" class="cr-888">{{user_note_value || '留言'}}</view>
</view>
<!-- 优惠劵 --> <!-- 优惠劵 -->
<view s-if="(plugins_coupon_data || null) != null && plugins_coupon_data.coupon_list.length > 0" class="plugins-coupon bg-white spacing-mb arrow-right" bindtap="plugins_coupon_open_event"> <view s-if="(plugins_coupon_data || null) != null && plugins_coupon_data.coupon_list.length > 0" class="plugins-coupon bg-white spacing-mb arrow-right" bindtap="plugins_coupon_open_event">
......
...@@ -109,6 +109,10 @@ Page({ ...@@ -109,6 +109,10 @@ Page({
// 显示秒杀插件-倒计时 // 显示秒杀插件-倒计时
plugins_limitedtimediscount_countdown() { plugins_limitedtimediscount_countdown() {
// 销毁之前的任务
clearInterval(this.data.plugins_limitedtimediscount_timer);
// 定时参数
var status = this.data.plugins_limitedtimediscount_data.time.status || 0; var status = this.data.plugins_limitedtimediscount_data.time.status || 0;
var msg = this.data.plugins_limitedtimediscount_data.time.msg || ''; var msg = this.data.plugins_limitedtimediscount_data.time.msg || '';
var hours = parseInt(this.data.plugins_limitedtimediscount_data.time.hours) || 0; var hours = parseInt(this.data.plugins_limitedtimediscount_data.time.hours) || 0;
......
...@@ -67,7 +67,7 @@ App({ ...@@ -67,7 +67,7 @@ App({
// 请求地址 // 请求地址
request_url: "{{request_url}}", request_url: "{{request_url}}",
request_url: 'http://tp5-dev.com/', request_url: 'http://tp5-dev.com/',
//request_url: 'https://test.shopxo.net/', request_url: 'https://test.shopxo.net/',
// 基础信息 // 基础信息
application_title: "{{application_title}}", application_title: "{{application_title}}",
......
...@@ -42,7 +42,10 @@ ...@@ -42,7 +42,10 @@
</view> </view>
<!-- 留言 --> <!-- 留言 -->
<textarea bindinput="bind_user_note_event" maxlength="60" auto-height placeholder="留言" class="content-textarea bg-white spacing-mb" /> <view class="content-textarea-view bg-white spacing-mb">
<textarea wx:if="{{!popup_plugins_coupon_status}}" bindinput="bind_user_note_event" value="{{user_note_value}}" maxlength="60" placeholder="留言" class="wh-auto" />
<view wx:if="{{popup_plugins_coupon_status}}" class="cr-888">{{user_note_value || '留言'}}</view>
</view>
<!-- 优惠劵 --> <!-- 优惠劵 -->
<view wx:if="{{(plugins_coupon_data || null) != null && plugins_coupon_data.coupon_list.length > 0}}" class="plugins-coupon bg-white spacing-mb arrow-right" bindtap="plugins_coupon_open_event"> <view wx:if="{{(plugins_coupon_data || null) != null && plugins_coupon_data.coupon_list.length > 0}}" class="plugins-coupon bg-white spacing-mb arrow-right" bindtap="plugins_coupon_open_event">
......
...@@ -126,10 +126,12 @@ ...@@ -126,10 +126,12 @@
/** /**
* 留言 * 留言
*/ */
.content-textarea { .content-textarea-view,
padding: 10rpx; .content-textarea-view textarea {
min-height: 10vh; height: 180rpx;
width: 100%; }
.content-textarea-view view {
padding: 12rpx;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册