This commit is contained in:
2025-12-20 08:34:16 +08:00
commit 9d4fdc7242
872 changed files with 3536 additions and 0 deletions

View File

@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/goods/brand"],{"0fc3":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={components:{uniGrid:function(){e.e("components/uni-grid/uni-grid").then(function(){return resolve(e("d59a"))}.bind(null,e)).catch(e.oe)},uniGridItem:function(){e.e("components/uni-grid-item/uni-grid-item").then(function(){return resolve(e("03c5"))}.bind(null,e)).catch(e.oe)},nsAdv:function(){e.e("components/ns-adv/ns-adv").then(function(){return resolve(e("8289"))}.bind(null,e)).catch(e.oe)}},data:function(){return{brandList:[],siteId:0}},onLoad:function(n){n.site_id&&(this.siteId=n.site_id)},onShow:function(){},methods:{change:function(n){this.$util.redirectTo("/pages/goods/list",{brand_id:this.brandList[n.detail.index].brand_id})},getBrandList:function(n){var t=this;this.$api.sendRequest({url:"/api/goodsbrand/page",data:{page_size:n.size,page:n.num,site_id:this.siteId},success:function(e){var i=[],o=e.message;0==e.code&&e.data?i=e.data.list:t.$util.showToast({title:o}),n.endSuccess(i.length),1==n.num&&(t.brandList=[]),t.brandList=t.brandList.concat(i),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(){n.endErr(),this.$refs.loadingCover&&this.$refs.loadingCover.hide()}})}},onShareAppMessage:function(n){return{title:"你想要的大牌都在这里",path:"/pages_tool/goods/brand",success:function(n){},fail:function(n){}}}};t.default=i},1731:function(n,t,e){"use strict";e.r(t);var i=e("0fc3"),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(r);t["default"]=o.a},5837:function(n,t,e){},"5a88":function(n,t,e){"use strict";e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return i}));var i={nsAdv:function(){return e.e("components/ns-adv/ns-adv").then(e.bind(null,"8289"))},uniGrid:function(){return e.e("components/uni-grid/uni-grid").then(e.bind(null,"d59a"))},uniGridItem:function(){return e.e("components/uni-grid-item/uni-grid-item").then(e.bind(null,"03c5"))},nsEmpty:function(){return e.e("components/ns-empty/ns-empty").then(e.bind(null,"a84f"))},loadingCover:function(){return e.e("components/loading-cover/loading-cover").then(e.bind(null,"0773"))}},o=function(){var n=this,t=n.$createElement,e=(n._self._c,n.brandList.length),i=e>0?n.__map(n.brandList,(function(t,e){var i=n.__get_orig(t),o=n.$util.img(t.image_url);return{$orig:i,g1:o}})):null,o=n.brandList.length;n.$mp.data=Object.assign({},{$root:{g0:e,l0:i,g2:o}})},r=[]},"5fd2":function(n,t,e){"use strict";(function(n,t){var i=e("47a9");e("1dee");i(e("3240"));var o=i(e("a306"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},a306:function(n,t,e){"use strict";e.r(t);var i=e("5a88"),o=e("1731");for(var r in o)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(r);e("ca04");var u=e("828b"),a=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=a.exports},ca04:function(n,t,e){"use strict";var i=e("5837"),o=e.n(i);o.a}},[["5fd2","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,9 @@
{
"usingComponents": {
"ns-adv": "/components/ns-adv/ns-adv",
"uni-grid": "/components/uni-grid/uni-grid",
"uni-grid-item": "/components/uni-grid-item/uni-grid-item",
"ns-empty": "/components/ns-empty/ns-empty",
"loading-cover": "/components/loading-cover/loading-cover"
}
}

View File

@@ -0,0 +1 @@
<view data-theme="{{themeStyle}}"><mescroll-uni class="vue-ref" vue-id="9cf7f374-1" size="20" data-ref="mescroll" data-event-opts="{{[['^getData',[['getBrandList']]]]}}" bind:getData="__e" bind:__l="__l" vue-slots="{{['list']}}"><view slot="list"><ns-adv vue-id="{{('9cf7f374-2')+','+('9cf7f374-1')}}" keyword="NS_BRAND" class-name="adv-wrap" bind:__l="__l"></ns-adv><block wx:if="{{$root.g0>0}}"><view class="brand-content"><uni-grid vue-id="{{('9cf7f374-3')+','+('9cf7f374-1')}}" column="{{3}}" showBorder="{{!1}}" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><uni-grid-item vue-id="{{('9cf7f374-4-'+index)+','+('9cf7f374-3')}}" index="index" bind:__l="__l" vue-slots="{{['default']}}"><image class="brand-pic" src="{{item.g1}}" mode="widthFix"></image><view class="brand_name">{{item.$orig.brand_name}}</view></uni-grid-item></block></uni-grid></view></block><block wx:if="{{$root.g2==0}}"><view><ns-empty vue-id="{{('9cf7f374-5')+','+('9cf7f374-1')}}" text="暂无更多品牌,去首页看看吧" bind:__l="__l"></ns-empty></view></block></view></mescroll-uni><loading-cover class="vue-ref" vue-id="9cf7f374-6" data-ref="loadingCover" bind:__l="__l"></loading-cover><privacy-popup class="vue-ref" vue-id="9cf7f374-7" data-ref="privacyPopup" bind:__l="__l"></privacy-popup></view>

View File

@@ -0,0 +1 @@
.uni-grid-item{width:calc((100vw - (30rpx * 2)) / 3)!important}.adv-wrap{margin:20rpx 30rpx;width:auto}.brand-content{padding:20rpx 0;box-sizing:border-box;background:#fff;margin:20rpx 30rpx 0}.brand-content .brand-pic{width:60%;height:50%}.brand-content .brand_name{width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}

View File

@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/goods/coupon"],{"19ce":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("1dee");o(n("3240"));var i=o(n("6785"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"53d3":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return o}));var o={nsEmpty:function(){return n.e("components/ns-empty/ns-empty").then(n.bind(null,"a84f"))},loadingCover:function(){return n.e("components/loading-cover/loading-cover").then(n.bind(null,"0773"))},nsLogin:function(){return Promise.all([n.e("common/vendor"),n.e("components/ns-login/ns-login")]).then(n.bind(null,"17d0"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$util.img("public/uniapp/coupon/coupon_line.png")),o=t.__map(t.list,(function(e,n){var o=t.__get_orig(e),i="reward"==e.type?parseFloat(e.money):null,s="reward"!=e.type&&"discount"==e.type?parseFloat(e.discount):null,u=0==e.validity_type?t.$util.timeStampTurnTime(e.end_time):null;return{$orig:o,m0:i,m1:s,g1:u}})),i=t.list.length;t.$mp.data=Object.assign({},{$root:{g0:n,l0:o,g2:i}})},s=[]},6785:function(t,e,n){"use strict";n.r(e);var o=n("53d3"),i=n("7235");for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("97a2");var u=n("828b"),r=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=r.exports},7235:function(t,e,n){"use strict";n.r(e);var o=n("fac0"),i=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=i.a},"845d":function(t,e,n){},"97a2":function(t,e,n){"use strict";var o=n("845d"),i=n.n(o);i.a},fac0:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list:[],sort:1,types:"",couponBtnSwitch:!1,mpShareData:null}},onLoad:function(e){var n=this;if(setTimeout((function(){n.addonIsExist.coupon||(n.$util.showToast({title:"商家未开启优惠券",mask:!0,duration:2e3}),setTimeout((function(){n.$util.redirectTo("/pages/index/index")}),2e3))}),1e3),e.source_member&&t.setStorageSync("source_member",e.source_member),e.scene){var o=decodeURIComponent(e.scene);o=o.split("&"),o.length&&o.forEach((function(e){-1!=e.indexOf("sku_id")&&(n.skuId=e.split("-")[1]),-1!=e.indexOf("m")&&t.setStorageSync("source_member",e.split("-")[1]),-1!=e.indexOf("is_test")&&t.setStorageSync("is_test",1)}))}},onShow:function(){var e=this;this.storeToken&&t.getStorageSync("source_member")&&this.$util.onSourceMember(t.getStorageSync("source_member")),this.$util.getMpShare().then((function(t){e.mpShareData=t}))},onShareAppMessage:function(){return this.mpShareData.appMessage},onShareTimeline:function(){return this.mpShareData.timeLine},methods:{changeSort:function(t,e){this.list=[],this.sort=t,this.types=e,this.$refs.mescroll.refresh(!1)},liClick:function(t,e){if(["limit","expire","out"].includes(t.receivedType))return!1;0==t.useState?this.receiveCoupon(t,e):this.toGoodsList(t,e)},receiveCoupon:function(t,e){var n=this;this.couponBtnSwitch||(this.couponBtnSwitch=!0,this.storeToken?this.$api.sendRequest({url:"/coupon/api/coupon/receive",data:{coupon_type_id:t.coupon_type_id,get_type:2},success:function(e){n.couponBtnSwitch=!1;var o="领取成功,快去使用吧",i=n.list;if(e.code<0&&(o=e.message),1==e.data.is_exist)for(var s=0;s<i.length;s++)i[s].coupon_type_id==t.coupon_type_id&&(i[s].useState=1);else for(var u=0;u<i.length;u++)i[u].coupon_type_id==t.coupon_type_id&&(i[u].receivedType=e.data.type,i[u].useState=2);n.$util.showToast({title:o})},fail:function(t){n.couponBtnSwitch=!1}}):(this.couponBtnSwitch=!1,this.$refs.login.open("/pages_tool/goods/coupon")))},getMemberCouponList:function(t){var e=this;this.$api.sendRequest({url:"/coupon/api/coupon/typepagelists",data:{page:t.num,page_size:t.size,sort:this.sort,type:this.types},success:function(n){var o=[],i=n.message;0==n.code&&n.data?o=n.data.list:e.$util.showToast({title:i}),t.endSuccess(o.length),o.length&&o.forEach((function(t){t.count==t.lead_count?t.useState=2:0!=t.max_fetch&&t.member_coupon_num&&t.member_coupon_num>=t.max_fetch?t.useState=1:t.useState=0})),1==t.num&&(e.list=[]),e.list=e.list.concat(o),e.$refs.loadingCover&&e.$refs.loadingCover.hide()},fail:function(){t.endErr(),this.$refs.loadingCover&&this.$refs.loadingCover.hide()}})},imageError:function(t){this.list[t].logo=this.$util.getDefaultImage().goods,this.$forceUpdate()},couponImageError:function(t){this.list[t].image=this.$util.img("public/uniapp/goods/coupon.png"),this.$forceUpdate()},toGoodsList:function(t){1!=t.goods_type?this.$util.redirectTo("/pages/goods/list",{coupon:t.coupon_type_id}):this.$util.redirectTo("/pages/goods/list",{})}}};e.default=n}).call(this,n("df3c")["default"])}},[["19ce","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,7 @@
{
"usingComponents": {
"ns-empty": "/components/ns-empty/ns-empty",
"loading-cover": "/components/loading-cover/loading-cover",
"ns-login": "/components/ns-login/ns-login"
}
}

View File

@@ -0,0 +1 @@
<page-meta page-style="{{themeColor}}"></page-meta><view><view class="cf-container color-line-border"><view class="tab"><view data-event-opts="{{[['tap',[['changeSort',[1]]]]]}}" bindtap="__e"><text class="{{[sort==1?'color-base-text active color-base-border-bottom':'']}}">全部</text></view><view data-event-opts="{{[['tap',[['changeSort',[2,'reward']]]]]}}" bindtap="__e"><text class="{{[sort==2?'color-base-text active color-base-border-bottom':'']}}">满减券</text></view><view data-event-opts="{{[['tap',[['changeSort',[3,'discount']]]]]}}" bindtap="__e"><text class="{{[sort==3?'color-base-text active color-base-border-bottom':'']}}">折扣券</text></view></view></view><mescroll-uni class="vue-ref" vue-id="4b35dce9-1" top="100" data-ref="mescroll" data-event-opts="{{[['^getData',[['getMemberCouponList']]]]}}" bind:getData="__e" bind:__l="__l" vue-slots="{{['list']}}"><view slot="list"><view class="coupon-listone"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['liClick',['$0',index],[[['list','',index]]]]]]]}}" class="item" style="{{'background-color:'+(item.$orig.useState==2?'#F2F2F2':'var(--main-color-shallow)')+';'}}" bindtap="__e"><view class="{{['item-base',(item.$orig.useState==2)?'disabled':'']}}"><image class="coupon-line" mode="heightFix" src="{{$root.g0}}"></image><view><block wx:if="{{item.$orig.type=='reward'}}"><view class="{{['use_price','price-font',(item.$orig.useState==2)?'disabled':'']}}"><text>¥</text>{{''+item.m0+''}}</view></block><block wx:else><block wx:if="{{item.$orig.type=='discount'}}"><view class="{{['use_price','price-font',(item.$orig.useState==2)?'disabled':'']}}">{{''+item.m1+''}}<text>折</text></view></block></block><block wx:if="{{item.$orig.at_least>0}}"><view class="{{['use_condition','font-size-tag',(item.$orig.useState==2)?'disabled':'']}}">{{"满"+item.$orig.at_least+"元可用"}}</view></block><block wx:else><view class="{{['use_condition','font-size-tag',(item.$orig.useState==2)?'disabled':'']}}">无门槛优惠券</view></block></view></view><view class="item-info"><view class="use_title"><view class="title">{{item.$orig.coupon_name}}</view><block wx:if="{{item.$orig.goods_type==2||item.$orig.goods_type==3}}"><view class="{{['max_price',(item.$orig.useState==2)?'disabled':'']}}">指定商品</view></block><block wx:else><view class="{{['max_price',(item.$orig.useState==2)?'disabled':'']}}">全场商品</view></block><block wx:if="{{item.$orig.discount_limit!='0.00'}}"><view class="max_price">{{'(最大优惠'+item.$orig.discount_limit+'元)'}}</view></block><view class="{{['max_price',(item.$orig.useState==2)?'disabled':'']}}">{{item.$orig.use_channel_name}}</view></view><block wx:if="{{item.$orig.validity_type==0}}"><view class="use_time">{{'有效期:'+item.g1}}</view></block><block wx:else><block wx:if="{{item.$orig.validity_type==1}}"><view class="use_time">{{'有效期:领取之日起'+item.$orig.fixed_term+"日内有效"}}</view></block><block wx:else><view class="use_time">有效期:长期有效</view></block></block></view><view class="item-btn"><block wx:if="{{item.$orig.useState==0}}"><view data-event-opts="{{[['tap',[['receiveCoupon',['$0',index],[[['list','',index]]]]]]]}}" catchtap="__e">领取</view></block><block wx:if="{{item.$orig.useState==1}}"><view data-event-opts="{{[['tap',[['toGoodsList',['$0',index],[[['list','',index]]]]]]]}}" catchtap="__e">去使用</view></block><block wx:if="{{item.$orig.receivedType=='out'}}"><view class="disabled">已抢光</view></block><block wx:if="{{item.$orig.receivedType=='expire'}}"><view class="disabled">已过期</view></block><block wx:if="{{item.$orig.receivedType=='limit'}}"><view class="disabled">已达上限</view></block></view></view></block></view><block wx:if="{{$root.g2==0}}"><view><ns-empty vue-id="{{('4b35dce9-2')+','+('4b35dce9-1')}}" text="暂无可领取的优惠券" isIndex="{{false}}" bind:__l="__l"></ns-empty></view></block></view></mescroll-uni><loading-cover class="vue-ref" vue-id="4b35dce9-3" data-ref="loadingCover" bind:__l="__l"></loading-cover><ns-login class="vue-ref" vue-id="4b35dce9-4" data-ref="login" bind:__l="__l"></ns-login><privacy-popup class="vue-ref" vue-id="4b35dce9-5" data-ref="privacyPopup" bind:__l="__l"></privacy-popup></view>

View File

@@ -0,0 +1 @@
.coupon-head{padding:20rpx 50rpx;display:flex;background:#fff}.coupon-head .sort{border:2rpx solid #c5c5c5;padding:1rpx 20rpx;border-radius:10rpx;cursor:pointer;margin-right:15rpx}.coupon-listone{padding:0 30rpx}.coupon-listone .item{display:flex;background-color:#fff2f0;background-size:100% 100%;border-radius:20rpx;align-items:stretch;margin-top:20rpx;overflow:hidden}.coupon-listone .item .item-base{position:relative;width:197rpx;min-width:197rpx;text-align:center;background:linear-gradient(270deg,var(--bg-color),var(--bg-color-shallow));background-repeat:no-repeat;background-size:100% 100%;padding:38rpx 10rpx 38rpx 18rpx}.coupon-listone .item .item-base.disabled{background:#dedede}.coupon-listone .item .item-base .coupon-line{position:absolute;right:0;top:0;height:100%}.coupon-listone .item .item-base > view{height:auto;position:relative;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.coupon-listone .item .item-base .use_price{font-size:60rpx;line-height:1;color:#fff}.coupon-listone .item .item-base .use_price text{font-size:32rpx}.coupon-listone .item .item-base .use_price.disabled{color:#909399}.coupon-listone .item .item-base .use_condition{color:#fff;margin-top:20rpx}.coupon-listone .item .item-base .use_condition.margin_top_none{margin-top:0}.coupon-listone .item .item-base .use_condition.disabled{color:#909399}.coupon-listone .item .item-base::after{position:absolute;content:"";background-color:#f8f8f8;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:30rpx;width:15rpx;border-radius:0 30rpx 30rpx 0}.coupon-listone .item .item-btn{width:160rpx;min-width:160rpx;align-self:center;position:relative}.coupon-listone .item .item-btn view{width:100rpx;height:50rpx;border-radius:10rpx;line-height:50rpx;margin:auto;text-align:center;background-image:linear-gradient(90deg,var(--bg-color),var(--bg-color-shallow));color:var(--btn-text-color);font-size:24rpx}.coupon-listone .item .item-btn view.disabled{background:#dedede!important;color:#909399!important}.coupon-listone .item .item-btn::after{position:absolute;content:"";background-color:#f8f8f8;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:30rpx;width:15rpx;border-radius:30rpx 0 0 30rpx}.coupon-listone .item .item-info{flex:1;display:flex;flex-direction:column;justify-content:space-between;margin-left:20rpx;overflow:hidden;background-repeat-x:no-repeat;background-repeat-y:repeat}.coupon-listone .item .item-info .use_time{padding:20rpx 0;border-top:2rpx dashed #ccc;font-size:20rpx;color:#909399}.coupon-listone .item .item-info .use_title{font-size:28rpx;font-weight:500;padding:20rpx 0}.coupon-listone .item .item-info .use_title .title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.coupon-listone .item .item-info .use_title .max_price{font-weight:400;font-size:24rpx}.empty{margin-top:200rpx}.cf-container{background:#fff;overflow:hidden}.tab{display:flex;justify-content:space-between;height:86rpx}.tab > view{text-align:center;width:33%;height:86rpx}.tab > view text{display:inline-block;line-height:86rpx;height:80rpx;font-size:30rpx}.active{border-bottom:4rpx solid}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,6 @@
{
"usingComponents": {
"loading-cover": "/components/loading-cover/loading-cover",
"ns-login": "/components/ns-login/ns-login"
}
}

View File

@@ -0,0 +1 @@
<page-meta page-style="{{themeColor}}"></page-meta><view class="container"><view class="content"><view class="wx-code"><image src="{{$root.g0}}"></image></view><view class="get-coupon"><text class="coupon-name">{{info.coupon_name}}</text><block wx:if="{{info.type=='reward'}}"><view class="color-base-text coupon-price">{{"¥"+info.money}}</view></block><block wx:else><block wx:if="{{info.type=='discount'}}"><view class="color-base-text coupon-price">{{info.discount+"折"}}</view></block></block><block wx:if="{{info.at_least>0}}"><text class="color-tip">{{"满"+info.at_least+"元使用"}}</text></block><block wx:else><text class="color-tip">无门槛优惠券</text></block><block wx:if="{{info.validity_type==0}}"><view class="color-tip">{{"有效期至 "+$root.g1}}</view></block><block wx:else><block wx:if="{{info.validity_type==1}}"><view class="color-tip">{{"领取之日起"+info.fixed_term+"天内有效"}}</view></block><block wx:else><view class="color-tip">长期有效</view></block></block><block wx:if="{{info.use_channel!='all'}}"><view class="color-tip truncate">{{info.use_channel_name}}</view></block><block wx:if="{{info.use_channel!='online'&&info.use_store!='all'}}"><view class="color-tip"><view class="w-460 truncate">{{"适用门店:"+info.use_store_name}}</view></view></block><view data-event-opts="{{[['tap',[['receiveGoodsCoupon',['$0'],['info.coupon_type_id']]]]]}}" class="get-span" bindtap="__e"><block wx:if="{{isCanReceive}}"><button type="primary">{{button}}</button></block><block wx:if="{{!isCanReceive}}"><button type="primary" disabled="{{true}}">{{button}}</button></block></view><view class="color-tip font-size-goods-tag tips">注:扫描二维码或点击右上角进行分享</view></view></view><loading-cover class="vue-ref" vue-id="e1470276-1" data-ref="loadingCover" bind:__l="__l"></loading-cover><ns-login class="vue-ref" vue-id="e1470276-2" data-ref="login" bind:__l="__l"></ns-login><privacy-popup class="vue-ref" vue-id="e1470276-3" data-ref="privacyPopup" bind:__l="__l"></privacy-popup></view>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/goods/evaluate"],{"14e4":function(e,t,a){"use strict";a.r(t);var n=a("be1f"),i=a("155f");for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("62a1");var u=a("828b"),s=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=s.exports},"155f":function(e,t,a){"use strict";a.r(t);var n=a("aef3"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},"5f54":function(e,t,a){"use strict";(function(e,t){var n=a("47a9");a("1dee");n(a("3240"));var i=n(a("14e4"));e.__webpack_require_UNI_MP_PLUGIN__=a,t(i.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])},"62a1":function(e,t,a){"use strict";var n=a("9ef5"),i=a.n(n);i.a},"9ef5":function(e,t,a){},aef3:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={components:{xiaoStarComponent:function(){a.e("components/xiao-star-component/xiao-star-component").then(function(){return resolve(a("2869"))}.bind(null,a)).catch(a.oe)}},data:function(){return{goodsId:0,list:[],evaluateList:[{name:"全部",value:0,count:0},{name:"好评",value:1,count:0},{name:"中评",value:2,count:0},{name:"差评",value:3,count:0}],evaluateTab:0,mescroll_type:{}}},onLoad:function(e){this.goodsId=e.goods_id||0,this.getEvaluateCount()},onShow:function(){},methods:{getEvaluateCount:function(e){var t=this;this.$api.sendRequest({url:"/api/goodsevaluate/getgoodsevaluate",data:{goods_id:this.goodsId},success:function(e){for(var a=0;a<t.evaluateList.length;a++)0==t.evaluateList[a].value?t.evaluateList[a].count=e.data.total:1==t.evaluateList[a].value?t.evaluateList[a].count=e.data.haoping:2==t.evaluateList[a].value?t.evaluateList[a].count=e.data.zhongping:3==t.evaluateList[a].value&&(t.evaluateList[a].count=e.data.chaping)}})},getGoodsEvaluate:function(e){var t=this;this.mescroll_type=e,this.$api.sendRequest({url:"/api/goodsevaluate/page",data:{page:e.num,page_size:e.size,goods_id:this.goodsId,explain_type:0==this.evaluateTab?"":this.evaluateTab},success:function(a){var n=[],i=a.message;0==a.code&&a.data?n=a.data.list:t.$util.showToast({title:i});for(var o=0;o<n.length;o++)n[o].images&&(n[o].images=n[o].images.split(",")),n[o].again_images&&(n[o].again_images=n[o].again_images.split(",")),1==n[o].is_anonymous&&(n[o].member_name=n[o].member_name.replace(n[o].member_name.substring(1,n[o].member_name.length-1),"***"));e.endSuccess(n.length),1==e.num&&(t.list=[]),t.list=t.list.concat(n),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(a){e.endErr(),t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},previewEvaluate:function(t,a,n){for(var i=[],o=0;o<this.list[t][n].length;o++)i.push(this.$util.img(this.list[t][n][o]));e.previewImage({current:a,urls:i})},imageError:function(e){this.list[e].member_headimg=this.$util.getDefaultImage().head,this.$forceUpdate()},onEvaluateTab:function(e){this.list=[],this.evaluateTab=e,this.mescroll_type.num=1,this.mescroll_type.size=10;this.getGoodsEvaluate(this.mescroll_type)}}};t.default=n}).call(this,a("df3c")["default"])},be1f:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n}));var n={nsEmpty:function(){return a.e("components/ns-empty/ns-empty").then(a.bind(null,"a84f"))},loadingCover:function(){return a.e("components/loading-cover/loading-cover").then(a.bind(null,"0773"))}},i=function(){var e=this,t=e.$createElement,a=(e._self._c,e.__map(e.list,(function(t,a){var n=e.__get_orig(t),i=t.member_headimg?e.$util.img(t.member_headimg):null,o=t.member_headimg?null:e.$util.getDefaultImage(),u=t.member_name.length>2&&1==t.is_anonymous,s=u?t.member_name.length:null,l=e.$util.timeStampTurnTime(t.create_time),r=t.images?e.__map(t.images,(function(t,a){var n=e.__get_orig(t),i=e.$util.img(t);return{$orig:n,g5:i}})):null,c=""!=t.again_content&&1==t.again_is_audit?t.again_images.length:null,g=""!=t.again_content&&1==t.again_is_audit&&c>0?e.__map(t.again_images,(function(t,a){var n=e.__get_orig(t),i=e.$util.img(t);return{$orig:n,g7:i}})):null;return{$orig:n,g0:i,g1:o,g2:u,g3:s,g4:l,l0:r,g6:c,l1:g}}))),n=e.list.length;e.$mp.data=Object.assign({},{$root:{l2:a,g8:n}})},o=[]}},[["5f54","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,7 @@
{
"usingComponents": {
"ns-empty": "/components/ns-empty/ns-empty",
"loading-cover": "/components/loading-cover/loading-cover",
"xiao-star-component": "/components/xiao-star-component/xiao-star-component"
}
}

View File

@@ -0,0 +1 @@
<page-meta page-style="{{themeColor}}"></page-meta><view class="goods-evaluate"><view class="evaluate-tab"><block wx:for="{{evaluateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['onEvaluateTab',['$0'],[[['evaluateList','',index,'value']]]]]]]}}" class="{{[evaluateTab==item.value?'active-tab':'']}}" bindtap="__e">{{''+item.name+"("+item.count+')'}}</view></block></view><mescroll-uni class="vue-ref" vue-id="7c6a6416-1" top="100" data-ref="mescroll" data-event-opts="{{[['^getData',[['getGoodsEvaluate']]]]}}" bind:getData="__e" bind:__l="__l" vue-slots="{{['list']}}"><view slot="list"><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="evaluate-item"><view class="evaluator"><view><view class="evaluator-face"><block wx:if="{{item.$orig.member_headimg}}"><image src="{{item.g0}}" mode="aspectFill" data-event-opts="{{[['error',[['imageError',[index]]]]]}}" binderror="__e"></image></block><block wx:else><image src="{{item.g1.head}}" mode="aspectFill"></image></block></view><view class="evaluator-info"><view class="evaluator-info-left"><block wx:if="{{item.g2}}"><view class="evaluator-name using-hidden">{{''+item.$orig.member_name[0]+"***"+item.$orig.member_name[item.g3-1]+''}}</view></block><block wx:else><text class="evaluator-name using-hidden">{{item.$orig.member_name}}</text></block><view class="evaluator-time color-tip">{{item.g4}}</view></view><view class="evaluator-xing"><xiao-star-component vue-id="{{('7c6a6416-2-'+index)+','+('7c6a6416-1')}}" starCount="{{item.$orig.scores*2}}" bind:__l="__l"></xiao-star-component></view></view></view></view><view class="cont">{{item.$orig.content}}</view><scroll-view scroll-x="true"><block wx:if="{{item.$orig.images}}"><view class="evaluate-img"><block wx:for="{{item.l0}}" wx:for-item="img" wx:for-index="img_index" wx:key="img_index"><view data-event-opts="{{[['tap',[['previewEvaluate',[index,img_index,'images']]]]]}}" class="img-box" bindtap="__e"><image src="{{img.g5}}" mode="aspectFill"></image></view></block></view></block></scroll-view><block wx:if="{{item.$orig.explain_first!=''}}"><view class="time shop-reply-box"><view class="shop-reply">商家回复:</view><view class="cont">{{item.$orig.explain_first}}</view></view></block><block wx:if="{{item.$orig.again_content!=''&&item.$orig.again_is_audit==1}}"><view class="review-evaluation color-base-text">追加评价</view><view class="cont">{{item.$orig.again_content}}</view><scroll-view scroll-x="true"><block wx:if="{{item.g6>0}}"><view class="evaluate-img"><block wx:for="{{item.l1}}" wx:for-item="again_img" wx:for-index="again_index" wx:key="again_index"><view data-event-opts="{{[['tap',[['previewEvaluate',[index,again_index,'again_images']]]]]}}" class="img-box" bindtap="__e"><image src="{{again_img.g7}}" mode="aspectFill"></image></view></block></view></block></scroll-view><block wx:if="{{item.$orig.again_explain!=''}}"><view class="time shop-reply-box"><block wx:if="{{item.$orig.again_explain!=''}}"><view class="shop-reply">商家回复:</view></block><view class="cont">{{item.$orig.again_explain}}</view></view></block></block></view></block><block wx:if="{{$root.g8==0}}"><view><ns-empty vue-id="{{('7c6a6416-3')+','+('7c6a6416-1')}}" text="暂无商品评价" bind:__l="__l"></ns-empty></view></block></view></mescroll-uni><loading-cover class="vue-ref" vue-id="7c6a6416-4" data-ref="loadingCover" bind:__l="__l"></loading-cover></view>

View File

@@ -0,0 +1 @@
.goods-evaluate .evaluate-tab{display:flex;align-items:center;background:#fff;height:100rpx;padding:0 30rpx}.goods-evaluate .evaluate-tab view{background:#f0f0f0;color:#333;border-radius:30rpx;margin-right:20rpx;padding:8rpx 30rpx;font-size:24rpx}.goods-evaluate .evaluate-tab .active-tab{background-color:var(--base-color);color:#fff}.goods-evaluate .evaluate-item{margin:20rpx 30rpx;padding:30rpx;background:#fff;border-radius:10rpx}.goods-evaluate .evaluate-item .evaluator > view{display:flex;align-items:center}.goods-evaluate .evaluate-item .evaluator .evaluator-face{width:79rpx;height:79rpx;border-radius:50%;overflow:hidden}.goods-evaluate .evaluate-item .evaluator .evaluator-face image{width:100%;height:100%}.goods-evaluate .evaluate-item .evaluator .evaluator-info{width:85%;margin-left:13rpx}.goods-evaluate .evaluate-item .evaluator .evaluator-info .evaluator-name{color:#303133;font-size:28rpx;line-height:1;width:250rpx}.goods-evaluate .evaluate-item .evaluator .evaluator-info .evaluator-time{font-size:24rpx;line-height:1}.goods-evaluate .evaluate-item .evaluator .evaluator-info .evaluator-info-left{display:flex;align-items:center;justify-content:space-between}.goods-evaluate .evaluate-item .cont{text-align:justify;display:-webkit-box;word-break:break-all;font-size:28rpx;margin:26rpx 0 0;color:#000;line-height:42rpx}.goods-evaluate .evaluate-item .evaluate-img{display:flex;width:100%;flex-wrap:wrap;margin-top:19rpx}.goods-evaluate .evaluate-item .evaluate-img .img-box{flex-shrink:0;width:140rpx;height:140rpx;overflow:hidden;margin:20rpx 23rpx 0 0;border-radius:10rpx}.goods-evaluate .evaluate-item .evaluate-img .img-box:nth-child(4n){margin-right:0}.goods-evaluate .evaluate-item .evaluate-img .img-box:nth-child(-n + 4){margin-top:0}.goods-evaluate .evaluate-item .evaluate-img .img-box image{width:100%;height:100%}.goods-evaluate .evaluate-item .time{font-size:24rpx;background:#f8f8f8;padding:10rpx 20rpx;border-radius:6rpx;margin-top:20rpx}.goods-evaluate .evaluate-item .time text{line-height:42rpx;color:#909399}.goods-evaluate .evaluate-item .evaluation-reply{margin-top:10rpx;font-size:24rpx}.goods-evaluate .evaluate-item .review-evaluation{margin-top:29rpx;font-size:28rpx;line-height:1}.goods-evaluate .evaluate-item .review-evaluation .review-time{overflow:hidden;float:right}.goods-evaluate .evaluate-item .review-evaluation + .cont{margin:18rpx 0 0}.shop-reply{font-size:28rpx;color:#000;line-height:1}.shop-reply + .cont{margin-top:10rpx!important}.shop-reply-box{padding:20rpx!important}

View File

@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/goods/not_exist"],{"0075":function(t,n,e){},"0eb6":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={data:function(){return{}},onShow:function(){},methods:{}}},"30bc":function(t,n,e){"use strict";e.r(n);var u=e("0eb6"),o=e.n(u);for(var c in u)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(c);n["default"]=o.a},"7ed6":function(t,n,e){"use strict";e.r(n);var u=e("c3a5"),o=e("30bc");for(var c in o)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(c);e("f38f");var i=e("828b"),a=Object(i["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);n["default"]=a.exports},c3a5:function(t,n,e){"use strict";e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var u=function(){var t=this.$createElement,n=(this._self._c,this.$util.img("public/uniapp/goods/not_exist.png"));this.$mp.data=Object.assign({},{$root:{g0:n}})},o=[]},e0bc:function(t,n,e){"use strict";(function(t,n){var u=e("47a9");e("1dee");u(e("3240"));var o=u(e("7ed6"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},f38f:function(t,n,e){"use strict";var u=e("0075"),o=e.n(u);o.a}},[["e0bc","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<page-meta page-style="{{themeColor}}"></page-meta><view class="page"><view class="closeBox"><image src="{{$root.g0}}" mode="widthFix"></image><text class="close-title">您查看的商品不存在,可能已下架或被删除</text></view></view>

View File

@@ -0,0 +1 @@
.page{height:100vh;overflow:hidden}.closeBox{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:260rpx}image{width:400rpx}.close-title{font-size:28rpx;color:#909399;margin:55rpx;letter-spacing:4rpx}

View File

@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/goods/search"],{"1c61":function(t,i,e){"use strict";e.r(i);var s=e("43aa"),n=e("48da");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);e("b3ba");var r=e("828b"),a=Object(r["a"])(n["default"],s["b"],s["c"],!1,null,"0efb433a",null,!1,s["a"],void 0);i["default"]=a.exports},"43aa":function(t,i,e){"use strict";e.d(i,"b",(function(){return s})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){}));var s=function(){var t=this,i=t.$createElement,e=(t._self._c,t.historyList.length),s=t.hotList.length;t._isMounted||(t.e0=function(i){t.isAllHistory=!1}),t.$mp.data=Object.assign({},{$root:{g0:e,g1:s}})},n=[]},"48da":function(t,i,e){"use strict";e.r(i);var s=e("8bbd"),n=e.n(s);for(var o in s)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return s[t]}))}(o);i["default"]=n.a},"8bbd":function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={data:function(){return{inputValue:"",historyList:[],searchList:[],alikeList:[],isIndex:!1,searchWords:"",hotList:[],isAllHistory:!1}},onLoad:function(i){i.keyword&&(this.inputValue=i.keyword),!t.getStorageSync("search")&&t.setStorageSync("search",[])},onShow:function(){this.findHistoryList(),this.defaultSearch(),this.findHotList(),this.$nextTick((function(){this.getHistoryHeight()}))},methods:{findHistoryList:function(){this.historyList=t.getStorageSync("search").reverse()},deleteHistoryList:function(){var i=this;t.showModal({title:"提示",content:"确认删除全部历史记录?",success:function(e){e.confirm&&(t.setStorageSync("search",[]),i.findHistoryList())}})},deleteItem:function(i){var e=this;t.showModal({title:"提示",content:"确认删除该条历史记录?",success:function(s){if(s.confirm){var n=t.getStorageSync("search"),o=n.filter((function(t){return t!=i}));t.setStorageSync("search",o),e.findHistoryList()}}})},defaultSearch:function(){var t=this;this.$api.sendRequest({url:"/api/goods/defaultSearchWords",success:function(i){t.searchWords=i.data.words}})},findHotList:function(){var t=this;this.$api.sendRequest({url:"/api/goods/hotSearchWords",success:function(i){""!=i.data.words&&(t.hotList=i.data.words.split(","))}})},inputFocus:function(t){""!=this.inputValue.trim()&&(this.dataList=[])},otherSearch:function(t){this.inputValue=t,this.search()},search:function(){var i=this;if(""!=this.inputValue.trim()){var e=t.getStorageSync("search"),s=[];e.length?(s=e.filter((function(t){return t!=i.inputValue.trim()})),s.push(this.inputValue.trim())):s.push(this.inputValue.trim()),t.setStorageSync("search",s),this.$util.redirectTo("/pages/goods/list",{keyword:this.inputValue.trim()})}else""==this.searchWords?this.$util.showToast({title:"搜索内容不能为空哦"}):this.$util.redirectTo("/pages/goods/list",{})},getHistoryHeight:function(){var i=this,e=t.createSelectorQuery().in(this);e.select("#history-list").boundingClientRect((function(e){e&&e.height>2*t.upx2px(70)+2*t.upx2px(35)&&(i.isAllHistory=!0)})).exec()}}};i.default=e}).call(this,e("df3c")["default"])},"9c9b":function(t,i,e){"use strict";(function(t,i){var s=e("47a9");e("1dee");s(e("3240"));var n=s(e("1c61"));t.__webpack_require_UNI_MP_PLUGIN__=e,i(n.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},b3ba:function(t,i,e){"use strict";var s=e("bd29"),n=e.n(s);n.a},bd29:function(t,i,e){}},[["9c9b","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<page-meta page-style="{{themeColor}}" class="data-v-0efb433a"></page-meta><view class="data-v-0efb433a"><view class="content data-v-0efb433a"><view class="cate-search data-v-0efb433a"><view class="search-box data-v-0efb433a"><input class="uni-input data-v-0efb433a" maxlength="50" confirm-type="search" focus="{{true}}" placeholder="{{searchWords?searchWords:''}}" data-event-opts="{{[['focus',[['inputFocus',['$event']]]],['confirm',[['search']]],['input',[['__set_model',['','inputValue','$event',[]]]]]]}}" value="{{inputValue}}" bindfocus="__e" bindconfirm="__e" bindinput="__e"/><text data-event-opts="{{[['tap',[['search']]]]}}" class="iconfont icon-sousuo3 data-v-0efb433a" bindtap="__e"></text></view></view><view class="search-content data-v-0efb433a"><block wx:if="{{$root.g0}}"><view class="history data-v-0efb433a"><view class="history-box data-v-0efb433a"><view class="history-top data-v-0efb433a"><view class="title data-v-0efb433a">历史搜索</view><view data-event-opts="{{[['tap',[['deleteHistoryList',['$event']]]]]}}" class="icon iconfont icon-icon7 data-v-0efb433a" bindtap="__e"></view></view><view class="history-bottom data-v-0efb433a" style="{{'max-height:'+(!isAllHistory?'100%':'168rpx')+';'}}" id="history-list"><block wx:for="{{historyList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['otherSearch',['$0'],[[['historyList','',index]]]]]]]}}" class="history-li data-v-0efb433a" bindtap="__e"><view class="data-v-0efb433a">{{item}}</view></view></block><block wx:if="{{isAllHistory}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="history-li history_more data-v-0efb433a" bindtap="__e"><view class="data-v-0efb433a"><text class="iconfont icon-iconangledown data-v-0efb433a"></text></view></view></block></view></view></view></block><block wx:if="{{$root.g1}}"><view class="history data-v-0efb433a"><view class="history-box data-v-0efb433a"><view class="history-top data-v-0efb433a"><view class="title data-v-0efb433a">热门搜索</view></view><view class="history-bottom data-v-0efb433a"><block wx:for="{{hotList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['otherSearch',['$0'],[[['hotList','',index]]]]]],['longtap',[['deleteItem',['$0'],[[['hotList','',index]]]]]]]}}" class="history-li data-v-0efb433a" bindtap="__e" bindlongtap="__e"><view class="data-v-0efb433a">{{item}}</view></view></block></view></view></view></block></view></view></view>

View File

@@ -0,0 +1 @@
.data-v-0efb433a .fixed{position:relative;top:0}.data-v-0efb433a .empty{margin-top:0!important}.cart-empty.data-v-0efb433a{padding-top:54px}.content.data-v-0efb433a{width:100vw;height:100vh;background:#fff}.cate-search.data-v-0efb433a{width:100%;background:#fff;padding:10rpx 30rpx;box-sizing:border-box}.cate-search input.data-v-0efb433a{font-size:28rpx;height:100%;padding:0 25rpx 0 30rpx;width:calc(100% - 120rpx)}.cate-search text.data-v-0efb433a{font-size:32rpx;color:#909399;width:120rpx;text-align:center}.cate-search .search-box.data-v-0efb433a{width:100%;height:64rpx;background:#f8f8f8;display:flex;justify-content:center;align-items:center;border-radius:40rpx}.search-content.data-v-0efb433a{box-sizing:border-box;background:#fff}.history.data-v-0efb433a{width:100%;box-sizing:border-box}.history .history-box.data-v-0efb433a{width:100%;height:100%;background:#fff;padding:30rpx 30rpx 0rpx 30rpx;box-sizing:border-box;overflow:hidden}.history .history-box .history-top.data-v-0efb433a{width:100%;height:60rpx;display:flex;justify-content:space-between;align-items:center;font-size:32rpx}.history .history-box .history-top .title.data-v-0efb433a{font-weight:500;font-size:32rpx}.history .history-box .history-top .iconfont.data-v-0efb433a{color:#909399;font-size:28rpx}.history .history-box .history-bottom.data-v-0efb433a{width:100%;padding-top:20rpx;position:relative}.history .history-box .history-bottom .history-li.data-v-0efb433a{display:inline-block;margin-right:20rpx;margin-bottom:15rpx;max-width:100%}.history .history-box .history-bottom .history-li view.data-v-0efb433a{line-height:66rpx;background:#f8f8f8!important;height:66rpx;color:#303133!important;margin:0 0rpx 4rpx 0!important;padding:0 20rpx;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-radius:20rpx}.history .history-box .history-bottom .history-li.history_more.data-v-0efb433a{margin-right:0;position:absolute;bottom:0;right:0}.history .hidden-show.data-v-0efb433a{width:100%;height:70rpx;text-align:center;line-height:70rpx}.search-alike.data-v-0efb433a{width:100%;height:calc(100vh - 100rpx);padding:0 20rpx;box-sizing:border-box}.search-alike .alike-box.data-v-0efb433a{width:100%;height:100%;background:#fff;border-radius:20rpx;overflow:hidden}