| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808 |
- <template>
- <view class="container">
- <!--banner-->
- <view class="tui-banner-swiper">
- <swiper :autoplay="true" :interval="5000" :duration="150" :circular="true"
- :style="{ height: swiperHeight + 'px' }" @change="bannerChange">
- <block v-for="(item, index) in banner" :key="index">
- <swiper-item class="swiper" :data-index="index" @tap.stop="previewImage">
- <image mode="widthFix" :src="item.pic" class="tui-slide-image" @load="setswiperHeight" />
- </swiper-item>
- </block>
- </swiper>
- <!-- 视频-->
- <view v-if="goodsDetail.videourl" class="tui-video__box" @tap.stop="play">
- <image src="/static/images/mall/video.png" mode="widthFix"></image>
- </view>
- <view class="tui-banner-tag">
- <tui-tag padding="12rpx 18rpx" type="translucent" shape="circleLeft" :scaleMultiple="0.82" originRight>
- {{ bannerIndex + 1 }}/{{ banner.length }}
- </tui-tag>
- </view>
- </view>
- <!--banner-->
- <view class="tui-pro-detail">
- <view class="tui-product-title tui-border-radius">
- <view v-if="tuanid>0" class="tui-price__box">
- <view class="tuan-pro-pricebox tui-padding">
- <view class="tui-pro-price">
- <view>
- <text>¥</text>
- <text class="tuan-price">{{goodsDetail.price}}
- <block v-if="goodsDetail.ptype==2">
- <text v-if="goodsDetail.time_amount > 0"
- class="f-30">/{{goodsDetail.time_amount}}{{goodsDetail.quantity_unit}}</text>
- <text v-else class="f-30">/<text
- v-if="goodsDetail.is_times">{{goodsDetail.timesmum}}</text>次</text>
- </block>
- </text>
- </view>
- <view v-if="goodsDetail.original_price>0" class="tui-original-price tui-white__gray">
- ¥{{goodsDetail.original_price}}</view>
- </view>
- <view class="tui-sold tui-white__gray">
- <view class="tui-price-tag">{{tuangoods.people_num}}人团</view>
- <text>已拼{{goodsDetail.sale_count}}件</text>
- </view>
- </view>
- <view class="tui-right__box">
- <tui-button v-if="tuangoods.auto_initiate==0" width="168rpx" height="54rpx" :size="26" shadow
- type="danger" shape="circle" @click="showPopup">
- 发起拼团
- </tui-button>
- <tui-button v-else width="168rpx" height="54rpx" :size="26" shadow type="danger" shape="circle"
- @click="showPopup">
- 拼团
- </tui-button>
- </view>
- </view>
- <view v-else-if="msid>0" class="tui-price__box">
- <view class="ms-pro-pricebox tui-padding">
- <view class="tui-pro-price">
- <view>
- <text>¥</text>
- <text class="tuan-price">{{goodsDetail.price}}
- <block v-if="goodsDetail.ptype==2">
- <block v-if="goodsDetail.is_times == 0">
- <text v-if="goodsDetail.time_amount > 0"
- class="f-24">/{{goodsDetail.time_amount}}{{goodsDetail.quantity_unit}}</text>
- <text v-if="goodsDetail.time_amount == 0"
- class="f-24">/{{goodsDetail.quantity_unit}}1</text>
- </block>
- <text v-if="goodsDetail.is_times == 1" class="f-24">
- /<text v-if="goodsDetail.is_times">{{goodsDetail.timesmum}}</text>
- 次</text>
- </block>
- </text>
- </view>
- <view class="tui-original-price tui-white__gray">¥{{goodsDetail.original_price}}</view>
- </view>
- <view class="tui-sold tui-white__gray">
- <text>已抢{{goodsDetail.sale_count}}件</text>
- <tui-tag v-if="goodsDetail.miaosha.status==1" type="white" plain size="24rpx" padding="8rpx"
- :scaleMultiple="0.94">限时秒杀</tui-tag>
- </view>
- </view>
- <view class="tui-right__box">
- <tui-button v-if="goodsDetail.miaosha.status!=1" type="danger" disabled shape="circle"
- width="140rpx" height="42rpx" :size="24">{{goodsDetail.miaosha.status==0?'活动已结束':'即将开抢'}}
- </tui-button>
- <text v-if="goodsDetail.miaosha.status==1" class="tui-color-red">距结束还剩:</text>
- <tui-countdown v-if="goodsDetail.miaosha.status==1" :width="28" :height="28" :time="3880"
- backgroundColor="#EB0909" borderColor="#EB0909" colonColor="#EB0909" color="#fff">
- </tui-countdown>
- </view>
- </view>
- <view v-else class="toplndsie">
- <view class="tui-pro-pricebox tui-padding">
- <view class="tui-pro-price">
- <view v-if="goodsDetail.is_points_goods!=1">
- <text>¥</text>
- <text class="tui-price">{{goodsDetail.price}}
- <block v-if="goodsDetail.ptype==2">
- <block v-if="goodsDetail.is_times == 0">
- <text v-if="goodsDetail.time_amount > 0"
- class="f-24">/{{goodsDetail.time_amount}}{{goodsDetail.quantity_unit}}</text>
- <text v-if="goodsDetail.time_amount == 0"
- class="f-24">/{{goodsDetail.quantity_unit}}</text>
- </block>
- <text v-if="goodsDetail.is_times == 1" class="f-24">
- /<text v-if="goodsDetail.is_times">{{goodsDetail.timesmum}}</text>
- 次</text>
- </block>
- </text>
- <text v-if="goodsDetail.is_additional==1" class="dingjing">(定金)</text>
- <text v-if="goodsDetail.original_price>0" class="tui-original-price tui-gray">
- 原价
- <text class="tui-line-through">¥{{goodsDetail.original_price}}</text>
- </text>
- </view>
- <view v-if="goodsDetail.is_points_goods==1">
- <text>{{lang.points}}:</text>
- <text class="tui-price">{{goodsDetail.pay_points}}</text>
- </view>
- <!--<tui-tag padding="10rpx 20rpx" size="24rpx" plain type="high-green" shape="circle"
- :scaleMultiple="0.8">新品</tui-tag>-->
- </view>
- <view class="tui-collection tui-size" @tap="collecting">
- <tui-icon :name="collected ? 'like-fill' : 'like'" :color="collected ? '#ff201f' : '#333'"
- :size="20"></tui-icon>
- <view class="tui-scale-collection" :class="{'tui-icon-red':collected}">收藏</view>
- </view>
- </view>
- <view class="points_goods" v-if="goodsDetail.pay_points>0 && goodsDetail.points_price>0">
- 可以用{{goodsDetail.pay_points}}{{lang.points}}抵扣{{goodsDetail.points_price}}元
- </view>
- </view>
- <view class="tui-pro-titbox">
- <view class="tui-pro-title">{{goodsDetail.name}}</view>
- <view class="tui-share-position" @tap="showSharePopup">
- <tui-tag type="gray" shape="circleLeft" padding="12rpx 16rpx">
- <view class="tui-share-box">
- <tui-icon name="partake" color="#333" :size="15"></tui-icon>
- <text class="tui-share-text tui-size">分享</text>
- </view>
- </tui-tag>
- </view>
- </view>
- <view class="tui-padding">
- <view class="tui-sale-info tui-size tui-gray">
- <view>人气:{{viewed}}</view>
- <view>月销:{{goodsDetail.sale_count}}</view>
- <view v-if="goodsDetail.ptype==1">库存:{{quantity}}</view>
- </view>
- </view>
- </view>
- <view v-if="goodsDetail.combination && goodsDetail.combination.length>0" class="tui-radius-all tui-mtop">
- <tui-list-cell padding="30rpx">
- <view class="tui-combination-text tui-between">
- <view class="tui-combination-title">套装商品</view>
- </view>
- </tui-list-cell>
- <block v-for="(item, index) in goodsDetail.combination" :key="index">
- <view class="border-flex">
- <!-- 图片 -->
- <view class="border-left">
- <image mode="scaleToFill" :src="item.goods.image" />
- </view>
- <!-- 文字 -->
- <view class="border-right">
- <view>{{item.goods.name}}</view>
- <view>单价:{{item.goods.price}}</view>
- <view>数量:{{item.numbers}}{{item.goods.quantity_unit}}</view>
- </view>
- </view>
- </block>
- </view>
- <!--
- <view class="tui-discount-box tui-radius-all tui-mtop">
- <view class="tui-list-cell" @tap="coupon">
- <view class="tui-bold tui-cell-title">领券</view>
- <view class="tui-flex-center">
- <tui-tag type="red" shape="circle" padding="12rpx 24rpx" size="24rpx">满99减8</tui-tag>
- <tui-tag margin="0 0 0 20rpx" type="red" padding="12rpx 24rpx" size="24rpx" shape="circle">满59减5
- </tui-tag>
- </view>
- <view class="tui-ml-auto">
- <tui-icon name="more-fill" :size="20" color="#666"></tui-icon>
- </view>
- </view>
- <view class="tui-list-cell tui-last" @tap="showPopup">
- <view class="tui-bold tui-cell-title">促销</view>
- <view>
- <view class="tui-promotion-box">
- <tui-tag originLeft padding="12rpx 24rpx" :scaleMultiple="0.8" shape="circle" type="red"
- plain>多买优惠</tui-tag>
- <text>满1件,立减最低1件商品价格,包邮(限中国内地)</text>
- </view>
- <view class="tui-promotion-box">
- <tui-tag originLeft padding="12rpx 24rpx" :scaleMultiple="0.8" shape="circle" type="red"
- plain>满额返券</tui-tag>
- <text>满2件,立减最低2件商品价格,包邮(限中国内地)</text>
- </view>
- <view class="tui-promotion-box">
- <tui-tag originLeft padding="12rpx 24rpx" :scaleMultiple="0.8" shape="circle" type="red"
- plain>特别赠品</tui-tag>
- <text>满3件,立减最低3件商品价格,包邮(限中国内地)</text>
- </view>
- </view>
- <view class="tui-right">
- <tui-icon name="more-fill" :size="20" color="#666"></tui-icon>
- </view>
- </view>
- </view>-->
- <view class="tui-basic-info tui-mtop tui-radius-all">
- <view v-if="hasMoreSelect" class="tui-list-cell" @tap="showPopup">
- <view class="tui-bold tui-cell-title">选项</view>
- <view class="tui-selected-box">{{selectSize}}</view>
- <view class="tui-ml-auto">
- <tui-icon name="more-fill" :size="20" color="#666"></tui-icon>
- </view>
- </view>
- <!--
- <view class="tui-list-cell" @tap="showPopup">
- <view class="tui-bold tui-cell-title">送至</view>
- <view class="tui-addr-box">
- <view class="tui-addr-item">北京朝阳区三环到四环之间</view>
- <view class="tui-addr-item">今日23:59前完成下单,预计6月28日23:30前发货,7月1日24:00前送达</view>
- </view>
- <view class="tui-right">
- <tui-icon name="more-fill" :size="20" color="#666"></tui-icon>
- </view>
- </view>
- <view class="tui-list-cell tui-last">
- <view class="tui-bold tui-cell-title">运费</view>
- <view class="tui-selected-box">在线支付免运费</view>
- </view>-->
- <view class="tui-guarantee" v-if="goodsDetail.keyword.length>0">
- <view v-for="(item, index) in goodsDetail.keyword" :key="index" class="tui-guarantee-item">
- <tui-icon name="circle-selected" :size="14" color="#999"></tui-icon>
- <text class="tui-pl">{{item}}</text>
- </view>
- </view>
- </view>
- <!--正在拼团中-->
- <view v-if="tuanid>0">
- <view v-if="tuangoods.TuanFound.length>0 && tuangoods.auto_initiate==0" class="tui-radius-all tui-mtop">
- <tui-list-cell padding="30rpx">
- <view class="tui-group-text tui-between">
- <view class="tui-group-title">{{tuangoods.TuanFound.length}}人正在拼团,可直接参与</view>
- </view>
- </tui-list-cell>
- <!-- :style="{ height: list.length === 1 ? '156rpx' : '312rpx' }" -->
- <!-- :display-multiple-items="list.length === 1 ? 1 : 2" -->
- <swiper :indicator-dots="false" :autoplay="true" :interval="5000" :duration="500" :circular="true"
- :display-multiple-items="tuangoods.TuanFound.length < 2 ? 1 : 2" :vertical="true"
- class="tui-group-swiper"
- :style="{ height: tuangoods.TuanFound.length < 2 ? '156rpx' : '312rpx' }">
- <block v-for="(item, index) in tuangoods.TuanFound" :key="index">
- <swiper-item>
- <view class="tui-group-user">
- <view class="tui-user-left">
- <image :src="item.avatar || '/static/images/my/img_not_tuxedo.png'"
- :lazy-load="true"></image>
- <view class="tui-user-anme">{{item.nickname}}</view>
- </view>
- <view class="tui-user-right">
- <view class="tui-user-countdown">
- <view class="tui-group-num">
- {{item.need}}人成团,还差<text
- class="tui-color-red">{{item.difference}}</text>人拼成
- </view>
- <view class="tui-group-countdown">
- <view class="tui-countdown-right">剩余</view>
- <tui-countdown :time="3800" scale colonColor="#EB0909"
- borderColor="#EB0909" color="#EB0909"></tui-countdown>
- <view class="tui-countdown-left">结束</view>
- </view>
- </view>
- <tui-button width="128rpx" height="54rpx" :size="26" shadow type="danger"
- shape="circle" @click="jointuan(item.id)">
- 去参团
- </tui-button>
- </view>
- </view>
- </swiper-item>
- </block>
- </swiper>
- </view>
- <!-- 自动开团 -->
- <view v-else class="tui-radius-all tui-mtop">
- <tui-list-cell padding="30rpx">
- <view class="tui-group-text tui-between">
- <view v-if="tuangoods.TuanFollow && tuangoods.TuanFollow.length" class="tui-group-title">
- {{tuangoods.TuanFollow.length}}人正在拼团,还差{{tuangoods.TuanFound[0].difference}}人成团,可直接参与
- </view>
- <view v-else class="tui-group-title">0人正在拼团,还差{{tuangoods.people_num}}人成团,可直接参与
- </view>
- </view>
- </tui-list-cell>
- <block v-if="tuangoods.TuanFollow && tuangoods.TuanFollow.length">
- <!-- :style="{ height: list.length === 1 ? '156rpx' : '312rpx' }" -->
- <!-- :display-multiple-items="list.length === 1 ? 1 : 2" -->
- <swiper :indicator-dots="false" :autoplay="true" :interval="5000" :duration="500"
- :circular="true" :display-multiple-items="tuangoods.TuanFollow.length < 2 ? 1 : 2"
- :vertical="true" class="tui-group-swiper"
- :style="{ height: tuangoods.TuanFollow.length < 2 ? '156rpx' : '312rpx' }">
- <block v-for="(item, index) in tuangoods.TuanFollow" :key="index">
- <swiper-item>
- <view class="tui-group-user">
- <view class="tui-user-left">
- <image :src="item.avatar || '/static/images/my/img_not_tuxedo.png'"
- :lazy-load="true"></image>
- <view class="tui-user-anme-auto">{{item.nickname}}</view>
- </view>
- <view class="tui-user-right">
- <view class="tui-user-countdown">
- <view class="tui-group-countdown">
- <view class="tui-countdown-right">剩余</view>
- <tui-countdown :time="3800" scale colonColor="#EB0909"
- borderColor="#EB0909" color="#EB0909"></tui-countdown>
- <view class="tui-countdown-left">结束</view>
- </view>
- </view>
- </view>
- </view>
- </swiper-item>
- </block>
- </swiper>
- </block>
- </view>
- <!--拼团规则玩法介绍-->
- <view class="tui-group-rule tui-mtop tui-radius-all">
- <tui-list-cell padding="30rpx" arrow @click="showModal">
- <view class="tui-group-text tui-between">
- <view class="tui-group-title">拼团规则</view>
- <view class="tui-sub__title">拼团玩法介绍</view>
- </view>
- </tui-list-cell>
- <view v-if="tuangoods.auto_initiate==0" class="tui-step__box">
- <view class="tui-step-item">
- <image src="/static/images/mall/img_opengroup_3x.png"></image>
- <view class="tui-step-text">团长开团</view>
- </view>
- <view class="tui-step-arrow">
- <image src="/static/images/mall/img_arrow_3x.png"></image>
- </view>
- <view class="tui-step-item">
- <image src="/static/images/mall/img_invitefriends_3x.png"></image>
- <view class="tui-step-text">邀请好友</view>
- </view>
- <view class="tui-step-arrow">
- <image src="/static/images/mall/img_arrow_3x.png"></image>
- </view>
- <view class="tui-step-item">
- <image src="/static/images/mall/img_spellgroupsuccess_3x.png"></image>
- <view class="tui-step-text">拼团成功</view>
- </view>
- </view>
- <view v-if="tuangoods.auto_initiate==1" class="tui-step__box">
- <view class="tui-step-item">
- <image src="/static/images/mall/img_opengroup_3x.png"></image>
- <view class="tui-step-text">参与拼团</view>
- <view class="tui-step-text">{{tuangoods.people_num}}人成团</view>
- </view>
- <view class="tui-step-arrow">
- <image src="/static/images/mall/img_arrow_3x.png"></image>
- </view>
- <view class="tui-step-item">
- <image src="/static/images/mall/img_invitefriends_3x.png"></image>
- <view class="tui-step-text">拼中发货</view>
- </view>
- <view class="tui-step-arrow">
- <image src="/static/images/mall/img_arrow_3x.png"></image>
- </view>
- <view class="tui-step-item">
- <image src="/static/images/mall/img_spellgroupsuccess_3x.png"></image>
- <view class="tui-step-text">未拼中获得奖励</view>
- <view v-if="tuangoods.not_winning_ptype==2" class="tui-step-text">
- <text>¥</text>
- <text class="redenvelope">{{tuangoods.not_winning_redenvelope}}</text>红包
- </view>
- <view v-if="tuangoods.not_winning_ptype==3" class="tui-step-text">
- 优惠券
- </view>
- <view v-if="tuangoods.not_winning_ptype==4" class="tui-step-text">
- <text>¥</text>
- <text class="redenvelope">{{tuangoods.not_winning_points}}</text>{{lang.points}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <!--正在拼团中end-->
- <view v-if="goodscomment && goodscomment.length>0 && goodsDetail.ptype==1"
- class="tui-cmt-box tui-mtop tui-radius-all">
- <view class="tui-list-cell tui-last tui-between">
- <view class="tui-bold tui-cell-title">评价</view>
- <!--<view class="tui-flex-center" @tap="evaluate">
- <text class="tui-cmt-all">查看全部</text>
- <tui-icon name="more-fill" :size="20" color="#ff201f"></tui-icon>
- </view>-->
- </view>
- <view v-for="(item, index) in goodscomment" :key="index" class="tui-cmt-content tui-padding">
- <view class="tui-cmt-user">
- <image :src="item.head_img_url" class="tui-acatar"></image>
- <view class="tui-attr">{{item.nick_name}}</view>
- </view>
- <tui-rate :current="item.level"></tui-rate>
- <view class="tui-cmt">{{item.content}}</view>
- <!--<view class="tui-attr">颜色:叠层钛钢流苏耳环(A74)</view>-->
- </view>
- <view class="tui-cmt-btn">
- <!--<tui-button width="240rpx" height="64rpx" :size="24" type="black" plain shape="circle"
- @click="evaluate">查看全部评价</tui-button>-->
- </view>
- </view>
- <view class="tui-product-img overflowhidden">
- <view class="pro_detailImg">
- <uParse :html="goodsDetail.content" ref="article" :tag-style="tagStyle"></uParse>
- </view>
- </view>
- <tui-nomore text="已经到最底了" backgroundColor="#f7f7f7"></tui-nomore>
- <view class="tui-safearea-bottom"></view>
- </view>
- <!--底部操作栏-->
- <view class="tui-operation">
- <view class="tui-operation-left" :class="{'tui-col-4':ptype==1,'tui-col-3':ptype==2}">
- <view class="tui-operation-item" hover-class="tui-opcity" :hover-stay-time="150" @tap="goindex">
- <tui-icon name="shop" :size="22" color="#333"></tui-icon>
- <view class="tui-operation-text tui-scale-small">首页</view>
- </view>
- <!-- #ifdef MP-WEIXIN -->
- <button v-if="configkefu.minionline==1 || configkefu.minionline==3" @click="toim"
- class="item-button tui-operation-item" hover-class="tui-opcity" :hover-stay-time="150">
- <tui-icon name="kefu" :size="22" color="#333"></tui-icon>
- <view class="tui-operation-text tui-scale-small">客服</view>
- </button>
- <button v-else-if="configkefu.minionline==2" @click="toimwebview(configkefu.kefuurl)"
- class="item-button tui-operation-item" hover-class="tui-opcity" :hover-stay-time="150">
- <tui-icon name="kefu" :size="22" color="#333"></tui-icon>
- <view class="tui-operation-text tui-scale-small">客服</view>
- </button>
- <button v-else open-type="contact" class="item-button tui-operation-item" hover-class="tui-opcity"
- :hover-stay-time="150">
- <tui-icon name="kefu" :size="22" color="#333"></tui-icon>
- <view class="tui-operation-text tui-scale-small">客服</view>
- </button>
- <!-- #endif -->
- <!-- #ifndef MP-WEIXIN -->
- <button v-if="configkefu.minionline==1 || configkefu.minionline==2 || configkefu.minionline==3"
- @click="toim" class="item-button tui-operation-item" hover-class="tui-opcity"
- :hover-stay-time="150">
- <tui-icon name="kefu" :size="22" color="#333"></tui-icon>
- <view class="tui-operation-text tui-scale-small">客服</view>
- </button>
- <button v-else @click="tokefuTel" class="item-button tui-operation-item" hover-class="tui-opcity"
- :hover-stay-time="150">
- <tui-icon name="kefu" :size="22" color="#333"></tui-icon>
- <view class="tui-operation-text tui-scale-small">客服</view>
- </button>
- <!-- #endif -->
- <view v-if="goodsDetail.sid>0" class="tui-operation-item" hover-class="tui-opcity"
- :hover-stay-time="150" @tap="goshop">
- <tui-icon name="shop" :size="22" color="#333"></tui-icon>
- <view class="tui-operation-text tui-scale-small">店铺</view>
- </view>
- <view v-if="ptype==1" class="tui-operation-item" hover-class="tui-opcity" :hover-stay-time="150"
- @tap="goShopCar">
- <tui-icon name="cart" :size="22" color="#333"></tui-icon>
- <view class="tui-operation-text tui-scale-small">购物车</view>
- <tui-badge type="red" absolute :scaleRatio="0.8" right="10rpx" top="-4rpx">{{shopNum}}</tui-badge>
- </view>
- </view>
- <view :class="{'tui-col-6':ptype==1,'tui-col-7':ptype==2}">
- <view v-if="goodsDetail.is_points_goods==1" class="tui-operation-right tui-right-flex tui-btnbox-4">
- <view class="tui-flex-1">
- <tui-button height="68rpx" :size="32" type="warning" shape="circle" @click="buyNow">立即兑换
- </tui-button>
- </view>
- </view>
- <view v-else-if="tuanid>0" class="tuan-operation-right tui-right-flex tui-btnbox-4">
- <view class="tuan-flex">
- <button class="itembutton100" @click="tuanfound"
- :style="'opacity: 0.8;background:'+ pagestyleconfig.appstylecolor">
- <view class="tuan-btn__box">
- <view>单独购买</view>
- <view class="tui-flex-end">
- <view class="tui-size-26">¥</view>
- <view class="tui-size-32">{{goodsDetail.original_price}}</view>
- </view>
- </view>
- </button>
- </view>
- <view class="tuan-flex">
- <button class="itembutton100" @click="tuanfound"
- :style="'background:'+ pagestyleconfig.appstylecolor">
- <view class="tuan-btn__box">
- <view v-if="tuangoods.auto_initiate==0">发起拼团</view>
- <view v-else>拼团</view>
- <view class="tui-flex-end">
- <view class="tui-size-26">¥</view>
- <view class="tui-price-large .tui-size-32">{{goodsDetail.price}}</view>
- </view>
- </view>
- </button>
- </view>
- </view>
- <view v-else-if="ptype==1" class="tui-operation-right tui-right-flex tui-btnbox-4">
- <view v-if="goodsDetail.is_skumore!=1" class="tui-flex-1">
- <button class="itembutton68" @click="toAddShopCar"
- :style="'background:'+ pagestyleconfig.appstylecolor">加入购物车</button>
- </view>
- <view class="tui-flex-1">
- <button class="itembutton68" @click="tobuy"
- :style="'background:'+ pagestyleconfig.appstylecolor">立即购买</button>
- </view>
- </view>
- <view v-else-if="ptype==2" class="tui-operation-right tui-right-flex tui-btnbox-4">
- <view v-if="goodsDetail.tel" class="tui-flex-1">
- <button class="itembutton68" @click="phoneCall"
- :style="'background:'+ pagestyleconfig.appstylecolor">预约电话</button>
- </view>
- <view class="tui-flex-1">
- <button v-if="is_binding==1 && !uuid" class="itembutton68" @click="selecttechnical"
- :style="'background:'+ pagestyleconfig.appstylecolor">选择{{lang.technical}}</button>
- <button v-else class="itembutton68" @click="tobuy"
- :style="'background:'+ pagestyleconfig.appstylecolor">立即预约</button>
- </view>
- </view>
- </view>
- </view>
- <!--底部操作栏-->
- <!--规格选项开始-->
- <tui-bottom-popup :show="popupShow" @close="hidePopup">
- <view class="tui-popup-box">
- <view class="tui-product-box tui-padding">
- <image :src="goodsoptionImgSelect" mode="widthFix" class="tui-popup-img"></image>
- <view class="tui-popup-price">
- <view class="popup-box-goodsname">{{goodsDetail.name}}</view>
- <view class="tui-amount tui-bold">¥{{selectSizePrice}}</view>
- <view class="tui-number">起售量:{{goodsDetail.minimum}}</view>
- </view>
- </view>
- <scroll-view scroll-y class="tui-popup-scroll">
- <view v-if="goodsDetail.is_skumore==1" class="tui-scrollview-box">
- <view v-for="(skuvo, idx) in goodsDetail.skumore" :key="idx"
- class="tui-number-box tui-attr-title">
- <view class="tui-attr-title">{{skuvo.sku}}</view>
- <view class="tui-amount">¥{{skuvo.price}}</view>
- <tui-numberbox :max="9999" :min="0" :index="idx" :value="skuvo.number"
- @change="skumorenumberchange"></tui-numberbox>
- </view>
- </view>
- <view v-else class="tui-scrollview-box">
- <block v-for="(goodso, idx) in goodsDetail.attribute" :key="idx">
- <view class="tui-bold tui-attr-title">{{goodso.name}}</view>
- <view class="tui-attr-box">
- <view class="tui-attr-item" :class="[goodso.checked==item? 'tui-attr-active' : '']"
- v-for="(item, index) in goodso.item" :key="index" @tap="labelItemTap"
- :data-idx="idx" :data-item="item">
- {{item}}
- </view>
- </view>
- </block>
- <view class="tui-number-box tui-bold tui-attr-title">
- <view class="tui-attr-title">数量</view>
- <tui-numberbox :max="9999" :min="1" :value="buyNumber" @change="change"></tui-numberbox>
- </view>
- <!--
- <view class="tui-bold tui-attr-title">保障服务</view>
- <view class="tui-attr-box">
- <view class="tui-attr-item">半年掉钻保 ¥4.0</view>
- </view>
-
- <view class="tui-bold tui-attr-title">只换不修</view>
- <view class="tui-attr-box">
- <view class="tui-attr-item">三月意外换¥2.0</view>
- <view class="tui-attr-item">半年意外换¥2.0</view>
- </view>
- -->
- </view>
- </scroll-view>
- <view v-if="tuanid>0" class="tui-operation tui-operation-right tui-right-flex tui-popup-btn">
- <view class="tui-flex-1">
- <button class="itembutton72" @click="buyNow"
- :style="'background:'+ pagestyleconfig.appstylecolor">立即拼团</button>
- </view>
- </view>
- <view v-else-if="ptype==1" class="tui-operation tui-operation-right tui-right-flex tui-popup-btn">
- <view v-if="goodsDetail.is_skumore!=1" class="tui-flex-1">
- <button class="itembutton72" @click="addShopCar"
- :style="'background:'+ pagestyleconfig.appstylecolor">加入购物车</button>
- </view>
- <view class="tui-flex-1">
- <button class="itembutton72" @click="buyNow"
- :style="'background:'+ pagestyleconfig.appstylecolor">立即购买</button>
- </view>
- </view>
- <view v-else-if="ptype==2" class="tui-operation tui-operation-right tui-right-flex tui-popup-btn">
- <view class="tui-flex-1">
- <button class="itembutton72" @click="buyNow"
- :style="'background:'+ pagestyleconfig.appstylecolor">立即预约</button>
- </view>
- </view>
- <view class="tui-right">
- <tui-icon name="close-fill" color="#999" :size="20" @click="hidePopup"></tui-icon>
- </view>
- </view>
- </tui-bottom-popup>
- <!--规格选项结束-->
- <!--购买权限-->
- <tui-bottom-popup :show="openbuy" @close="hideopenbuy">
- <view class="tui-share__box">
- <view class="tui-share__header">
- <text>您还没有开通购买权限,请联客服</text>
- <view class="tui-close__box" @tap="hideopenbuy">
- <tui-icon name="shut" :size="20" color="#C9C9C9"></tui-icon>
- </view>
- </view>
- <view class="tui-share__list">
- <!-- #ifdef MP-WEIXIN -->
- <button open-type="contact" class="tui-share-btn">
- <view class="tui-share__item">
- <view class="tui-grid-icon">
- <tui-icon name="wechat" :size="60" color="#4dae6b"></tui-icon>
- </view>
- <view class="tui-share__text">在线客服</view>
- </view>
- </button>
- <!-- #endif -->
- <!-- #ifndef MP-WEIXIN -->
- <button @click="toim" class="tui-share-btn">
- <view class="tui-share__item">
- <view class="tui-grid-icon">
- <tui-icon name="wechat" :size="60" color="#4dae6b"></tui-icon>
- </view>
- <view class="tui-share__text">在线客服</view>
- </view>
- </button>
- <!-- #endif -->
- <button class="tui-share-btn" @tap="tokefuTel">
- <view class="tui-share__item">
- <view class="tui-grid-icon">
- <tui-icon name="mobile" :size="60" color="#4dae6b"></tui-icon>
- </view>
- <view class="tui-share__text">电话客服</view>
- </view>
- </button>
- </view>
- </view>
- </tui-bottom-popup>
- <!--底部分享弹层-->
- <tui-bottom-popup :show="sharePopup" @close="hideSharePopup">
- <view class="tui-share__box">
- <view class="tui-share__header">
- <text>分享</text>
- <view class="tui-close__box" @tap="hideSharePopup">
- <tui-icon name="shut" :size="20" color="#C9C9C9"></tui-icon>
- </view>
- </view>
- <view class="tui-share__list">
- <button open-type="share" class="tui-share-btn" @tap="onShare">
- <view class="tui-share__item">
- <image src="/static/images/mall/icon_popup_share.png"></image>
- <view class="tui-share__text">分享给好友</view>
- </view>
- </button>
- <view class="tui-share__item" @tap="createPoster">
- <image src="/static/images/mall/icon_popup_poster.png"></image>
- <view class="tui-share__text">生成分享海报</view>
- </view>
- </view>
- </view>
- </tui-bottom-popup>
- <!--底部分享弹层-->
- <canvas :style="{ width: winWidth + 'px', height: winHeight + 'px' }" canvas-id="posterId" id="posterId"
- class="tui-poster__canvas"></canvas>
- <tui-modal custom :show="modalShow" backgroundColor="transparent" padding="0" @cancel="hideModal">
- <view class="tui-poster__box" :style="{marginTop:height+'px'}">
- <image src="/static/images/mall/icon_popup_closed.png" class="tui-close__img" @tap.stop="hideModal">
- </image>
- <image :src="posterImg" v-if="posterImg" class="tui-poster__img"></image>
- <button class="itembutton72" @click="savePic"
- :style="'width:460rpx;background:'+ pagestyleconfig.appstylecolor">保存图片</button>
- <view class="tui-share__tips">保存图片到手机相册后,将图片分享到您的圈子</view>
- </view>
- </tui-modal>
- <!--拼团玩法介绍-->
- <tui-modal :show="tuanmodal" shape="circle" padding="30rpx 40rpx" custom>
- <view class="tui-modal__title">拼团玩法</view>
- <view class="tui-modal__p">1.全民拼团,所有用户都可直接参团或开团;</view>
- <view class="tui-modal__p">2.拼团成功,指开团在规定时间内达到规定成团人数;</view>
- <view class="tui-modal__p">3.拼团失败,指开团后在规定时间内未能找到相应的人数的好友参团,该团失败,系统取消该团订单,退款原路退回。</view>
- <view class="tui-modal__btn">
- <tui-button type="danger" shape="circle" width="280rpx" height="68rpx" :size="26"
- @click="tuanmodal = false">我知道了</tui-button>
- </view>
- </tui-modal>
- </view>
- </template>
- <script>
- const thorui = require('@/components/common/tui-clipboard/tui-clipboard.js');
- const poster = require('@/components/common/tui-poster/tui-poster.js');
- import uParse from '@/components/jyf-parser/jyf-parser';
- export default {
- components: {
- uParse
- },
- data() {
- return {
- lang: {},
- uid: '',
- config: {},
- configkefu: {},
- pagestyleconfig: [],
- msid: '',
- tuanid: '',
- jointuanid: '',
- windowWidth: 0,
- height: 64, //header高度
- top: 26, //标题图标距离顶部距离
- scrollH: 0, //滚动总高度
- swiperHeight: 343,
- opcity: 0,
- iconOpcity: 0.5,
- tagStyle: {
- img: 'width:100%;display:block;',
- table: 'width:100%',
- video: 'width:100%'
- },
- banner: [],
- bannerIndex: 0,
- popupShow: false,
- openbuy: false,
- collected: false,
- sharePopup: false,
- posterImg: '',
- winWidth: uni.upx2px(560 * 2),
- winHeight: uni.upx2px(890 * 2),
- modalShow: false,
- tuanmodal: false,
- hasMoreSelect: false,
- goodsDetail: [],
- tuangoods: {
- TuanFound: {},
- TuanFollow: {}
- },
- is_binding: 0,
- ptype: 2,
- viewed: 1,
- quantity: 1,
- sku: [],
- goodsoptionImgSelect: '',
- selectSize: "请选择:",
- selectSizePrice: 0,
- totalPayPoints: 0,
- shopNum: 0,
- buyNumber: 1,
- buyNumMin: 1,
- buyNumMax: 9999,
- canSubmit: false, // 选中规格尺寸时候是否允许加入购物车
- goodscomment: [],
- tel: '',
- uuid: '',
- current: '',
- };
- },
- onLoad: function(e) {
- let _this = this;
- let obj = {};
- // #ifdef MP-WEIXIN
- this.current = "/" + this.__route__;
- // #endif
- //#ifdef H5
- this.current = '/pages/goodsDetail/goodsDetail';
- //#endif
- uni.setStorageSync('servicetime', '');
- uni.setStorageSync('NewMessage', '');
- // #ifdef MP-WEIXIN
- obj = wx.getMenuButtonBoundingClientRect();
- // #endif
- // #ifdef MP-BAIDU
- obj = swan.getMenuButtonBoundingClientRect();
- // #endif
- // #ifdef MP-ALIPAY
- my.hideAddToDesktopMenu();
- // #endif
- setTimeout(() => {
- uni.getSystemInfo({
- success: res => {
- //console.log(res);
- this.width = obj.left || res.windowWidth;
- this.height = obj.top ? obj.top + obj.height + 8 : res.statusBarHeight +
- 44;
- this.top = obj.top ? obj.top + (obj.height - 32) / 2 : res
- .statusBarHeight + 6;
- this.scrollH = res.windowWidth;
- this.windowWidth = res.windowWidth;
- }
- });
- }, 0);
- _this.$request.get('Lang.getlang').then(res => {
- if (res.errno == 0) {
- _this.lang = res.data;
- }
- });
- if (e && e.scene) {
- const scene = decodeURIComponent(e.scene) // 处理扫码进商品详情页面的逻辑
- if (scene) {
- e.id = scene.split(',')[0]
- if (scene.split(',')[1]) {
- e.reid = scene.split(',')[1];
- }
- if (scene.split(',')[2]) {
- e.msid = scene.split(',')[2];
- }
- if (scene.split(',')[3]) {
- e.tuanid = scene.split(',')[3];
- }
- }
- }
- if (e.msid) {
- _this.msid = e.msid;
- }
- if (e.tuanid) {
- _this.tuanid = e.tuanid;
- }
- if (e.reid) {
- uni.setStorageSync('reid', e.reid)
- }
- _this.sam.login().then(res => {
- if (res.uid > 0) {
- _this.uid = res.uid;
- if (uni.getStorageSync('reid')) {
- _this.$request.get('member.bindpid', {
- samkey: (new Date()).valueOf(),
- pid: uni.getStorageSync('reid')
- }).then(res => {
- if (res.errno == 0) {
- console.log('pid绑定成功');
- }
- })
- }
- }
- });
- _this.$config.init(function() {
- if (_this.$config.getConf("kefu")) {
- _this.configkefu = _this.$config.getConf("kefu");
- }
- _this.tel = _this.$config.getConf("TELEPHONE");
- });
- _this.$request.post('config', {
- mo: 'pagestyle'
- }).then(res => {
- if (res.errno == 0) {
- _this.pagestyleconfig = res.data
- }
- });
- _this.getGoodsDetailInfo(e.id);
- // 获取购物车数量
- _this.$request.get('cart.total').then(res => {
- var total = res.data.total;
- if (total == null) {
- total = 0;
- }
- _this.shopNum = total;
- });
- _this.uuid = e.uuid;
- _this.getgoodscomment(e.id);
- this.current = this.current + '?id=' + e.id + " & reid = " + _this.uid + " & msid =" +_this.msid + "&tuanid=" + _this.tuanid;
- _this.$request.post('Config.memberislogin', {
- samkey: (new Date()).valueOf()
- }).then(res => {
- if (res.data) {
- if (res.data.goodsdetail_is_login == 1) {
- _this.sam.checktelephone().then(res => {});
- _this.sam.login();
- }
- }
- });
- },
- onShow() {},
- methods: {
- bannerChange: function(e) {
- this.bannerIndex = e.detail.current;
- },
- previewImage: function(e) {
- let index = e.currentTarget.dataset.index;
- uni.previewImage({
- current: this.banner[index],
- urls: this.banner
- });
- },
- toimwebview(url) {
- this.tui.href("/pages/webview/h5?url=" + url)
- },
- toim() {
- if (this.configkefu.minionline == 2 && this.configkefu.kefuurl) {
- this.tui.href(this.configkefu.kefuurl);
- } else if (this.configkefu.minionline == 3) {
- var telstr = this.configkefu.kefutel;
- uni.makePhoneCall({
- phoneNumber: telstr
- });
- } else {
- this.tui.href("/pages/im/h5");
- }
- },
- back: function() {
- //console.log('sdsd');
- uni.navigateBack({});
- },
- hideopenbuy() {
- this.openbuy = false
- },
- tokefuTel: function(e) { //客服电话
- const _this = this;
- var telstr = _this.tel;
- uni.makePhoneCall({
- phoneNumber: telstr,
- })
- },
- phoneCall: function(e) {
- var that = this; //console.log(that.data.inputVal);
- uni.showModal({
- title: '拔打客户电话',
- content: '确定要拔打' + that.goodsDetail.tel,
- showCancel: true,
- //是否显示取消按钮
- cancelText: "取消",
- //默认是“取消”
- confirmText: "拔号",
- //默认是“确定”
- success: function(res) {
- if (res.cancel) { //点击取消,默认隐藏弹框
- } else {
- //点击确定
- uni.makePhoneCall({
- phoneNumber: that.goodsDetail.tel
- });
- }
- },
- fail: function(res) {},
- //接口调用失败的回调函数
- complete: function(res) {} //接口调用结束的回调函数(调用成功、失败都会执行)
- });
- },
- showPopup: function() {
- this.sam.checktelephone().then(res => {
- if (this.goodsDetail.noprice == 1) {
- this.openbuy = true;
- return;
- }
- this.popupShow = true;
- });
- },
- hidePopup: function() {
- this.popupShow = false;
- },
- skumorenumberchange: function(e) {
- //console.log(e);
- this.goodsDetail.skumore[e.index].number = e.value;
- },
- change: function(e) {
- if (e.value > parseInt(this.buyNumMax)) {
- uni.showModal({
- title: '提示',
- content: '购买数量已超出可购买数量!',
- showCancel: false
- })
- return;
- }
- this.buyNumber = e.value;
- },
- collecting: function() {
- const _this = this;
- _this.$request.post('memberwishlist.add', {
- goods_id: _this.goodsDetail.id,
- ptype: 'goods',
- title: _this.goodsDetail.name,
- image: _this.goodsDetail.image,
- url: _this.current,
- samkey: (new Date()).valueOf()
- }).then(res => {
- this.collected = !this.collected;
- })
- },
- evaluate() {
- this.tui.href('/pages/goodsEvaluate/goodsEvaluate')
- },
- common: function() {
- this.tui.toast('功能开发中~');
- },
- coupon() {
- this.sam.navigateTo('/pages/coupon/coupon');
- },
- onShare() {
- this.hideSharePopup()
- //#ifdef APP-PLUS
- plus.share.sendWithSystem({
- content: this.goodsDetail.name,
- href: window.location
- },
- function() {
- console.log('分享成功');
- },
- function(e) {
- console.log('分享失败:' + JSON.stringify(e));
- }
- );
- //#endif
- // #ifdef H5
- thorui.getClipboardData(window.location, res => {
- if (res) {
- this.tui.toast('链接复制成功,赶快去分享吧~');
- } else {
- this.tui.toast('链接复制失败');
- }
- });
- // #endif
- },
- gooriginal() {
- this.sam.navigateTo('/pages/goodsDetail/goodsDetail?id=' + this.goodsDetail.id)
- },
- goindex() {
- this.sam.navigateTo('/pages/index/index')
- },
- goshop() {
- this.sam.navigateTo('/pages/store_details/store_details?id=' + this.goodsDetail.sid)
- },
- play() {
- uni.navigateTo({
- url: '/pages/video/video?videourl=' + this.goodsDetail.videourl,
- animationType: 'zoom-out'
- })
- },
- showSharePopup() {
- this.sharePopup = true
- },
- hideSharePopup() {
- this.sharePopup = false
- },
- async createPoster() {
- const _this = this;
- this.hideSharePopup()
- if (this.posterImg) {
- this.modalShow = true;
- return;
- }
- uni.showLoading({
- mask: true,
- title: '图片生成中...'
- });
- let localpic = await _this.$request.post('localpic.index', {
- pic: this.goodsDetail.pic,
- })
- let mainPic = await poster.getImage(localpic.data);
- let qrdata = await _this.$request.post('qrcode', {
- msid: _this.msid,
- tuanid: _this.tuanid,
- goodsid: _this.goodsDetail.id,
- page: 'pages/goodsDetail/goodsDetail',
- is_hyaline: true,
- expireHours: 1
- })
- let qrcode = await poster.getImage(qrdata.data);
- // #ifdef MP-WEIXIN
- await poster.removeSavedFile();
- // #endif
- if (mainPic && qrcode) {
- const imgs = {
- mainPic: mainPic,
- qrcode: qrcode
- };
- let text = this.goodsDetail.name;
- let price = this.goodsDetail.price;
- let original_price = this.goodsDetail.original_price;
- poster.drawGoodsPoster('posterId', this.winWidth, this.winHeight, imgs, text, price,
- original_price, '',
- res => {
- uni.hideLoading();
- if (res) {
- this.posterImg = res;
- setTimeout(() => {
- this.modalShow = true;
- }, 60);
- } else {
- this.tui.toast('生成海报失败,请稍后再试');
- }
- });
- } else {
- uni.hideLoading();
- this.tui.toast('生成海报图片下载失败,请稍后再试');
- }
- },
- hideModal() {
- this.modalShow = false;
- },
- savePic() {
- if (this.posterImg) {
- // #ifdef H5
- uni.previewImage({
- urls: [this.posterImg]
- });
- // #endif
- // #ifndef H5
- poster.saveImage(this.posterImg);
- // #endif
- this.hideModal();
- }
- },
- getGoodsDetailInfo: function(goodsId) {
- const _this = this;
- _this.$request.get('goods.detail', {
- id: goodsId,
- msid: _this.msid,
- tuanid: _this.tuanid,
- showLoading: true
- }).then(res => {
- //console.log(res);
- if (res.errno == 0) {
- var selectSizeTemp = "";
- if (res.data.attribute) {
- if (res.data.attribute.length > 0) {
- for (var i = 0; i < res.data.attribute.length; i++) {
- selectSizeTemp = selectSizeTemp + " " + res.data.attribute[i].name;
- }
- _this.hasMoreSelect = true;
- _this.selectSize = _this.selectSize + selectSizeTemp;
- }
- _this.selectSizePrice = res.data.minPrice;
- _this.totalPayPoints = res.data.minPoints;
- }
- _this.goodsDetail = res.data;
- if (_this.goodsDetail.tuan) {
- _this.tuangoods = _this.goodsDetail.tuan;
- }
- if (_this.goodsDetail.category) {
- _this.is_binding = _this.goodsDetail.category.is_binding
- }
- var minimum = res.data.minimum;
- _this.buyNumber = (minimum <= res.data.stores) ? minimum : 0;
- _this.buyNumMax = res.data.stores;
- _this.banner = res.data.pics;
- _this.goodsoptionImgSelect = res.data.pic;
- _this.selectSizePrice = res.data.minPrice;
- _this.ptype = _this.goodsDetail.ptype;
- if (_this.goodsDetail.viewed) {
- _this.viewed = _this.goodsDetail.viewed;
- }
- if (_this.goodsDetail.quantity > 0) {
- _this.quantity = _this.goodsDetail.quantity;
- }
- uni.setStorageSync('gotopage', '/pages/goodsDetail/goodsDetail?id=' + _this.goodsDetail
- .id +
- '&msid=' +
- _this.msid + '&tuanid=' + _this.tuanid + '&uuid=' + _this.uuid);
- }
- });
- },
- /**
- * 选择商品规格
- * @param {Object} e
- */
- labelItemTap: function(e) {
- var _this = this;
- _this.goodsDetail.attribute[e.currentTarget.dataset.idx].checked = e.currentTarget.dataset.item;
- // 获取所有的选中规格尺寸数据
- var curSelectNum = 0;
- var sku = [];
- if (_this.goodsDetail.attribute) {
- for (var i = 0; i < _this.goodsDetail.attribute.length; i++) {
- if (_this.goodsDetail.attribute[i].checked) {
- sku.push(_this.goodsDetail.attribute[i].checked);
- curSelectNum++;
- }
- }
- }
- var canSubmit = false;
- if (_this.goodsDetail.attribute.length == curSelectNum) {
- canSubmit = true;
- }
- _this.sku = sku;
- // 计算当前价格
- if (canSubmit) {
- _this.$request.post('goods.price', {
- goodsId: _this.goodsDetail.id,
- msid: _this.msid,
- tuanid: _this.tuanid,
- sku: sku,
- samkey: (new Date()).valueOf()
- }).then(res => {
- //console.log(res.data.price)
- _this.selectSizePrice = res.data.price;
- _this.totalPayPoints = res.data.score;
- _this.buyNumMax = res.data.stores;
- _this.buyNumber = (res.data.stores > 0) ? 1 : 0;
- _this.goodsoptionImgSelect = res.data.image;
- })
- }
- _this.canSubmit = canSubmit;
- },
- goShopCar: function() {
- this.sam.navigateTo("/pages/cart/cart");
- },
- toAddShopCar: function() {
- this.showPopup();
- },
- tuanfound: function() {
- this.jointuanid = '';
- this.showPopup();
- },
- jointuan: function(id) {
- this.jointuanid = id;
- this.showPopup();
- },
- selecttechnical: function() {
- this.sam.navigateTo('/pages/technical/list?goodsid=' + this.goodsDetail.id + '&cid=' + this.goodsDetail
- .category.id)
- },
- tobuy: function() {
- this.selectSizePrice = this.goodsDetail.minPrice;
- this.showPopup();
- },
- /**
- * 加入购物车
- */
- addShopCar: function() {
- var _this = this;
- if (this.goodsDetail.attribute && this.goodsDetail.attribute.length > 0 && !this.canSubmit) {
- if (!this.canSubmit) {
- wx.showModal({
- title: '提示',
- content: '请选择或填写商品规格!',
- showCancel: false
- })
- }
- this.showPopup();
- return;
- }
- if (this.buyNumber < 1) {
- wx.showModal({
- title: '提示',
- content: '购买数量不能为0!',
- showCancel: false
- })
- return;
- }
- if (this.buyNumber > parseInt(this.buyNumMax)) {
- uni.showModal({
- title: '提示',
- content: '购买数量已超出可购买数量!',
- showCancel: false
- })
- return;
- }
- if (this.buyNumber < this.goodsDetail.minimum) {
- uni.showModal({
- title: '提示',
- content: '购买数量不能于小起售量!',
- showCancel: false
- })
- return;
- }
- //组建购物车
- _this.$request.post('cart.add', {
- goodsId: this.goodsDetail.id,
- sku: this.sku,
- quantity: this.buyNumber
- }).then(res => {
- wx.showToast({
- title: '加入购物车成功',
- icon: 'success',
- duration: 2000
- })
- _this.hidePopup();
- _this.shopNum = res.data.total;
- })
- },
- /**
- * 立即购买
- */
- buyNow: function() {
- let _this = this
- if (this.goodsDetail.attribute && this.goodsDetail.attribute.length > 0 && !this.canSubmit) {
- if (!this.canSubmit) {
- uni.showModal({
- title: '提示',
- content: '请选择或填写商品规格!',
- showCancel: false
- })
- }
- this.showPopup();
- return;
- }
- if (this.buyNumber < 1) {
- uni.showModal({
- title: '提示',
- content: '购买数量不能为0!',
- showCancel: false
- })
- return;
- }
- let x = parseInt(_this.buyNumMax);
- if (this.buyNumber > x) {
- uni.showModal({
- title: '提示',
- content: '购买数量不能超过超出可购买数量!',
- showCancel: false
- })
- return;
- }
- if (this.buyNumber < this.goodsDetail.minimum) {
- uni.showModal({
- title: '提示',
- content: '购买数量不能于小起售量!',
- showCancel: false
- })
- return;
- }
- _this.$request.post('goods.buynowinfo', {
- goodsId: _this.goodsDetail.id,
- msid: _this.msid,
- tuanid: _this.tuanid,
- uuid: _this.uuid,
- jointuanid: _this.jointuanid,
- buyNumber: _this.buyNumber,
- sku: _this.sku,
- is_skumore: _this.goodsDetail.is_skumore,
- skumore: JSON.stringify(_this.goodsDetail.skumore)
- }).then(res => {
- if (res.errno != 0) {
- uni.showModal({
- title: '错误',
- content: res.msg,
- showCancel: false
- })
- return;
- }
- _this.sam.navigateTo("/pagesA/submitOrder/submitOrder?orderType=buyNow&buynowinfoid=" + res
- .data.buynowinfoid);
- _this.hidePopup();
- return;
- })
- },
- navigateTo(url) {
- this.sam.navigateTo(url);
- },
- urlTo(url) {
- window.open(url, '_self');
- },
- getgoodscomment: function(goodsId) {
- var _this = this;
- _this.$request.get('comment.getgoodscomment', {
- goodsId: goodsId
- }).then(res => {
- if (res.errno == 0) {
- _this.goodscomment = res.data
- }
- })
- },
- setswiperHeight(e) {
- //console.log(e);
- this.swiperHeight = e.detail.height * (this.windowWidth / e.detail.width);
- },
- showModal() {
- this.tuanmodal = true
- }
- },
- onPageScroll(e) {
- let scroll = e.scrollTop <= 0 ? 0 : e.scrollTop;
- let opcity = scroll / this.scrollH;
- if (this.opcity >= 1 && opcity >= 1) {
- return;
- }
- this.opcity = opcity;
- this.iconOpcity = 0.5 * (1 - opcity < 0 ? 0 : 1 - opcity);
- },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function() {
- setTimeout(() => {
- uni.stopPullDownRefresh()
- }, 200);
- },
- //发送给朋友
- onShareAppMessage: function() {
- let _this = this;
- //console.log(_this.uid);
- return {
- title: _this.goodsDetail.name || "",
- path: _this.current,
- };
- },
- onShareTimeline(res) { //分享到朋友圈
- return {}
- }
- };
- </script>
- <style>
- /* 商品详情图样式 */
- .pro_detailImg {
- width: 100%;
- }
- .pro_detailImg img {
- width: 100%;
- height: auto;
- display: block;
- }
- .pro_detailImg {
- display: flex;
- flex-direction: column;
- transform: translateZ(0);
- }
- .pro_detailImg image {
- width: 100%;
- display: block;
- }
- page {
- background-color: #f7f7f7;
- }
- .container {
- padding-bottom: 110rpx;
- }
- .tui-header-box {
- width: 100%;
- position: fixed;
- left: 0;
- top: 0;
- z-index: 995;
- }
- .tui-header {
- width: 100%;
- font-size: 18px;
- line-height: 18px;
- font-weight: 500;
- height: 32px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .tui-header-icon {
- position: fixed;
- top: 0;
- left: 10px;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- height: 32px;
- transform: translateZ(0);
- z-index: 9999;
- }
- .tui-header-icon .tui-badge {
- background: #e41f19 !important;
- position: absolute;
- right: -4px;
- }
- .tui-icon-ml {
- margin-left: 20rpx;
- }
- .tui-icon-box {
- position: relative;
- height: 20px !important;
- width: 20px !important;
- padding: 6px !important;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .tui-banner-swiper {
- position: relative;
- }
- .tui-video__box {
- width: 130rpx;
- height: 130rpx;
- position: absolute;
- left: 50%;
- bottom: 40%;
- transform: translateX(-50%);
- z-index: 2;
- }
- .tui-video__box image {
- width: 130rpx;
- height: 130rpx;
- -webkit-filter: opacity(60%);
- /* Chrome, Safari, Opera */
- filter: opacity(60%);
- }
- .tui-video__box view {
- width: 100%;
- height: 100%;
- font-size: 24rpx;
- position: absolute;
- left: 0;
- top: 0;
- display: flex;
- align-items: center;
- padding-left: 66rpx;
- box-sizing: border-box;
- }
- .tui-banner-tag {
- position: absolute;
- color: #fff;
- bottom: 30rpx;
- right: 0;
- }
- .tui-slide-image {
- width: 100%;
- display: block;
- }
- /*顶部菜单*/
- .tui-menu-box {
- box-sizing: border-box;
- }
- .tui-menu-header {
- font-size: 34rpx;
- color: #fff;
- height: 32px;
- display: flex;
- align-items: center;
- }
- .tui-menu-itembox {
- color: #fff;
- padding: 40rpx 10rpx 0 10rpx;
- box-sizing: border-box;
- display: flex;
- flex-wrap: wrap;
- font-size: 26rpx;
- }
- .tui-menu-item {
- width: 22%;
- height: 160rpx;
- border-radius: 24rpx;
- display: flex;
- align-items: center;
- flex-direction: column;
- justify-content: center;
- background: rgba(0, 0, 0, 0.4);
- margin-right: 4%;
- margin-bottom: 4%;
- }
- .tui-menu-item:nth-of-type(4n) {
- margin-right: 0;
- }
- .tui-badge-box {
- position: relative;
- }
- .tui-badge-box .tui-badge-class {
- position: absolute;
- top: -8px;
- right: -8px;
- }
- .tui-msg-badge {
- top: -10px;
- }
- .tui-icon-up_box {
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .tui-menu-text {
- padding-top: 12rpx;
- }
- .tui-opcity .tui-menu-text,
- .tui-opcity .tui-badge-box {
- opacity: 0.5;
- transition: opacity 0.2s ease-in-out;
- }
- /*顶部菜单*/
- /*内容 部分*/
- .tui-padding {
- padding: 0 30rpx;
- box-sizing: border-box;
- }
- .tui-ml-auto {
- margin-left: auto;
- }
- /* #ifdef H5 */
- .tui-ptop {
- padding-top: 44px;
- }
- /* #endif */
- .tui-size {
- font-size: 24rpx;
- line-height: 24rpx;
- }
- .tui-gray {
- color: #999;
- }
- .tui-icon-red {
- color: #ff201f;
- }
- .tui-border-radius {
- border-bottom-left-radius: 24rpx;
- border-bottom-right-radius: 24rpx;
- overflow: hidden;
- }
- .tui-radius-all {
- border-radius: 24rpx;
- overflow: hidden;
- }
- .overflowhidden {
- overflow: hidden;
- }
- .tui-mtop {
- margin-top: 26rpx;
- }
- .tui-pro-detail {
- box-sizing: border-box;
- color: #333;
- }
- .toplndsie {
- padding-top: 30rpx;
- }
- .tui-product-title {
- background: #fff;
- padding-bottom: 30rpx;
- }
- .tui-price__box {
- width: 100%;
- height: 130rpx;
- display: flex;
- }
- .tui-pro-pricebox {
- display: flex;
- align-items: center;
- justify-content: space-between;
- color: #ff201f;
- font-size: 36rpx;
- font-weight: bold;
- line-height: 44rpx;
- }
- .tuan-pro-pricebox {
- width: 540rpx;
- height: 130rpx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- color: #FFFFFF;
- font-size: 26rpx;
- line-height: 26rpx;
- background: linear-gradient(-30deg, #FF1F2E, #F52C6C);
- flex-shrink: 0;
- }
- .ms-pro-pricebox {
- width: 540rpx;
- height: 130rpx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- color: #FFFFFF;
- font-size: 26rpx;
- line-height: 26rpx;
- background: linear-gradient(-30deg, #FF1F2E, #F52C6C);
- flex-shrink: 0;
- }
- .tui-pro-price {
- display: flex;
- align-items: center;
- }
- .tuan-price {
- font-size: 44rpx;
- line-height: 42rpx;
- }
- .tui-price {
- font-size: 58rpx;
- }
- .redenvelope {
- color: #EB0909;
- font-size: 40rpx;
- }
- .dingjing {
- font-size: 38rpx;
- }
- .tui-sold {
- width: 100%;
- height: 44rpx;
- padding-left: 4rpx;
- display: flex;
- align-items: center;
- padding-top: 10rpx;
- }
- .tui-price-tag {
- height: 38rpx;
- border: 1rpx solid #fff;
- border-radius: 6rpx;
- white-space: nowrap;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 24rpx;
- line-height: 24rpx;
- transform: scale(0.8);
- transform-origin: 0 center;
- border-radius: 6rpx;
- padding: 0 8rpx;
- }
- .tui-tuan-tag {
- height: 48rpx;
- border: 1rpx solid #FF1F2E;
- border-radius: 6rpx;
- white-space: nowrap;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 28rpx;
- line-height: 28rpx;
- transform: scale(0.8);
- transform-origin: 0 center;
- border-radius: 6rpx;
- padding: 0 20rpx;
- }
- .tui-right__box {
- flex: 1;
- background-color: #FFE5E5;
- font-size: 28rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- color: #EB0909;
- }
- .tui-right__box text {
- text-align: center;
- padding-bottom: 12rpx;
- }
- .tui-seckill__img {
- width: 146rpx;
- height: 26rpx;
- margin-bottom: 16rpx;
- }
- .tui-original-price {
- font-size: 26rpx;
- font-weight: normal;
- line-height: 26rpx;
- padding: 0 20rpx;
- box-sizing: border-box;
- text-decoration: line-through;
- }
- .points_goods {
- font-size: 26rpx;
- color: #ff201f;
- line-height: 26rpx;
- padding: 10rpx 30rpx;
- box-sizing: border-box;
- font-weight: normal;
- }
- .tui-line-through {
- text-decoration: line-through;
- }
- .tui-collection {
- color: #333;
- display: flex;
- align-items: center;
- flex-direction: column;
- justify-content: center;
- height: 44rpx;
- }
- .tui-scale-collection {
- transform: scale(0.7);
- transform-origin: center 90%;
- line-height: 24rpx;
- font-weight: normal;
- margin-top: 4rpx;
- }
- .tui-pro-titbox {
- font-size: 32rpx;
- font-weight: 500;
- position: relative;
- padding: 0 150rpx 0 30rpx;
- box-sizing: border-box;
- }
- .tui-pro-title {
- padding-top: 20rpx;
- }
- .tui-share-btn {
- flex: 1;
- display: block;
- background: transparent;
- margin: 0;
- padding: 0;
- border-radius: 0;
- border: 0;
- line-height: 1;
- }
- .tui-share-btn::after {
- border: 0;
- }
- .tui-share-box {
- display: flex;
- align-items: center;
- }
- .tui-share-position {
- position: absolute;
- right: 0;
- top: 12rpx;
- }
- .tui-share-text {
- color: #333;
- padding-left: 8rpx;
- }
- .tui-sub-title {
- padding: 20rpx 0;
- line-height: 32rpx;
- }
- .tui-sale-info {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-top: 30rpx;
- }
- .tui-discount-box {
- background: #fff;
- }
- .tui-list-cell {
- width: 100%;
- position: relative;
- display: flex;
- align-items: center;
- font-size: 26rpx;
- line-height: 26rpx;
- padding: 36rpx 30rpx;
- box-sizing: border-box;
- }
- .tui-right {
- position: absolute;
- right: 30rpx;
- top: 30rpx;
- }
- .tui-top40 {
- top: 40rpx !important;
- }
- .tui-bold {
- font-weight: bold;
- }
- .tui-list-cell::after {
- content: '';
- position: absolute;
- border-bottom: 1rpx solid #eaeef1;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- bottom: 0;
- right: 0;
- left: 126rpx;
- }
- .tui-last::after {
- border-bottom: 0 !important;
- }
- .tui-flex-center {
- display: flex;
- align-items: center;
- }
- .tui-cell-title {
- width: 66rpx;
- padding-right: 30rpx;
- flex-shrink: 0;
- }
- .tui-promotion-box {
- display: flex;
- align-items: center;
- padding: 10rpx 0;
- width: 80%;
- }
- .tui-promotion-box text {
- width: 70%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .tui-basic-info {
- background: #fff;
- }
- .tui-addr-box {
- width: 76%;
- }
- .tui-addr-item {
- padding: 10rpx;
- line-height: 34rpx;
- }
- .tui-guarantee {
- background: #fdfdfd;
- display: flex;
- flex-wrap: wrap;
- padding: 20rpx 30rpx 30rpx 30rpx;
- font-size: 24rpx;
- }
- .tui-guarantee-item {
- color: #999;
- padding-right: 20rpx;
- padding-top: 10rpx;
- }
- .tui-pl {
- padding-left: 4rpx;
- }
- .tui-cmt-box {
- background: #fff;
- }
- .tui-between {
- justify-content: space-between !important;
- }
- .tui-cmt-all {
- color: #ff201f;
- padding-right: 8rpx;
- }
- .tui-cmt-content {
- font-size: 26rpx;
- }
- .tui-cmt-user {
- display: flex;
- align-items: center;
- }
- .tui-acatar {
- width: 60rpx;
- height: 60rpx;
- border-radius: 30rpx;
- display: block;
- margin-right: 16rpx;
- }
- .tui-cmt {
- padding: 14rpx 0;
- }
- .tui-attr {
- font-size: 24rpx;
- color: #999;
- padding: 6rpx 0;
- }
- .tui-cmt-btn {
- padding: 50rpx 0 30rpx 0;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .tui-nomore-box {
- padding-top: 10rpx;
- }
- .tui-product-img {
- display: flex;
- flex-direction: column;
- transform: translateZ(0);
- }
- .tui-product-img image {
- width: 100%;
- display: block;
- }
- /*底部操作栏*/
- .tui-col-6 {
- width: 60%;
- }
- .tui-col-4 {
- width: 40%;
- }
- .tui-col-7 {
- width: 72%;
- }
- .tui-col-3 {
- width: 28%;
- }
- .tui-operation {
- width: 100%;
- height: 100rpx;
- background: rgba(255, 255, 255, 0.98);
- position: fixed;
- display: flex;
- align-items: center;
- justify-content: space-between;
- z-index: 10;
- bottom: 0;
- left: 0;
- padding-bottom: env(safe-area-inset-bottom);
- }
- .tui-safearea-bottom {
- width: 100%;
- height: env(safe-area-inset-bottom);
- }
- .tui-operation::before {
- content: '';
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- border-top: 1rpx solid #eaeef1;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- }
- .tui-operation-left {
- display: flex;
- align-items: center;
- }
- .tui-operation-item {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- position: relative;
- }
- .item-button {
- padding-top: 8rpx;
- padding-bottom: 1rpx;
- padding-left: 0px;
- padding-right: 0px;
- background-color: #fff;
- margin-left: auto;
- margin-right: auto;
- box-sizing: border-box;
- font-size: 18px;
- text-align: center;
- text-decoration: none;
- line-height: 22px;
- border-radius: 0px;
- -webkit-tap-highlight-color: transparent;
- overflow: hidden;
- cursor: pointer;
- color: #333;
- }
- .tui-operation-text {
- font-size: 24rpx;
- color: #333;
- }
- .tui-opacity {
- opacity: 0.5;
- }
- .tui-scale-small {
- transform: scale(0.9);
- transform-origin: center center;
- }
- .tui-operation-right {
- height: 100rpx;
- padding: 0 6rpx;
- box-sizing: border-box;
- }
- .tui-right-flex {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .tuan-operation-right {
- height: 100rpx;
- padding-top: 0;
- }
- .tuan-btn__box {
- height: 98rpx;
- font-size: 26rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- flex-direction: column;
- line-height: 28rpx;
- padding: 18rpx 0 14rpx 0;
- box-sizing: border-box;
- }
- .tui-size-26 {
- font-size: 26rpx;
- line-height: 26rpx;
- padding-top: 4rpx;
- }
- .tui-size-32 {
- font-size: 32rpx;
- line-height: 34rpx;
- font-weight: 500;
- }
- .tui-flex-end {
- display: flex;
- align-items: flex-end;
- }
- .tuan-flex {
- flex: 1;
- }
- .tui-flex-1 {
- flex: 1;
- padding: 6rpx;
- }
- /*底部操作栏*/
- /*底部选择弹层*/
- .tui-popup-class {
- border-top-left-radius: 24rpx;
- border-top-right-radius: 24rpx;
- padding-bottom: env(safe-area-inset-bottom);
- }
- .tui-popup-box {
- position: relative;
- padding: 30rpx 0 100rpx 0;
- }
- .tui-popup-btn {
- width: 100%;
- position: absolute;
- left: 0;
- bottom: 0;
- }
- /* .tui-popup-btn .tui-btn-class {
- width: 90% !important;
- display: block !important;
- font-size: 28rpx !important;
- } */
- /* .tui-icon-close {
- position: absolute;
- top: 30rpx;
- right: 30rpx;
- } */
- .tui-product-box {
- display: flex;
- font-size: 24rpx;
- padding-bottom: 30rpx;
- }
- .tui-popup-img {
- width: 130px;
- border-radius: 8rpx;
- display: block;
- }
- .tui-popup-price {
- padding-left: 20rpx;
- padding-bottom: 8rpx;
- }
- .popup-box-goodsname {
- font-size: 32rpx;
- }
- .tui-amount {
- color: #ff201f;
- font-size: 36rpx;
- }
- .tui-number {
- font-size: 24rpx;
- line-height: 24rpx;
- padding-top: 12rpx;
- color: #999;
- }
- .tui-popup-scroll {
- height: 600rpx;
- font-size: 26rpx;
- }
- .tui-scrollview-box {
- padding: 0 30rpx 60rpx 30rpx;
- box-sizing: border-box;
- }
- .tui-attr-title {
- padding: 10rpx 0;
- color: #333;
- }
- .tui-scrollview-box .label {
- padding: 30rpx 0 20rpx 0rpx;
- color: #333;
- }
- .tui-attr-box {
- font-size: 0;
- padding: 20rpx 0;
- }
- .tui-attr-item {
- max-width: 100%;
- min-width: 200rpx;
- height: 64rpx;
- display: -webkit-inline-flex;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- background: #f7f7f7;
- padding: 0 26rpx;
- box-sizing: border-box;
- border-radius: 32rpx;
- margin-right: 20rpx;
- margin-bottom: 20rpx;
- font-size: 26rpx;
- }
- .text-item {
- display: flex;
- }
- .text-item-input {
- height: 50rpx;
- margin-top: 18rpx;
- margin-left: 16rpx;
- padding-top: 6rpx;
- padding-bottom: 6rpx;
- padding-left: 18rpx;
- font-size: 28rpx;
- border: 1px solid #eee;
- border-radius: 25rpx;
- }
- .tui-attr-active {
- background: #fcedea !important;
- color: #e41f19;
- font-weight: bold;
- position: relative;
- }
- .tui-attr-active::after {
- content: '';
- position: absolute;
- border: 1rpx solid #e41f19;
- width: 100%;
- height: 100%;
- border-radius: 40rpx;
- left: 0;
- top: 0;
- }
- .tui-number-box {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20rpx 0 30rpx 0;
- box-sizing: border-box;
- }
- /*底部选择弹层*/
- /*分享弹层*/
- .tui-share__box {
- width: 100%;
- height: 380rpx;
- background-color: #fff;
- }
- .tui-share__header {
- padding: 40rpx 0;
- text-align: center;
- font-size: 32rpx;
- font-weight: 500;
- color: #333333;
- text-align: center;
- position: relative;
- }
- .tui-close__box {
- position: absolute;
- right: 25rpx;
- top: 25rpx;
- }
- .tui-share__list {
- width: 100%;
- padding-top: 20rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .tui-share__item {
- flex: 1;
- display: flex;
- align-items: center;
- flex-direction: column;
- }
- .tui-share__item image {
- width: 120rpx;
- height: 120rpx;
- }
- .tui-share__text {
- font-size: 28rpx;
- font-weight: 400;
- color: #333333;
- padding-top: 18rpx;
- }
- /*海报modal弹层*/
- .tui-poster__canvas {
- background-color: #fff;
- position: absolute;
- left: -9999px;
- }
- .tui-poster__box {
- width: 100%;
- position: relative;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- }
- .tui-close__img {
- width: 48rpx;
- height: 48rpx;
- position: absolute;
- right: 0;
- top: -60rpx;
- }
- .tui-poster__img {
- width: 560rpx;
- height: 890rpx;
- border-radius: 20rpx;
- margin-bottom: 40rpx;
- }
- .tui-share__tips {
- font-size: 24rpx;
- transform: scale(0.8);
- transform-origin: center center;
- color: #ffffff;
- padding-top: 12rpx;
- }
- .tui-combination-text {
- width: 100%;
- display: flex;
- align-items: center;
- }
- .tui-combination-title {
- font-size: 30rpx;
- line-height: 30rpx;
- font-weight: bold;
- padding-left: 16rpx;
- border-left: 2px solid #eb0909;
- box-sizing: border-box;
- }
- .tui-sub__title {
- font-size: 26rpx;
- padding-right: 30rpx;
- }
- .tui-step__box {
- width: 100%;
- height: 210rpx;
- background: #fff;
- padding: 0 60rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- box-sizing: border-box;
- }
- .tui-step-item {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- font-size: 26rpx;
- color: #666666;
- }
- .tui-step-item image {
- width: 64rpx;
- height: 55rpx;
- flex-shrink: 0;
- }
- .tui-step-item image:first-child {
- width: 60rpx !important;
- }
- .tui-step-arrow {
- height: 90rpx;
- }
- .tui-step-arrow image {
- width: 11rpx;
- height: 20rpx;
- flex-shrink: 0;
- }
- .tui-step-text {
- line-height: 26rpx;
- padding-top: 24rpx;
- }
- .tui-discount-box {
- background: #fff;
- }
- .border-flex {
- display: flex;
- width: 100%;
- background-color: #ffffff;
- align-items: center;
- padding: 30rpx 0;
- }
- .border-left image {
- width: 160rpx;
- height: 160rpx;
- border-radius: 20%;
- text-align: center;
- }
- .border-left,
- .border-right,
- .total,
- .suit {
- margin-left: 20rpx;
- }
- .suit {
- font-weight: bold;
- font-size: 26rpx;
- margin-left: 20rpx;
- }
- .border-right {
- line-height: 50rpx;
- font-size: 26rpx;
- width: 100%;
- margin-right: 20rpx;
- }
- .tui-content-box {
- width: 100%;
- padding: 0 30rpx;
- box-sizing: border-box;
- }
- .tui-box {
- width: 100%;
- background: #fff;
- box-shadow: 0 3rpx 20rpx rgba(183, 183, 183, 0.1);
- border-radius: 30rpx;
- overflow: hidden;
- }
- .tui-tool-box {
- margin-top: 20rpx;
- }
- .tui-tool-icon-box {
- position: relative;
- }
- .tui-tool-text {
- font-size: 24rpx;
- font-weight: 400;
- color: #666;
- padding-top: 4rpx;
- line-height: 24rpx;
- }
- .tui-flex-wrap {
- flex-wrap: wrap;
- height: auto;
- }
- .tui-tool-list {
- width: 100%;
- padding-top: 15rpx;
- padding-bottom: 20rpx;
- padding-left: 20rpx;
- padding-right: 20rpx;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- }
- .tui-tool-item {
- width: 25%;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- padding-top: 15rpx;
- padding-bottom: 15rpx;
- background-color: #fff;
- }
- .tui-tool-icon {
- width: 64rpx;
- height: 64rpx;
- display: block;
- }
- .tui-group-text {
- width: 100%;
- display: flex;
- align-items: center;
- }
- .tui-group-title {
- font-size: 30rpx;
- line-height: 30rpx;
- font-weight: bold;
- padding-left: 16rpx;
- border-left: 2px solid #eb0909;
- box-sizing: border-box;
- }
- /*正在拼团*/
- .tui-group-swiper {
- width: 100%;
- background-color: #fff;
- }
- .tui-group-user {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 35rpx 40rpx;
- box-sizing: border-box;
- }
- .tui-user-left {
- font-size: 30rpx;
- display: flex;
- align-items: center;
- }
- .tui-user-left image {
- height: 80rpx;
- width: 80rpx;
- flex-shrink: 0;
- border-radius: 50%;
- margin-right: 16rpx;
- }
- .tui-user-right {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .tui-user-anme {
- max-width: 160rpx;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .tui-user-anme-auto {
- max-width: 260rpx;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .tui-group-num {
- font-size: 26rpx;
- line-height: 26rpx;
- padding-bottom: 12rpx;
- }
- .tui-user-countdown {
- padding-right: 18rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .tui-sub-title {
- font-size: 28rpx;
- padding-right: 30rpx;
- }
- .tui-group-countdown {
- display: flex;
- align-items: center;
- font-size: 24rpx;
- color: #666666;
- white-space: nowrap;
- }
- .tui-countdown-right {
- padding-right: 6rpx;
- }
- .tui-countdown-left {
- padding-left: 6rpx;
- }
- /*拼团玩法介绍 modal*/
- .tui-modal__title {
- text-align: center;
- font-weight: bold;
- padding-bottom: 8rpx;
- }
- .tui-modal__p {
- font-size: 26rpx;
- color: #888;
- padding-top: 20rpx;
- }
- .tui-modal__btn {
- width: 100%;
- padding: 60rpx 0 20rpx;
- display: flex;
- justify-content: center;
- }
- .itembutton68 {
- height: 68rpx;
- line-height: 68rpx;
- font-size: 26rpx;
- border-radius: 50rpx;
- color: #ffffff;
- align-items: center;
- }
- .itembutton72 {
- height: 72rpx;
- line-height: 72rpx;
- font-size: 26rpx;
- border-radius: 50rpx;
- color: #ffffff;
- align-items: center;
- }
- .itembutton100 {
- height: 100rpx;
- font-size: 26rpx;
- border-radius: 0rpx;
- color: #ffffff;
- align-items: center;
- }
- </style>
|