diff --git a/sourcecode/alipay/default/app.acss b/sourcecode/alipay/default/app.acss
index 405c153a85c8370ffe5825fe04de702840579070..5b3b048122505065f77e33b7b4886d4a01bb0201 100644
--- a/sourcecode/alipay/default/app.acss
+++ b/sourcecode/alipay/default/app.acss
@@ -92,6 +92,7 @@ textarea {
.dis-none { display: none; }
.dis-block { display: block; }
.dis-inline { display: inline; }
+.va-m { vertical-align: middle; }
.cr-main { color: #d2364c; }
.cr-666 { color: #666; }
@@ -435,6 +436,25 @@ textarea {
/**
* 公共样式
*/
+.margin-xs {
+ margin: 5rpx;
+}
+.margin-sm {
+ margin: 10rpx;
+}
+.margin, .margin-default {
+ margin: 15rpx;
+}
+.margin-lg {
+ margin: 20rpx;
+}
+.margin-xl {
+ margin: 25rpx;
+}
+.margin-xxl {
+ margin: 30rpx;
+}
+
.margin-top-xs {
margin-top: 5rpx;
}
@@ -511,6 +531,26 @@ textarea {
margin-bottom: 30rpx;
}
+
+.padding-xs {
+ padding: 5rpx;
+}
+.padding-sm {
+ padding: 10rpx;
+}
+.padding, .padding-default {
+ padding: 15rpx;
+}
+.padding-lg {
+ padding: 20rpx;
+}
+.padding-xl {
+ padding: 25rpx;
+}
+.padding-xxl {
+ padding: 30rpx;
+}
+
.padding-top-xs {
padding-top: 5rpx;
}
diff --git a/sourcecode/alipay/default/pages/goods-detail/goods-detail.acss b/sourcecode/alipay/default/pages/goods-detail/goods-detail.acss
index d63a0f07271ab66e8f5107f13e4edc60701b9a31..f542082d57e8aad85a0bd8bba086144ac8e41b88 100644
--- a/sourcecode/alipay/default/pages/goods-detail/goods-detail.acss
+++ b/sourcecode/alipay/default/pages/goods-detail/goods-detail.acss
@@ -443,4 +443,65 @@
}
.goods-panel-container view:not(:first-child) {
border-top: 1px dashed #fff1f2;
+}
+
+/**
+ * 购买记录 - 插件
+ */
+.plugins-salerecords-tips,
+.plugins-salerecords-tips-top-left,
+.plugins-salerecords-tips-top-right,
+.plugins-salerecords-tips-bottom-left,
+.plugins-salerecords-tips-bottom-right,
+.plugins-salerecords-tips-top-center,
+.plugins-salerecords-tips-bottom-center {
+ position: fixed;
+ left: calc(50% - 170rpx);
+ top: 50%;
+ background: rgb(0 0 0 / 60%);
+ border-radius: 60rpx;
+ padding: 8rpx 20rpx;
+ color: #fff;
+ z-index: 110;
+ -webkit-box-shadow: 0 8px 10px rgb(0 0 0 / 20%);
+ -moz-box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 8px 10px rgb(0 0 0 / 20%);
+}
+.plugins-salerecords-tips image ,
+.plugins-salerecords-tips-top-left image ,
+.plugins-salerecords-tips-top-right image ,
+.plugins-salerecords-tips-bottom-left image ,
+.plugins-salerecords-tips-bottom-right image,
+.plugins-salerecords-tips-top-center image,
+.plugins-salerecords-tips-bottom-center image {
+ width: 50rpx;
+ height: 50rpx;
+ border-radius: 50%;
+}
+.plugins-salerecords-tips-top-left {
+ left: 5%;
+ top: 5%;
+}
+.plugins-salerecords-tips-top-right {
+ right: 5%;
+ top: 5%;
+ left: auto;
+}
+.plugins-salerecords-tips-bottom-left {
+ left: 5%;
+ bottom: 10%;
+ top: auto;
+}
+.plugins-salerecords-tips-bottom-right {
+ right: 5%;
+ bottom: 10%;
+ left: auto;
+ top: auto;
+}
+.plugins-salerecords-tips-top-center {
+ top: 5%;
+}
+.plugins-salerecords-tips-bottom-center {
+ bottom: 10%;
+ top: auto;
}
\ No newline at end of file
diff --git a/sourcecode/alipay/default/pages/goods-detail/goods-detail.axml b/sourcecode/alipay/default/pages/goods-detail/goods-detail.axml
index 74e5bbd7d5f93fb7c219c634d086078016654c62..3147694c6dea93b6c9aa5fc19a800674eb162dd3 100644
--- a/sourcecode/alipay/default/pages/goods-detail/goods-detail.axml
+++ b/sourcecode/alipay/default/pages/goods-detail/goods-detail.axml
@@ -200,7 +200,7 @@
-
+
+
+
+
+
+ {{plugins_salerecords_tips_content.tips}}
+
diff --git a/sourcecode/alipay/default/pages/goods-detail/goods-detail.js b/sourcecode/alipay/default/pages/goods-detail/goods-detail.js
index fe4c8e289db514efdb37b6e24cb0552dccdbaaef..4add399202db84d500724cbaa0d66c77494ac32d 100644
--- a/sourcecode/alipay/default/pages/goods-detail/goods-detail.js
+++ b/sourcecode/alipay/default/pages/goods-detail/goods-detail.js
@@ -59,6 +59,12 @@ Page({
plugins_coupon_data: null,
temp_coupon_receive_index: null,
temp_coupon_receive_value: null,
+
+ // 购买记录
+ plugins_salerecords_data: null,
+ plugins_salerecords_timer: null,
+ plugins_salerecords_tips_content: null,
+ plugins_salerecords_tips_ent: '',
},
onLoad(params) {
@@ -160,6 +166,8 @@ Page({
plugins_coupon_data: data.plugins_coupon_data || null,
quick_nav_cart_count: data.common_cart_total || 0,
+
+ plugins_salerecords_data: ((data.plugins_salerecords_data || null) == null || data.plugins_salerecords_data.length <= 0) ? null : data.plugins_salerecords_data,
});
// 限时秒杀倒计时
@@ -184,6 +192,9 @@ Page({
// 不能选择规格处理
this.goods_specifications_choose_handle_dont(0);
+
+ // 购买记录提示
+ this.plugins_salerecords_tips_handle();
} else {
self.setData({
data_bottom_line_status: false,
@@ -760,10 +771,50 @@ Page({
}
},
+ // 购买记录提示处理
+ plugins_salerecords_tips_handle() {
+ // 销毁之前的任务
+ clearInterval(this.data.plugins_salerecords_timer);
+
+ // 是否存在数据
+ var data = this.data.plugins_salerecords_data || null;
+ if(data != null && (data.data || null) != null && data.data.length > 0)
+ {
+ var self = this;
+ var base = data.base || null;
+ var location = (base == null || (base.goods_detail_tips_location || null) == null) ? '' : '-'+base.goods_detail_tips_location;
+ var pause = (base == null ? 5 : (base.goods_detail_time_pause || 5))*1000;
+ var interval = (base == null ? 10 : (base.goods_detail_time_interval || 10))*1000;
+ var index = 0;
+ var list = data.data;
+ var count = list.length;
+ var timer = setInterval(function()
+ {
+ self.setData({plugins_salerecords_tips_content: list[index]});
+ setTimeout(function()
+ {
+ self.setData({plugins_salerecords_tips_content: null});
+ }, pause);
+
+ // 索引处理
+ index++;
+ if(index >= count)
+ {
+ index = 0;
+ }
+ }, interval);
+ self.setData({
+ plugins_salerecords_timer: timer,
+ plugins_salerecords_tips_ent: location
+ });
+ }
+ },
+
// 页面销毁时执行
onUnload: function () {
clearInterval(this.data.plugins_limitedtimediscount_timer);
clearInterval(this.data.plugins_limitedtimediscount_timers);
+ clearInterval(this.data.plugins_salerecords_timer);
},
// 优惠劵领取事件
diff --git a/sourcecode/alipay/default/pages/index/index.acss b/sourcecode/alipay/default/pages/index/index.acss
index 7874e073a2015391bfe97d2caf24cead5810dae0..26e8160d2d696f60b899473416b594f47479d453 100644
--- a/sourcecode/alipay/default/pages/index/index.acss
+++ b/sourcecode/alipay/default/pages/index/index.acss
@@ -102,7 +102,7 @@
/*
* 限时秒杀 - 插件
*/
- .limitedtimediscount {
+.limitedtimediscount {
background: #fff;
padding: 5rpx 10rpx 20rpx 10rpx;
margin-bottom: 20rpx;
@@ -200,4 +200,22 @@
position: absolute;
right: 15rpx;
bottom: 15rpx;
+}
+
+/**
+ * 购买记录 - 插件
+ */
+.plugins-salerecords image {
+ width: 50rpx !important;
+ height: 50rpx !important;
+ border-radius: 50%;
+}
+.plugins-salerecords .item-content {
+ width: 24%;
+}
+.plugins-salerecords .item-content:nth-child(1) {
+ width: 36%;
+}
+.plugins-salerecords .item-content:nth-child(2) {
+ width: 40%;
}
\ No newline at end of file
diff --git a/sourcecode/alipay/default/pages/index/index.axml b/sourcecode/alipay/default/pages/index/index.axml
index 676749e5a5915ded21971f7351a6dedb696773de..8adafc5c195699ee8de63207fb597baae8dc4d77 100644
--- a/sourcecode/alipay/default/pages/index/index.axml
+++ b/sourcecode/alipay/default/pages/index/index.axml
@@ -59,6 +59,29 @@
+
+
+
+
+
+ {{plugins_salerecords_data.base.home_bottom_title || '最新购买'}}
+
+
+
+
+ {{item.user.user_name_view}}
+ - {{item.user.province}}
+
+
+
+
+ {{item.title}}
+
+
+ {{item.add_time}}
+
+
+
diff --git a/sourcecode/alipay/default/pages/index/index.js b/sourcecode/alipay/default/pages/index/index.js
index eaa5fd1ac9dcdae3baf7f9b67b02f5791ae669b4..0d9b047688aa4813fe3efcb6068e6baa7ae16c1c 100644
--- a/sourcecode/alipay/default/pages/index/index.js
+++ b/sourcecode/alipay/default/pages/index/index.js
@@ -25,6 +25,9 @@ Page({
plugins_limitedtimediscount_timer_title: '距离结束',
plugins_limitedtimediscount_is_show_time: true,
plugins_limitedtimediscount_timer: null,
+
+ // 购买记录插件
+ plugins_salerecords_data: null,
},
onShow() {
@@ -89,6 +92,7 @@ Page({
data_list_loding_status: data.data_list.length == 0 ? 0 : 3,
plugins_limitedtimediscount_data: data.plugins_limitedtimediscount_data || null,
plugins_limitedtimediscount_is_valid: ((data.plugins_limitedtimediscount_data || null) != null && (data.plugins_limitedtimediscount_data.is_valid || 0) == 1) ? 1 : 0,
+ plugins_salerecords_data: ((data.plugins_salerecords_data || null) == null || data.plugins_salerecords_data.length <= 0) ? null : data.plugins_salerecords_data,
});
// 导航购物车处理
diff --git a/sourcecode/baidu/default/app.css b/sourcecode/baidu/default/app.css
index 00105491bd541a5a5655253c4338ad15f88f2dc6..a1f389942c143f8c315c1582f2704491f532a3a6 100755
--- a/sourcecode/baidu/default/app.css
+++ b/sourcecode/baidu/default/app.css
@@ -102,6 +102,7 @@ textarea {
.dis-none { display: none; }
.dis-block { display: block; }
.dis-inline { display: inline; }
+.va-m { vertical-align: middle; }
.cr-main { color: #d2364c; }
.cr-666 { color: #666; }
@@ -499,6 +500,25 @@ button[disabled].bg-primary {
/**
* 公共样式
*/
+.margin-xs {
+ margin: 5rpx;
+}
+.margin-sm {
+ margin: 10rpx;
+}
+.margin, .margin-default {
+ margin: 15rpx;
+}
+.margin-lg {
+ margin: 20rpx;
+}
+.margin-xl {
+ margin: 25rpx;
+}
+.margin-xxl {
+ margin: 30rpx;
+}
+
.margin-top-xs {
margin-top: 5rpx;
}
@@ -576,6 +596,25 @@ button[disabled].bg-primary {
}
+.padding-xs {
+ padding: 5rpx;
+}
+.padding-sm {
+ padding: 10rpx;
+}
+.padding, .padding-default {
+ padding: 15rpx;
+}
+.padding-lg {
+ padding: 20rpx;
+}
+.padding-xl {
+ padding: 25rpx;
+}
+.padding-xxl {
+ padding: 30rpx;
+}
+
.padding-top-xs {
padding-top: 5rpx;
}
diff --git a/sourcecode/baidu/default/pages/goods-detail/goods-detail.css b/sourcecode/baidu/default/pages/goods-detail/goods-detail.css
index 2d09d18ea5639a3f1594b5a425947ddedc506ba7..4b35fceae93ef812bf9bfd05fcff69bbdf34be9f 100755
--- a/sourcecode/baidu/default/pages/goods-detail/goods-detail.css
+++ b/sourcecode/baidu/default/pages/goods-detail/goods-detail.css
@@ -442,4 +442,65 @@
}
.goods-panel-container view:not(:first-child) {
border-top: 1px dashed #fff1f2;
+}
+
+/**
+ * 购买记录 - 插件
+ */
+.plugins-salerecords-tips,
+.plugins-salerecords-tips-top-left,
+.plugins-salerecords-tips-top-right,
+.plugins-salerecords-tips-bottom-left,
+.plugins-salerecords-tips-bottom-right,
+.plugins-salerecords-tips-top-center,
+.plugins-salerecords-tips-bottom-center {
+ position: fixed;
+ left: calc(50% - 170rpx);
+ top: 50%;
+ background: rgb(0 0 0 / 60%);
+ border-radius: 60rpx;
+ padding: 8rpx 20rpx;
+ color: #fff;
+ z-index: 110;
+ -webkit-box-shadow: 0 8px 10px rgb(0 0 0 / 20%);
+ -moz-box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 8px 10px rgb(0 0 0 / 20%);
+}
+.plugins-salerecords-tips image ,
+.plugins-salerecords-tips-top-left image ,
+.plugins-salerecords-tips-top-right image ,
+.plugins-salerecords-tips-bottom-left image ,
+.plugins-salerecords-tips-bottom-right image,
+.plugins-salerecords-tips-top-center image,
+.plugins-salerecords-tips-bottom-center image {
+ width: 50rpx;
+ height: 50rpx;
+ border-radius: 50%;
+}
+.plugins-salerecords-tips-top-left {
+ left: 5%;
+ top: 5%;
+}
+.plugins-salerecords-tips-top-right {
+ right: 5%;
+ top: 5%;
+ left: auto;
+}
+.plugins-salerecords-tips-bottom-left {
+ left: 5%;
+ bottom: 10%;
+ top: auto;
+}
+.plugins-salerecords-tips-bottom-right {
+ right: 5%;
+ bottom: 10%;
+ left: auto;
+ top: auto;
+}
+.plugins-salerecords-tips-top-center {
+ top: 5%;
+}
+.plugins-salerecords-tips-bottom-center {
+ bottom: 10%;
+ top: auto;
}
\ No newline at end of file
diff --git a/sourcecode/baidu/default/pages/goods-detail/goods-detail.js b/sourcecode/baidu/default/pages/goods-detail/goods-detail.js
index fcef7b82530d8748713e779a776febcf54353649..74edaedad0537ace84c54d21c2aced572c840a73 100755
--- a/sourcecode/baidu/default/pages/goods-detail/goods-detail.js
+++ b/sourcecode/baidu/default/pages/goods-detail/goods-detail.js
@@ -53,6 +53,12 @@ Page({
plugins_coupon_data: null,
temp_coupon_receive_index: null,
temp_coupon_receive_value: null,
+
+ // 购买记录
+ plugins_salerecords_data: null,
+ plugins_salerecords_timer: null,
+ plugins_salerecords_tips_content: null,
+ plugins_salerecords_tips_ent: '',
},
onLoad(params) {
@@ -144,6 +150,8 @@ Page({
plugins_coupon_data: data.plugins_coupon_data || null,
quick_nav_cart_count: data.common_cart_total || 0,
+
+ plugins_salerecords_data: ((data.plugins_salerecords_data || null) == null || data.plugins_salerecords_data.length <= 0) ? null : data.plugins_salerecords_data,
});
// 限时秒杀倒计时
@@ -158,6 +166,9 @@ Page({
// 不能选择规格处理
this.goods_specifications_choose_handle_dont(0);
+ // 购买记录提示
+ this.plugins_salerecords_tips_handle();
+
// 页面信息设置
this.set_page_info();
} else {
@@ -690,10 +701,50 @@ Page({
}
},
+ // 购买记录提示处理
+ plugins_salerecords_tips_handle() {
+ // 销毁之前的任务
+ clearInterval(this.data.plugins_salerecords_timer);
+
+ // 是否存在数据
+ var data = this.data.plugins_salerecords_data || null;
+ if(data != null && (data.data || null) != null && data.data.length > 0)
+ {
+ var self = this;
+ var base = data.base || null;
+ var location = (base == null || (base.goods_detail_tips_location || null) == null) ? '' : '-'+base.goods_detail_tips_location;
+ var pause = (base == null ? 5 : (base.goods_detail_time_pause || 5))*1000;
+ var interval = (base == null ? 10 : (base.goods_detail_time_interval || 10))*1000;
+ var index = 0;
+ var list = data.data;
+ var count = list.length;
+ var timer = setInterval(function()
+ {
+ self.setData({plugins_salerecords_tips_content: list[index]});
+ setTimeout(function()
+ {
+ self.setData({plugins_salerecords_tips_content: null});
+ }, pause);
+
+ // 索引处理
+ index++;
+ if(index >= count)
+ {
+ index = 0;
+ }
+ }, interval);
+ self.setData({
+ plugins_salerecords_timer: timer,
+ plugins_salerecords_tips_ent: location
+ });
+ }
+ },
+
// 页面销毁时执行
onUnload: function () {
clearInterval(this.data.plugins_limitedtimediscount_timer);
clearInterval(this.data.plugins_limitedtimediscount_timers);
+ clearInterval(this.data.plugins_salerecords_timer);
},
// 优惠劵领取事件
diff --git a/sourcecode/baidu/default/pages/goods-detail/goods-detail.swan b/sourcecode/baidu/default/pages/goods-detail/goods-detail.swan
index 9b17d95b4d9e7f737afe6eb96d9f216ddc7cdb06..38f72319cdac6f9263d7a9efcc7b01bb11951696 100755
--- a/sourcecode/baidu/default/pages/goods-detail/goods-detail.swan
+++ b/sourcecode/baidu/default/pages/goods-detail/goods-detail.swan
@@ -238,6 +238,12 @@
+
+
+
+
+ {{plugins_salerecords_tips_content.tips}}
+
diff --git a/sourcecode/baidu/default/pages/index/index.css b/sourcecode/baidu/default/pages/index/index.css
index a95eb50c0f07f4690b00604f88bff8fa18bf070a..b7fb2f0117346fbdbaed434ff11342e36f960385 100755
--- a/sourcecode/baidu/default/pages/index/index.css
+++ b/sourcecode/baidu/default/pages/index/index.css
@@ -102,7 +102,7 @@
/*
* 限时秒杀 - 插件
*/
- .limitedtimediscount {
+.limitedtimediscount {
background: #fff;
padding: 5rpx 10rpx 20rpx 10rpx;
margin-bottom: 20rpx;
@@ -200,4 +200,22 @@
position: absolute;
right: 15rpx;
bottom: 15rpx;
+}
+
+/**
+ * 购买记录 - 插件
+ */
+.plugins-salerecords image {
+ width: 50rpx !important;
+ height: 50rpx !important;
+ border-radius: 50%;
+}
+.plugins-salerecords .item-content {
+ width: 24%;
+}
+.plugins-salerecords .item-content:nth-child(1) {
+ width: 36%;
+}
+.plugins-salerecords .item-content:nth-child(2) {
+ width: 40%;
}
\ No newline at end of file
diff --git a/sourcecode/baidu/default/pages/index/index.js b/sourcecode/baidu/default/pages/index/index.js
index 1dbc8c52b756f26e9982a0db0d7288ebff431da6..55c9ac0388f931e55919fb0472bcc1179590fc1d 100755
--- a/sourcecode/baidu/default/pages/index/index.js
+++ b/sourcecode/baidu/default/pages/index/index.js
@@ -22,6 +22,9 @@ Page({
plugins_limitedtimediscount_timer_title: '距离结束',
plugins_limitedtimediscount_is_show_time: true,
plugins_limitedtimediscount_timer: null,
+
+ // 购买记录插件
+ plugins_salerecords_data: null,
},
onShow() {
@@ -77,6 +80,7 @@ Page({
data_list_loding_status: data.data_list.length == 0 ? 0 : 3,
plugins_limitedtimediscount_data: data.plugins_limitedtimediscount_data || null,
plugins_limitedtimediscount_is_valid: ((data.plugins_limitedtimediscount_data || null) != null && (data.plugins_limitedtimediscount_data.is_valid || 0) == 1) ? 1 : 0,
+ plugins_salerecords_data: ((data.plugins_salerecords_data || null) == null || data.plugins_salerecords_data.length <= 0) ? null : data.plugins_salerecords_data,
});
// 导航购物车处理
diff --git a/sourcecode/baidu/default/pages/index/index.swan b/sourcecode/baidu/default/pages/index/index.swan
index 241c2ab265082a25276e1ab4ef9835eca4a6d54e..a6ac609bc19aeebef9e82bafc22709326db741fb 100755
--- a/sourcecode/baidu/default/pages/index/index.swan
+++ b/sourcecode/baidu/default/pages/index/index.swan
@@ -59,6 +59,29 @@
+
+
+
+
+
+ {{plugins_salerecords_data.base.home_bottom_title || '最新购买'}}
+
+
+
+
+ {{item.user.user_name_view}}
+ - {{item.user.province}}
+
+
+
+
+ {{item.title}}
+
+
+ {{item.add_time}}
+
+
+
diff --git a/sourcecode/qq/default/app.qss b/sourcecode/qq/default/app.qss
index 6f60afd54e6f57fdba1cd634f1d49014ebf52ade..06c2155737ee7fad2301812e1c68e8cc3886e4bc 100755
--- a/sourcecode/qq/default/app.qss
+++ b/sourcecode/qq/default/app.qss
@@ -102,6 +102,7 @@ textarea {
.dis-none { display: none; }
.dis-block { display: block; }
.dis-inline { display: inline; }
+.va-m { vertical-align: middle; }
.cr-main { color: #d2364c; }
.cr-666 { color: #666; }
@@ -489,6 +490,25 @@ button[disabled].bg-primary {
/**
* 公共样式
*/
+.margin-xs {
+ margin: 5rpx;
+}
+.margin-sm {
+ margin: 10rpx;
+}
+.margin, .margin-default {
+ margin: 15rpx;
+}
+.margin-lg {
+ margin: 20rpx;
+}
+.margin-xl {
+ margin: 25rpx;
+}
+.margin-xxl {
+ margin: 30rpx;
+}
+
.margin-top-xs {
margin-top: 5rpx;
}
@@ -566,6 +586,25 @@ button[disabled].bg-primary {
}
+.padding-xs {
+ padding: 5rpx;
+}
+.padding-sm {
+ padding: 10rpx;
+}
+.padding, .padding-default {
+ padding: 15rpx;
+}
+.padding-lg {
+ padding: 20rpx;
+}
+.padding-xl {
+ padding: 25rpx;
+}
+.padding-xxl {
+ padding: 30rpx;
+}
+
.padding-top-xs {
padding-top: 5rpx;
}
diff --git a/sourcecode/qq/default/pages/goods-detail/goods-detail.js b/sourcecode/qq/default/pages/goods-detail/goods-detail.js
index cfef7e2b4cefba4bd0be83a0d356cb5258d916e8..027a4eef032e3432e6e9d18ceac3e5a312b495b0 100755
--- a/sourcecode/qq/default/pages/goods-detail/goods-detail.js
+++ b/sourcecode/qq/default/pages/goods-detail/goods-detail.js
@@ -53,6 +53,12 @@ Page({
plugins_coupon_data: null,
temp_coupon_receive_index: null,
temp_coupon_receive_value: null,
+
+ // 购买记录
+ plugins_salerecords_data: null,
+ plugins_salerecords_timer: null,
+ plugins_salerecords_tips_content: null,
+ plugins_salerecords_tips_ent: '',
},
onLoad(params) {
@@ -153,6 +159,8 @@ Page({
plugins_coupon_data: data.plugins_coupon_data || null,
quick_nav_cart_count: data.common_cart_total || 0,
+
+ plugins_salerecords_data: ((data.plugins_salerecords_data || null) == null || data.plugins_salerecords_data.length <= 0) ? null : data.plugins_salerecords_data,
});
// 限时秒杀倒计时
@@ -165,6 +173,9 @@ Page({
// 不能选择规格处理
this.goods_specifications_choose_handle_dont(0);
+
+ // 购买记录提示
+ this.plugins_salerecords_tips_handle();
} else {
self.setData({
data_bottom_line_status: false,
@@ -739,10 +750,50 @@ Page({
}
},
+ // 购买记录提示处理
+ plugins_salerecords_tips_handle() {
+ // 销毁之前的任务
+ clearInterval(this.data.plugins_salerecords_timer);
+
+ // 是否存在数据
+ var data = this.data.plugins_salerecords_data || null;
+ if(data != null && (data.data || null) != null && data.data.length > 0)
+ {
+ var self = this;
+ var base = data.base || null;
+ var location = (base == null || (base.goods_detail_tips_location || null) == null) ? '' : '-'+base.goods_detail_tips_location;
+ var pause = (base == null ? 5 : (base.goods_detail_time_pause || 5))*1000;
+ var interval = (base == null ? 10 : (base.goods_detail_time_interval || 10))*1000;
+ var index = 0;
+ var list = data.data;
+ var count = list.length;
+ var timer = setInterval(function()
+ {
+ self.setData({plugins_salerecords_tips_content: list[index]});
+ setTimeout(function()
+ {
+ self.setData({plugins_salerecords_tips_content: null});
+ }, pause);
+
+ // 索引处理
+ index++;
+ if(index >= count)
+ {
+ index = 0;
+ }
+ }, interval);
+ self.setData({
+ plugins_salerecords_timer: timer,
+ plugins_salerecords_tips_ent: location
+ });
+ }
+ },
+
// 页面销毁时执行
onUnload: function () {
clearInterval(this.data.plugins_limitedtimediscount_timer);
clearInterval(this.data.plugins_limitedtimediscount_timers);
+ clearInterval(this.data.plugins_salerecords_timer);
},
// 商品海报分享
diff --git a/sourcecode/qq/default/pages/goods-detail/goods-detail.qml b/sourcecode/qq/default/pages/goods-detail/goods-detail.qml
index 3c8a60af1d3e31b68422ad673ee4016ff5c9bca8..cad2a361c3feb61ba08493d0db432a90bee57df1 100755
--- a/sourcecode/qq/default/pages/goods-detail/goods-detail.qml
+++ b/sourcecode/qq/default/pages/goods-detail/goods-detail.qml
@@ -244,6 +244,12 @@
+
+
+
+
+ {{plugins_salerecords_tips_content.tips}}
+
diff --git a/sourcecode/qq/default/pages/goods-detail/goods-detail.qss b/sourcecode/qq/default/pages/goods-detail/goods-detail.qss
index 5aea9e17244de795d62eb9dcf132a3406b214f51..3ea04c2bfc1d9f235162c31ad3e5b4760a3d861c 100755
--- a/sourcecode/qq/default/pages/goods-detail/goods-detail.qss
+++ b/sourcecode/qq/default/pages/goods-detail/goods-detail.qss
@@ -438,4 +438,65 @@
}
.goods-panel-container view:not(:first-child) {
border-top: 1px dashed #fff1f2;
+}
+
+/**
+ * 购买记录 - 插件
+ */
+.plugins-salerecords-tips,
+.plugins-salerecords-tips-top-left,
+.plugins-salerecords-tips-top-right,
+.plugins-salerecords-tips-bottom-left,
+.plugins-salerecords-tips-bottom-right,
+.plugins-salerecords-tips-top-center,
+.plugins-salerecords-tips-bottom-center {
+ position: fixed;
+ left: calc(50% - 170rpx);
+ top: 50%;
+ background: rgb(0 0 0 / 60%);
+ border-radius: 60rpx;
+ padding: 8rpx 20rpx;
+ color: #fff;
+ z-index: 110;
+ -webkit-box-shadow: 0 8px 10px rgb(0 0 0 / 20%);
+ -moz-box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 8px 10px rgb(0 0 0 / 20%);
+}
+.plugins-salerecords-tips image ,
+.plugins-salerecords-tips-top-left image ,
+.plugins-salerecords-tips-top-right image ,
+.plugins-salerecords-tips-bottom-left image ,
+.plugins-salerecords-tips-bottom-right image,
+.plugins-salerecords-tips-top-center image,
+.plugins-salerecords-tips-bottom-center image {
+ width: 50rpx;
+ height: 50rpx;
+ border-radius: 50%;
+}
+.plugins-salerecords-tips-top-left {
+ left: 5%;
+ top: 5%;
+}
+.plugins-salerecords-tips-top-right {
+ right: 5%;
+ top: 5%;
+ left: auto;
+}
+.plugins-salerecords-tips-bottom-left {
+ left: 5%;
+ bottom: 10%;
+ top: auto;
+}
+.plugins-salerecords-tips-bottom-right {
+ right: 5%;
+ bottom: 10%;
+ left: auto;
+ top: auto;
+}
+.plugins-salerecords-tips-top-center {
+ top: 5%;
+}
+.plugins-salerecords-tips-bottom-center {
+ bottom: 10%;
+ top: auto;
}
\ No newline at end of file
diff --git a/sourcecode/qq/default/pages/index/index.js b/sourcecode/qq/default/pages/index/index.js
index 26d5f77803b3a304927c122f86f10276d2f20842..659c04a8185b6d0a1375b4507c2fd478d704d614 100755
--- a/sourcecode/qq/default/pages/index/index.js
+++ b/sourcecode/qq/default/pages/index/index.js
@@ -22,6 +22,9 @@ Page({
plugins_limitedtimediscount_timer_title: '距离结束',
plugins_limitedtimediscount_is_show_time: true,
plugins_limitedtimediscount_timer: null,
+
+ // 购买记录插件
+ plugins_salerecords_data: null,
},
onShow() {
@@ -77,6 +80,7 @@ Page({
data_list_loding_status: data.data_list.length == 0 ? 0 : 3,
plugins_limitedtimediscount_data: data.plugins_limitedtimediscount_data || null,
plugins_limitedtimediscount_is_valid: ((data.plugins_limitedtimediscount_data || null) != null && (data.plugins_limitedtimediscount_data.is_valid || 0) == 1) ? 1 : 0,
+ plugins_salerecords_data: ((data.plugins_salerecords_data || null) == null || data.plugins_salerecords_data.length <= 0) ? null : data.plugins_salerecords_data,
});
// 导航购物车处理
diff --git a/sourcecode/qq/default/pages/index/index.qml b/sourcecode/qq/default/pages/index/index.qml
index 9153b9469d3e2885df50062ef4251362f64aa222..65067ea7105ecefe0490d92ae9aa62680ed058a2 100755
--- a/sourcecode/qq/default/pages/index/index.qml
+++ b/sourcecode/qq/default/pages/index/index.qml
@@ -59,6 +59,29 @@
+
+
+
+
+
+ {{plugins_salerecords_data.base.home_bottom_title || '最新购买'}}
+
+
+
+
+ {{item.user.user_name_view}}
+ - {{item.user.province}}
+
+
+
+
+ {{item.title}}
+
+
+ {{item.add_time}}
+
+
+
diff --git a/sourcecode/qq/default/pages/index/index.qss b/sourcecode/qq/default/pages/index/index.qss
index 629602236d4dd41757947fba8f9e3a07dd465549..af35e7495eaa35371dfa90ca49d1a792eda6b58f 100755
--- a/sourcecode/qq/default/pages/index/index.qss
+++ b/sourcecode/qq/default/pages/index/index.qss
@@ -102,7 +102,7 @@
/*
* 限时秒杀 - 插件
*/
- .limitedtimediscount {
+.limitedtimediscount {
background: #fff;
padding: 5rpx 10rpx 20rpx 10rpx;
margin-bottom: 20rpx;
@@ -200,4 +200,22 @@
position: absolute;
right: 15rpx;
bottom: 15rpx;
+}
+
+/**
+ * 购买记录 - 插件
+ */
+.plugins-salerecords image {
+ width: 50rpx !important;
+ height: 50rpx !important;
+ border-radius: 50%;
+}
+.plugins-salerecords .item-content {
+ width: 24%;
+}
+.plugins-salerecords .item-content:nth-child(1) {
+ width: 36%;
+}
+.plugins-salerecords .item-content:nth-child(2) {
+ width: 40%;
}
\ No newline at end of file
diff --git a/sourcecode/toutiao/default/app.ttss b/sourcecode/toutiao/default/app.ttss
index 89d765f1f8377f819783b2ce7b7221575064a961..a814b6befeaffd05f85f16d9932c8c7e553e59fa 100755
--- a/sourcecode/toutiao/default/app.ttss
+++ b/sourcecode/toutiao/default/app.ttss
@@ -103,6 +103,7 @@ textarea {
.dis-none { display: none; }
.dis-block { display: block; }
.dis-inline { display: inline; }
+.va-m { vertical-align: middle; }
.cr-main { color: #d2364c; }
.cr-666 { color: #666; }
@@ -490,6 +491,25 @@ button[disabled].bg-primary {
/**
* 公共样式
*/
+.margin-xs {
+ margin: 5rpx;
+}
+.margin-sm {
+ margin: 10rpx;
+}
+.margin, .margin-default {
+ margin: 15rpx;
+}
+.margin-lg {
+ margin: 20rpx;
+}
+.margin-xl {
+ margin: 25rpx;
+}
+.margin-xxl {
+ margin: 30rpx;
+}
+
.margin-top-xs {
margin-top: 5rpx;
}
@@ -567,6 +587,25 @@ button[disabled].bg-primary {
}
+.padding-xs {
+ padding: 5rpx;
+}
+.padding-sm {
+ padding: 10rpx;
+}
+.padding, .padding-default {
+ padding: 15rpx;
+}
+.padding-lg {
+ padding: 20rpx;
+}
+.padding-xl {
+ padding: 25rpx;
+}
+.padding-xxl {
+ padding: 30rpx;
+}
+
.padding-top-xs {
padding-top: 5rpx;
}
diff --git a/sourcecode/toutiao/default/pages/goods-detail/goods-detail.js b/sourcecode/toutiao/default/pages/goods-detail/goods-detail.js
index d0743e7c1781fc291b867dafac654b7814cff754..9b2cd5e96eaae308ba053b525457ee321570bc7c 100755
--- a/sourcecode/toutiao/default/pages/goods-detail/goods-detail.js
+++ b/sourcecode/toutiao/default/pages/goods-detail/goods-detail.js
@@ -53,6 +53,12 @@ Page({
plugins_coupon_data: null,
temp_coupon_receive_index: null,
temp_coupon_receive_value: null,
+
+ // 购买记录
+ plugins_salerecords_data: null,
+ plugins_salerecords_timer: null,
+ plugins_salerecords_tips_content: null,
+ plugins_salerecords_tips_ent: '',
},
onLoad(params) {
@@ -153,6 +159,8 @@ Page({
plugins_coupon_data: data.plugins_coupon_data || null,
quick_nav_cart_count: data.common_cart_total || 0,
+
+ plugins_salerecords_data: ((data.plugins_salerecords_data || null) == null || data.plugins_salerecords_data.length <= 0) ? null : data.plugins_salerecords_data,
});
// 限时秒杀倒计时
@@ -165,6 +173,9 @@ Page({
// 不能选择规格处理
this.goods_specifications_choose_handle_dont(0);
+
+ // 购买记录提示
+ this.plugins_salerecords_tips_handle();
} else {
self.setData({
data_bottom_line_status: false,
@@ -739,10 +750,50 @@ Page({
}
},
+ // 购买记录提示处理
+ plugins_salerecords_tips_handle() {
+ // 销毁之前的任务
+ clearInterval(this.data.plugins_salerecords_timer);
+
+ // 是否存在数据
+ var data = this.data.plugins_salerecords_data || null;
+ if(data != null && (data.data || null) != null && data.data.length > 0)
+ {
+ var self = this;
+ var base = data.base || null;
+ var location = (base == null || (base.goods_detail_tips_location || null) == null) ? '' : '-'+base.goods_detail_tips_location;
+ var pause = (base == null ? 5 : (base.goods_detail_time_pause || 5))*1000;
+ var interval = (base == null ? 10 : (base.goods_detail_time_interval || 10))*1000;
+ var index = 0;
+ var list = data.data;
+ var count = list.length;
+ var timer = setInterval(function()
+ {
+ self.setData({plugins_salerecords_tips_content: list[index]});
+ setTimeout(function()
+ {
+ self.setData({plugins_salerecords_tips_content: null});
+ }, pause);
+
+ // 索引处理
+ index++;
+ if(index >= count)
+ {
+ index = 0;
+ }
+ }, interval);
+ self.setData({
+ plugins_salerecords_timer: timer,
+ plugins_salerecords_tips_ent: location
+ });
+ }
+ },
+
// 页面销毁时执行
onUnload: function () {
clearInterval(this.data.plugins_limitedtimediscount_timer);
clearInterval(this.data.plugins_limitedtimediscount_timers);
+ clearInterval(this.data.plugins_salerecords_timer);
},
// 商品海报分享
diff --git a/sourcecode/toutiao/default/pages/goods-detail/goods-detail.ttml b/sourcecode/toutiao/default/pages/goods-detail/goods-detail.ttml
index 4a37afe5f246d2d456f786a4d1d5264afd26d542..91d3e91fbb33e22518d95e5e89036a77a8a37eba 100755
--- a/sourcecode/toutiao/default/pages/goods-detail/goods-detail.ttml
+++ b/sourcecode/toutiao/default/pages/goods-detail/goods-detail.ttml
@@ -244,6 +244,12 @@
+
+
+
+
+ {{plugins_salerecords_tips_content.tips}}
+
diff --git a/sourcecode/toutiao/default/pages/goods-detail/goods-detail.ttss b/sourcecode/toutiao/default/pages/goods-detail/goods-detail.ttss
index 5aea9e17244de795d62eb9dcf132a3406b214f51..3ea04c2bfc1d9f235162c31ad3e5b4760a3d861c 100755
--- a/sourcecode/toutiao/default/pages/goods-detail/goods-detail.ttss
+++ b/sourcecode/toutiao/default/pages/goods-detail/goods-detail.ttss
@@ -438,4 +438,65 @@
}
.goods-panel-container view:not(:first-child) {
border-top: 1px dashed #fff1f2;
+}
+
+/**
+ * 购买记录 - 插件
+ */
+.plugins-salerecords-tips,
+.plugins-salerecords-tips-top-left,
+.plugins-salerecords-tips-top-right,
+.plugins-salerecords-tips-bottom-left,
+.plugins-salerecords-tips-bottom-right,
+.plugins-salerecords-tips-top-center,
+.plugins-salerecords-tips-bottom-center {
+ position: fixed;
+ left: calc(50% - 170rpx);
+ top: 50%;
+ background: rgb(0 0 0 / 60%);
+ border-radius: 60rpx;
+ padding: 8rpx 20rpx;
+ color: #fff;
+ z-index: 110;
+ -webkit-box-shadow: 0 8px 10px rgb(0 0 0 / 20%);
+ -moz-box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 8px 10px rgb(0 0 0 / 20%);
+}
+.plugins-salerecords-tips image ,
+.plugins-salerecords-tips-top-left image ,
+.plugins-salerecords-tips-top-right image ,
+.plugins-salerecords-tips-bottom-left image ,
+.plugins-salerecords-tips-bottom-right image,
+.plugins-salerecords-tips-top-center image,
+.plugins-salerecords-tips-bottom-center image {
+ width: 50rpx;
+ height: 50rpx;
+ border-radius: 50%;
+}
+.plugins-salerecords-tips-top-left {
+ left: 5%;
+ top: 5%;
+}
+.plugins-salerecords-tips-top-right {
+ right: 5%;
+ top: 5%;
+ left: auto;
+}
+.plugins-salerecords-tips-bottom-left {
+ left: 5%;
+ bottom: 10%;
+ top: auto;
+}
+.plugins-salerecords-tips-bottom-right {
+ right: 5%;
+ bottom: 10%;
+ left: auto;
+ top: auto;
+}
+.plugins-salerecords-tips-top-center {
+ top: 5%;
+}
+.plugins-salerecords-tips-bottom-center {
+ bottom: 10%;
+ top: auto;
}
\ No newline at end of file
diff --git a/sourcecode/toutiao/default/pages/index/index.js b/sourcecode/toutiao/default/pages/index/index.js
index 1bfa02a1cebea3304c0d51c9a8a9152eea8a1ea6..c4a3cfc1bb4e8873b883d0df5aa630bf53ed298e 100755
--- a/sourcecode/toutiao/default/pages/index/index.js
+++ b/sourcecode/toutiao/default/pages/index/index.js
@@ -22,6 +22,9 @@ Page({
plugins_limitedtimediscount_timer_title: '距离结束',
plugins_limitedtimediscount_is_show_time: true,
plugins_limitedtimediscount_timer: null,
+
+ // 购买记录插件
+ plugins_salerecords_data: null,
},
onShow() {
@@ -77,6 +80,7 @@ Page({
data_list_loding_status: data.data_list.length == 0 ? 0 : 3,
plugins_limitedtimediscount_data: data.plugins_limitedtimediscount_data || null,
plugins_limitedtimediscount_is_valid: ((data.plugins_limitedtimediscount_data || null) != null && (data.plugins_limitedtimediscount_data.is_valid || 0) == 1) ? 1 : 0,
+ plugins_salerecords_data: ((data.plugins_salerecords_data || null) == null || data.plugins_salerecords_data.length <= 0) ? null : data.plugins_salerecords_data,
});
// 导航购物车处理
diff --git a/sourcecode/toutiao/default/pages/index/index.ttml b/sourcecode/toutiao/default/pages/index/index.ttml
index 070b40b4f47b58f68aea0ed45ded7b8ca9dfa40a..d4e9f714c0c9de4bbc5d4b56f5e765f8748d0727 100755
--- a/sourcecode/toutiao/default/pages/index/index.ttml
+++ b/sourcecode/toutiao/default/pages/index/index.ttml
@@ -62,6 +62,29 @@
+
+
+
+
+
+ {{plugins_salerecords_data.base.home_bottom_title || '最新购买'}}
+
+
+
+
+ {{item.user.user_name_view}}
+ - {{item.user.province}}
+
+
+
+
+ {{item.title}}
+
+
+ {{item.add_time}}
+
+
+
diff --git a/sourcecode/toutiao/default/pages/index/index.ttss b/sourcecode/toutiao/default/pages/index/index.ttss
index 629602236d4dd41757947fba8f9e3a07dd465549..af35e7495eaa35371dfa90ca49d1a792eda6b58f 100755
--- a/sourcecode/toutiao/default/pages/index/index.ttss
+++ b/sourcecode/toutiao/default/pages/index/index.ttss
@@ -102,7 +102,7 @@
/*
* 限时秒杀 - 插件
*/
- .limitedtimediscount {
+.limitedtimediscount {
background: #fff;
padding: 5rpx 10rpx 20rpx 10rpx;
margin-bottom: 20rpx;
@@ -200,4 +200,22 @@
position: absolute;
right: 15rpx;
bottom: 15rpx;
+}
+
+/**
+ * 购买记录 - 插件
+ */
+.plugins-salerecords image {
+ width: 50rpx !important;
+ height: 50rpx !important;
+ border-radius: 50%;
+}
+.plugins-salerecords .item-content {
+ width: 24%;
+}
+.plugins-salerecords .item-content:nth-child(1) {
+ width: 36%;
+}
+.plugins-salerecords .item-content:nth-child(2) {
+ width: 40%;
}
\ No newline at end of file
diff --git a/sourcecode/weixin/default/app.wxss b/sourcecode/weixin/default/app.wxss
index 2be7a7cf8f8e3b56401047340d291c0b21b19a6e..06c2155737ee7fad2301812e1c68e8cc3886e4bc 100755
--- a/sourcecode/weixin/default/app.wxss
+++ b/sourcecode/weixin/default/app.wxss
@@ -102,6 +102,7 @@ textarea {
.dis-none { display: none; }
.dis-block { display: block; }
.dis-inline { display: inline; }
+.va-m { vertical-align: middle; }
.cr-main { color: #d2364c; }
.cr-666 { color: #666; }
@@ -489,6 +490,25 @@ button[disabled].bg-primary {
/**
* 公共样式
*/
+.margin-xs {
+ margin: 5rpx;
+}
+.margin-sm {
+ margin: 10rpx;
+}
+.margin, .margin-default {
+ margin: 15rpx;
+}
+.margin-lg {
+ margin: 20rpx;
+}
+.margin-xl {
+ margin: 25rpx;
+}
+.margin-xxl {
+ margin: 30rpx;
+}
+
.margin-top-xs {
margin-top: 5rpx;
}
@@ -565,6 +585,26 @@ button[disabled].bg-primary {
margin-bottom: 30rpx;
}
+
+.padding-xs {
+ padding: 5rpx;
+}
+.padding-sm {
+ padding: 10rpx;
+}
+.padding, .padding-default {
+ padding: 15rpx;
+}
+.padding-lg {
+ padding: 20rpx;
+}
+.padding-xl {
+ padding: 25rpx;
+}
+.padding-xxl {
+ padding: 30rpx;
+}
+
.padding-top-xs {
padding-top: 5rpx;
}
diff --git a/sourcecode/weixin/default/pages/goods-detail/goods-detail.js b/sourcecode/weixin/default/pages/goods-detail/goods-detail.js
index 3cf5856e47edd9b61c402d55d9e189a822a69ce7..887d1496d1fb9248c70b444b63736f0ec7690f78 100755
--- a/sourcecode/weixin/default/pages/goods-detail/goods-detail.js
+++ b/sourcecode/weixin/default/pages/goods-detail/goods-detail.js
@@ -66,6 +66,12 @@ Page({
plugins_coupon_data: null,
temp_coupon_receive_index: null,
temp_coupon_receive_value: null,
+
+ // 购买记录
+ plugins_salerecords_data: null,
+ plugins_salerecords_timer: null,
+ plugins_salerecords_tips_content: null,
+ plugins_salerecords_tips_ent: '',
},
onLoad(params) {
@@ -171,6 +177,8 @@ Page({
plugins_coupon_data: data.plugins_coupon_data || null,
quick_nav_cart_count: data.common_cart_total || 0,
+
+ plugins_salerecords_data: ((data.plugins_salerecords_data || null) == null || data.plugins_salerecords_data.length <= 0) ? null : data.plugins_salerecords_data,
});
// 限时秒杀倒计时
@@ -184,6 +192,9 @@ Page({
// 不能选择规格处理
this.goods_specifications_choose_handle_dont(0);
+
+ // 购买记录提示
+ this.plugins_salerecords_tips_handle();
} else {
self.setData({
data_bottom_line_status: false,
@@ -768,10 +779,50 @@ Page({
}
},
+ // 购买记录提示处理
+ plugins_salerecords_tips_handle() {
+ // 销毁之前的任务
+ clearInterval(this.data.plugins_salerecords_timer);
+
+ // 是否存在数据
+ var data = this.data.plugins_salerecords_data || null;
+ if(data != null && (data.data || null) != null && data.data.length > 0)
+ {
+ var self = this;
+ var base = data.base || null;
+ var location = (base == null || (base.goods_detail_tips_location || null) == null) ? '' : '-'+base.goods_detail_tips_location;
+ var pause = (base == null ? 5 : (base.goods_detail_time_pause || 5))*1000;
+ var interval = (base == null ? 10 : (base.goods_detail_time_interval || 10))*1000;
+ var index = 0;
+ var list = data.data;
+ var count = list.length;
+ var timer = setInterval(function()
+ {
+ self.setData({plugins_salerecords_tips_content: list[index]});
+ setTimeout(function()
+ {
+ self.setData({plugins_salerecords_tips_content: null});
+ }, pause);
+
+ // 索引处理
+ index++;
+ if(index >= count)
+ {
+ index = 0;
+ }
+ }, interval);
+ self.setData({
+ plugins_salerecords_timer: timer,
+ plugins_salerecords_tips_ent: location
+ });
+ }
+ },
+
// 页面销毁时执行
onUnload: function () {
clearInterval(this.data.plugins_limitedtimediscount_timer);
clearInterval(this.data.plugins_limitedtimediscount_timers);
+ clearInterval(this.data.plugins_salerecords_timer);
},
// 商品海报分享
diff --git a/sourcecode/weixin/default/pages/goods-detail/goods-detail.wxml b/sourcecode/weixin/default/pages/goods-detail/goods-detail.wxml
index 2235dd0cd3c9f76f0d3923834e5fc1d739354c56..29fa83d59749a33f65687d8265dd9c748bb277be 100755
--- a/sourcecode/weixin/default/pages/goods-detail/goods-detail.wxml
+++ b/sourcecode/weixin/default/pages/goods-detail/goods-detail.wxml
@@ -271,6 +271,12 @@
+
+
+
+
+ {{plugins_salerecords_tips_content.tips}}
+
diff --git a/sourcecode/weixin/default/pages/goods-detail/goods-detail.wxss b/sourcecode/weixin/default/pages/goods-detail/goods-detail.wxss
index 56af35ec0064de0c24def1eff95e30bf68726b92..5c2b8c154cf56cafe35322074efa485aa8663825 100755
--- a/sourcecode/weixin/default/pages/goods-detail/goods-detail.wxss
+++ b/sourcecode/weixin/default/pages/goods-detail/goods-detail.wxss
@@ -437,4 +437,65 @@
}
.goods-panel-container view:not(:first-child) {
border-top: 1px dashed #fff1f2;
+}
+
+/**
+ * 购买记录 - 插件
+ */
+.plugins-salerecords-tips,
+.plugins-salerecords-tips-top-left,
+.plugins-salerecords-tips-top-right,
+.plugins-salerecords-tips-bottom-left,
+.plugins-salerecords-tips-bottom-right,
+.plugins-salerecords-tips-top-center,
+.plugins-salerecords-tips-bottom-center {
+ position: fixed;
+ left: calc(50% - 170rpx);
+ top: 50%;
+ background: rgb(0 0 0 / 60%);
+ border-radius: 60rpx;
+ padding: 8rpx 20rpx;
+ color: #fff;
+ z-index: 110;
+ -webkit-box-shadow: 0 8px 10px rgb(0 0 0 / 20%);
+ -moz-box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 8px 10px rgb(0 0 0 / 20%);
+}
+.plugins-salerecords-tips image ,
+.plugins-salerecords-tips-top-left image ,
+.plugins-salerecords-tips-top-right image ,
+.plugins-salerecords-tips-bottom-left image ,
+.plugins-salerecords-tips-bottom-right image,
+.plugins-salerecords-tips-top-center image,
+.plugins-salerecords-tips-bottom-center image {
+ width: 50rpx;
+ height: 50rpx;
+ border-radius: 50%;
+}
+.plugins-salerecords-tips-top-left {
+ left: 5%;
+ top: 5%;
+}
+.plugins-salerecords-tips-top-right {
+ right: 5%;
+ top: 5%;
+ left: auto;
+}
+.plugins-salerecords-tips-bottom-left {
+ left: 5%;
+ bottom: 10%;
+ top: auto;
+}
+.plugins-salerecords-tips-bottom-right {
+ right: 5%;
+ bottom: 10%;
+ left: auto;
+ top: auto;
+}
+.plugins-salerecords-tips-top-center {
+ top: 5%;
+}
+.plugins-salerecords-tips-bottom-center {
+ bottom: 10%;
+ top: auto;
}
\ No newline at end of file
diff --git a/sourcecode/weixin/default/pages/index/index.js b/sourcecode/weixin/default/pages/index/index.js
index c731eeeb9458cebda4c22511eb47c7b3a9989193..781716ea3e0638606187980dd36ea86d146e71ce 100755
--- a/sourcecode/weixin/default/pages/index/index.js
+++ b/sourcecode/weixin/default/pages/index/index.js
@@ -22,6 +22,9 @@ Page({
plugins_limitedtimediscount_timer_title: '距离结束',
plugins_limitedtimediscount_is_show_time: true,
plugins_limitedtimediscount_timer: null,
+
+ // 购买记录插件
+ plugins_salerecords_data: null,
},
onShow() {
@@ -80,6 +83,7 @@ Page({
data_list_loding_status: data.data_list.length == 0 ? 0 : 3,
plugins_limitedtimediscount_data: data.plugins_limitedtimediscount_data || null,
plugins_limitedtimediscount_is_valid: ((data.plugins_limitedtimediscount_data || null) != null && (data.plugins_limitedtimediscount_data.is_valid || 0) == 1) ? 1 : 0,
+ plugins_salerecords_data: ((data.plugins_salerecords_data || null) == null || data.plugins_salerecords_data.length <= 0) ? null : data.plugins_salerecords_data,
});
// 导航购物车处理
diff --git a/sourcecode/weixin/default/pages/index/index.wxml b/sourcecode/weixin/default/pages/index/index.wxml
index b39d842bf113b61619e1d5f3372e04c6667f3598..d33c96e1958a3246944b5648a357fb169bfc7a77 100755
--- a/sourcecode/weixin/default/pages/index/index.wxml
+++ b/sourcecode/weixin/default/pages/index/index.wxml
@@ -59,6 +59,29 @@
+
+
+
+
+
+ {{plugins_salerecords_data.base.home_bottom_title || '最新购买'}}
+
+
+
+
+ {{item.user.user_name_view}}
+ - {{item.user.province}}
+
+
+
+
+ {{item.title}}
+
+
+ {{item.add_time}}
+
+
+
diff --git a/sourcecode/weixin/default/pages/index/index.wxss b/sourcecode/weixin/default/pages/index/index.wxss
index 629602236d4dd41757947fba8f9e3a07dd465549..af35e7495eaa35371dfa90ca49d1a792eda6b58f 100755
--- a/sourcecode/weixin/default/pages/index/index.wxss
+++ b/sourcecode/weixin/default/pages/index/index.wxss
@@ -102,7 +102,7 @@
/*
* 限时秒杀 - 插件
*/
- .limitedtimediscount {
+.limitedtimediscount {
background: #fff;
padding: 5rpx 10rpx 20rpx 10rpx;
margin-bottom: 20rpx;
@@ -200,4 +200,22 @@
position: absolute;
right: 15rpx;
bottom: 15rpx;
+}
+
+/**
+ * 购买记录 - 插件
+ */
+.plugins-salerecords image {
+ width: 50rpx !important;
+ height: 50rpx !important;
+ border-radius: 50%;
+}
+.plugins-salerecords .item-content {
+ width: 24%;
+}
+.plugins-salerecords .item-content:nth-child(1) {
+ width: 36%;
+}
+.plugins-salerecords .item-content:nth-child(2) {
+ width: 40%;
}
\ No newline at end of file