product.vue 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538
  1. <template>
  2. <view class="container">
  3. <view class="carousel">
  4. <swiper indicator-dots :circular="true" duration="400">
  5. <swiper-item class="swiper-item" v-for="(item, index) in imgList" :key="index">
  6. <view class="image-wrapper"><image :src="item" class="loaded" mode="scaleToFill"></image></view>
  7. </swiper-item>
  8. </swiper>
  9. </view>
  10. <view class="introduce-section">
  11. <view class="top_item_box">
  12. <view class="item_box">
  13. <view class="price_box">
  14. <view class="price_yuan">{{ goodsObjact.price | parseFloatNum }}</view>
  15. <view class="ot_price">¥{{ goodsObjact.ot_price | parseFloatNum }}</view>
  16. <view class="pink_tuan">4人团拼团价¥{{ goodsObjact.price }}</view>
  17. </view>
  18. <!-- <view class="tuiguang_num">
  19. 4人团拼团价¥{{ goodsObjact.price }}
  20. </view> -->
  21. </view>
  22. <!-- #ifdef H5 -->
  23. <view class="ptsf_box" @click="open()">
  24. <image class="ptsf_img" src="../../static/img/sharejt.png"></image>
  25. <view class="ptfx_tit">拼团分享</view>
  26. </view>
  27. <!-- #endif -->
  28. <!-- #ifdef MP -->
  29. <!-- <button class="ptsf_box" open-type="share">
  30. <image class="ptsf_img" src="../../static/img/sharejt.png"></image>
  31. <view class="ptfx_tit">拼团分享</view>
  32. </button> -->
  33. <view class="ptsf_box" @click="shareToFriend()">
  34. <image class="ptsf_img" src="../../static/img/sharejt.png" mode=""></image>
  35. <view class="ptfx_tit">拼团分享</view>
  36. </view>
  37. <!-- #endif -->
  38. </view>
  39. <text class="title" v-if="goodsType == 2">{{ goodsObjact.title }}</text>
  40. <text class="title" v-else>{{ goodsObjact.store_name }}</text>
  41. </view>
  42. <view class="shop" v-if="storelist.length != 0" @click="navTo('/pages/index/shoplist')">
  43. <view class="shop-top flex">
  44. <view class="shop-top-left">适用门店(共{{ storelist.length }}家)</view>
  45. <view class="shop-top-right">
  46. <view class="shop-top-right-font">查看更多门店</view>
  47. <image src="../../static/img/shop2.png" mode=""></image>
  48. </view>
  49. </view>
  50. <view class="shop-bottom flex">
  51. <view class="shop-bottom-left">
  52. <image class="shop-bottom-left-icon" :src="storelist[0].image" mode=""></image>
  53. <view class="shop-bottom-left-info">
  54. <view class="shop-bottom-left-name">{{ storelist[0].name }}</view>
  55. <view class="shop-bottom-left-address">{{ storelist[0].detailed_address }}</view>
  56. </view>
  57. </view>
  58. <view class="shop-bottom-right">
  59. <image class="shop-bottom-right-item" style="margin-right: 14rpx;" src="../../static/icon/call.png" mode=""></image>
  60. <image class="shop-bottom-right-item" src="../../static/icon/dh.png" mode=""></image>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="pink_xuzhi_box">
  65. <view class="pink_xuzhi_tit">购买须知</view>
  66. <view class="pink_xuzhi_text">购买后拥有{{ goodsObjact.use_times }}张券,有效时间{{ goodsObjact.valid_day }}天</view>
  67. </view>
  68. <view class="pink_xuzhi_box">
  69. <view class="pink_xuzhi_tit">拼团须知</view>
  70. <view class="pink_xuzhi_text">开团/参团-邀请好友-满员发货 ></view>
  71. </view>
  72. <!-- 商品详情图 -->
  73. <view class="detail-desc">
  74. <!-- @click="showoption" -->
  75. <view class="d-header"><text>商品详情</text></view>
  76. <rich-text :nodes="goodsObjact.description"></rich-text>
  77. </view>
  78. <view class="page-bottom">
  79. <view class="action-btn-group pt-btn-group">
  80. <view class="p-b-btn" :class="{ active: goodsObjact.userCollect }" @click="toFavorite(goodsObjact)">
  81. <text class="iconfont iconlikefill"></text>
  82. <text>收藏</text>
  83. </view>
  84. <button type="primary" class=" action-btn1 no-border buy-now-btn" @click="toggleSpec(1)">单独购买</button>
  85. <button type="primary" class=" action-btn1 no-border add-cart-btn" @click="toggleSpec(1)">一键参团</button>
  86. </view>
  87. </view>
  88. <!-- 规格-模态层弹窗 -->
  89. <view class="popup spec" :class="specClass" @touchmove.stop.prevent="stopPrevent" @click="toggleSpec()">
  90. <!-- 遮罩层 -->
  91. <view class="mask"></view>
  92. <view class="layer attr-content" @click.stop="stopPrevent">
  93. <view class="a-t">
  94. <image :src="actionImage"></image>
  95. <view class="right">
  96. <text class="name">{{ goodsObjact.store_name }}</text>
  97. <text class="price">¥{{ actionPrice * goodsNumber }}</text>
  98. <!-- <text class="stock">库存:{{ goodsStore }}件</text> -->
  99. <view class="selected" v-if="specList != ''">
  100. 已选:
  101. <text class="selected-text" v-for="(sItem, sIndex) in specSelected" :key="sIndex">{{ sItem }}</text>
  102. </view>
  103. </view>
  104. </view>
  105. <view v-for="(item, index) in specList" :key="index" class="attr-list">
  106. <text>{{ item.attr_name }}</text>
  107. <view class="item-list">
  108. <text
  109. v-for="(childItem, childIndex) in item.attr_value"
  110. :key="childIndex"
  111. class="tit"
  112. :class="{ selected: childItem.check }"
  113. @click="selectSpec(childItem, item, index)"
  114. >
  115. {{ childItem.attr }}
  116. </text>
  117. </view>
  118. </view>
  119. <view class="attr-list">
  120. <text>购买数量</text>
  121. <view class="num-list">
  122. <uni-number-box class="step" :isMin="true" :value="goodsNumber" :min="1" :max="goodsNumberMax" @eventChange="numberChange"></uni-number-box>
  123. </view>
  124. </view>
  125. <button class="btn" @click.stop="buy" v-show="buys_show">完成</button>
  126. <button class="btn" style="background-color: #999999;" v-show="buys_shows">售罄</button>
  127. </view>
  128. </view>
  129. <view v-if="shareShow" class="Shraremask" @click="cancel">
  130. <view class="mask-content">
  131. <scroll-view class="view-content" scroll-y>
  132. <view class="share-header">分享到</view>
  133. <view class="share-list">
  134. <view class="share-item">
  135. <!-- 微信 -->
  136. <button class="wechat-box" open-type="share">
  137. <image class="itemImage" src="https://tmp01.kktv6.com/img/img001.png" mode=""></image>
  138. <text class="itemText">微信</text>
  139. </button>
  140. <!-- 朋友圈 -->
  141. <view class="wechat-box" @click="shareToFriend()">
  142. <image class="itemImage" src="https://tmp01.kktv6.com/img/img002.png" mode=""></image>
  143. <text class="itemText">朋友圈</text>
  144. </view>
  145. </view>
  146. </view>
  147. </scroll-view>
  148. <view class="bottomButtom b-t" @click="cancel">取消</view>
  149. </view>
  150. </view>
  151. <!-- 分享弹出窗 -->
  152. <uni-popup ref="popupshare" type="center">
  153. <view class="share-box"><image :src="shareImage" mode="" class="box-img" @longpress="saveImg()"></image></view>
  154. </uni-popup>
  155. </view>
  156. </template>
  157. <script>
  158. import { mapState } from 'vuex';
  159. import uniNumberBox from '@/components/uni-number-box.vue';
  160. import { uniFav } from '@/components/uni-fav/uni-fav.vue';
  161. import { getProducts, goodsDetail, cartAdd, collectAdd, collectDel, productDetail, poster } from '@/api/product.js';
  162. import { saveUrl } from '@/utils/loginUtils.js';
  163. // import { saveUrl, interceptor } from '@/utils/loginUtils.js';
  164. import { store_list } from '@/api/coupon.js';
  165. import uniNoticeBar from '@/components/uni-notice-bar/uni-notice-bar.vue';
  166. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  167. // #ifdef H5
  168. import { weixindata } from '@/utils/wxAuthorized';
  169. // #endif
  170. export default {
  171. filters: {
  172. // 去处小数点后的0
  173. parseFloatNum(clock) {
  174. return parseFloat(clock);
  175. }
  176. },
  177. components: {
  178. uniNumberBox,
  179. uniFav,
  180. uniNoticeBar,
  181. uniPopup
  182. },
  183. // #ifdef MP
  184. onShareAppMessage: function(res) {
  185. // 来自页面内分享按钮
  186. let pages = getCurrentPages();
  187. // 获取当前页面
  188. let page = pages[pages.length - 1];
  189. let path = '/' + page.route + '?';
  190. // 保存传值
  191. for (let i in page.options) {
  192. path += i + '=' + page.options[i] + '&';
  193. }
  194. // 保存邀请人
  195. path += 'spread=' + this.userInfo.uid;
  196. console.log(path);
  197. let data = {
  198. path: path,
  199. imageUrl: this.goodsObjact.image,
  200. title: this.goodsObjact.store_name
  201. };
  202. console.log(data);
  203. return data;
  204. },
  205. // #endif
  206. data() {
  207. return {
  208. wholesale: '',
  209. one_num: 0,
  210. is_integral: '', // 是否是积分
  211. use_integral: 0, // 可用积分
  212. integral: 0,
  213. is_vip: '', // 是否是vip
  214. is_repurchase: '', // 是否是复购
  215. isaddCart: 0,
  216. shareShow: false, //分享
  217. backShare: false, // 分享遮罩层
  218. show: false,
  219. showModal: true, //拼单遮罩层
  220. more: true, //查看更多按钮
  221. autoplay: true,
  222. vertical: true,
  223. interval: 3000,
  224. duration: 500,
  225. buys_show: true,
  226. buys_shows: false,
  227. circular: true,
  228. type: 1, //默认支付方式add为
  229. specClass: 'none', //显示隐藏弹窗
  230. actionImage: '', //商品图片
  231. goodsid: '', //商品id
  232. store_id: '', //小店id
  233. actionPrice: '', //商品价格
  234. // specClass: 'none', //显示隐藏弹窗
  235. goodsObjact: {}, //保存商品数据
  236. goodsNumberMax: 0, //商品库存
  237. //图片循环
  238. imgList: [], //商品轮播图
  239. specList: [], //保存规格列表
  240. people: '', //拼团人数
  241. goodsNumber: 1, //购买数量(开团数量为1,整团数量为1*参团人数)
  242. carnumber: '', //整团购买商品数量
  243. reply: '', //商品数据
  244. list: '', //详情数据
  245. goodsType: 0, //商品类型1秒杀商品0为普通商品2为拼团商品3为新人礼包
  246. pinkTlist: '', //拼团数据
  247. count: 0, //点击查看更多
  248. showlist: [],
  249. showmore: true,
  250. pinkTlistnum: '',
  251. spread: '',
  252. chooseGoodsNumber: 1, //选择商品的数量
  253. specSelected: [], //选中的分类
  254. goodsStore: 0, //选中库存
  255. uniqueId: '', //选中的规格id
  256. productValue: '', //保存属性值对象
  257. isCollect: '', //是否被收藏
  258. maskshow: false, //弹窗
  259. posturl: '',
  260. shareImage: '', // 获取的分享海报
  261. option: '', //保存传值
  262. opt: '', //保存小程序传值
  263. // 保存普通商品详细
  264. goodsData: {
  265. specSelected: [], //选中的分类
  266. productValue: '', //保存属性值对象
  267. specList: [], //保存规格列表
  268. goodsStore: 0, //选中库存
  269. actionImage: '', //商品图片
  270. actionPrice: '', //商品价格
  271. goodsNumber: 1, //购买数量(开团数量为1,整团数量为1*参团人数)
  272. goodsObjact: {}, //商品对象数据
  273. uniqueId: '', //选中的规格id
  274. goodsType: 0, //商品类型1秒杀商品0为普通商品2为拼团商品3为新人礼包
  275. list: '' //报
  276. },
  277. goodsDataType: 0, //判断是否为团队的商品
  278. //保存拼团商品信息
  279. pinkGoodsData: {
  280. specSelected: [], //选中的分类
  281. productValue: '', //保存属性值对象
  282. specList: [], //保存规格列表
  283. goodsStore: 0, //选中库存
  284. actionImage: '', //商品图片
  285. actionPrice: '', //商品价格
  286. goodsNumber: 1, //购买数量(开团数量为1,整团数量为1*参团人数)
  287. goodsObjact: {}, //商品对象数据
  288. uniqueId: '', //选中的规格id
  289. goodsType: 2 //商品类型1秒杀商品0为普通商品2为拼团商品3为新人礼包
  290. },
  291. PinkShow: {}, // 显示拼团
  292. AutopinkList: [], // 谁购买了商品
  293. AutoList: '',
  294. storelist: [], //店铺列表
  295. tuanzhangPrice: '', // 团长立省
  296. many: 1, //1是单规格 2是多规格
  297. hotList: [] //热销推荐产品
  298. };
  299. },
  300. computed: {
  301. ...mapState(['userInfo'])
  302. },
  303. onLoad(option) {
  304. console.log('option', option);
  305. this.wholesale = option.wholesale;
  306. this.use_integral = option.use_integral;
  307. console.log('可用积分', this.use_integral);
  308. this.option = option;
  309. if (option.scene) {
  310. if (typeof option.scene == 'string') {
  311. let scene = ('{' + option.scene + '}')
  312. .replace('qr%26', '')
  313. .replace(/%3D/g, ':')
  314. .replace(/%26/g, ',')
  315. .replace('pid', '"pid"')
  316. .replace('type', '"type"')
  317. .replace('id', '"id"')
  318. .replace('sid', '"sid"');
  319. let opt = JSON.parse(scene);
  320. this.opt = opt;
  321. // 保存拼团订单id
  322. this.goodsid = opt.id;
  323. if (opt.pid) {
  324. // 存储邀请人
  325. this.spread = opt.pid;
  326. uni.setStorageSync('spread', opt.pid);
  327. }
  328. if (opt.type) {
  329. this.goodsType = opt.type;
  330. }
  331. }
  332. } else {
  333. //保存商品id
  334. this.goodsid = option.id;
  335. //保存店铺id
  336. this.store_id = option.sid;
  337. console.log('店铺id', this.store_id);
  338. //判断有无人邀请
  339. if (option.spread) {
  340. // 存储邀请人
  341. this.spread = option.spread;
  342. uni.setStorageSync('spread', option.spread);
  343. }
  344. //判断是否是普通商品
  345. if (option.type) {
  346. console.log(option.type);
  347. this.goodsType = option.type;
  348. }
  349. }
  350. // 保存当前页面
  351. saveUrl();
  352. },
  353. onShow() {
  354. let obj = this;
  355. obj.more = true;
  356. obj.productDetail();
  357. obj.loadCoupon();
  358. // combination({}, obj.goodsid).then()
  359. },
  360. computed: {
  361. ...mapState(['userInfo', 'baseURL'])
  362. },
  363. methods: {
  364. // 跳转普通商品
  365. navToDetailPage(item) {
  366. uni.navigateTo({
  367. url: '/pages/product/product?id=' + item.id
  368. });
  369. },
  370. // 加载普通商品信息
  371. productDetail(type = false) {
  372. let obj = this;
  373. let id = obj.goodsid;
  374. // 获取普通商品信息
  375. productDetail({}, id).then(function({ data }) {
  376. console.log('-----', data);
  377. // is_integral,is_vip,is_repurchase
  378. // 判断是否在拼团商品中
  379. obj.imgList = data.storeInfo.slider_image; //保存轮播图
  380. obj.one_num = data.storeInfo.one_num;
  381. obj.goodsDataProcessing(data, obj); //保存默认
  382. // #ifdef H5
  383. obj.shareDate();
  384. // #endif
  385. });
  386. return;
  387. },
  388. // 基础数据处理
  389. goodsDataProcessing(data, obj) {
  390. console.log('基础数据处理data', data);
  391. let goods = data.storeInfo;
  392. if (data.reply) {
  393. obj.reply = data.reply;
  394. }
  395. //
  396. obj.list = data;
  397. obj.goodsObjact = goods;
  398. console.log(obj.goodsObjact, '93985');
  399. let tzshen = '',
  400. tzPrice = '';
  401. // 计算价格
  402. console.log('obj.userInfo', obj.userInfo);
  403. // if ( obj.userInfo.level_info.list.length > 0 ) {
  404. // tzshen = obj.userInfo.level_info.list[1].discount / 100;
  405. // tzPrice = (obj.goodsObjact.price * 100) - (obj.goodsObjact.price * tzshen * 100);
  406. // } else {
  407. // tzPrice = (obj.goodsObjact.price * 100) - (obj.goodsObjact.vip_price * 100);
  408. // }
  409. obj.tuanzhangPrice = ((obj.goodsObjact.price - obj.goodsObjact.cost) * obj.goodsObjact.level3_common_rate) / 100; //(tzPrice / 100).toFixed(2);
  410. console.log(tzPrice, obj.tuanzhangPrice, '团长省');
  411. //商品详情图超出屏幕问题
  412. if (obj.goodsObjact.description != null) {
  413. obj.goodsObjact.description = obj.goodsObjact.description.replace(/<img/g, '<img class="rich-img"').replace(/<p>\s*<img/g, '<p class="pHeight"><img');
  414. }
  415. if (obj.goodsObjact.rule != null) {
  416. obj.goodsObjact.rule = '<p>' + obj.goodsObjact.rule.replace(/\n/g, '</p><p>').trim() + '</p>';
  417. }
  418. if (data.productAttr) {
  419. let productValueArr = {}; //保存循环数据结果
  420. // 循环获取用于判断是否显示分类的数组
  421. for (let i in data.productValue) {
  422. //判断该分类是否可以选择
  423. let arr = i.split(',');
  424. for (let j = 0; j < arr.length; j++) {
  425. //判断是否已经保存该对象不存在则保存
  426. if (!productValueArr[arr[j]]) {
  427. productValueArr[arr[j]] = true;
  428. }
  429. }
  430. }
  431. console.log(productValueArr, '循环');
  432. // 循环获取分类数据并过滤保存
  433. obj.specList = data.productAttr.map(e => {
  434. let attr_value = [];
  435. let attr_values = [];
  436. // 循环获取判断是否存在相对应的数据
  437. e.attr_value.forEach(s => {
  438. // 判断是否存在对应的数据
  439. if (productValueArr[s.attr]) {
  440. attr_value.push(s);
  441. attr_values.push(s.attr);
  442. return;
  443. }
  444. });
  445. //
  446. e.attr_value = attr_value;
  447. e.attr_values = attr_values;
  448. // 判断该分类下是否有数据
  449. if (attr_value.length > 0) {
  450. return e;
  451. }
  452. }); //保存分类列表
  453. }
  454. //保存属性值
  455. obj.productValue = data.productValue;
  456. // obj.productValue = data.productValue.默认;
  457. console.log('obj.productValue ', obj.productValue);
  458. // 保存默认选中的对象
  459. obj.specSelected = []; //初始化默认选择对象
  460. for (let i = 0; i < obj.specList.length; i++) {
  461. // 设置默认数据
  462. let attrValue = obj.specList[i].attr_value[0];
  463. attrValue.check = true;
  464. obj.specSelected.push(attrValue.attr);
  465. }
  466. //保存默认选中的对象字符串名称
  467. let str = obj.specSelected.join(',');
  468. // 设置默认值
  469. if (obj.wholesale == 1) {
  470. obj.actionPrice = obj.productValue[str].wholesaler_price;
  471. } else {
  472. obj.actionPrice = obj.productValue[str].price;
  473. }
  474. obj.goodsNumberMax = obj.productValue[str].stock;
  475. obj.actionImage = obj.productValue[str].image;
  476. obj.uniqueId = obj.productValue[str].unique;
  477. console.log('---999data.storeInfo', data.storeInfo);
  478. // obj.goodsStore = obj.goodsObjact[str].stock;
  479. },
  480. // 数据根据分类保存保存
  481. loadCoupon() {
  482. let obj = this;
  483. store_list({ page: 1, limit: 1000 }).then(({ data }) => {
  484. obj.storelist = data.list;
  485. });
  486. },
  487. // 长按保存图片
  488. saveImg(w) {
  489. console.log(w);
  490. let obj = this;
  491. uni.downloadFile({
  492. //下载图片
  493. url: obj.shareImage,
  494. success: res => {
  495. console.log(res.tempFilePath);
  496. uni.saveImageToPhotosAlbum({
  497. //将图片保存在手机
  498. filePath: res.tempFilePath, //保存的位置
  499. success: res => {
  500. uni.showToast({
  501. title: '保存成功',
  502. icon: 'none'
  503. });
  504. }
  505. });
  506. }
  507. });
  508. },
  509. // 具体分享
  510. shareToFriend() {
  511. let obj = this;
  512. uni.showLoading({
  513. title: 'Loading...',
  514. mask: true
  515. });
  516. // #ifdef H5
  517. let fromname = 'wechat';
  518. // #endif
  519. // #ifdef MP
  520. let fromname = 'routine';
  521. // #endif
  522. console.log(obj.goodsid, 'id');
  523. poster({
  524. productId: obj.goodsid,
  525. from: fromname
  526. })
  527. .then(({ data }) => {
  528. obj.shareImage = data.url;
  529. console.log(obj.shareImage, '123456');
  530. uni.hideLoading();
  531. this.$refs.popupshare.open();
  532. })
  533. .catch(e => {
  534. uni.hideLoading();
  535. });
  536. },
  537. closepop() {
  538. this.$refs.popup1.close();
  539. },
  540. openpop() {
  541. if (this.quanlist.length == 0) {
  542. this.$api.msg('暂无优惠券');
  543. } else {
  544. this.$refs.popup1.open();
  545. }
  546. },
  547. //防止冒泡和滚动穿透
  548. stopPrevent() {},
  549. numberChange(e) {
  550. //购买数量
  551. this.chooseGoodsNumber = e.number;
  552. },
  553. // 拼团发起拼单
  554. specOPne() {
  555. this.goodsDataType = 0;
  556. //显示弹出框
  557. this.specClass = 'show';
  558. // 拼团
  559. this.productDataUp(this.pinkGoodsData);
  560. },
  561. // 一键拼团
  562. // PinkAuto() {
  563. // console.log(11111)
  564. // this.goodsDataType = 2;
  565. // //显示弹出框
  566. // this.specClass = 'show';
  567. // // 拼团
  568. // this.productDataUp(this.pinkGoodsData);
  569. // },
  570. // 处理数组结构
  571. dataUpReturn(data) {
  572. //保存处理完毕数据
  573. let arr = [];
  574. // 保存临时数据
  575. let arr1 = [];
  576. // 设置每个小数组可以存放的数量
  577. let num = 2;
  578. if (data.length > 1) {
  579. for (let i = 0; i < data.length; i++) {
  580. // 保存数据到临时数组
  581. arr1.push(data[i]);
  582. if ((i + 1) % num === 0) {
  583. console.log(arr1, 2);
  584. // 添加数据到返回数组,用map方法解决物理指针问题导致的数据对象改变问题
  585. arr.push(
  586. arr1.map(e => {
  587. return e;
  588. })
  589. );
  590. // 清空临时数组重新开始计算
  591. arr1 = [];
  592. }
  593. }
  594. }
  595. // 判断是否为奇数
  596. if (data.length % num === 1) {
  597. arr.push([data[data.length - 1]]);
  598. }
  599. return arr;
  600. },
  601. //拼团列表数据分页
  602. setPinkList() {
  603. let obj = this;
  604. let showlist = new Array();
  605. for (let i = 0; i < obj.pinkTlist.length; i++) {
  606. if (i >= obj.count) {
  607. break;
  608. }
  609. showlist[i] = obj.pinkTlist[i];
  610. }
  611. obj.showlist = showlist;
  612. },
  613. //查看更多
  614. // clickMore() {
  615. // let obj = this;
  616. // obj.count += 2;
  617. // obj.setPinkList();
  618. // if (obj.count >= obj.pinkTlist.length) {
  619. // obj.showmore = false; //当次数大于拼团数据,查看更多隐藏
  620. // } else {
  621. // obj.showmore = true; //当次数大于拼团数据,查看更多隐藏
  622. // }
  623. // },
  624. clickMore() {
  625. this.showlist = this.pinkTlist;
  626. console.log(this.showlist, 22);
  627. this.more = false;
  628. },
  629. //规格弹窗开关
  630. toggleSpec(str) {
  631. if (this.specClass === 'show') {
  632. this.specClass = 'hide';
  633. setTimeout(() => {
  634. this.specClass = 'none';
  635. }, 250);
  636. } else if (this.specClass === 'none') {
  637. this.specClass = 'show';
  638. }
  639. // 判断是否为数字
  640. if (typeof str == 'number') {
  641. // 保存当前购买类型
  642. this.type = str;
  643. }
  644. },
  645. //选择规格
  646. selectSpec(item, arr, ind) {
  647. console.log('--999--', item, arr, ind);
  648. arr.attr_value.forEach(function(e) {
  649. e.check = false;
  650. });
  651. item.check = true;
  652. let obj = this;
  653. obj.specSelected[ind] = item.attr;
  654. let str = obj.specSelected.join(',');
  655. console.log(str);
  656. // 获取当前选中的对象
  657. if (obj.productValue[str]) {
  658. console.log(obj.productValue[str], '当前选中对象');
  659. obj.buys_show = true;
  660. obj.buys_shows = false;
  661. if (obj.wholesale == 1) {
  662. obj.actionPrice = obj.productValue[str].wholesaler_price;
  663. } else {
  664. obj.actionPrice = obj.productValue[str].price;
  665. }
  666. obj.goodsNumberMax = obj.productValue[str].stock;
  667. obj.actionImage = obj.productValue[str].image;
  668. obj.uniqueId = obj.productValue[str].unique;
  669. console.log('--9090---', obj.uniqueId);
  670. obj.goodsStore = obj.productValue[str].stock;
  671. } else {
  672. (obj.buys_show = false), (obj.buys_shows = true);
  673. }
  674. obj.specSelected[ind] = item.attr;
  675. // console.log(obj.specList)
  676. // console.log(str)
  677. if (obj.specList[str]) {
  678. let data = obj.specList[str];
  679. console.log(data);
  680. if (obj.wholesale == 1) {
  681. obj.actionPrice = data.wholesaler_price;
  682. } else {
  683. obj.actionPrice = data.price;
  684. }
  685. if (obj.goodsType == 2) {
  686. obj.goodsStore = obj.productValue[item.attr].quota;
  687. } else {
  688. obj.goodsStore = obj.goodsObjact.stock;
  689. }
  690. obj.goodsNumberMax = data.stock;
  691. obj.actionImage = data.image;
  692. obj.uniqueId = data.unique;
  693. }
  694. },
  695. //显示弹窗
  696. open() {
  697. console.log('1');
  698. this.show = true;
  699. },
  700. //随意点击隐藏弹窗
  701. onTap() {
  702. if (!this.open) return;
  703. this.close();
  704. },
  705. close() {
  706. this.show = false;
  707. },
  708. //收藏
  709. toFavorite(item) {
  710. let obj = this;
  711. item.userCollect = !item.userCollect;
  712. // 判断是否已经收藏
  713. if (!item.userCollect) {
  714. collectDel({
  715. id: item.id,
  716. category: 'product'
  717. }).then(function(e) {
  718. obj.$api.msg('成功取消收藏!');
  719. });
  720. } else {
  721. collectAdd({
  722. id: item.id,
  723. category: 'product'
  724. }).then(function(e) {
  725. obj.$api.msg('成功加入收藏!');
  726. });
  727. }
  728. },
  729. //去拼团
  730. groupBooking(item, unique) {
  731. uni.navigateTo({
  732. url: '/pages/product/details?pink_id=' + item + '&unique=' + unique
  733. });
  734. },
  735. // #ifdef H5
  736. shareDate() {
  737. let obj = this;
  738. let url = window.location.href.replace(/[\?,&]{0,1}from=singlemessage/g, '') + '&spread=' + this.userInfo.uid;
  739. let bool = uni.getStorageSync('weichatBrowser') || '';
  740. // 判断是否微信浏览器
  741. if (bool) {
  742. let data;
  743. data = {
  744. link: url, // 分享链接
  745. imgUrl: obj.goodsObjact.image, // 分享图标
  746. desc: obj.goodsObjact.store_info,
  747. title: obj.goodsObjact.store_name,
  748. success: function() {}
  749. };
  750. weixindata(data);
  751. }
  752. },
  753. // #endif
  754. // 单独购买
  755. goProduct(item) {
  756. //显示弹出框
  757. this.goodsDataType = 1;
  758. this.specClass = 'show';
  759. this.productDataUp(this.goodsData);
  760. },
  761. /* 弹窗数据更新 */
  762. productDataUp(data) {
  763. console.log('--弹窗数据更新data---', data);
  764. let obj = this;
  765. obj.specSelected = data.specSelected; //选中的分类
  766. obj.productValue = data.productValue; //保存属性值对象
  767. obj.specList = data.specList; //保存规格列表
  768. obj.goodsStore = data.goodsStore; //选中库存
  769. obj.actionImage = data.actionImage; //商品图片
  770. obj.actionPrice = data.actionPrice; //商品价格
  771. obj.goodsNumber = data.goodsNumber; //购买数量(开团数量为1,整团数量为1*参团人数)
  772. obj.uniqueId = data.uniqueId; //选中的规格id
  773. },
  774. /**
  775. * 统一跳转接口,拦截未登录路由
  776. * navigator标签现在默认没有转场动画,所以用view
  777. */
  778. navTo(url) {
  779. uni.navigateTo({
  780. url
  781. });
  782. },
  783. // 确定
  784. comfim() {
  785. this.buyInfo();
  786. },
  787. // 立即购买
  788. buy(item) {
  789. console.log(this.goodsDataType, 777);
  790. let obj = this;
  791. console.log('900---009', item);
  792. obj.buyInfo(item);
  793. },
  794. // 购买流程
  795. async buyInfo(item) {
  796. console.log('99999', item);
  797. let obj = this;
  798. // 创建传值对象
  799. let data = {
  800. wholesale: this.wholesale || '',
  801. cartNum: obj.chooseGoodsNumber, //商品数量
  802. uniqueId: obj.uniqueId, //商品标签
  803. new: 1, //商品是否新增加到购物车1为不加入0为加入
  804. mer_id: obj.shopId,
  805. storeId: this.store_id
  806. };
  807. console.log('--123--', data);
  808. // 判断是否为加入购物车
  809. if (obj.type == 2) {
  810. data.new = 0;
  811. }
  812. // 判断是否为普通商品
  813. data.productId = obj.goodsid; //商品编号
  814. // data.is_gift = 1; // 是否为礼包 0 不是 1是
  815. this.specClass = 'none';
  816. cartAdd(data)
  817. .then(function(e) {
  818. let da = e.data;
  819. console.log(e);
  820. if (obj.type == 1) {
  821. // 跳转到支付页
  822. uni.navigateTo({
  823. url:
  824. '/pages/order/createOrder?id=' +
  825. da.cartId +
  826. '&is_wholesale=' +
  827. obj.wholesale +
  828. '&integral=' +
  829. obj.integral +
  830. '&use_integral=' +
  831. obj.use_integral +
  832. '&sid=' +
  833. obj.store_id
  834. });
  835. }
  836. if (obj.type == 2) {
  837. obj.$api.msg('成功加入购物车');
  838. }
  839. })
  840. .catch(e => {
  841. console.log(e);
  842. });
  843. },
  844. // 阻止触发上级事件
  845. stopPrevent() {}
  846. }
  847. };
  848. </script>
  849. <style lang="scss">
  850. /* #ifdef MP || APP-PLUS */
  851. .barHeight {
  852. height: var(--status-bar-height);
  853. }
  854. /* #endif */
  855. page {
  856. background: $page-color-base;
  857. padding-bottom: 160rpx;
  858. }
  859. // 处理图片间白色间距问题
  860. /deep/ .pHeight {
  861. line-height: 0;
  862. }
  863. /deep/ .rich-img {
  864. width: 100% !important;
  865. height: auto;
  866. }
  867. /deep/ div,
  868. /deep/ table {
  869. max-width: 100% !important;
  870. }
  871. /* #ifdef MP */
  872. .rich-img {
  873. width: 100% !important;
  874. height: auto;
  875. }
  876. // 处理图片间白色间距问题
  877. .pHeight {
  878. line-height: 0;
  879. }
  880. /* #endif */
  881. .list-row {
  882. position: fixed;
  883. top: 450rpx;
  884. left: 86rpx;
  885. .row {
  886. position: relative;
  887. width: 578rpx;
  888. height: 700rpx;
  889. background: #ffffff;
  890. border-radius: 20rpx;
  891. .row-1 {
  892. flex: 1;
  893. text-align: center;
  894. padding: 26rpx 223rpx;
  895. border-bottom: 2rpx solid #eeeeee;
  896. .row-1-1 {
  897. font-size: $font-lg;
  898. font-weight: bold;
  899. color: #333333;
  900. }
  901. }
  902. .row-2 {
  903. padding: 0 23rpx;
  904. .pinklist_list1 {
  905. padding: 20rpx 0;
  906. display: flex;
  907. justify-content: space-around;
  908. align-items: center;
  909. border-bottom: 1px solid #eeeeee;
  910. .left {
  911. width: 74rpx;
  912. height: 74rpx;
  913. background-color: #e3e3e3;
  914. border-radius: 50%;
  915. }
  916. .center {
  917. display: flex;
  918. flex-wrap: wrap;
  919. margin-left: 17rpx;
  920. .center-1 {
  921. display: flex;
  922. align-items: center;
  923. letter-spacing: 3rpx;
  924. .center-1-1 {
  925. font-size: $font-base;
  926. font-weight: 500;
  927. color: #333333;
  928. }
  929. .center-1-2 {
  930. font-size: $font-base - 2rpx;
  931. font-weight: 500;
  932. color: #333333;
  933. }
  934. }
  935. }
  936. .right {
  937. width: 134rpx;
  938. height: 59rpx;
  939. background: $base-color;
  940. border-radius: 10rpx;
  941. display: flex;
  942. align-items: center;
  943. justify-content: center;
  944. .right-word {
  945. font-size: 26rpx;
  946. font-weight: 500;
  947. color: #ffffff;
  948. }
  949. }
  950. }
  951. }
  952. .row-3 {
  953. width: 56rpx;
  954. height: 56rpx;
  955. position: absolute;
  956. top: -28rpx;
  957. right: -28rpx;
  958. }
  959. }
  960. }
  961. .iconenter {
  962. font-size: $font-base + 2rpx;
  963. color: #888;
  964. }
  965. .pinklist_list {
  966. margin-bottom: 25rpx;
  967. }
  968. .kf {
  969. width: 146rpx;
  970. height: 146rpx;
  971. position: fixed;
  972. right: 0;
  973. top: 710rpx;
  974. z-index: 99;
  975. image {
  976. width: 100%;
  977. height: 100%;
  978. }
  979. }
  980. .fuli {
  981. position: fixed;
  982. right: 24rpx;
  983. bottom: 400rpx;
  984. width: 136rpx;
  985. height: 136rpx;
  986. z-index: 99;
  987. image {
  988. width: 100%;
  989. height: 100%;
  990. }
  991. }
  992. .fuli-box {
  993. position: fixed;
  994. right: 24rpx;
  995. bottom: 390rpx;
  996. width: 136rpx;
  997. height: 136rpx;
  998. z-index: 99;
  999. image {
  1000. width: 100%;
  1001. height: 100%;
  1002. }
  1003. }
  1004. @keyframes rowup {
  1005. 0% {
  1006. // -webkit-transform: translate3d(0, 0, 0);
  1007. // transform: translate3d(0, 0, 0);
  1008. opacity: 0;
  1009. }
  1010. 100% {
  1011. // -webkit-transform: translate3d(0, -106rpx, 0);
  1012. // transform: translate3d(0, -106rpx, 0);
  1013. opacity: 1;
  1014. display: none;
  1015. }
  1016. }
  1017. .pt-box {
  1018. // width: 380rpx;
  1019. height: 70rpx;
  1020. background: rgba(0, 0, 0, 0.4);
  1021. border-radius: 10rpx;
  1022. position: absolute;
  1023. top: 106rpx;
  1024. left: 24rpx;
  1025. padding: 0 15rpx;
  1026. display: flex;
  1027. align-items: center;
  1028. overflow: hidden;
  1029. -webkit-animation: 3s rowup linear infinite normal;
  1030. animation: 3s rowup linear infinite normal;
  1031. .pt-frame {
  1032. display: flex;
  1033. align-items: center;
  1034. }
  1035. .pt-img {
  1036. width: 60rpx;
  1037. height: 60rpx;
  1038. border-radius: 50%;
  1039. margin-right: 10rpx;
  1040. }
  1041. .pt-text {
  1042. font-size: $font-base;
  1043. font-weight: 500;
  1044. color: rgba(255, 255, 255, 1);
  1045. display: flex;
  1046. align-items: center;
  1047. .pt-name {
  1048. // display: inline-block;
  1049. // width: 200rpx;
  1050. // overflow: hidden;
  1051. // text-overflow: ellipsis;
  1052. // white-space: nowrap;
  1053. }
  1054. }
  1055. }
  1056. .carousel {
  1057. height: 722rpx;
  1058. position: relative;
  1059. swiper {
  1060. height: 100%;
  1061. }
  1062. .image-wrapper {
  1063. width: 100%;
  1064. height: 100%;
  1065. }
  1066. .swiper-item {
  1067. display: flex;
  1068. justify-content: center;
  1069. align-content: center;
  1070. height: 750rpx;
  1071. overflow: hidden;
  1072. image {
  1073. width: 100%;
  1074. height: 100%;
  1075. }
  1076. }
  1077. }
  1078. /* 标题简介 */
  1079. .introduce-section {
  1080. background: #fff;
  1081. padding: 0 30rpx 20rpx;
  1082. .top_item_box {
  1083. line-height: 1;
  1084. border-radius: 10rpx;
  1085. display: flex;
  1086. margin-top: -90rpx;
  1087. position: relative;
  1088. box-shadow: 0px 4rpx 24rpx 0px rgba(85, 94, 111, 0.6);
  1089. margin-bottom: 20rpx;
  1090. .item_box {
  1091. background: linear-gradient(-90deg, #ff6a48, #ed4046);
  1092. border-radius: 10rpx 0 0 10rpx;
  1093. width: 550rpx;
  1094. height: 121rpx;
  1095. display: flex;
  1096. flex-direction: column;
  1097. justify-content: center;
  1098. padding-left: 20rpx;
  1099. .price_box {
  1100. display: flex;
  1101. align-items: center;
  1102. .price_yuan {
  1103. font-size: 42rpx;
  1104. font-family: PingFang SC;
  1105. font-weight: bold;
  1106. color: #ffffff;
  1107. &::before {
  1108. content: '¥';
  1109. font-size: 24rpx;
  1110. }
  1111. }
  1112. .ot_price {
  1113. margin: 0 10rpx 0 10rpx;
  1114. font-size: 22rpx;
  1115. font-family: PingFang SC;
  1116. font-weight: bold;
  1117. text-decoration: line-through;
  1118. color: #ffffff;
  1119. }
  1120. .pink_tuan {
  1121. background: linear-gradient(270deg, #fff4e9, #fbdbb2);
  1122. border-radius: 16rpx;
  1123. font-size: 20rpx;
  1124. font-family: PingFang SC;
  1125. font-weight: bold;
  1126. color: #303131;
  1127. padding: 6rpx 12rpx;
  1128. }
  1129. }
  1130. .tuiguang_num {
  1131. margin-top: 14rpx;
  1132. font-size: 24rpx;
  1133. font-family: PingFang SC;
  1134. font-weight: 500;
  1135. color: #ffffff;
  1136. }
  1137. }
  1138. .ptsf_box {
  1139. width: 144rpx;
  1140. height: 121rpx;
  1141. background: #ffffff;
  1142. border-radius: 0px 10rpx 10rpx 0px;
  1143. display: flex;
  1144. flex-direction: column;
  1145. align-items: center;
  1146. justify-content: center;
  1147. padding: 0;
  1148. margin: 0;
  1149. &::after {
  1150. border: none;
  1151. }
  1152. .ptsf_img {
  1153. width: 42rpx;
  1154. height: 42rpx;
  1155. display: block;
  1156. }
  1157. .ptfx_tit {
  1158. margin-top: 15rpx;
  1159. font-size: 24rpx;
  1160. font-family: PingFang SC;
  1161. font-weight: bold;
  1162. color: #262a35;
  1163. line-height: 1;
  1164. }
  1165. }
  1166. }
  1167. .pink_price_box {
  1168. margin: -70rpx 0 34rpx;
  1169. position: relative;
  1170. display: flex;
  1171. align-items: center;
  1172. justify-content: space-between;
  1173. line-height: 1;
  1174. box-shadow: 3px 4px 10px #fe8119;
  1175. border-radius: 15rpx;
  1176. background: #ffffff;
  1177. .pink_price_frame {
  1178. width: 80%;
  1179. background: #fe8119;
  1180. padding: 26rpx;
  1181. border-radius: 15rpx 0 0 15rpx;
  1182. .pink_price_item {
  1183. display: flex;
  1184. align-items: center;
  1185. .pink_price {
  1186. font-size: 42rpx;
  1187. font-family: SourceHanSansCN;
  1188. font-weight: bold;
  1189. color: #ffffff;
  1190. &::before {
  1191. content: '¥';
  1192. font-size: 24rpx;
  1193. }
  1194. }
  1195. .pink_tuan {
  1196. margin-left: 12rpx;
  1197. padding: 6rpx 12rpx;
  1198. background: rgba($color: #f6f6f8, $alpha: 0.56);
  1199. border-radius: 16rpx;
  1200. font-size: 20rpx;
  1201. font-family: PingFang SC;
  1202. font-weight: 500;
  1203. color: #ffffff;
  1204. }
  1205. }
  1206. .pink_jifen {
  1207. margin-top: 13rpx;
  1208. font-size: 24rpx;
  1209. font-family: PingFang SC;
  1210. font-weight: 500;
  1211. color: #ffffff;
  1212. }
  1213. }
  1214. .fengxiang_box {
  1215. padding: 0;
  1216. margin: 0;
  1217. background: #ffffff;
  1218. display: flex;
  1219. &::after {
  1220. border: none;
  1221. }
  1222. }
  1223. .pink_share_box {
  1224. width: 20%;
  1225. height: 100%;
  1226. // padding: 26rpx 0;
  1227. background: #ffffff;
  1228. border-radius: 0 15rpx 15rpx 0;
  1229. display: flex;
  1230. align-items: center;
  1231. flex-direction: column;
  1232. .pink_share_img {
  1233. width: 42rpx;
  1234. height: 42rpx;
  1235. }
  1236. .pink_share_text {
  1237. margin-top: 12rpx;
  1238. font-size: 24rpx;
  1239. font-family: PingFang SC;
  1240. font-weight: bold;
  1241. color: #fe8119;
  1242. }
  1243. }
  1244. }
  1245. .title {
  1246. font-size: 32rpx;
  1247. color: $font-color-dark;
  1248. height: 50rpx;
  1249. line-height: 50rpx;
  1250. }
  1251. .price-box {
  1252. display: flex;
  1253. align-items: baseline;
  1254. // height: 64rpx;
  1255. padding: 10rpx 0;
  1256. font-size: 26rpx;
  1257. color: $uni-color-primary;
  1258. }
  1259. .jifen-box {
  1260. display: flex;
  1261. align-items: flex-end;
  1262. .jifen-icon {
  1263. width: 20rpx;
  1264. height: 22rpx;
  1265. margin-bottom: 4rpx;
  1266. }
  1267. .jifen-price {
  1268. line-height: 1;
  1269. font-size: 42rpx;
  1270. font-family: PingFang SC;
  1271. font-weight: bold;
  1272. color: #ff9900;
  1273. margin: 0 6rpx;
  1274. }
  1275. .jifen-text {
  1276. font-size: 20rpx;
  1277. font-family: PingFang SC;
  1278. font-weight: bold;
  1279. color: #ff9900;
  1280. }
  1281. }
  1282. .price {
  1283. font-size: $font-lg + 2rpx;
  1284. color: #ff0000 !important;
  1285. }
  1286. .vip_price {
  1287. font-size: $font-lg + 2rpx;
  1288. color: $uni-color-primary;
  1289. padding-left: 15rpx;
  1290. }
  1291. .m-price {
  1292. margin: 0 12rpx;
  1293. color: $font-color-light;
  1294. text-decoration: line-through;
  1295. }
  1296. .coupon-tip {
  1297. align-items: center;
  1298. padding: 4rpx 10rpx;
  1299. background: $uni-color-primary;
  1300. font-size: $font-sm;
  1301. color: #fff;
  1302. border-radius: 6rpx;
  1303. line-height: 1;
  1304. transform: translateY(-4rpx);
  1305. }
  1306. .bot-row {
  1307. display: flex;
  1308. align-items: center;
  1309. height: 50rpx;
  1310. font-size: $font-sm;
  1311. color: $font-color-light;
  1312. text {
  1313. flex: 1;
  1314. }
  1315. }
  1316. .people {
  1317. border-radius: 10rpx;
  1318. height: 35rpx !important;
  1319. position: relative;
  1320. width: 116rpx;
  1321. height: 35rpx;
  1322. // border: 2rpx solid #db1935;
  1323. .people_image {
  1324. // background-color: #db1935;
  1325. width: 100%;
  1326. height: 100%;
  1327. text-align: center;
  1328. border-top-left-radius: 20%;
  1329. border-bottom-left-radius: 20%;
  1330. image {
  1331. width: 100%;
  1332. height: 100%;
  1333. // margin-bottom: 5rpx;
  1334. }
  1335. }
  1336. .people_number {
  1337. position: absolute;
  1338. top: 0;
  1339. right: 8rpx;
  1340. font-size: 22rpx;
  1341. line-height: 35rpx;
  1342. // padding: 5rpx 10rpx;
  1343. }
  1344. }
  1345. }
  1346. /* 分享 */
  1347. .share-section {
  1348. display: flex;
  1349. align-items: center;
  1350. color: $font-color-base;
  1351. background: linear-gradient(left, #fdf5f6, #fbebf6);
  1352. padding: 12rpx 30rpx;
  1353. .share-icon {
  1354. display: flex;
  1355. align-items: center;
  1356. width: 70rpx;
  1357. height: 30rpx;
  1358. line-height: 1;
  1359. border: 1px solid $uni-color-primary;
  1360. border-radius: 4rpx;
  1361. position: relative;
  1362. overflow: hidden;
  1363. font-size: 22rpx;
  1364. color: $uni-color-primary;
  1365. &:after {
  1366. content: '';
  1367. width: 50rpx;
  1368. height: 50rpx;
  1369. border-radius: 50%;
  1370. left: -20rpx;
  1371. top: -12rpx;
  1372. position: absolute;
  1373. background: $uni-color-primary;
  1374. }
  1375. }
  1376. .iconfavorfill {
  1377. position: relative;
  1378. z-index: 1;
  1379. font-size: 24rpx;
  1380. margin-left: 2rpx;
  1381. margin-right: 10rpx;
  1382. color: #fff;
  1383. line-height: 1;
  1384. }
  1385. .tit {
  1386. font-size: $font-base;
  1387. margin-left: 10rpx;
  1388. }
  1389. .iconprompt {
  1390. padding: 10rpx;
  1391. font-size: 30rpx;
  1392. line-height: 1;
  1393. }
  1394. .share-btn {
  1395. flex: 1;
  1396. text-align: right;
  1397. font-size: $font-sm;
  1398. color: $uni-color-primary;
  1399. }
  1400. .iconenter {
  1401. font-size: $font-sm;
  1402. margin-left: 4rpx;
  1403. color: $uni-color-primary;
  1404. }
  1405. }
  1406. .c-list {
  1407. font-size: $font-sm + 2rpx;
  1408. color: #303133;
  1409. margin-top: 20rpx;
  1410. background: #fff;
  1411. .c-row {
  1412. display: flex;
  1413. align-items: center;
  1414. padding: 20rpx 30rpx;
  1415. position: relative;
  1416. .c-text {
  1417. text {
  1418. padding-left: 25rpx;
  1419. padding-right: 25rpx;
  1420. }
  1421. }
  1422. }
  1423. .tit {
  1424. width: 140rpx;
  1425. }
  1426. .con {
  1427. flex: 1;
  1428. color: $font-color-dark;
  1429. .selected-text {
  1430. margin-right: 10rpx;
  1431. }
  1432. }
  1433. .bz-list {
  1434. height: 40rpx;
  1435. font-size: $font-sm + 2rpx;
  1436. color: $font-color-dark;
  1437. text {
  1438. display: inline-block;
  1439. margin-right: 30rpx;
  1440. }
  1441. }
  1442. .con-list {
  1443. flex: 1;
  1444. display: flex;
  1445. flex-direction: column;
  1446. color: $font-color-dark;
  1447. line-height: 40rpx;
  1448. }
  1449. .red {
  1450. color: $uni-color-primary;
  1451. }
  1452. }
  1453. // 谁购买了商品
  1454. .autoPink-box {
  1455. display: flex;
  1456. align-items: center;
  1457. padding: 0 20rpx;
  1458. .auto-img {
  1459. width: 50rpx;
  1460. height: 50rpx;
  1461. border-radius: 50%;
  1462. border: 1px solid #ffffff;
  1463. margin-left: -10rpx;
  1464. &:first-of-type {
  1465. margin-left: 0;
  1466. }
  1467. }
  1468. .shenlue {
  1469. width: 50rpx;
  1470. height: 50rpx;
  1471. border-radius: 50%;
  1472. border: 1px solid #ffffff;
  1473. background: #9d9fa6;
  1474. margin-left: -10rpx;
  1475. }
  1476. .auto-text {
  1477. color: #9f9f9f;
  1478. font-size: $font-base - 2rpx;
  1479. margin-left: 10rpx;
  1480. }
  1481. }
  1482. .quan {
  1483. width: 750rpx;
  1484. height: 83rpx;
  1485. background-color: #ffffff;
  1486. padding: 0 24rpx;
  1487. margin: 15rpx 0;
  1488. display: flex;
  1489. align-items: center;
  1490. .quan-left {
  1491. font-size: 26rpx;
  1492. font-weight: 500;
  1493. color: #606972;
  1494. margin-right: 33rpx;
  1495. }
  1496. .img-box {
  1497. width: 90rpx;
  1498. height: 30rpx;
  1499. margin-right: 10rpx;
  1500. .quan-img {
  1501. width: 90rpx;
  1502. height: 30rpx;
  1503. }
  1504. }
  1505. .quan-center {
  1506. font-size: 26rpx;
  1507. font-weight: 500;
  1508. color: #333333;
  1509. flex: 1;
  1510. }
  1511. .quan-right {
  1512. // width: 40rpx;
  1513. // height: 40rpx;
  1514. .right-next {
  1515. width: 100%;
  1516. height: 100%;
  1517. }
  1518. }
  1519. }
  1520. /* 评价 */
  1521. .eva-section {
  1522. display: flex;
  1523. flex-direction: column;
  1524. padding: 20rpx 30rpx;
  1525. background: #fff;
  1526. margin-top: 16rpx;
  1527. .e-header {
  1528. display: flex;
  1529. align-items: center;
  1530. height: 70rpx;
  1531. font-size: $font-sm + 2rpx;
  1532. color: $font-color-light;
  1533. .tit {
  1534. font-size: $font-base + 2rpx;
  1535. color: $font-color-dark;
  1536. margin-right: 4rpx;
  1537. }
  1538. .tip {
  1539. flex: 1;
  1540. text-align: right;
  1541. }
  1542. .iconenter {
  1543. margin-left: 10rpx;
  1544. }
  1545. }
  1546. }
  1547. .eva-box {
  1548. display: flex;
  1549. padding: 20rpx 0;
  1550. .portrait {
  1551. flex-shrink: 0;
  1552. width: 80rpx;
  1553. height: 80rpx;
  1554. border-radius: 100px;
  1555. }
  1556. .right {
  1557. flex: 1;
  1558. display: flex;
  1559. flex-direction: column;
  1560. font-size: $font-base;
  1561. color: $font-color-base;
  1562. padding-left: 26rpx;
  1563. .con {
  1564. font-size: $font-base;
  1565. color: $font-color-dark;
  1566. padding: 20rpx 0;
  1567. }
  1568. .bot {
  1569. display: flex;
  1570. justify-content: space-between;
  1571. font-size: $font-sm;
  1572. color: $font-color-light;
  1573. }
  1574. }
  1575. }
  1576. .con_image {
  1577. width: 130rpx;
  1578. height: 130rpx;
  1579. display: inline-block;
  1580. padding: 15rpx;
  1581. image {
  1582. width: 100%;
  1583. height: 100%;
  1584. }
  1585. }
  1586. /* 详情 */
  1587. .detail-desc {
  1588. background: #fff;
  1589. margin-top: 16rpx;
  1590. p {
  1591. line-height: 1;
  1592. }
  1593. img {
  1594. max-width: 100%;
  1595. }
  1596. .d-header {
  1597. display: flex;
  1598. justify-content: center;
  1599. align-items: center;
  1600. height: 80rpx;
  1601. font-size: $font-base + 2rpx;
  1602. color: $font-color-dark;
  1603. position: relative;
  1604. text {
  1605. padding: 0 20rpx;
  1606. background: #fff;
  1607. position: relative;
  1608. z-index: 1;
  1609. }
  1610. &:after {
  1611. position: absolute;
  1612. left: 50%;
  1613. top: 50%;
  1614. transform: translateX(-50%);
  1615. width: 300rpx;
  1616. height: 0;
  1617. content: '';
  1618. border-bottom: 1px solid #ccc;
  1619. }
  1620. }
  1621. }
  1622. .hotgoods {
  1623. width: 100%;
  1624. display: flex;
  1625. flex-wrap: wrap;
  1626. padding: 0 32rpx 108rpx;
  1627. .hotgoods-item {
  1628. width: 48%;
  1629. background-color: #ffffff;
  1630. border-radius: 12rpx;
  1631. margin-bottom: 24rpx;
  1632. &:nth-child(2n + 1) {
  1633. margin-right: 24rpx;
  1634. }
  1635. .image-wrapper {
  1636. width: 100%;
  1637. height: 330rpx;
  1638. border-radius: 3px;
  1639. overflow: hidden;
  1640. image {
  1641. width: 100%;
  1642. height: 100%;
  1643. opacity: 1;
  1644. border-radius: 12rpx 12rpx 0 0;
  1645. }
  1646. }
  1647. .title {
  1648. font-size: $font-base;
  1649. color: $font-color-dark;
  1650. font-weight: bold;
  1651. line-height: 80rpx;
  1652. }
  1653. .hot-price {
  1654. display: flex;
  1655. justify-content: space-between;
  1656. padding: 0 16rpx 12rpx;
  1657. .price {
  1658. font-size: 40rpx;
  1659. color: #ff0000;
  1660. font-weight: 500;
  1661. }
  1662. .cart-icon {
  1663. image {
  1664. width: 44rpx;
  1665. height: 44rpx;
  1666. }
  1667. }
  1668. }
  1669. }
  1670. }
  1671. .hotsheader {
  1672. text-align: center;
  1673. color: #ff0000;
  1674. font-size: 40rpx;
  1675. font-family: PingFang SC;
  1676. font-weight: bold;
  1677. display: flex;
  1678. justify-content: center;
  1679. align-items: center;
  1680. padding: 32rpx 0 24rpx;
  1681. }
  1682. /* 规格选择弹窗 */
  1683. .attr-content {
  1684. padding: 25rpx 30rpx;
  1685. .a-t {
  1686. display: flex;
  1687. image {
  1688. width: 170rpx;
  1689. height: 170rpx;
  1690. flex-shrink: 0;
  1691. border-radius: 8rpx;
  1692. }
  1693. .right {
  1694. display: flex;
  1695. flex-direction: column;
  1696. padding-left: 24rpx;
  1697. font-size: $font-sm + 2rpx;
  1698. color: $font-color-base;
  1699. line-height: 42rpx;
  1700. width: 75%;
  1701. .price {
  1702. font-size: $font-lg;
  1703. color: $uni-color-primary;
  1704. margin: 10rpx 0rpx;
  1705. }
  1706. .name {
  1707. font-size: 32rpx;
  1708. color: $font-color-dark;
  1709. height: 50rpx;
  1710. overflow: hidden;
  1711. text-overflow: ellipsis;
  1712. white-space: nowrap;
  1713. display: block;
  1714. }
  1715. .selected-text {
  1716. margin-right: 10rpx;
  1717. }
  1718. }
  1719. }
  1720. .attr-list {
  1721. display: flex;
  1722. flex-direction: column;
  1723. font-size: $font-base + 2rpx;
  1724. color: $font-color-base;
  1725. padding-top: 30rpx;
  1726. padding-left: 10rpx;
  1727. }
  1728. .item-list {
  1729. padding: 20rpx 0 0;
  1730. display: flex;
  1731. flex-wrap: wrap;
  1732. text {
  1733. display: flex;
  1734. align-items: center;
  1735. justify-content: center;
  1736. background: #eee;
  1737. margin-right: 20rpx;
  1738. margin-bottom: 20rpx;
  1739. border-radius: 100rpx;
  1740. min-width: 60rpx;
  1741. height: 60rpx;
  1742. padding: 0 20rpx;
  1743. font-size: $font-base;
  1744. color: #ff0000;
  1745. }
  1746. .selected {
  1747. background: #fbebee;
  1748. color: $uni-color-primary;
  1749. }
  1750. }
  1751. .num-list {
  1752. padding: 20rpx 0 0;
  1753. display: flex;
  1754. flex-wrap: wrap;
  1755. text {
  1756. display: flex;
  1757. align-items: center;
  1758. justify-content: center;
  1759. border-radius: 100rpx;
  1760. min-width: 60rpx;
  1761. height: 60rpx;
  1762. padding: 0 20rpx;
  1763. font-size: $font-base;
  1764. color: $font-color-dark;
  1765. }
  1766. }
  1767. }
  1768. /* 弹出层 */
  1769. .popup {
  1770. position: fixed;
  1771. left: 0;
  1772. top: 0;
  1773. right: 0;
  1774. bottom: 0;
  1775. z-index: 99;
  1776. &.show {
  1777. display: block;
  1778. .mask {
  1779. animation: showPopup 0.2s linear both;
  1780. }
  1781. .layer {
  1782. animation: showLayer 0.2s linear both;
  1783. }
  1784. }
  1785. &.hide {
  1786. .mask {
  1787. animation: hidePopup 0.2s linear both;
  1788. }
  1789. .layer {
  1790. animation: hideLayer 0.2s linear both;
  1791. }
  1792. }
  1793. &.none {
  1794. display: none;
  1795. }
  1796. .mask {
  1797. position: fixed;
  1798. top: 0;
  1799. left: 0;
  1800. width: 100%;
  1801. height: 100%;
  1802. z-index: 1;
  1803. background-color: rgba(0, 0, 0, 0.4);
  1804. }
  1805. .layer {
  1806. position: fixed;
  1807. z-index: 99;
  1808. bottom: 0;
  1809. width: 100%;
  1810. min-height: 35vh;
  1811. border-radius: 10rpx 10rpx 0 0;
  1812. background-color: #fff;
  1813. .btn {
  1814. height: 66rpx;
  1815. line-height: 66rpx;
  1816. border-radius: 100rpx;
  1817. background: #ff0000;
  1818. font-size: $font-base + 2rpx;
  1819. color: #fff;
  1820. margin: 30rpx auto 20rpx;
  1821. }
  1822. }
  1823. @keyframes showPopup {
  1824. 0% {
  1825. opacity: 0;
  1826. }
  1827. 100% {
  1828. opacity: 1;
  1829. }
  1830. }
  1831. @keyframes hidePopup {
  1832. 0% {
  1833. opacity: 1;
  1834. }
  1835. 100% {
  1836. opacity: 0;
  1837. }
  1838. }
  1839. @keyframes showLayer {
  1840. 0% {
  1841. transform: translateY(120%);
  1842. }
  1843. 100% {
  1844. transform: translateY(0%);
  1845. }
  1846. }
  1847. @keyframes hideLayer {
  1848. 0% {
  1849. transform: translateY(0);
  1850. }
  1851. 100% {
  1852. transform: translateY(120%);
  1853. }
  1854. }
  1855. }
  1856. //分享
  1857. .btn_fenxiang {
  1858. position: fixed;
  1859. // right: 20rpx;
  1860. right: 0;
  1861. bottom: 50%;
  1862. z-index: 95;
  1863. width: 140rpx;
  1864. height: 140rpx;
  1865. // width: 100rpx;
  1866. // color: #ffffff;
  1867. // border-radius: 100%;
  1868. // background-color: $background-color;
  1869. // line-height: 100rpx;
  1870. // text-align: center;
  1871. // font-size: 30rpx;
  1872. image {
  1873. width: 140rpx;
  1874. height: 140rpx;
  1875. }
  1876. }
  1877. .mask {
  1878. position: fixed;
  1879. top: 0;
  1880. left: 0;
  1881. width: 100%;
  1882. height: 100%;
  1883. z-index: 999;
  1884. background-color: rgba(0, 0, 0, 0.4);
  1885. image {
  1886. width: 100%;
  1887. height: 100%;
  1888. opacity: 0.8;
  1889. }
  1890. }
  1891. // 拼团协议弹窗
  1892. .xieyi-box {
  1893. position: fixed;
  1894. z-index: 998;
  1895. right: 0;
  1896. bottom: 0;
  1897. left: 0;
  1898. top: 0;
  1899. background-color: rgba(0, 0, 0, 0.4);
  1900. padding: 30rpx;
  1901. display: flex;
  1902. align-items: center;
  1903. .xieyi-frame {
  1904. background: #ffffff;
  1905. border-radius: 15rpx;
  1906. padding: 15rpx 0 0;
  1907. .xieyi-tit {
  1908. font-size: 40rpx;
  1909. font-weight: bold;
  1910. text-align: center;
  1911. }
  1912. .xieyi-text {
  1913. padding: 20rpx 30rpx;
  1914. font-size: 30rpx;
  1915. }
  1916. .xieyi-btn-box {
  1917. margin-top: 20rpx;
  1918. display: flex;
  1919. .xieyi-btn {
  1920. width: 50%;
  1921. height: 80rpx;
  1922. display: flex;
  1923. align-items: center;
  1924. justify-content: center;
  1925. border-bottom-left-radius: 15rpx;
  1926. background: #ffaa00;
  1927. color: #ffffff;
  1928. }
  1929. .queding {
  1930. border-bottom-left-radius: 0;
  1931. border-bottom-right-radius: 15rpx;
  1932. background: #03a9f4;
  1933. }
  1934. }
  1935. }
  1936. }
  1937. // 分享遮罩层
  1938. .pop-mask {
  1939. position: fixed;
  1940. z-index: 9999;
  1941. right: 0;
  1942. bottom: 0;
  1943. left: 0;
  1944. top: 0;
  1945. background-color: rgba(0, 0, 0, 0.4);
  1946. padding: 60rpx;
  1947. .share-img {
  1948. width: 100%;
  1949. height: 100%;
  1950. }
  1951. }
  1952. .shareDate {
  1953. position: fixed;
  1954. right: 0;
  1955. bottom: 50%;
  1956. z-index: 95;
  1957. width: 140rpx;
  1958. height: 140rpx;
  1959. // color: #ffffff;
  1960. // border-radius: 100%;
  1961. // width: 120rpx;
  1962. // height: 120rpx;
  1963. // line-height: 120rpx;
  1964. // background-color: $background-color;
  1965. // text-align: center;
  1966. // font-size: 30rpx;
  1967. image {
  1968. width: 140rpx;
  1969. height: 140rpx;
  1970. }
  1971. }
  1972. /* 底部操作菜单 */
  1973. .page-bottom {
  1974. position: fixed;
  1975. left: 0;
  1976. bottom: 0;
  1977. z-index: 95;
  1978. display: flex;
  1979. justify-content: center;
  1980. align-items: center;
  1981. width: 100%;
  1982. height: 100rpx;
  1983. background: rgba(255, 255, 255, 1);
  1984. box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.5);
  1985. // border-radius: 16rpx;
  1986. .kefu-mp {
  1987. padding: 0;
  1988. background: 0;
  1989. &::after {
  1990. border: 0;
  1991. }
  1992. }
  1993. .p-b-btn {
  1994. display: flex;
  1995. flex-direction: column;
  1996. align-items: center;
  1997. justify-content: center;
  1998. font-size: $font-sm;
  1999. color: $font-color-base;
  2000. width: 180rpx;
  2001. height: 100rpx;
  2002. // padding-left: 15rpx;
  2003. .kefu-btn {
  2004. width: 36rpx;
  2005. height: 35rpx;
  2006. margin-bottom: 8rpx;
  2007. }
  2008. .iconfont {
  2009. font-size: 40rpx;
  2010. line-height: 48rpx;
  2011. color: $font-color-light;
  2012. }
  2013. &.active,
  2014. &.active .iconfont {
  2015. color: #ff0000;
  2016. }
  2017. .icon-fenxiang2 {
  2018. font-size: 42rpx;
  2019. transform: translateY(-2rpx);
  2020. }
  2021. .iconlikefill {
  2022. font-size: 46rpx;
  2023. }
  2024. }
  2025. .gobuy {
  2026. width: 100%;
  2027. background: #db1935;
  2028. height: 100%;
  2029. color: #ffffff;
  2030. text-align: center;
  2031. padding-top: 25rpx;
  2032. // border-radius: 15rpx;
  2033. }
  2034. .primary-text {
  2035. display: flex;
  2036. height: 100%;
  2037. flex-direction: column;
  2038. align-items: center;
  2039. justify-content: center;
  2040. line-height: 1.7;
  2041. }
  2042. .pt-btn-group {
  2043. margin-left: 0 !important;
  2044. width: 100%;
  2045. }
  2046. .action-btn-group {
  2047. display: flex;
  2048. height: 100%;
  2049. overflow: hidden;
  2050. margin-left: 20rpx;
  2051. position: relative;
  2052. // border-top-right-radius: 15rpx;
  2053. // border-bottom-right-radius: 15rpx;
  2054. &:after {
  2055. content: '';
  2056. position: absolute;
  2057. top: 50%;
  2058. right: 50%;
  2059. transform: translateY(-50%);
  2060. height: 28rpx;
  2061. width: 0;
  2062. // border-right: 1px solid rgba(255, 255, 255, 0.5);
  2063. }
  2064. .action-btn {
  2065. display: flex;
  2066. align-items: center;
  2067. justify-content: center;
  2068. width: 540rpx;
  2069. height: 100%;
  2070. font-size: $font-base;
  2071. padding: 0;
  2072. border-radius: 0;
  2073. background: transparent;
  2074. &.buy-now-btn {
  2075. background-color: #ffb238;
  2076. }
  2077. &.add-cart-btn {
  2078. background: linear-gradient(270deg, #ff6848, #ed4046);
  2079. }
  2080. &.btn-favorites-btn {
  2081. background-color: rgba(24, 179, 255, 1);
  2082. }
  2083. }
  2084. .action-btn1 {
  2085. display: flex;
  2086. align-items: center;
  2087. justify-content: center;
  2088. width: 580rpx;
  2089. height: 100%;
  2090. font-size: $font-base;
  2091. padding: 0;
  2092. border-radius: 0;
  2093. background: transparent;
  2094. &.buy-now-btn {
  2095. background-color: #ffb238;
  2096. }
  2097. &.add-cart-btn {
  2098. background: linear-gradient(270deg, #ff6848, #ed4046);
  2099. }
  2100. }
  2101. }
  2102. }
  2103. //拼团列表
  2104. .pinklistbox1 {
  2105. padding: 15rpx 15rpx;
  2106. background: #ffffff;
  2107. text-align: center;
  2108. font-size: 26rpx;
  2109. margin-top: 25rpx;
  2110. }
  2111. .pinklistbox {
  2112. background: #ffffff;
  2113. margin-top: 25rpx;
  2114. overflow: hidden;
  2115. }
  2116. .pink_num {
  2117. background: -webkit-linear-gradient(left, #fdf5f6, #fbebf6);
  2118. padding: 15rpx 25rpx;
  2119. font-size: 26rpx;
  2120. color: #dc442c;
  2121. }
  2122. .pint {
  2123. // background: -webkit-linear-gradient(left, #ff1f4f, #ff0409);
  2124. background: #df3525;
  2125. padding: 10rpx 25rpx;
  2126. color: #ffffff;
  2127. font-size: 24rpx;
  2128. border-radius: 25rpx;
  2129. .iconenter {
  2130. font-size: 15px;
  2131. color: #ffffff;
  2132. }
  2133. }
  2134. .pinklist {
  2135. padding: 0rpx 25rpx;
  2136. padding-top: 45rpx !important;
  2137. }
  2138. .pink_img {
  2139. width: 100rpx;
  2140. height: 100rpx;
  2141. image {
  2142. width: 100%;
  2143. height: 100%;
  2144. border-radius: 100%;
  2145. }
  2146. }
  2147. .pink_people {
  2148. font-size: 28rpx;
  2149. text {
  2150. color: #dd524d;
  2151. }
  2152. }
  2153. .pink_time {
  2154. font-size: 26rpx;
  2155. color: #909399;
  2156. }
  2157. .pink_name {
  2158. width: 200rpx;
  2159. overflow: hidden;
  2160. white-space: nowrap;
  2161. text-overflow: ellipsis;
  2162. padding-left: 10rpx;
  2163. // background: #FC2A3F;
  2164. // height: 50rpx;
  2165. }
  2166. .More {
  2167. width: 100%;
  2168. line-height: 2;
  2169. background-color: #df3525;
  2170. font-size: $font-lg;
  2171. margin: 0 auto;
  2172. text-align: center;
  2173. color: #ffffff;
  2174. // border-radius: 50rpx;
  2175. }
  2176. .Shraremask {
  2177. position: fixed;
  2178. left: 0;
  2179. top: 0;
  2180. right: 0;
  2181. bottom: 0;
  2182. display: flex;
  2183. justify-content: center;
  2184. align-items: flex-end;
  2185. z-index: 998;
  2186. transition: 0.3s;
  2187. background-color: rgba(51, 51, 51, 0.6);
  2188. .bottomButtom {
  2189. position: absolute;
  2190. left: 0;
  2191. bottom: 0;
  2192. display: flex;
  2193. justify-content: center;
  2194. align-items: center;
  2195. width: 100%;
  2196. height: 90rpx;
  2197. background: #fff;
  2198. z-index: 9;
  2199. font-size: $font-base + 2rpx;
  2200. color: $font-color-dark;
  2201. }
  2202. }
  2203. .mask-content {
  2204. width: 100%;
  2205. height: 380rpx;
  2206. transition: 0.3s;
  2207. background: #fff;
  2208. &.has-bottom {
  2209. padding-bottom: 90rpx;
  2210. }
  2211. .view-content {
  2212. height: 100%;
  2213. }
  2214. }
  2215. .share-header {
  2216. height: 110rpx;
  2217. font-size: $font-base + 2rpx;
  2218. color: font-color-dark;
  2219. display: flex;
  2220. align-items: center;
  2221. justify-content: center;
  2222. padding-top: 10rpx;
  2223. &:before,
  2224. &:after {
  2225. content: '';
  2226. width: 240rpx;
  2227. heighg: 0;
  2228. border-top: 1px solid $border-color-base;
  2229. transform: scaleY(0.5);
  2230. margin-right: 30rpx;
  2231. }
  2232. &:after {
  2233. margin-left: 30rpx;
  2234. margin-right: 0;
  2235. }
  2236. }
  2237. .share-list {
  2238. display: flex;
  2239. width: 80%;
  2240. margin: 0rpx auto;
  2241. }
  2242. .share-item {
  2243. min-width: 33.33%;
  2244. display: flex;
  2245. justify-content: center;
  2246. align-items: center;
  2247. height: 180rpx;
  2248. width: 100%;
  2249. .wechat-box {
  2250. width: 50%;
  2251. height: 100%;
  2252. background: #ffffff;
  2253. border: 0;
  2254. display: flex;
  2255. align-items: center;
  2256. flex-direction: column;
  2257. &::after {
  2258. border: 0;
  2259. }
  2260. .itemImage {
  2261. width: 80rpx;
  2262. height: 80rpx;
  2263. margin-bottom: 16rpx;
  2264. }
  2265. .itemText {
  2266. font-size: $font-base;
  2267. color: $font-color-base;
  2268. line-height: 2;
  2269. }
  2270. }
  2271. }
  2272. .pink_xuzhi_box {
  2273. margin-top: 15rpx;
  2274. padding: 36rpx 36rpx 36rpx 30rpx;
  2275. background: #ffffff;
  2276. display: flex;
  2277. align-items: center;
  2278. justify-content: space-between;
  2279. .pink_xuzhi_tit {
  2280. font-size: 32rpx;
  2281. font-family: PingFang SC;
  2282. font-weight: bold;
  2283. color: #3b3b3b;
  2284. }
  2285. .pink_xuzhi_text {
  2286. font-size: 24rpx;
  2287. font-family: PingFang SC;
  2288. font-weight: 500;
  2289. color: #8a8a8a;
  2290. }
  2291. }
  2292. .share-box {
  2293. width: 600rpx;
  2294. height: 1000rpx;
  2295. background: red;
  2296. .box-img {
  2297. width: 600rpx;
  2298. height: 1000rpx;
  2299. }
  2300. }
  2301. .shop {
  2302. background: #fff;
  2303. margin-top: 20rpx;
  2304. .shop-top {
  2305. padding: 22rpx 30rpx;
  2306. border-bottom: 1px solid #eaeced;
  2307. .shop-top-left {
  2308. font-size: 30rpx;
  2309. font-family: PingFang SC;
  2310. font-weight: 500;
  2311. color: #333333;
  2312. }
  2313. .shop-top-right {
  2314. display: flex;
  2315. justify-content: flex-end;
  2316. align-items: center;
  2317. .shop-top-right-font {
  2318. margin-right: 10rpx;
  2319. font-size: 22rpx;
  2320. font-family: PingFang SC;
  2321. font-weight: 500;
  2322. color: #999999;
  2323. }
  2324. image {
  2325. width: 12rpx;
  2326. height: 20rpx;
  2327. }
  2328. }
  2329. }
  2330. .shop-bottom {
  2331. padding: 20rpx 30rpx;
  2332. .shop-bottom-left {
  2333. display: flex;
  2334. align-items: center;
  2335. .shop-bottom-left-icon {
  2336. width: 90rpx;
  2337. height: 90rpx;
  2338. border-radius: 50%;
  2339. }
  2340. .shop-bottom-left-info {
  2341. margin-left: 16rpx;
  2342. line-height: 1;
  2343. .shop-bottom-left-name {
  2344. font-size: 30rpx;
  2345. font-family: PingFang SC;
  2346. font-weight: bold;
  2347. color: #333333;
  2348. }
  2349. .shop-bottom-left-address {
  2350. margin-top: 14rpx;
  2351. font-size: 20rpx;
  2352. font-family: PingFang SC;
  2353. font-weight: 500;
  2354. color: #999999;
  2355. }
  2356. }
  2357. }
  2358. .shop-bottom-right {
  2359. display: flex;
  2360. justify-content: flex-end;
  2361. .shop-bottom-right-item {
  2362. width: 46rpx;
  2363. height: 46rpx;
  2364. border-radius: 50%;
  2365. }
  2366. }
  2367. }
  2368. }
  2369. </style>