1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-integral_mall-integral_mall"],{"0057":function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getCouponList=o,e.getCoupon=r,e.getOrderCoupon=s,e.getMyCoupon=l,e.getActivityGoodsLists=u,e.getSeckillTime=d,e.getSeckillGoods=c,e.getGroupList=f,e.getUserGroup=g,e.getTeamInfo=p,e.teamKaiTuan=m,e.teamCheck=v,e.teamBuy=h,e.getBargainList=b,e.getBargainDetail=w,e.getBargainNumber=y,e.launchBargain=C,e.getBargainActivityList=A,e.getBargainActivityDetail=S,e.getBargainPost=_,e.helpBargain=B,e.closeBargainOrder=x,e.getSignLists=k,e.getSignRule=E,e.userSignIn=L,e.getIntegralGoods=R,e.getIntegralGoodsDetail=I,e.integralSettlement=P,e.integralSubmitOrder=T,e.getIntegralOrder=H,e.delIntegralOrder=U,e.getIntegralOrderDetail=O,e.cancelIntegralOrder=N,e.confirmIntegralOrder=G,e.getIntegralOrderTraces=F;var a=n(i("b175"));i("357b");function o(t){return a.default.get("coupon/getCouponList",{params:t})}function r(t){return a.default.post("coupon/getCoupon",{coupon_id:t})}function s(t){return a.default.post("coupon/getBuyCouponList",t)}function l(t){return a.default.get("coupon/myCouponList",{params:t})}function u(t){return a.default.get("activity_area/activityGoodsList",{params:t})}function d(){return a.default.get("seckill_goods/getSeckillTime")}function c(t){return a.default.get("seckill_goods/getSeckillGoods",{params:t})}function f(t){return a.default.get("team/activity",{params:t})}function g(t){return a.default.get("team/record",{params:t})}function p(t){return a.default.get("team/teamInfo",{params:t})}function m(t){return a.default.post("team/kaituan",t)}function v(t){return a.default.post("team/check",t)}function h(t){return a.default.post("team/buy",t)}function b(t){return a.default.get("bargain/lists",{params:t})}function w(t){return a.default.get("bargain/detail",{params:t})}function y(){return a.default.get("bargain/barginNumber")}function C(t){return a.default.post("bargain/sponsor",t)}function A(t){return a.default.get("bargain/orderList",{params:t})}function S(t){return a.default.get("bargain/bargainDetail",{params:t})}function _(t){return a.default.get("share/shareBargain",{params:t})}function B(t){return a.default.post("bargain/knife",t)}function x(t){return a.default.get("bargain/closeBargain",{params:t})}function k(){return a.default.get("sign/lists")}function E(){return a.default.get("sign/rule")}function L(){return a.default.get("sign/sign")}function R(t){return a.default.get("integral_goods/lists",{params:t})}function I(t){return a.default.get("integral_goods/detail",{params:t})}function P(t){return a.default.get("integral_order/settlement",{params:t})}function T(t){return a.default.post("integral_order/submitOrder",t)}function H(t){return a.default.get("integral_order/lists",{params:t})}function U(t){return a.default.post("integral_order/del",{id:t})}function O(t){return a.default.get("integral_order/detail",{params:{id:t}})}function N(t){return a.default.post("integral_order/cancel",{id:t})}function G(t){return a.default.post("integral_order/confirm",{id:t})}function F(t){return a.default.get("integral_order/orderTraces",{params:{id:t}})}},"0d00":function(t,e,i){"use strict";i.r(e);var n=i("aa0e"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"259e":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-image",props:{src:{type:String,default:""},mode:{type:String,default:"aspectFill"},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"auto"},shape:{type:String,default:"square"},borderRadius:{type:[String,Number],default:0},lazyLoad:{type:Boolean,default:!0},showMenuByLongpress:{type:Boolean,default:!0},loadingIcon:{type:String,default:"photo"},errorIcon:{type:String,default:"error-circle"},showLoading:{type:Boolean,default:!0},showError:{type:Boolean,default:!0},fade:{type:Boolean,default:!0},webp:{type:Boolean,default:!1},duration:{type:[String,Number],default:500},bgColor:{type:String,default:"#f3f4f6"}},data:function(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{}}},watch:{src:{immediate:!0,handler:function(t){t?this.isError=!1:(this.isError=!0,this.loading=!1)}}},computed:{wrapStyle:function(){var t={};return t.width=this.$u.addUnit(this.width),t.height=this.$u.addUnit(this.height),t.borderRadius="circle"==this.shape?"50%":this.$u.addUnit(this.borderRadius),t.overflow=this.borderRadius>0?"hidden":"visible",this.fade&&(t.opacity=this.opacity,t.transition="opacity ".concat(Number(this.durationTime)/1e3,"s ease-in-out")),t}},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(t){this.loading=!1,this.isError=!0,this.$emit("error",t)},onLoadHandler:function(){var t=this;if(this.loading=!1,this.isError=!1,this.$emit("load"),!this.fade)return this.removeBgColor();this.opacity=0,this.durationTime=0,setTimeout((function(){t.durationTime=t.duration,t.opacity=1,setTimeout((function(){t.removeBgColor()}),t.durationTime)}),50)},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};e.default=n},"3e66":function(t,e,i){"use strict";var n=i("cb37"),a=i.n(n);a.a},"5a93":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".price-format[data-v-0a5a34e0]{font-family:Avenir,SourceHanSansCN,PingFang SC,Arial,Hiragino Sans GB,Microsoft YaHei,sans-serif}",""]),t.exports=e},"5c2f":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-image[data-v-5c6487b9]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-5c6487b9]{width:100%;height:100%}.u-image__loading[data-v-5c6487b9], .u-image__error[data-v-5c6487b9]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#f3f4f6;color:#909399;font-size:%?46?%}',""]),t.exports=e},"660b":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("4569").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-image",style:[t.wrapStyle,t.backgroundStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t.isError?t._e():i("v-uni-image",{staticClass:"u-image__image",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)},attrs:{src:t.src,mode:t.mode,"lazy-load":t.lazyLoad},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.onErrorHandler.apply(void 0,arguments)},load:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadHandler.apply(void 0,arguments)}}}),t.showLoading&&t.loading?i("v-uni-view",{staticClass:"u-image__loading",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius),backgroundColor:this.bgColor}},[t.$slots.loading?t._t("loading"):i("u-icon",{attrs:{name:t.loadingIcon,width:t.width,height:t.height}})],2):t._e(),t.showError&&t.isError&&!t.loading?i("v-uni-view",{staticClass:"u-image__error",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)}},[t.$slots.error?t._t("error"):i("u-icon",{attrs:{name:t.errorIcon,width:t.width,height:t.height}})],2):t._e()],1)},o=[]},7171:function(t,e,i){"use strict";i.r(e);var n=i("660b"),a=i("cb4c");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7208");var r,s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"5c6487b9",null,!1,n["a"],r);e["default"]=l.exports},7208:function(t,e,i){"use strict";var n=i("774a"),a=i.n(n);a.a},"741e":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */uni-page-body[data-v-2f8d8a98]{padding:0}.integral-mall .header[data-v-2f8d8a98]{padding:%?22?% %?24?%}.integral-mall .main .sort-bar[data-v-2f8d8a98]{height:%?80?%}.integral-mall .main .sort-bar .sort-bar-item[data-v-2f8d8a98]{height:100%}.integral-mall .main .sort-bar .arrow-icon[data-v-2f8d8a98]{-webkit-transform:scale(.4);transform:scale(.4)}.integral-mall .main .goods-lists[data-v-2f8d8a98]{padding:%?20?% %?20?% 0;margin:%?-8?%;display:flex;flex-wrap:wrap}.integral-mall .main .goods-lists .goods-item[data-v-2f8d8a98]{width:50%}.integral-mall .main .goods-lists .goods-item .goods-item-info[data-v-2f8d8a98]{margin:%?8?%;border-radius:%?14?%;background:#fff;overflow:hidden}.integral-mall .main .goods-lists .goods-item .goods-item-info .goods-image[data-v-2f8d8a98]{flex:none;position:relative;height:0;padding-top:100%}.integral-mall .main .goods-lists .goods-item .goods-item-info .goods-image .image-wrap[data-v-2f8d8a98]{position:absolute;top:0;left:0;right:0;bottom:0}.integral-mall .main .goods-lists .goods-item .goods-item-info .goods-info[data-v-2f8d8a98]{padding:%?14?%}.integral-mall .main .goods-lists .goods-item .goods-item-info .goods-info .goods-name[data-v-2f8d8a98]{line-height:%?40?%;height:%?80?%}.integral-mall .main .goods-lists--one .goods-item[data-v-2f8d8a98]{width:100%}.integral-mall .main .goods-lists--one .goods-item .goods-item-info[data-v-2f8d8a98]{display:flex}.integral-mall .main .goods-lists--one .goods-item .goods-item-info .goods-image[data-v-2f8d8a98]{width:%?200?%;padding-top:%?200?%}.integral-mall .main .goods-lists--one .goods-item .goods-item-info .goods-info[data-v-2f8d8a98]{padding:%?24?% %?20?%}',""]),t.exports=e},"774a":function(t,e,i){var n=i("5c2f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("28f9c44e",n,!0,{sourceMap:!1,shadowMode:!1})},"7eac":function(t,e,i){"use strict";var n=i("ab77"),a=i.n(n);a.a},8312:function(t,e,i){"use strict";i.r(e);var n=i("a126"),a=i("0d00");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7eac");var r,s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"0a5a34e0",null,!1,n["a"],r);e["default"]=l.exports},"8b51":function(t,e,i){"use strict";i.r(e);var n=i("fd0b"),a=i("c885");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("3e66");var r,s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"2f8d8a98",null,!1,n["a"],r);e["default"]=l.exports},"9dda":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAB7JJREFUWEe9mXesbWURxX8LUEBFQEAskSpICSGUaAygSAtFA4qIGIj8hUGRIIIBBCEYEqlKixFIeASVJ7wgRQ3I0z8EKUIIPBURG2ChK1Lie1I+sg4zJ3P33afcC4+TnNxy9v72+uZbs2bNHDHPV2tNo26V1Oa57MTbRj603hngVgDy+pfGgYrrV4w1DP7l12sTIwGXh/phL3e33lpbCXhzvPPj/wPLJL3Uc7037PfYzU4KcS/g1pqjM4xKa+1dwNbAdsDmwPuAdwJvA1YrD3kWeAZ4AngY+B2wBLhbkv9HnlbfpiaB9eczANf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lznZXPY0uLZE2kno2bNHCOMM/EPAcZIWjuo6ljfgYQLb0MfY61Mxq7DZ9+eeTbg5sAW4NhJsxpdCNVLLFXChUPdbKfPZFdHPf76jSEOF6jvSNwRwkUsDn5W0cfzGMvE7vDcMcE+BGv5rmq8K8uJXAO83EmHk37PEAAAAAElFTkSuQmCC"},"9df2":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{mescroll:null}},onPullDownRefresh:function(){this.mescroll&&this.mescroll.onPullDownRefresh()},onPageScroll:function(t){this.mescroll&&this.mescroll.onPageScroll(t)},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},methods:{mescrollInit:function(t){console.log(t),this.mescroll=t,this.mescrollInitByRef()},mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var t=this.$refs.mescrollRef;t&&(this.mescroll=t.mescroll)}},downCallback:function(){var t=this;this.mescroll.optUp.use?this.mescroll.resetUpScroll():setTimeout((function(){t.mescroll.endSuccess()}),500)},upCallback:function(){var t=this;setTimeout((function(){t.mescroll.endErr()}),500)}},mounted:function(){this.mescrollInitByRef()}},a=n;e.default=a},a126:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-text",{class:(t.lineThrough?"line-through":"")+" price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?i("v-uni-text",{style:{"font-size":t.subscriptSize+"rpx","margin-right":"2rpx"}},[t._v("¥")]):t._e(),i("v-uni-text",{style:{"font-size":t.firstSize+"rpx","margin-right":"1rpx"}},[t._v(t._s(t.priceSlice.first))]),t.priceSlice.second?i("v-uni-text",{style:{"font-size":t.secondSize+"rpx"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()],1)},o=[]},aa0e:function(t,e,i){"use strict";i("a9e3"),i("acd8"),i("ac1f"),i("1276"),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):this.priceSlice={first:0}}}};e.default=n},ab77:function(t,e,i){var n=i("5a93");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0d47c85e",n,!0,{sourceMap:!1,shadowMode:!1})},c885:function(t,e,i){"use strict";i.r(e);var n=i("ec90"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},cb37:function(t,e,i){var n=i("741e");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5fa51e06",n,!0,{sourceMap:!1,shadowMode:!1})},cb4c:function(t,e,i){"use strict";i.r(e);var n=i("259e"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},ec90:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("7db0"),i("4160"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("ade3")),o=i("0057"),r=n(i("9df2")),s=i("357b"),l={mixins:[r.default],data:function(){return{sortConfig:[{name:"最新",type:"sort_by_new",value:"desc",setValue:"desc"},{name:"积分",type:"sort_by_integral",value:""},{name:"兑换量",type:"sort_by_sales",value:"",setValue:"desc"}],goodsType:"double",upOption:{noMoreSize:2,auto:!1,empty:{icon:"/static/images/goods_null.png",tip:"暂无商品"}},goodsLists:[],integral:""}},methods:{changeGoodsType:function(){this.goodsType="one"===this.goodsType?"double":"one"},handleSort:function(t){this.sortConfig.forEach((function(e){t.type==e.type?e.setValue?e.value=e.setValue:"asc"==e.value?e.value="desc":e.value="asc":e.value=""}))},upCallback:function(t){var e,i=this,n=t.num,r=t.size,s=this.sortConfig.find((function(t){return t.value}))||{};(0,o.getIntegralGoods)((e={},(0,a.default)(e,s.type,s.value),(0,a.default)(e,"page_no",n),(0,a.default)(e,"page_size",r),e)).then((function(t){if(1==t.code){var e=t.data,a=e.goods,o=e.integral;i.integral=o;var r=a.lists,s=r.length,l=!!a.more;1==n&&(i.goodsLists=[]),i.goodsLists=i.goodsLists.concat(r),i.mescroll.endSuccess(s,l)}else i.mescroll.endErr()})).catch((function(){i.mescroll.endErr()}))}},watch:{sortConfig:{handler:function(t){this.goodsLists=[],this.mescroll.resetUpScroll()},deep:!0}},onLoad:function(){this.handleSort=(0,s.trottle)(this.handleSort,500,this)}};e.default=l},fd0b:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("4569").default,uImage:i("7171").default,priceFormat:i("8312").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"integral-mall"},[n("mescroll-body",{ref:"mescrollRef",attrs:{up:t.upOption},on:{init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)},down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"header bg-primary flex row-between white"},[n("router-link",{attrs:{to:"/bundle/pages/integral_sign/integral_sign"}},[n("v-uni-view",{staticClass:"user-integral flex"},[n("u-icon",{staticClass:"m-r-16",attrs:{name:i("9dda"),size:44}}),t._v("我的积分:"),n("v-uni-text",{staticClass:"xxl bold"},[t._v(t._s(t.integral))])],1)],1),n("router-link",{attrs:{to:"/bundle/pages/exchange_order/exchange_order"}},[t._v("兑换订单"),n("u-icon",{attrs:{name:"arrow-right"}})],1)],1),n("v-uni-view",{staticClass:"main"},[n("v-uni-view",{staticClass:"sort-bar flex bg-white"},[t._l(t.sortConfig,(function(e,i){return n("v-uni-view",{key:i,staticClass:"sort-bar-item flex-2 flex row-center",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.handleSort(e)}}},[n("v-uni-text",{class:e.value?"primary":""},[t._v(t._s(e.name))]),e.setValue?t._e():n("v-uni-view",{staticClass:"arrow-icon flex-col col-center row-center"},[n("u-icon",{attrs:{name:"arrow-up-fill",color:"asc"==e.value?t.colorConfig.primary:t.colorConfig.normal}}),n("u-icon",{attrs:{name:"arrow-down-fill",color:"desc"==e.value?t.colorConfig.primary:t.colorConfig.normal}})],1)],1)})),n("v-uni-view",{staticClass:"flex-1 flex row-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeGoodsType.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"icon-sm",attrs:{src:"one"===t.goodsType?"/static/images/icon_double.png":"/static/images/icon_one.png"}})],1)],2),n("v-uni-view",{staticClass:"goods-lists",class:{"goods-lists--one":"one"===t.goodsType}},t._l(t.goodsLists,(function(e,i){return n("v-uni-view",{key:i,staticClass:"goods-item"},[n("router-link",{attrs:{to:"/bundle/pages/integral_goods_details/integral_goods_details?id="+e.id}},[n("v-uni-view",{staticClass:"goods-item-info"},[n("v-uni-view",{staticClass:"goods-image"},[n("v-uni-view",{staticClass:"image-wrap"},[n("u-image",{attrs:{src:e.image,width:"100%",height:"100%"}})],1)],1),n("v-uni-view",{staticClass:"goods-info"},[n("v-uni-view",{staticClass:"goods-name line-2"},[t._v(t._s(e.name))]),n("v-uni-view",{staticClass:"goods-price primary m-t-10"},[n("price-format",{attrs:{color:t.colorConfig.primary,"show-subscript":!1,"first-size":36,"second-size":24,price:e.need_integral}}),n("v-uni-text",{staticClass:"xs"},[t._v("积分")]),2===e.exchange_way?[n("v-uni-text",[t._v("+")]),n("price-format",{attrs:{color:t.colorConfig.primary,"show-subscript":!1,"first-size":36,"second-size":24,price:e.need_money}}),n("v-uni-text",{staticClass:"xs"},[t._v("元")])]:t._e()],2)],1)],1)],1)],1)})),1)],1)],1)],1)},o=[]}}]); |