制作订单详情页面

This commit is contained in:
2025-04-26 14:38:04 +08:00
parent 5297bc0034
commit 6ae3444ed9
138 changed files with 2484 additions and 645 deletions

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/cate-one/cate-one"],{"19fe":function(e,n,t){"use strict";var u=t("ab30"),o=t.n(u);o.a},"31be":function(e,n,t){"use strict";var u=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=u(t("7eb4")),c=u(t("ee10")),i={name:"cate-one",props:{list:{type:Array,default:function(){return[]}}},data:function(){return{selectIndex:0,cateList:[],cateName:"",numberVal:1,showCart:!1,showSpec:!0}},methods:{changeActive:function(e){var n=this.cateList;this.selectIndex=e,this.cateName=n[e].name},getGoodsSearchFun:function(){return(0,c.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},changeNumber:function(){}},watch:{list:{handler:function(e){if(e.length){var n=e.findIndex((function(e){return 1==e.type}));this.selectIndex=-1==n?0:n,this.cateName=e[this.selectIndex].name,this.cateList=e,this.cateTwoList=e[this.selectIndex]?e[this.selectIndex].sons:[],this.getGoodsSearchFun()}}}}};n.default=i},ab30:function(e,n,t){},af58:function(e,n,t){"use strict";t.r(n);var u=t("31be"),o=t.n(u);for(var c in u)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(c);n["default"]=o.a},e8c4:function(e,n,t){"use strict";t.r(n);var u=t("f7da"),o=t("af58");for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);t("19fe");var i=t("828b"),a=Object(i["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);n["default"]=a.exports},f7da:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return u}));var u={uImage:function(){return t.e("components/uview-ui/components/u-image/u-image").then(t.bind(null,"8127"))},priceFormat:function(){return t.e("components/price-format/price-format").then(t.bind(null,"70de"))},uIcon:function(){return t.e("components/uview-ui/components/u-icon/u-icon").then(t.bind(null,"9e59"))},uPopup:function(){return t.e("components/uview-ui/components/u-popup/u-popup").then(t.bind(null,"69ae"))},uNumberBox:function(){return t.e("components/uview-ui/components/u-number-box/u-number-box").then(t.bind(null,"8aee"))},shopSpec:function(){return t.e("components/shop-spec/shop-spec").then(t.bind(null,"2aa3"))}},o=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.showSpec=!1})},c=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/cate-one/cate-one-create-component',
{
'components/cate-one/cate-one-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("e8c4"))
})
},
[['components/cate-one/cate-one-create-component']]
]);

View File

@ -0,0 +1,11 @@
{
"usingComponents": {
"u-image": "/components/uview-ui/components/u-image/u-image",
"price-format": "/components/price-format/price-format",
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
"u-number-box": "/components/uview-ui/components/u-number-box/u-number-box",
"shop-spec": "/components/shop-spec/shop-spec"
},
"component": true
}

View File

@ -0,0 +1 @@
<view class="cate"><view class="cate-one row"><view class="aside"><scroll-view style="height:100%;" scroll-y="true" scroll-with-animation="true"><view style="padding-bottom:200rpx;"><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['changeActive',[index]]]]]}}" class="{{['one-item sm '+(index==selectIndex?'active bg-white':'')]}}" bindtap="__e"><text class="name">{{item.name}}</text><block wx:if="{{index==selectIndex}}"><view class="active-line bg-default"></view></block></view></block></block></view></scroll-view></view><view class="main"><scroll-view style="height:100%;" scroll-y="true" scroll-with-animation="true" data-event-opts="{{[['scrolltolower',[['getGoodsSearchFun',['$event']]]]]}}" bindscrolltolower="__e"><view class="main-wrap"><view class="goods"><view class="u-margin-top-32 bold-600">{{cateName}}</view><view class="u-margin-top-32"><block wx:for="{{10}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="bg-white br16 row u-col-top u-margin-bottom-24"><view><u-image vue-id="{{'0565d282-1-'+index}}" src="{{cloudPath+'img/banner.png'}}" width="136" height="136" border-radius="16" bind:__l="__l"></u-image></view><view class="info"><view><view class="u-line-2 u-padding-top-10">葱烩海鲜卷边披萨</view><view class="u-padding-top-44 row-between"><view class="row"><view class="primary"><price-format vue-id="{{'0565d282-2-'+index}}" price="{{12.9}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view><view class="u-margin-left-8"><price-format vue-id="{{'0565d282-3-'+index}}" lineThrough="{{true}}" color="#C0C0C0" subscriptSize="{{22}}" firstSize="{{22}}" secondSize="{{22}}" price="{{16.9}}" bind:__l="__l"></price-format></view></view></view></view><view class="column-end"><u-icon vue-id="{{'0565d282-4-'+index}}" name="plus-circle-fill" color="#254062" size="48" bind:__l="__l"></u-icon></view></view></view></block></view></view></view></scroll-view></view></view><view class="buy mx40 px40 br60 row-between"><view class="row"><u-image vue-id="0565d282-5" src="{{cloudPath+'img/icon_cart.png'}}" width="56" height="56" bind:__l="__l"></u-image><view class="text-fff u-margin-left-32">未选购商品</view></view><view class="text-999">去结算</view></view><u-popup bind:input="__e" vue-id="0565d282-6" mode="bottom" border-radius="{{16}}" value="{{showCart}}" data-event-opts="{{[['^input',[['__set_model',['','showCart','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view style="max-height:800rpx;"><view class="px20 text-999 mt20">温馨提示:请适量点餐</view><view><scroll-view style="height:700rpx;" scroll-y="true" scroll-with-animation="true"><block wx:for="{{20}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="row-start u-row-between u-padding-top-20 u-padding-bottom-20 px20"><view class="row-start"><view><u-image vue-id="{{('0565d282-7-'+index)+','+('0565d282-6')}}" src="{{cloudPath+'img/banner.png'}}" width="136" height="136" border-radius="16" bind:__l="__l"></u-image></view><view class="ml20"><view class="u-line-2 u-padding-top-10">葱烩海鲜卷边披萨</view><view class="primary u-padding-top-40"><price-format vue-id="{{('0565d282-8-'+index)+','+('0565d282-6')}}" price="{{12.9}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view></view></view><view><view class="u-text-right"><u-icon class="u-padding-top-10" vue-id="{{('0565d282-9-'+index)+','+('0565d282-6')}}" name="trash" size="32" bind:__l="__l"></u-icon></view><view class="u-padding-top-30"><u-number-box vue-id="{{('0565d282-10-'+index)+','+('0565d282-6')}}" min="1" value="{{numberVal}}" data-event-opts="{{[['^change',[['changeNumber']]],['^input',[['__set_model',['','numberVal','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></u-number-box></view></view></view></block></scroll-view></view></view></u-popup><shop-spec bind:close="__e" bind:input="__e" vue-id="0565d282-11" value="{{showSpec}}" data-event-opts="{{[['^close',[['e0']]],['^input',[['__set_model',['','showSpec','$event',[]]]]]]}}" bind:__l="__l"></shop-spec></view>

View File

@ -0,0 +1 @@
page{padding-bottom:0}.cate{position:relative}.cate-one{height:100vh}.cate-one .aside{width:180rpx;flex:none;height:100%;background-color:#f7f8fa}.cate-one .aside .one-item{position:relative;text-align:center;height:108rpx;line-height:108rpx}.cate-one .aside .one-item.active{color:#254062;font-size:26rpx;font-weight:700}.cate-one .aside .one-item .active-line{position:absolute;width:6rpx;height:30rpx;left:4rpx;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cate-one .main{background-color:#fffafb;height:100%;flex:1}.cate-one .main .main-wrap{position:relative;padding:0 20rpx}.cate-one .main .main-wrap .goods{padding-bottom:200rpx}.cate-one .main .main-wrap .goods .info{width:100%;display:flex;justify-content:space-between;margin:0 16rpx}.buy{position:fixed;left:0;right:0;bottom:env(safe-area-inset-bottom);height:100rpx;background-color:#212526}

View File

@ -1,4 +1,4 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/mobile-login/mobile-login"],{"3ebe":function(e,n,t){},7174:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;t("5fc1");var o={name:"mobile-login",props:{value:{type:Boolean,required:!0}},data:function(){return{mobile:""}},methods:{onGetPhoneNumber:function(e){"getPhoneNumber:ok"===e.detail.errMsg&&(this.mobile=110)},handleSubmit:function(e){var n=this.mobile;if(!n)return this.$toast({title:"请授权手机号"});this.$emit("update",{mobile:n}),this.showPop=!1,this.$emit("close")},onClose:function(){this.showPop=!1,this.$emit("close")}},computed:{showPop:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}}};n.default=o},b994:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){return o}));var o={uPopup:function(){return t.e("components/uview-ui/components/u-popup/u-popup").then(t.bind(null,"69ae"))},uIcon:function(){return t.e("components/uview-ui/components/u-icon/u-icon").then(t.bind(null,"9e59"))}},i=function(){var e=this.$createElement;this._self._c},u=[]},e667:function(e,n,t){"use strict";var o=t("3ebe"),i=t.n(o);i.a},e6d5:function(e,n,t){"use strict";t.r(n);var o=t("7174"),i=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);n["default"]=i.a},f80e:function(e,n,t){"use strict";t.r(n);var o=t("b994"),i=t("e6d5");for(var u in i)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(u);t("e667");var r=t("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports}}]);
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/mobile-login/mobile-login"],{"3ebe":function(e,n,t){},7174:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={name:"mobile-login",props:{value:{type:Boolean,required:!0}},data:function(){return{mobile:""}},methods:{onGetPhoneNumber:function(e){"getPhoneNumber:ok"===e.detail.errMsg&&(this.mobile=110)},handleSubmit:function(e){var n=this.mobile;if(!n)return this.$toast({title:"请授权手机号"});this.$emit("update",{mobile:n}),this.showPop=!1,this.$emit("close")},onClose:function(){this.showPop=!1,this.$emit("close")}},computed:{showPop:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}}};n.default=o},a7ee:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){return o}));var o={uPopup:function(){return t.e("components/uview-ui/components/u-popup/u-popup").then(t.bind(null,"69ae"))},uIcon:function(){return t.e("components/uview-ui/components/u-icon/u-icon").then(t.bind(null,"9e59"))}},i=function(){var e=this.$createElement;this._self._c},u=[]},e667:function(e,n,t){"use strict";var o=t("3ebe"),i=t.n(o);i.a},e6d5:function(e,n,t){"use strict";t.r(n);var o=t("7174"),i=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);n["default"]=i.a},f80e:function(e,n,t){"use strict";t.r(n);var o=t("a7ee"),i=t("e6d5");for(var u in i)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(u);t("e667");var r=t("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/mobile-login/mobile-login-create-component',
{

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/price-format/price-format"],{"46d1":function(t,e,r){"use strict";r.r(e);var n=r("e908"),i=r.n(n);for(var u in n)["default"].indexOf(u)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(u);e["default"]=i.a},"70de":function(t,e,r){"use strict";r.r(e);var n=r("a7f5"),i=r("46d1");for(var u in i)["default"].indexOf(u)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(u);var o=r("828b"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=c.exports},a7f5:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},i=[]},e908:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:[String,Number],default:28},secondSize:{type:[String,Number],default:28},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:[String,Number],default:28},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&""!==t&&void 0!==t&&(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}};e.default=n}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/price-format/price-format-create-component',
{
'components/price-format/price-format-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("70de"))
})
},
[['components/price-format/price-format-create-component']]
]);

View File

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

View File

@ -0,0 +1 @@
<text class="{{[(lineThrough?'line-through':'')+' price-format']}}" style="{{'color:'+(color)+';'+('font-weight:'+(weight)+';')}}"><block wx:if="{{showSubscript}}"><text style="{{'font-size:'+(subscriptSize+'rpx')+';'+('margin-right:'+('2rpx')+';')}}">¥</text></block><text style="{{'font-size:'+(firstSize+'rpx')+';'+('margin-right:'+('1rpx')+';')}}">{{priceSlice.first}}</text><block wx:if="{{priceSlice.second}}"><text style="{{'font-size:'+(secondSize+'rpx')+';'}}">{{"."+priceSlice.second}}</text></block></text>

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/shop-spec/shop-spec"],{"2aa3":function(t,n,e){"use strict";e.r(n);var o=e("fd10"),u=e("93b4");for(var i in u)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(i);e("8e1f");var r=e("828b"),c=Object(r["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports},"2c64":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={name:"shop-spec",props:{value:{type:Boolean,required:!0}},data:function(){return{mobile:""}},methods:{close:function(){this.showPop=!1,this.$emit("close")}},computed:{showPop:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}};n.default=o},"8e1f":function(t,n,e){"use strict";var o=e("b409"),u=e.n(o);u.a},"93b4":function(t,n,e){"use strict";e.r(n);var o=e("2c64"),u=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=u.a},b409:function(t,n,e){},fd10:function(t,n,e){"use strict";e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var o={uPopup:function(){return e.e("components/uview-ui/components/u-popup/u-popup").then(e.bind(null,"69ae"))},uButton:function(){return e.e("components/uview-ui/components/u-button/u-button").then(e.bind(null,"9c7d"))}},u=function(){var t=this.$createElement,n=(this._self._c,{color:this.themeColor,border:"1px solid "+this.themeColor,padding:"16rpx 0"});this.$mp.data=Object.assign({},{$root:{a0:n}})},i=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/shop-spec/shop-spec-create-component',
{
'components/shop-spec/shop-spec-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("2aa3"))
})
},
[['components/shop-spec/shop-spec-create-component']]
]);

View File

@ -0,0 +1,7 @@
{
"usingComponents": {
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
"u-button": "/components/uview-ui/components/u-button/u-button"
},
"component": true
}

View File

@ -0,0 +1 @@
<view><u-popup vue-id="53c645c8-1" mode="center" border-radius="{{16}}" value="{{showPop}}" data-event-opts="{{[['^close',[['close']]],['^input',[['__set_model',['','showPop','$event',[]]]]]]}}" bind:close="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="bg-white spec"><view class="shop-title bold-600 u-padding-left-40 w-full">商品标题</view><view class="u-margin-left-40"><scroll-view style="height:500rpx;" scroll-y="true" scroll-with-animation="true"><view><view class="attr nr u-margin-top-20 u-margin-bottom-20">口味</view><view class="row wrap"><view class="attr-list active">要葱</view><view class="attr-list">要香菜</view><view class="attr-list">葱和香菜多要</view><view class="attr-list">葱和香菜不要</view></view></view><view><view class="attr nr u-margin-top-20 u-margin-bottom-20">口味</view><view class="row wrap"><view class="attr-list">要葱</view><view class="attr-list">要香菜</view><view class="attr-list">葱和香菜多要</view><view class="attr-list">葱和香菜不要</view></view></view><view><view class="attr nr u-margin-top-20 u-margin-bottom-20">口味</view><view class="row wrap"><view class="attr-list">要葱</view><view class="attr-list">要香菜</view><view class="attr-list">葱和香菜多要</view><view class="attr-list">葱和香菜不要</view></view></view></scroll-view></view><view class="mt20"><view class="u-margin-left-40">已选规格:</view><view class="row u-row-center mt20"><view class="w-40 mr10"><u-button vue-id="{{('53c645c8-2')+','+('53c645c8-1')}}" hover-class="none" customStyle="{{$root.a0}}" plain="{{true}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['mobileLogin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">取消</u-button></view><view class="w-40 ml10"><u-button vue-id="{{('53c645c8-3')+','+('53c645c8-1')}}" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',padding:'16rpx 0'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['mpLogin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">确定</u-button></view></view></view></view></u-popup></view>

View File

@ -0,0 +1 @@
.spec{width:600rpx;height:800rpx}.spec .shop-title{height:90rpx;line-height:90rpx;font-size:36rpx;background-color:#fafafa}.spec .attr{color:#212425}.spec .attr-list{color:#37393b;background-color:#f9f9f9;margin:0 10rpx 10rpx 0;border-radius:16rpx;border:2rpx solid #f6f6f7;padding:20rpx}.spec .active{border:2rpx solid #254062;color:#254062}.spec .w-40{width:40%}

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uview-ui/components/u-number-box/u-number-box"],{"00ad":function(t,n,i){"use strict";i.d(n,"b",(function(){return u})),i.d(n,"c",(function(){return a})),i.d(n,"a",(function(){return e}));var e={uIcon:function(){return i.e("components/uview-ui/components/u-icon/u-icon").then(i.bind(null,"9e59"))}},u=function(){var t=this.$createElement;this._self._c},a=[]},"0bf4":function(t,n,i){},"4f10":function(t,n,i){"use strict";i.r(n);var e=i("a100"),u=i.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(a);n["default"]=u.a},"53bf":function(t,n,i){"use strict";var e=i("0bf4"),u=i.n(e);u.a},"8aee":function(t,n,i){"use strict";i.r(n);var e=i("00ad"),u=i("4f10");for(var a in u)["default"].indexOf(a)<0&&function(t){i.d(n,t,(function(){return u[t]}))}(a);i("53bf");var r=i("828b"),s=Object(r["a"])(u["default"],e["b"],e["c"],!1,null,"2476bff6",null,!1,e["a"],void 0);n["default"]=s.exports},a100:function(t,n,i){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={name:"u-number-box",props:{value:{type:Number,default:1},bgColor:{type:String,default:"#F2F3F5"},min:{type:Number,default:0},max:{type:Number,default:99999},step:{type:Number,default:1},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:26},color:{type:String,default:"#323233"},inputWidth:{type:[Number,String],default:80},inputHeight:{type:[Number,String],default:50},index:{type:[Number,String],default:""},disabledInput:{type:Boolean,default:!1},cursorSpacing:{type:[Number,String],default:100},longPress:{type:Boolean,default:!0},pressTime:{type:[Number,String],default:250},positiveInteger:{type:Boolean,default:!0}},watch:{value:function(t,n){if(console.log(t,n),!this.changeFromInner){if(this.inputVal==t)return;this.inputVal=t,this.$nextTick((function(){this.changeFromInner=!1}))}},inputVal:function(t,n){var i=this;if(""!=t){var e=0,u=this.$u.test.number(t);e=u&&t>=this.min&&t<=this.max?t:n,this.positiveInteger&&(t<0||-1!==String(t).indexOf("."))&&(e=n,this.$nextTick((function(){i.inputVal=n}))),this.isFistVal||this.handleChange(e,"change")}}},data:function(){return{inputVal:1,timer:null,changeFromInner:!1,innerChangeTimer:null,isFistVal:!0}},created:function(){this.inputVal=Number(this.value),this.isFistVal=!1},computed:{getCursorSpacing:function(){return Number(t.upx2px(this.cursorSpacing))}},methods:{btnTouchStart:function(t){var n=this;this[t](),this.longPress&&(clearInterval(this.timer),this.timer=null,this.timer=setInterval((function(){n[t]()}),this.pressTime))},clearTimer:function(){var t=this;this.$nextTick((function(){clearInterval(t.timer),t.timer=null}))},minus:function(){this.computeVal("minus")},plus:function(){this.computeVal("plus")},calcPlus:function(t,n){var i,e,u;try{e=t.toString().split(".")[1].length}catch(r){e=0}try{u=n.toString().split(".")[1].length}catch(r){u=0}i=Math.pow(10,Math.max(e,u));var a=e>=u?e:u;return((t*i+n*i)/i).toFixed(a)},calcMinus:function(t,n){var i,e,u;try{e=t.toString().split(".")[1].length}catch(r){e=0}try{u=n.toString().split(".")[1].length}catch(r){u=0}i=Math.pow(10,Math.max(e,u));var a=e>=u?e:u;return((t*i-n*i)/i).toFixed(a)},computeVal:function(n){if(t.hideKeyboard(),!this.disabled){var i=0;"minus"===n?i=this.calcMinus(this.inputVal,this.step):"plus"===n&&(i=this.calcPlus(this.inputVal,this.step)),i<this.min||i>this.max||(this.inputVal=i,this.handleChange(i,n))}},onBlur:function(t){var n=this,i=0,e=t.detail.value;/(^\d+$)/.test(e)&&0!=e[0]||(i=this.min),i=+e,i>this.max?i=this.max:i<this.min&&(i=this.min),this.$nextTick((function(){n.inputVal=i})),this.handleChange(i,"blur")},onFocus:function(){this.$emit("focus")},handleChange:function(t,n){var i=this;this.disabled||(this.innerChangeTimer&&(clearTimeout(this.innerChangeTimer),this.innerChangeTimer=null),this.changeFromInner=!0,this.innerChangeTimer=setTimeout((function(){i.changeFromInner=!1}),150),this.$emit("input",Number(t)),this.$emit(n,{value:Number(t),index:this.index}))}}};n.default=i}).call(this,i("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/uview-ui/components/u-number-box/u-number-box-create-component',
{
'components/uview-ui/components/u-number-box/u-number-box-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("8aee"))
})
},
[['components/uview-ui/components/u-number-box/u-number-box-create-component']]
]);

View File

@ -0,0 +1,6 @@
{
"usingComponents": {
"u-icon": "/components/uview-ui/components/u-icon/u-icon"
},
"component": true
}

View File

@ -0,0 +1 @@
<view class="u-numberbox data-v-2476bff6"><view data-event-opts="{{[['touchstart',[['btnTouchStart',['minus']]]],['touchend',[['clearTimer',['$event']]]]]}}" class="{{['u-icon-minus','data-v-2476bff6',(disabled||inputVal<=min)?'u-icon-disabled':'']}}" style="{{'background:'+(bgColor)+';'+('height:'+(inputHeight+'rpx')+';')+('color:'+(color)+';')}}" catchtouchstart="__e" catchtouchend="__e"><u-icon vue-id="1007565a-1" name="minus" size="{{size}}" class="data-v-2476bff6" bind:__l="__l"></u-icon></view><input class="{{['u-number-input','data-v-2476bff6',(disabled)?'u-input-disabled':'']}}" style="{{'color:'+(color)+';'+('font-size:'+(size+'rpx')+';')+('background:'+(bgColor)+';')+('height:'+(inputHeight+'rpx')+';')+('width:'+(inputWidth+'rpx')+';')}}" disabled="{{disabledInput||disabled}}" cursor-spacing="{{getCursorSpacing}}" type="number" data-event-opts="{{[['blur',[['onBlur',['$event']]]],['focus',[['onFocus',['$event']]]],['input',[['__set_model',['','inputVal','$event',[]]]]]]}}" value="{{inputVal}}" bindblur="__e" bindfocus="__e" bindinput="__e"/><view data-event-opts="{{[['touchstart',[['btnTouchStart',['plus']]]],['touchend',[['clearTimer',['$event']]]]]}}" class="{{['u-icon-plus','data-v-2476bff6',(disabled||inputVal>=max)?'u-icon-disabled':'']}}" style="{{'background:'+(bgColor)+';'+('height:'+(inputHeight+'rpx')+';')+('color:'+(color)+';')}}" catchtouchstart="__e" catchtouchend="__e"><u-icon vue-id="1007565a-2" name="plus" size="{{size}}" class="data-v-2476bff6" bind:__l="__l"></u-icon></view></view>

View File

@ -0,0 +1,2 @@
.u-numberbox.data-v-2476bff6{display:inline-flex;align-items:center}.u-number-input.data-v-2476bff6{position:relative;text-align:center;padding:0;margin:0 6rpx;display:flex;flex-direction:row;align-items:center;justify-content:center}.u-icon-plus.data-v-2476bff6,
.u-icon-minus.data-v-2476bff6{width:60rpx;display:flex;flex-direction:row;justify-content:center;align-items:center}.u-icon-plus.data-v-2476bff6{border-radius:0 8rpx 8rpx 0}.u-icon-minus.data-v-2476bff6{border-radius:8rpx 0 0 8rpx}.u-icon-disabled.data-v-2476bff6{color:#c8c9cc!important;background:#f7f8fa!important}.u-input-disabled.data-v-2476bff6{color:#c8c9cc!important;background-color:#f2f3f5!important}

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uview-ui/components/u-search/u-search"],{"2b5a":function(t,e,n){"use strict";var o=n("7425"),i=n.n(o);i.a},"469f":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-search",props:{shape:{type:String,default:"round"},bgColor:{type:String,default:"#f2f2f2"},placeholder:{type:String,default:"请输入关键字"},clearabled:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},showAction:{type:Boolean,default:!0},actionStyle:{type:Object,default:function(){return{}}},actionText:{type:String,default:"搜索"},inputAlign:{type:String,default:"left"},disabled:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},borderColor:{type:String,default:"none"},value:{type:String,default:""},height:{type:[Number,String],default:64},inputStyle:{type:Object,default:function(){return{}}},maxlength:{type:[Number,String],default:"-1"},searchIconColor:{type:String,default:""},color:{type:String,default:"#606266"},placeholderColor:{type:String,default:"#909399"},margin:{type:String},searchIcon:{type:String,default:"search"},wrapBgColor:{type:String,default:"#fff"},hideRight:{type:Boolean,default:!1}},data:function(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword:function(t){this.$emit("input",t),this.$emit("change",t)},value:{immediate:!0,handler:function(t){this.keyword=t}}},computed:{showActionBtn:function(){return!(this.animation||!this.showAction)},borderStyle:function(){return this.borderColor?"1px solid ".concat(this.borderColor):"none"}},methods:{inputChange:function(t){this.keyword=t.detail.value},clear:function(){var t=this;this.keyword="",this.$nextTick((function(){t.$emit("clear")}))},search:function(e){this.$emit("search",e.detail.value);try{t.hideKeyboard()}catch(e){}},custom:function(){this.$emit("custom",this.keyword);try{t.hideKeyboard()}catch(e){}},getFocus:function(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur:function(){var t=this;setTimeout((function(){t.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler:function(){this.disabled&&this.$emit("click")}}};e.default=n}).call(this,n("df3c")["default"])},7425:function(t,e,n){},7627:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return o}));var o={uIcon:function(){return n.e("components/uview-ui/components/u-icon/u-icon").then(n.bind(null,"9e59"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__get_style([{textAlign:t.inputAlign,color:t.color,backgroundColor:t.bgColor},t.inputStyle])),o=t.hideRight?t.__get_style([t.actionStyle]):null;t.$mp.data=Object.assign({},{$root:{s0:n,s1:o}})},u=[]},b487:function(t,e,n){"use strict";n.r(e);var o=n("7627"),i=n("c041");for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);n("2b5a");var r=n("828b"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"24850526",null,!1,o["a"],void 0);e["default"]=a.exports},c041:function(t,e,n){"use strict";n.r(e);var o=n("469f"),i=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=i.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/uview-ui/components/u-search/u-search-create-component',
{
'components/uview-ui/components/u-search/u-search-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("b487"))
})
},
[['components/uview-ui/components/u-search/u-search-create-component']]
]);

View File

@ -0,0 +1,6 @@
{
"usingComponents": {
"u-icon": "/components/uview-ui/components/u-icon/u-icon"
},
"component": true
}

View File

@ -0,0 +1 @@
<view data-event-opts="{{[['tap',[['clickHandler',['$event']]]]]}}" class="u-search data-v-24850526" style="{{'margin:'+(margin)+';'+('background-color:'+(wrapBgColor)+';')}}" bindtap="__e"><view class="u-content data-v-24850526" style="{{'background-color:'+(bgColor)+';'+('border-radius:'+(shape=='round'?'100rpx':'10rpx')+';')+('border:'+(borderStyle)+';')+('height:'+(height+'rpx')+';')}}"><view class="u-icon-wrap data-v-24850526"><u-icon class="u-clear-icon data-v-24850526" vue-id="41e147b3-1" size="{{30}}" name="{{searchIcon}}" color="{{searchIconColor?searchIconColor:color}}" bind:__l="__l"></u-icon></view><input class="u-input data-v-24850526" style="{{$root.s0}}" confirm-type="search" disabled="{{disabled}}" focus="{{focus}}" maxlength="{{maxlength}}" placeholder-class="u-placeholder-class" placeholder="{{placeholder}}" placeholder-style="{{'color: '+placeholderColor}}" type="text" data-event-opts="{{[['blur',[['blur',['$event']]]],['confirm',[['search',['$event']]]],['input',[['inputChange',['$event']]]],['focus',[['getFocus',['$event']]]]]}}" value="{{value}}" bindblur="__e" bindconfirm="__e" bindinput="__e" bindfocus="__e"/><block wx:if="{{keyword&&clearabled&&focused}}"><view data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="u-close-wrap data-v-24850526" bindtap="__e"><u-icon class="u-clear-icon data-v-24850526" vue-id="41e147b3-2" name="close-circle-fill" size="34" color="#c0c4cc" bind:__l="__l"></u-icon></view></block></view><block wx:if="{{hideRight}}"><view data-event-opts="{{[['tap',[['custom',['$event']]]]]}}" class="{{['u-action','data-v-24850526',showActionBtn||show?'u-action-active':'']}}" style="{{$root.s1}}" catchtap="__e">{{actionText}}</view></block></view>

View File

@ -0,0 +1 @@
.u-search.data-v-24850526{display:flex;flex-direction:row;align-items:center;flex:1;padding:15rpx 20rpx}.u-content.data-v-24850526{display:flex;flex-direction:row;align-items:center;padding:0 18rpx;flex:1}.u-clear-icon.data-v-24850526{display:flex;flex-direction:row;align-items:center}.u-input.data-v-24850526{flex:1;font-size:28rpx;line-height:1;margin:0 10rpx;color:#909399}.u-close-wrap.data-v-24850526{width:40rpx;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:50%}.u-placeholder-class.data-v-24850526{color:#909399}.u-action.data-v-24850526{font-size:28rpx;color:#303133;width:0;overflow:hidden;transition:all .3s;white-space:nowrap;text-align:center}.u-action-active.data-v-24850526{width:80rpx;margin-left:10rpx}

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uview-ui/components/u-tag/u-tag"],{"0285":function(t,o,e){"use strict";e.r(o);var n=e("361e"),i=e.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){e.d(o,t,(function(){return n[t]}))}(r);o["default"]=i.a},"361e":function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var n={name:"u-tag",props:{type:{type:String,default:"primary"},disabled:{type:[Boolean,String],default:!1},size:{type:String,default:"default"},shape:{type:String,default:"square"},text:{type:[String,Number],default:""},bgColor:{type:String,default:""},color:{type:String,default:""},borderColor:{type:String,default:""},closeColor:{type:String,default:""},index:{type:[Number,String],default:""},mode:{type:String,default:"light"},closeable:{type:Boolean,default:!1},show:{type:Boolean,default:!0}},data:function(){return{}},computed:{customStyle:function(){var t={};return this.color&&(t.color=this.color),this.bgColor&&(t.backgroundColor=this.bgColor),"plain"==this.mode&&this.color&&!this.borderColor?t.borderColor=this.color:t.borderColor=this.borderColor,t},iconStyle:function(){if(this.closeable){var t={};return"mini"==this.size?t.fontSize="20rpx":t.fontSize="22rpx","plain"==this.mode||"light"==this.mode?t.color=this.type:"dark"==this.mode&&(t.color="#ffffff"),this.closeColor&&(t.color=this.closeColor),t}},closeIconColor:function(){return this.closeColor?this.closeColor:this.color?this.color:"dark"==this.mode?"#ffffff":this.type}},methods:{clickTag:function(){this.disabled||this.$emit("click",this.index)},close:function(){this.$emit("close",this.index)}}};o.default=n},"4bb6":function(t,o,e){},8546:function(t,o,e){"use strict";var n=e("4bb6"),i=e.n(n);i.a},dc97:function(t,o,e){"use strict";e.r(o);var n=e("f188"),i=e("0285");for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(o,t,(function(){return i[t]}))}(r);e("8546");var l=e("828b"),u=Object(l["a"])(i["default"],n["b"],n["c"],!1,null,"32014fd4",null,!1,n["a"],void 0);o["default"]=u.exports},f188:function(t,o,e){"use strict";e.d(o,"b",(function(){return i})),e.d(o,"c",(function(){return r})),e.d(o,"a",(function(){return n}));var n={uIcon:function(){return e.e("components/uview-ui/components/u-icon/u-icon").then(e.bind(null,"9e59"))}},i=function(){var t=this,o=t.$createElement,e=(t._self._c,t.show?t.__get_style([t.customStyle]):null),n=t.show&&t.closeable?t.__get_style([t.iconStyle]):null;t.$mp.data=Object.assign({},{$root:{s0:e,s1:n}})},r=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/uview-ui/components/u-tag/u-tag-create-component',
{
'components/uview-ui/components/u-tag/u-tag-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("dc97"))
})
},
[['components/uview-ui/components/u-tag/u-tag-create-component']]
]);

View File

@ -0,0 +1,6 @@
{
"usingComponents": {
"u-icon": "/components/uview-ui/components/u-icon/u-icon"
},
"component": true
}

View File

@ -0,0 +1 @@
<block wx:if="{{show}}"><view data-event-opts="{{[['tap',[['clickTag',['$event']]]]]}}" class="{{['u-tag','data-v-32014fd4',disabled?'u-disabled':'','u-size-'+size,'u-shape-'+shape,'u-mode-'+mode+'-'+type]}}" style="{{$root.s0}}" bindtap="__e">{{''+text+''}}<view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="u-icon-wrap data-v-32014fd4" catchtap="__e"><block wx:if="{{closeable}}"><u-icon class="u-close-icon data-v-32014fd4" style="{{$root.s1}}" vue-id="5ac5e926-1" size="22" color="{{closeIconColor}}" name="close" data-event-opts="{{[['^click',[['close']]]]}}" bind:click="__e" bind:__l="__l"></u-icon></block></view></view></block>

View File

@ -0,0 +1 @@
.u-tag.data-v-32014fd4{box-sizing:border-box;align-items:center;border-radius:6rpx;display:inline-block}.u-size-default.data-v-32014fd4{font-size:22rpx;padding:6rpx 12rpx}.u-size-mini.data-v-32014fd4{font-size:20rpx;padding:1rpx 6rpx}.u-mode-light-primary.data-v-32014fd4{background-color:#ecf5ff;color:#ff2c3c;border:1px solid #a0cfff}.u-mode-light-success.data-v-32014fd4{background-color:#dbf1e1;color:#19be6b;border:1px solid #71d5a1}.u-mode-light-error.data-v-32014fd4{background-color:#fef0f0;color:#fa3534;border:1px solid #fab6b6}.u-mode-light-warning.data-v-32014fd4{background-color:#fdf6ec;color:#f90;border:1px solid #fcbd71}.u-mode-light-info.data-v-32014fd4{background-color:#f4f4f5;color:#909399;border:1px solid #c8c9cc}.u-mode-dark-primary.data-v-32014fd4{background-color:#ff2c3c;color:#fff}.u-mode-dark-success.data-v-32014fd4{background-color:#19be6b;color:#fff}.u-mode-dark-error.data-v-32014fd4{background-color:#fa3534;color:#fff}.u-mode-dark-warning.data-v-32014fd4{background-color:#f90;color:#fff}.u-mode-dark-info.data-v-32014fd4{background-color:#909399;color:#fff}.u-mode-plain-primary.data-v-32014fd4{background-color:#fff;color:#ff2c3c;border:1px solid #ff2c3c}.u-mode-plain-success.data-v-32014fd4{background-color:#fff;color:#19be6b;border:1px solid #19be6b}.u-mode-plain-error.data-v-32014fd4{background-color:#fff;color:#fa3534;border:1px solid #fa3534}.u-mode-plain-warning.data-v-32014fd4{background-color:#fff;color:#f90;border:1px solid #f90}.u-mode-plain-info.data-v-32014fd4{background-color:#fff;color:#909399;border:1px solid #909399}.u-disabled.data-v-32014fd4{opacity:.55}.u-shape-circle.data-v-32014fd4{border-radius:100rpx}.u-shape-circleRight.data-v-32014fd4{border-radius:0 100rpx 100rpx 0}.u-shape-circleLeft.data-v-32014fd4{border-radius:100rpx 0 0 100rpx}.u-close-icon.data-v-32014fd4{margin-left:14rpx;font-size:22rpx;color:#19be6b}.u-icon-wrap.data-v-32014fd4{display:inline-flex;-webkit-transform:scale(.86);transform:scale(.86)}