第一次提交

This commit is contained in:
wangxiaowei
2025-06-11 10:21:51 +08:00
commit 52932d54b1
2341 changed files with 185283 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,10 @@
{
"navigationBarTitleText": "砍价详情",
"usingComponents": {
"countdown": "/components/countdown/countdown",
"spec": "/pages/plus/bargain/detail/popup/Spec",
"rule": "/pages/plus/bargain/detail/popup/Rule",
"mpservice": "/components/mpservice/Mpservice",
"guarantee": "/components/guarantee"
}
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,9 @@
.bargain-detail{padding-bottom:90rpx}.bargain-detail .product-pic,
.bargain-detail .product-pic .swiper,
.bargain-detail .product-pic image{width:750rpx;height:750rpx}.bargain-detail .price-wrap{display:flex;justify-content:space-between;align-items:center}.bargain-detail .price-wrap .left{display:flex;justify-content:flex-start;align-items:flex-end}.bargain-detail .price-wrap .new-price{color:#e2231a;font-size:30rpx}.bargain-detail .price-wrap .new-price .num{padding:0 4rpx;font-size:40rpx}.bargain-detail .price-wrap .old-price{margin-left:10rpx;font-size:24rpx;color:#999;text-decoration:line-through}.bargain-detail .product-name{padding:20rpx 0;font-size:32rpx;font-weight:700;color:#333}.bargain-detail .product-describe{padding:20rpx;font-size:24rpx;color:#999}.product-comment,
.product-content{margin-top:20rpx;background:#fff}.product-content .content-box ._p image{width:100%}.product-content .content-box{font-size:36rpx}.btns-wrap{position:fixed;height:100rpx;right:0;bottom:0;left:0;display:flex;background:#fff;align-items:center}.btns-wrap .icon-box{width:90rpx;height:90rpx}.btns-wrap .icon-box .iconfont{font-size:40rpx;color:#888}.btns-wrap .customer-service button{height:80rpx;background-color:#fff}.btns-wrap button,
.btns-wrap button:after{padding:0;margin:0;height:30rpx;line-height:30rpx;margin:0;padding:0;flex:1;border-radius:0;border:0}.btns-wrap .buy-alone{width:220rpx;height:80rpx;border-top-left-radius:40rpx;border-bottom-left-radius:40rpx;margin-left:10rpx}.btns-wrap .make-group{width:220rpx;height:80rpx;border-top-right-radius:40rpx;border-bottom-right-radius:40rpx;margin-right:10rpx}.btns-wrap .buy-alone button,
.btns-wrap .make-group button{font-size:26rpx;background:none}.btns-wrap .buy-alone,
.btns-wrap .buy-alone button{background:#f6ac0c}.btns-wrap .buy-alone text,
.btns-wrap .make-group text{color:#fff;font-size:32rpx}.btns-wrap .make-group,
.btns-wrap .make-group button{background:#8d60ff}.share-box{position:fixed;padding-right:10rpx;width:80rpx;height:80rpx;right:0;bottom:180rpx;display:flex;justify-content:center;align-items:center;border-radius:16rpx 0 0 16rpx;background:rgba(0,0,0,.8)}.share-box button{padding:0;background:0;line-height:60rpx}.share-box .iconfont{margin-bottom:10rpx;font-size:50rpx;color:#fff}.create-img{width:100%;padding:20rpx;box-sizing:border-box}.create-img image{width:100%}.create-img button{width:100%}.limited-spike{padding:0 35rpx;height:60rpx;color:#fff;border-radius:6rpx;background:linear-gradient(0deg,#ebe3ff,#eee6ff)}.limited-spike .left-name{font-size:24rpx;color:#5c1cff}.limited-spike .right{color:#5c1cff;font-size:24rpx}.limited-spike .right .box{height:40rpx;padding:4rpx;border-radius:8rpx;line-height:40rpx;text-align:center;background:#ebe3ff;color:#5c1cff}.limited-spike .right text{padding:0}.already-choice{padding:0 30rpx;background:#fff}.already-choice .center-content{line-height:90rpx}.shop_head_info{margin:20rpx;padding:30rpx;box-sizing:border-box;background-color:#fff;border-radius:12rpx}.shop_list_body_item_shop{width:100%;height:120rpx;display:flex;justify-content:space-between}.shop_list_body_item_shop_logo{width:120rpx;height:120rpx}.shop_list_body_item_shop_logo image{width:100%;height:100%;background-color:rgba(0,0,0,.1);border-radius:12rpx}.shop_list_body_item_shop_info{box-sizing:border-box;margin-left:20rpx;padding-top:0;display:flex;justify-content:space-between;flex-direction:column}.shop_list_body_item_shop_others{box-sizing:border-box;display:flex;justify-content:space-between;flex-direction:column;text-align:right;padding-top:0}.shop_list_body_item_shop_others button{width:160rpx;height:60rpx;border:1rpx solid #f6220c;border-radius:30rpx;line-height:60rpx;font-size:26rpx;font-family:PingFang SC;font-weight:500;color:#f6220c;text-align:center;padding:0;background-color:#fff}.pro_nameline{width:4rpx;height:24rpx;background-color:#f6220c;margin-right:12rpx}

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/plus/bargain/detail/popup/Rule"],{2514:function(n,t,e){"use strict";e.r(t);var u=e("dc30"),i=e.n(u);for(var o in u)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(o);t["default"]=i.a},"4f76":function(n,t,e){"use strict";e.r(t);var u=e("7b6f"),i=e("2514");for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);e("e0f6");var c=e("828b"),f=Object(c["a"])(i["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);t["default"]=f.exports},"7b6f":function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){}));var u=function(){var n=this.$createElement;this._self._c},i=[]},dc30:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={data:function(){return{openRule:!1}},props:["isRule","setting"],watch:{isRule:function(n,t){n!=t&&(this.openRule=n)}},methods:{closeRule:function(){this.openRule=!1,this.$emit("close")}}}},e0f6:function(n,t,e){"use strict";var u=e("e2d5"),i=e.n(u);i.a},e2d5:function(n,t,e){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/plus/bargain/detail/popup/Rule-create-component',
{
'pages/plus/bargain/detail/popup/Rule-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("4f76"))
})
},
[['pages/plus/bargain/detail/popup/Rule-create-component']]
]);

View File

@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@ -0,0 +1 @@
<view hidden="{{!(openRule)}}" class="rule-detail-wrap"><view data-event-opts="{{[['tap',[['closeRule',['$event']]]]]}}" class="{{['rule-bg',openRule?'active':'']}}" bindtap="__e"></view><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="rule-content" catchtap="__e"><view class="title pr"><text>活动规则</text><text data-event-opts="{{[['tap',[['closeRule',['$event']]]]]}}" class="iconfont icon-guanbi" bindtap="__e"></text></view><view class="content"><rich-text nodes="{{setting.bargain_rules}}"></rich-text></view></view></view>

View File

@ -0,0 +1 @@
.rule-detail-wrap{position:fixed;top:0;bottom:0;left:0;right:0;width:100%;z-index:999}.rule-detail-wrap .rule-bg{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#000;opacity:0;transition:all .3s ease-out}.rule-detail-wrap .rule-bg.active{opacity:.8}.rule-detail-wrap .rule-content{position:absolute;top:20vh;left:0;right:0;margin:auto;width:80%;background-color:#fff;border-radius:12rpx;transition:all .3s ease-out;box-sizing:border-box;white-space:pre-wrap}.rule-detail-wrap .rule-content .title{height:100rpx;display:flex;align-items:center;justify-content:center;font-size:32rpx;position:relative;color:#333;box-sizing:border-box}.rule-detail-wrap .rule-content .iconfont{position:absolute;right:20rpx;top:20rpx;font-size:32rpx;color:#999}.rule-detail-wrap .rule-content .content{padding:30rpx;max-height:60vh;font-size:28rpx;line-height:150%;overflow-y:auto;box-sizing:border-box}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@ -0,0 +1 @@
<view data-event-opts="{{[['touchmove',[['',['$event']]]],['tap',[['closePopup',['$event']]]]]}}" class="{{[Visible?'product-popup open':'product-popup close']}}" catchtouchmove="__e" bindtap="__e"><view class="popup-bg"></view><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="main" catchtap="__e"><view class="header"><image class="avt" src="{{form.show_sku.sku_image}}" mode="aspectFit"></image><view class="price d-s-c"><block wx:if="{{form.specData==null||isAll}}"><text>¥</text><text class="num fb">{{form.show_sku.bargain_price}}</text><text class="old-price">{{"¥"+form.show_sku.line_price}}</text></block><block wx:else><text class="f22">¥</text><text class="f40 fb">{{form.detail.bargain_price}}</text></block></view><view class="stock">{{"库存:"+form.show_sku.bargain_stock}}</view><view class="p-20-0 select_spec">{{selectSpec}}</view><view data-event-opts="{{[['tap',[['closePopup',['$event']]]]]}}" class="close-btn" bindtap="__e"><text class="icon iconfont icon-guanbi"></text></view></view><view class="body"><block wx:if="{{form.specData!=null}}"><view><block wx:if="{{form.specData!=null}}"><scroll-view class="specs mt20" style="max-height:600rpx;" scroll-y="true"><block wx:for="{{form.specData.spec_attr}}" wx:for-item="item_attr" wx:for-index="attr_index" wx:key="attr_index"><view class="specs mt20"><view class="specs-hd p-20-0"><text class="f24 gray9">{{item_attr.group_name}}</text><block wx:if="{{form.productSpecArr[attr_index]==null}}"><text class="ml10 red">{{'请选择'+item_attr.group_name+''}}</text></block></view><view class="specs-list"><block wx:for="{{item_attr.spec_items}}" wx:for-item="item" wx:for-index="item_index" wx:key="item_index"><button data-event-opts="{{[['tap',[['selectAttr',[attr_index,item_index]]]]]}}" class="{{[item.checked?'btn-checked':'btn-checke']}}" bindtap="__e">{{item.spec_value+''}}</button></block></view></view></block></scroll-view></block></view></block><view class="level-box count_choose"><text class="key">数量</text><view class="d-s-c"><view data-event-opts="{{[['tap',[['sub']]]]}}" class="{{['icon-box','minus','d-c-c',(!issub)?'num-wrap':'']}}" bindtap="__e"><text class="icon iconfont icon-jian" style="font-size:20rpx;color:#333333;"></text></view><view class="text-wrap"><input type="text" value="{{form.show_sku.sum}}" data-event-opts="{{[['input',[['__set_model',['$0','sum','$event',[]],['form.show_sku']]]]]}}" bindinput="__e"/></view><view data-event-opts="{{[['tap',[['add']]]]}}" class="{{['icon-box','plus','d-c-c',(!isadd)?'num-wrap':'']}}" bindtap="__e"><text class="icon iconfont icon-jia" style="font-size:20rpx;color:#333333;"></text></view></view></view></view><view class="btns white"><button data-event-opts="{{[['tap',[['confirmFunc',['$0'],['form']]]]]}}" class="confirm-btn" bindtap="__e">确认</button></view></view></view>

View File

@ -0,0 +1,3 @@
.product-popup .popup-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.6);z-index:99}.product-popup .main{position:fixed;width:100%;bottom:0;min-height:200rpx;background-color:#fff;-webkit-transform:translate3d(0,980rpx,0);transform:translate3d(0,980rpx,0);transition:-webkit-transform .2s cubic-bezier(0,0,.25,1);transition:transform .2s cubic-bezier(0,0,.25,1);transition:transform .2s cubic-bezier(0,0,.25,1),-webkit-transform .2s cubic-bezier(0,0,.25,1);border-radius:12rpx}.product-popup.open .main{-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.product-popup.close .popup-bg{display:none}.product-popup.close .main{display:none;z-index:-1}.product-popup .header{min-height:120rpx;padding:40rpx 0 40rpx 250rpx;position:relative;border-bottom:1px solid #eee}.product-popup .header .avt{position:absolute;top:40rpx;left:30rpx;width:200rpx;height:200rpx;border:2px solid #fff;background:#fff;border-radius:12rpx}.product-popup .header .stock{font-size:26rpx;color:#999}.product-popup .close-btn{position:absolute;width:40rpx;height:40rpx;top:40rpx;right:30rpx}.product-popup .price{height:80rpx;color:#e2231a;font-size:30rpx}.product-popup .price .num{padding:0 4rpx;font-size:50rpx}.product-popup .old-price{margin-left:10rpx;font-size:30rpx;color:#999;text-decoration:line-through}.product-popup .body{padding:20rpx 30rpx 39rpx 30rpx;overflow-y:auto;padding-bottom:88rpx}.product-popup .level-box{display:flex;justify-content:space-between;align-items:center}.product-popup .level-box .key{font-size:24rpx;color:#999}.product-popup .level-box .icon-box{width:48rpx;height:40rpx;background:#e0e0e0}.product-popup .num-wrap .iconfont{color:#666}.product-popup .num-wrap.no-stock .iconfont{color:#ccc}.product-popup .level-box .text-wrap{margin:0 4rpx;height:60rpx;border:none;background:#fff}.product-popup .level-box .text-wrap input{padding:0 10rpx;height:60rpx;line-height:60rpx;width:80rpx;text-align:center;font-size:32rpx}.specs .specs-list{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.specs .specs-list button{margin-right:10rpx;margin-bottom:10rpx;font-size:24rpx}.specs .specs-list button:after,
.product-popup .btns button,
.product-popup .btns button:after{border:0;border-radius:0;margin-bottom:55rpx}.product-popup .btns .confirm-btn{width:710rpx;height:80rpx;background:linear-gradient(90deg,#ff6b6b 4%,#f6220c);border-radius:40rpx;margin:0 auto;margin-bottom:55rpx;background-color:#fff;color:#fff;line-height:80rpx;font-size:32rpx}.select_spec{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-checked{border:1px solid #f6220c;border-radius:6px;color:#f6220c;font-size:26rpx;background-color:#fff}.btn-checke{border:1rpx solid #d9d9d9;border-radius:6rpx;font-size:26rpx;color:#333;background-color:#fff}

View File

@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/plus/bargain/haggle/haggle"],{"328f":function(t,n,a){"use strict";a.d(n,"b",(function(){return e})),a.d(n,"c",(function(){return o})),a.d(n,"a",(function(){return i}));var i={countdown:function(){return a.e("components/countdown/countdown").then(a.bind(null,"6d72"))}},e=function(){var t=this.$createElement,n=(this._self._c,this.loadding?null:this.topBarTop()),a=this.loadding?null:this.topBarHeight(),i=this.loadding||0==a?null:this.topBarHeight();this.$mp.data=Object.assign({},{$root:{m0:n,m1:a,m2:i}})},o=[]},"32aa":function(t,n,a){"use strict";a.r(n);var i=a("328f"),e=a("a205");for(var o in e)["default"].indexOf(o)<0&&function(t){a.d(n,t,(function(){return e[t]}))}(o);a("c092");var s=a("828b"),u=Object(s["a"])(e["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=u.exports},8015:function(t,n,a){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={components:{Popup:function(){a.e("components/uni-popup").then(function(){return resolve(a("b892"))}.bind(null,a)).catch(a.oe)},Rule:function(){a.e("pages/plus/bargain/haggle/popup/Rule").then(function(){return resolve(a("1a4f"))}.bind(null,a)).catch(a.oe)},countdown:function(){a.e("components/countdown/countdown").then(function(){return resolve(a("6d72"))}.bind(null,a)).catch(a.oe)},share:function(){a.e("components/mp-share").then(function(){return resolve(a("0b18"))}.bind(null,a)).catch(a.oe)},AppShare:function(){Promise.all([a.e("common/vendor"),a.e("components/app-share")]).then(function(){return resolve(a("b70e"))}.bind(null,a)).catch(a.oe)}},data:function(){return{loadding:!0,bargain_task_id:0,isRule:!1,countdownConfig:{startstamp:0,endstamp:0,title:"活动剩余:"},task:{},product:{},active:{},setting:{},help_list:[],isMpShare:!1,is_creater:!1,is_cut:!1,submitting:!1,isPopup:!1,my_cut_money:0,isAppShare:!1,appParams:{title:"",summary:"",path:""}}},onLoad:function(t){this.bargain_task_id=t.bargain_task_id},mounted:function(){},onShow:function(){this.submitting=!1,this.getData()},computed:{is_bargain:function(){return 0==this.is_cut},is_buy:function(){return 0===this.active.conditions&&1!=this.task.is_buy?(console.log("aaaaa"),!0):1===this.active.conditions&&1==this.task.is_floor&&1!=this.task.is_buy&&(console.log("bbbbbb"),!0)}},methods:{getData:function(){var n=this;n.loading=!0,t.showLoading({title:"加载中"}),n._get("plus.bargain.task/detail",{bargain_task_id:n.bargain_task_id,url:n.url},(function(a){null!=a.data.active&&(n.countdownConfig.startstamp=a.data.active.start_time),n.countdownConfig.endstamp=a.data.task.end_time,n.is_creater=a.data.is_creater,n.is_cut=a.data.is_cut,n.task=a.data.task,n.active=a.data.active,n.product=a.data.product,n.setting=a.data.setting,n.help_list=a.data.help_list,n.loadding=!1,t.hideLoading()}))},bargainFunc:function(){console.log(1111);var t=this;t.submitting=!0,t._post("plus.bargain.task/cut",{bargain_task_id:t.bargain_task_id},(function(n){t.my_cut_money=n.data.cut_money,t.isPopup=!0}))},hidePopupFunc:function(){this.isPopup=!1,this.getData(),this.submitting=!1},buyNow:function(){this.createdOrder()},openRule:function(){this.isRule=!0},closeRule:function(){this.isRule=!1},gotoHome:function(){this.gotoPage("/pages/index/index")},createdOrder:function(){var t=this.product.bargain_product_id,n=this.task.product_sku_id,a=this.task.bargain_product_sku_id;this.gotoPage("/pages/order/confirm-order?bargain_product_id="+t+"&product_sku_id="+n+"&bargain_product_sku_id="+a+"&order_type=bargain&bargain_task_id="+this.bargain_task_id)},goback:function(){t.navigateBack({})},shareFunc:function(){this.isMpShare=!0},closeShare:function(){this.isMpShare=!1},closeAppShare:function(t){this.isAppShare=!1},involvedFunc:function(){var t="pages/plus/bargain/detail/detail?bargain_product_id="+this.product.bargain_product_id;this.gotoPage(t)},onShareAppMessage:function(){var t=this.getShareUrlParams({bargain_task_id:this.bargain_task_id});return{title:"发现了一个好物,快来帮我砍一刀吧",path:"/pages/plus/bargain/haggle/haggle?"+t}}}};n.default=i}).call(this,a("df3c")["default"])},8861:function(t,n,a){"use strict";(function(t,n){var i=a("47a9");a("7d57");i(a("3240"));var e=i(a("32aa"));t.__webpack_require_UNI_MP_PLUGIN__=a,n(e.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])},a1c2:function(t,n,a){},a205:function(t,n,a){"use strict";a.r(n);var i=a("8015"),e=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(n,t,(function(){return i[t]}))}(o);n["default"]=e.a},c092:function(t,n,a){"use strict";var i=a("a1c2"),e=a.n(i);e.a}},[["8861","common/runtime","common/vendor"]]]);

View File

@ -0,0 +1,11 @@
{
"navigationStyle": "custom",
"navigationBarTitleText": "砍价购",
"usingComponents": {
"countdown": "/components/countdown/countdown",
"popup": "/components/uni-popup",
"rule": "/pages/plus/bargain/haggle/popup/Rule",
"share": "/components/mp-share",
"app-share": "/components/app-share"
}
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,3 @@
.haggle{min-height:100vh;box-sizing:border-box}.reg180{padding-right:20rpx;text-align:right;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);position:absolute;bottom:0}.icon-jiantou{color:#fff;font-size:30rpx}.head_top{position:relative;height:30px;line-height:30px;color:#fff;font-size:32rpx}.bg_topimg{position:fixed;top:0;width:100%;height:400rpx;z-index:-1}.haggle .goto-home{position:absolute;top:10rpx;left:0;width:80rpx;height:80rpx;line-height:60rpx;border-radius:50%;background:#fff;z-index:20}.haggle .goto-home .iconfont{color:#333;font-weight:700;font-size:36rpx}.haggle-content{position:relative;padding:30rpx;box-sizing:border-box;border-radius:16rpx;background:#fff;margin:0 20rpx;margin-top:72rpx}.haggle-content .rule{position:absolute;font-size:26rpx;color:#333;top:30rpx;right:30rpx}.haggle-content .user image{width:120rpx;height:120rpx;border-radius:50%;border:6rpx solid #fff;margin-top:-100rpx}.help-list .user image{margin-top:0}.haggle-content .product{background:#fff}.haggle-content .product .pic,
.haggle-content .product .pic image{width:240rpx;height:240rpx;border-radius:12rpx}.haggle-content .title-2 text::before,
.haggle-content .title-2 text::after{display:block;content:"";position:absolute;width:100rpx;height:2rpx;top:50%;background:#ccc}.haggle-content .title-2 text::before{left:-120rpx}.haggle-content .title-2 text::after{right:-120rpx}.haggle-content .progress{padding-top:80rpx;margin:20rpx auto 0;width:80%}.haggle-content .progress-box{height:20rpx;background:#ece4ff;border-radius:10rpx;overflow:hidden}.haggle-content .progress-box-active{height:20rpx;border-radius:10rpx;background:linear-gradient(90deg,#cebbff,#723bff)}.haggle-content .progressState{top:0;left:0;padding:0 15rpx;position:absolute;width:80rpx;height:40rpx;-webkit-transform:translateX(-80rpx);transform:translateX(-80rpx);line-height:40rpx;border-radius:20rpx;font-size:26rpx;text-align:center;background:#ece4ff;color:#723bff}.haggle-content .progressState::after{position:absolute;left:50%;margin-left:-6rpx;display:block;content:"";border:12rpx solid transparent;border-top-color:#ece4ff}.haggle-content .btns button{height:88rpx;line-height:88rpx;border-radius:44rpx;background:#8d60ff;color:#fff}.haggle-content .btns button.buy-btn{background:#f6ac0c}.haggle-content .help-list .user image{width:60rpx;height:60rpx}.haggle .ad-datetime .countdown{color:#fff;font-size:26rpx;margin-top:50rpx}.haggle .ad-datetime .box{padding:0 7rpx;min-width:50rpx;font-size:26rpx;border-radius:6rpx;background:#fff;color:#8207ff}.haggle_btn_l{width:150rpx;height:50rpx;line-height:50rpx;border:1rpx solid #f6ac0c;font-size:26rpx;color:#e09900;border-radius:25rpx 0 0 25rpx;text-align:center}.haggle_btn_r{height:50rpx;padding-right:10rpx;line-height:50rpx;border:1rpx solid #f6ac0c;background:#f6ac0c;border-radius:0 25rpx 25rpx 0;font-size:32rpx;color:#fff;text-align:center}.haggle-color{color:#723bff}

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/plus/bargain/haggle/popup/Rule"],{"0a44":function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){}));var u=function(){var n=this.$createElement;this._self._c},i=[]},"1a4f":function(n,t,e){"use strict";e.r(t);var u=e("0a44"),i=e("b4d2");for(var c in i)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(c);e("51de");var a=e("828b"),o=Object(a["a"])(i["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);t["default"]=o.exports},"51de":function(n,t,e){"use strict";var u=e("c223"),i=e.n(u);i.a},"9fc4":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={data:function(){return{openRule:!1}},props:["isRule","setting"],watch:{isRule:function(n,t){n!=t&&(this.openRule=n)}},methods:{closeRule:function(){this.openRule=!1,this.$emit("close")}}}},b4d2:function(n,t,e){"use strict";e.r(t);var u=e("9fc4"),i=e.n(u);for(var c in u)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(c);t["default"]=i.a},c223:function(n,t,e){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/plus/bargain/haggle/popup/Rule-create-component',
{
'pages/plus/bargain/haggle/popup/Rule-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("1a4f"))
})
},
[['pages/plus/bargain/haggle/popup/Rule-create-component']]
]);

View File

@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@ -0,0 +1 @@
<view hidden="{{!(openRule)}}" class="rule-detail-wrap"><view data-event-opts="{{[['tap',[['closeRule',['$event']]]]]}}" class="{{['rule-bg',openRule?'active':'']}}" bindtap="__e"></view><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="rule-content" catchtap="__e"><view class="title pr"><text>活动规则</text><text data-event-opts="{{[['tap',[['closeRule',['$event']]]]]}}" class="iconfont icon-guanbi" bindtap="__e"></text></view><view class="content"><rich-text nodes="{{setting.bargain_rules}}"></rich-text></view></view></view>

View File

@ -0,0 +1 @@
.rule-detail-wrap{position:fixed;top:0;bottom:0;left:0;right:0;width:100%;z-index:999}.rule-detail-wrap .rule-bg{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#000;opacity:0;transition:all .3s ease-out}.rule-detail-wrap .rule-bg.active{opacity:.8}.rule-detail-wrap .rule-content{position:absolute;top:20vh;left:0;right:0;margin:auto;width:80%;background-color:#fff;border-radius:12rpx;transition:all .3s ease-out;box-sizing:border-box;white-space:pre-wrap}.rule-detail-wrap .rule-content .title{height:100rpx;display:flex;align-items:center;justify-content:center;font-size:32rpx;position:relative;color:#333;box-sizing:border-box}.rule-detail-wrap .rule-content .iconfont{position:absolute;right:20rpx;top:20rpx;font-size:32rpx;color:#999}.rule-detail-wrap .rule-content .content{padding:30rpx;max-height:60vh;font-size:28rpx;line-height:150%;overflow-y:auto;box-sizing:border-box}

View File

@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/plus/bargain/list/list"],{"15a8":function(t,a,n){"use strict";(function(t,a){var i=n("47a9");n("7d57");i(n("3240"));var o=i(n("8b67"));t.__webpack_require_UNI_MP_PLUGIN__=n,a(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"434a":function(t,a,n){"use strict";(function(t){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i={components:{Countdown:function(){n.e("components/countdown/countdown").then(function(){return resolve(n("6d72"))}.bind(null,n)).catch(n.oe)}},data:function(){return{phoneHeight:0,scrollviewHigh:0,categorys:[],bargain_activity_id:0,listData:{list:[],detail:null},countdownConfig:{startstamp:0,endstamp:0},loading:!0}},computed:{},onLoad:function(t){},onShow:function(){this.getCategory()},onReachBottom:function(){},methods:{tabTypeFunc:function(t,a){this.type_active=t,this.bargain_activity_id=a,this.productList=[],this.getProdct()},getCategory:function(){var t=this;t.type_active;t._get("plus.bargain.product/active",{param:{}},(function(a){t.categorys=a.data.list,t.categorys.length>0&&(t.bargain_activity_id=t.categorys[0].bargain_activity_id),t.getProdct()}))},getProdct:function(){var a=this;t.showLoading({title:"加载中"});var n=a.bargain_activity_id;a.loading=!0,a._get("plus.bargain.product/product",{bargain_activity_id:n},(function(n){a.listData=n.data,a.countdownConfig.endstamp=n.data.detail.end_time,a.countdownConfig.startstamp=n.data.detail.start_time,t.hideLoading(),a.loading=!1}))},gotoDetail:function(t){this.$refs.countdown.clear();var a="pages/plus/bargain/detail/detail?bargain_product_id="+t.bargain_product_id;this.gotoPage(a)},gotoSearch:function(){this.page=1,this.getData()},returnValFunc:function(t){console.log(t)}}};a.default=i}).call(this,n("df3c")["default"])},5070:function(t,a,n){"use strict";n.r(a);var i=n("434a"),o=n.n(i);for(var e in i)["default"].indexOf(e)<0&&function(t){n.d(a,t,(function(){return i[t]}))}(e);a["default"]=o.a},"5a91":function(t,a,n){},"7f67":function(t,a,n){"use strict";var i=n("5a91"),o=n.n(i);o.a},"8b67":function(t,a,n){"use strict";n.r(a);var i=n("e1c7"),o=n("5070");for(var e in o)["default"].indexOf(e)<0&&function(t){n.d(a,t,(function(){return o[t]}))}(e);n("7f67");var c=n("828b"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);a["default"]=r.exports},e1c7:function(t,a,n){"use strict";n.d(a,"b",(function(){return i})),n.d(a,"c",(function(){return o})),n.d(a,"a",(function(){}));var i=function(){var t=this.$createElement,a=(this._self._c,this.listData.detail&&this.categorys.length>0),n=this.listData.detail&&this.categorys.length>0;this.$mp.data=Object.assign({},{$root:{g0:a,g1:n}})},o=[]}},[["15a8","common/runtime","common/vendor"]]]);

View File

@ -0,0 +1,6 @@
{
"navigationBarTitleText": "砍价列表",
"usingComponents": {
"countdown": "/components/countdown/countdown"
}
}

View File

@ -0,0 +1 @@
<view class="bargain-container"><view class="top-box"><view class="inner-tab"><scroll-view class="scroll-X" scroll-X="true" show-scrollbar="false"><view class="tab-list"><block wx:for="{{categorys}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tabTypeFunc',[index,'$0'],[[['categorys','',index,'bargain_activity_id']]]]]]]}}" class="{{[bargain_activity_id==item.bargain_activity_id?'item active':'item']}}" bindtap="__e">{{''+item.title+''}}</view></block></view></scroll-view></view><block wx:if="{{$root.g0}}"><view class="banner-image d-c-c"><image src="{{listData.detail.file_path}}" mode="widthFix"></image></view></block><block wx:if="{{$root.g1}}"><view class="ad-datetime p-30-0 d-c-c pb20"><countdown class="vue-ref" vue-id="7dc89fe0-1" config="{{countdownConfig}}" data-ref="countdown" data-event-opts="{{[['^returnVal',[['returnValFunc']]]]}}" bind:returnVal="__e" bind:__l="__l"></countdown></view></block><block wx:else><view class="p30 pt200 d-c-c d-c gray6 f26"><image style="width:532rpx;margin-bottom:80rpx;" src="/static/active-null.png" mode="widthFix"></image><view class="tc gray9">暂无活动~~</view></view></block></view><block wx:if="{{!loading}}"><view class="bargain-list"><view class="list d-s-c f-w"><block wx:for="{{listData.list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item d-s-s d-stretch"><view class="product-cover pr"><image src="{{item.product.file_path}}" mode="aspectFit"></image></view><view class="product-info d-b-c d-c"><view class="product-title text-ellipsis-2 f26 gray3">{{item.product.product_name}}</view><view class="people-num price"><text class="f24">¥</text><text class="f36 fb">{{item.bargain_price}}</text><text class="ml10 text-d-line gray9 f24">{{"¥"+item.product_price}}</text></view><view class="d-b-c ww100"><view class="f24"></view><view class="right-btn"><button type="primary" data-event-opts="{{[['tap',[['gotoDetail',['$0'],[[['listData.list','',index]]]]]]]}}" bindtap="__e">去砍价</button></view></view></view></view></block></view></view></block></view>

View File

@ -0,0 +1,3 @@
.top-box{position:-webkit-sticky;position:sticky;top:0;left:0;background:#f2f2f2;z-index:10}page{background:#f2f2f2}.bargain-container .inner-tab{background:#fff}.bargain-container .inner-tab .tab-list{height:100rpx;display:flex;justify-content:flex-start;align-items:center;background:#fff}.bargain-container .inner-tab .item{height:100rpx;line-height:100rpx;white-space:nowrap;padding:0 30rpx;font-size:30rpx;color:#333}.bargain-container .inner-tab .item.active,
.bargain-container .inner-tab .item .arrow.active .iconfont{background:#fff;font-size:32rpx;color:#f6220c;position:relative}.bargain-container .inner-tab .item.active::after{content:"";width:60%;height:4rpx;background:#f6220c;border-radius:2rpx;position:absolute;bottom:17rpx;left:0;right:0;margin:auto}.bargain-container .inner-tab .box{display:flex;justify-content:center;align-items:center;flex-direction:row}.bargain-container .inner-tab .arrows{margin-left:10rpx;line-height:0}.bargain-container .inner-tab .iconfont{line-height:24rpx;font-size:24rpx}.bargain-container .inner-tab .arrow,
.bargain-container .inner-tab .svg-icon{width:20rpx;height:20rpx}.bargain-container .banner-image{width:100%;box-sizing:border-box}.bargain-container .banner-image image{width:750rpx;height:365rpx}.bargain-container .ad-datetime text{color:#333;font-size:28rpx}.bargain-container .ad-datetime .box{padding:4rpx;border-radius:4rpx;background:#f6220c;color:#fff}.bargain-list .list{padding:20rpx}.bargain-list .list .item{width:100%;padding:30rpx;margin-bottom:20rpx;box-sizing:border-box;border-radius:16rpx;background:#fff}.bargain-list .product-cover{padding:4rpx}.bargain-list .product-cover image{width:200rpx;height:200rpx;border-radius:12rpx}.bargain-list .product-info{flex:1;padding-left:20rpx;overflow:hidden}.bargain-list .product-cover .people-num{position:absolute;right:0;bottom:0;left:0;height:50rpx;padding:0 20rpx;line-height:50rpx;font-size:24rpx;box-sizing:border-box;background:rgba(0,0,0,.6)}.bargain-list .ad-datetime .box{padding:4rpx;border-radius:4rpx;background:#000;color:#fff}.bargain-list .product-title{width:100%;height:40rpx;line-height:40rpx;font-size:26rpx;color:#333}.bargain-list .people-num{width:100%}.bargain-list .already-sale{padding:4rpx 0;color:#999;font-size:24rpx}.bargain-list .price{width:100%;color:#e2231a;font-size:24rpx}.bargain-list .price .num{padding:0 4rpx}.bargain-list .slider-box .slider{margin-top:10rpx;height:10rpx;background:#ccc;border-radius:5rpx}.bargain-list .slider-box .slider-inner{height:10rpx;background:#e2231a;border-radius:5rpx}.bargain-list .right-btn button{height:60rpx;line-height:60rpx;border-radius:30rpx;background:#8d60ff;color:#fff;font-size:32rpx}