index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  1. <template>
  2. <view class="inviteSpell-con">
  3. <JHeader title="邀请好友拼单" width="50" height="50" style="padding: 24upx 0 0;"></JHeader>
  4. <view class="grouped">
  5. <view class="fs32 font-color-FFF">{{ remainPerson !== 0 ? '等待成团' : '已成团' }}</view>
  6. <view class="fs26 number">{{ inviteSpell.person }}人团</view>
  7. </view>
  8. <view class="topBox">
  9. <view class="title-box flex-row-plus">
  10. <image class="pro-img" :src="common.seamingImgUrl(inviteSpell.image)"></image>
  11. <view class="flex-column-plus mar-left-30">
  12. <view class="title-lab fs28">{{ inviteSpell.productName }}</view>
  13. <view class="flex-row-plus flex-sp-between">
  14. <view class="flex-column-plus">
  15. <!-- <view class="spellNum flex-items-plus font-color-C5AA7B mar-top-30 fs24">{{inviteSpell.person}}人团</view> -->
  16. <view class="flex-row-plus mar-top-30 flex-items">
  17. <label class="font-color-C83732 fs24">¥</label>
  18. <label class="font-color-C83732 fs36 mar-left-5">{{ inviteSpell.price }}</label>
  19. <label class="font-color-CCC discountsPriceLine fs26 mar-left-20">
  20. ¥{{ inviteSpell.originalPrice }}
  21. </label>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="spellpersonnel-box">
  29. <view class="bgBox flex-items-plus flex-column">
  30. <view class="flex-items flex-sp-around flex-row-plus mar-right-20">
  31. <view
  32. v-for="(item, index) in inviteSpell.personList" :key="index"
  33. class="flex-column flex-items-plus mar-left-20"
  34. >
  35. <image v-if="index == 0" class="head-icon border-FF7 z-index-0" :src="common.seamingImgUrl(item.headImage)"></image>
  36. <image v-else class="head-icon " :src="common.seamingImgUrl(item.headImage)"></image>
  37. <view v-if="index == 0" class="fs18 colonel-box">团长</view>
  38. </view>
  39. <view v-for="ritem in remainPerson">
  40. <view class="replenish-icon flex-items-plus mar-left-20">?</view>
  41. </view>
  42. </view>
  43. <view v-if="remainPerson !== 0">
  44. <view class="mar-top-50 font-color-333">
  45. 还差<label class="font-color-C5AA7B">
  46. {{ remainPerson }}
  47. </label>人成团,距结束还剩{{ hou }}:{{ min }}:{{ sec }}
  48. </view>
  49. <view v-if="type == 1" class="offered-but font-color-FFF flex-items-plus mar-top-60" @click="shareClick">
  50. 邀请好友拼单
  51. </view>
  52. <view v-if="type == 0" class="offered-but font-color-FFF flex-items-plus mar-top-60" @click="getOffered">
  53. 立即参团
  54. </view>
  55. <view v-if="type == 1" class="poster-but flex-items-plus mar-top-40" @click="goinvitePoster">
  56. 生成邀请海报
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="spellrule flex-items-plus flex-column mar-top-20">
  62. <view class="flex-row-plus">
  63. <view class="flex-row-plus flex-items-plus text-align">
  64. <view class="dot1"></view>
  65. <view class="dot2"></view>
  66. <view class="dot3"></view>
  67. </view>
  68. <label class="fs28 mar-left-20">拼团玩法</label>
  69. <view class="flex-row-plus flex-items-plus text-align mar-left-10">
  70. <view class="dot3"></view>
  71. <view class="dot2"></view>
  72. <view class="dot1"></view>
  73. </view>
  74. </view>
  75. <view class="mar-top-40">
  76. <tui-steps :items="numList" :type="2" :active-steps="-1"></tui-steps>
  77. </view>
  78. </view>
  79. <!-- 商品详情 -->
  80. <tui-bottom-popup v-model="goosDetailshowFlag" class="goosDetailshow-box" radius @close="goosDetailshowFlag = false">
  81. <view>
  82. <view class="detailImg-box flex-row-plus">
  83. <image class="detailImg" :src="common.seamingImgUrl(skuImg)"></image>
  84. <view class="flex-column-plus mar-left-40">
  85. <view class="font-color-C5AA7B">
  86. <label class="fs24">¥</label>
  87. <label class="fs36 mar-left-10">{{ skuPrice }}</label>
  88. </view>
  89. <label class="fs24 font-color-999 mar-top-20">库存 {{ stockNumber }} 件</label>
  90. <label class="fs24 mar-top-20">已选</label>
  91. </view>
  92. </view>
  93. <view class="color-box flex-column-plus">
  94. <view v-for="(attritem, index) in skuProdList.names" :key="index">
  95. <label class="fs24 font-color-999">{{ attritem.skuName }}</label>
  96. <view class="colorName-box">
  97. <view v-for="(attrRes, resIndex) in attritem.values" :key="resIndex" class="pad-bot-30">
  98. <label
  99. class="colorName" :class="{ 'colorName-on': subIndex[index] == resIndex }"
  100. @click="colorActiveClick(attrRes, index, resIndex)"
  101. >
  102. {{ attrRes.skuValue }}
  103. </label>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="goodsNum-box flex-row-plus flex-sp-between">
  109. <label class="font-color-999 fs24">数量</label>
  110. <view class="goodsNum">
  111. <label class="subtract" @click="numSub">-</label>
  112. <label v-model="buyNum" class="goodsNumber">{{ buyNum }}</label>
  113. <label class="add" @click="numAdd">+</label>
  114. </view>
  115. </view>
  116. <view
  117. class="goosDetailbut-box flex-items-plus"
  118. :style="{ 'padding-bottom': (isIphone === true ? 50 : 20) + 'rpx' }"
  119. >
  120. <view class="joinbuyBut" @click="getGroupSettlement(2)">确定</view>
  121. </view>
  122. </view>
  123. </tui-bottom-popup>
  124. <ShareSpell
  125. ref="shareSpell" :url="url" :url-parms="urlParms" :img="inviteSpell.image"
  126. title="好友邀请您来拼单啦"
  127. @shareCancel="shareCancel"
  128. >
  129. </ShareSpell>
  130. </view>
  131. </template>
  132. <script>
  133. import { T_STORAGE_KEY, T_SKU_ITEM_DTO_LIST, T_SKU_ITEM_LIST } from '../../../constant'
  134. import { getProductDetailsByIdApi, getProductsSkuApi, getInviteWorkApi } from '../../../api/anotherTFInterface'
  135. export default {
  136. name: 'InviteSpell',
  137. data() {
  138. return {
  139. numList: [{
  140. name: '选择商品 完成下单'
  141. }, {
  142. name: '支付开团 或参团'
  143. }, {
  144. name: '邀请好友 参与拼团'
  145. }, {
  146. name: '人满成团 失败退款'
  147. }],
  148. collageId: 0,
  149. orderId: 0,
  150. type: 0,
  151. inviteSpell: {},
  152. personLen: 0,
  153. remainPerson: 0,
  154. hou: '00',
  155. min: '00',
  156. sec: '00',
  157. timeOut: undefined,
  158. goosDetailshowFlag: false,
  159. productId: 0,
  160. skuId: 0,
  161. shopGroupWorkId: 0,
  162. buyNum: 1,
  163. skuProdId: 0,
  164. skuImg: '',
  165. skuPrice: 0,
  166. stockNumber: 0,
  167. skuProdList: {},
  168. isIphone: '',
  169. selectArr: [], // 存放被选中的值
  170. subIndex: [], // 是否选中 因为不确定是多规格还是单规格,所以这里定义数组来判断
  171. attrItemIdArr: [], // 存放被选中的id
  172. shopId: 0,
  173. attrList: [],
  174. productDetail: {},
  175. url: '',
  176. shareTitle: '',
  177. urlParms: ''
  178. }
  179. },
  180. onShareAppMessage(res) {
  181. var that = this
  182. // console.log('res=====',res);
  183. if (res.from === 'button') {
  184. // console.log('来自页面内转发按钮');
  185. } else if (res.from === 'menu') {
  186. // console.log('右上角菜单转发按钮');
  187. }
  188. this.url = '/another-tf/another-serve/inviteSpell/index?collageId=' +
  189. this.collageId + '&orderId=' + this.orderId + '&type=0' + '&productId=' + this.productId + '&skuId=' +
  190. this.skuId + '&shopGroupWorkId=' + this.shopGroupWorkId
  191. this.shareTitle = `【仅剩${this.remainPerson}个名额】我${this.inviteSpell.price}元拼了${this.inviteSpell.productName}`
  192. // 返回数据
  193. return {
  194. title: that.shareTitle,
  195. path: that.url,
  196. success(res) {
  197. // 转发成功,可以把当前页面的链接发送给后端,用于记录当前页面被转发了多少次或其他业务
  198. wx.request({
  199. url: app.buildUrl('/member/share'),
  200. data: {
  201. url: utils.getCurrentPageUrlWithArgs()
  202. },
  203. success(res) {
  204. // console.log('成功');
  205. }
  206. })
  207. },
  208. fail(res) {
  209. // 转发失败
  210. }
  211. }
  212. },
  213. onUnload() {
  214. if (this.timeOut) {
  215. clearTimeout(this.timeOut)
  216. }
  217. },
  218. onShow() {
  219. // 判断是否登录
  220. let item = {}
  221. if (uni.getStorageSync(T_STORAGE_KEY)) {
  222. item = uni.getStorageSync(T_STORAGE_KEY)
  223. }
  224. if (JSON.stringify(item) == '{}') {
  225. const data = {
  226. collageId: this.collageId,
  227. orderId: this.orderId,
  228. productId: this.productId,
  229. skuId: this.skuId,
  230. type: this.type
  231. }
  232. this.getInviteSpell()
  233. } else {
  234. this.$store.dispatch('auth/refrshUserInfoAction', () => {
  235. this.getInviteSpell()
  236. })
  237. }
  238. },
  239. onLoad(options) {
  240. this.isIphone = getApp().globalData.isIphone
  241. this.collageId = parseInt(options.collageId)
  242. this.orderId = parseInt(options.orderId)
  243. this.productId = parseInt(options.productId)
  244. this.skuId = parseInt(options.skuId)
  245. this.shopGroupWorkId = parseInt(options.shopGroupWorkId)
  246. this.getProductSku()
  247. this.queryProductDetail()
  248. // #ifdef MP-WEIXIN
  249. this.url = '/another-tf/another-serve/inviteSpell/index?collageId=' +
  250. this.collageId + '&orderId=' + this.orderId + '&productId=' + this.productId + '&skuId=' + this.skuId +
  251. '&shopGroupWorkId=' + this.shopGroupWorkId
  252. this.urlParms = this.collageId + '&orderId=' + this.orderId + '&productId=' + this.productId + '&skuId=' + this
  253. .skuId + '&shopGroupWorkId=' + this.shopGroupWorkId
  254. // #endif
  255. // #ifndef MP-WEIXIN
  256. this.url = '/another-tf/another-serve/inviteSpell/index?collageId=' +
  257. this.collageId + '&orderId=' + this.orderId + '&productId=' + this.productId + '&skuId=' + this.skuId +
  258. '&shopGroupWorkId=' + this.shopGroupWorkId
  259. // #endif
  260. },
  261. methods: {
  262. getOffered() {
  263. this.goosDetailshowFlag = true
  264. },
  265. // 拼团下单
  266. getGroupSettlement(type) {
  267. uni.removeStorageSync(T_SKU_ITEM_DTO_LIST)
  268. const data = {
  269. collageId: this.collageId,
  270. number: this.buyNum,
  271. productId: this.productId,
  272. shopId: this.shopId,
  273. skuId: this.skuProdId,
  274. shopGroupWorkId: this.shopGroupWorkId,
  275. type
  276. }
  277. uni.setStorageSync(T_SKU_ITEM_LIST, data)
  278. this.goosDetailshowFlag = false
  279. this.buyNum = 1
  280. uni.navigateTo({
  281. url: '/another-tf/another-serve/orderConfirm/index?type=3'
  282. })
  283. },
  284. // 获取商品详情
  285. queryProductDetail() {
  286. getProductDetailsByIdApi({
  287. shopId: this.shopId,
  288. productId: this.productId,
  289. skuId: this.skuId,
  290. terminal: 1
  291. }).then((res) => {
  292. this.productDetail = res.data
  293. for (let i = 0; i < res.data.attrList.length; i++) {
  294. this.subIndex[i] = 0
  295. }
  296. this.attrItemIdArr[0] = res.data.attrList[0].attrValueList[0].id
  297. })
  298. },
  299. getProductSku() {
  300. getProductsSkuApi({
  301. skuId: this.skuId,
  302. productId: this.productId
  303. }).then((res) => {
  304. this.skuProdList = res.data
  305. this.attrList = res.data.names
  306. this.attrValueList = res.data.names[0].values
  307. // 渲染商详之后,默认先选中第一个规格
  308. this.colorActiveClick(this.attrValueList[0], 0, 0)
  309. this.skuProdId = this.skuId
  310. this.skuImg = res.data.image
  311. this.skuPrice = res.data.price
  312. this.stockNumber = res.data.stockNumber
  313. this.shopId = res.data.shopId
  314. })
  315. },
  316. // 数量减
  317. numSub() {
  318. if (this.buyNum > 1) {
  319. this.buyNum = this.buyNum - 1
  320. } else {
  321. uni.showToast({
  322. title: '亲!至少一件哦!',
  323. icon: 'none'
  324. })
  325. }
  326. },
  327. // 数量加
  328. numAdd() {
  329. if (this.buyNum < this.stockNumber) {
  330. this.buyNum = this.buyNum + 1
  331. } else {
  332. uni.showToast({
  333. title: '库存不足!',
  334. icon: 'none'
  335. })
  336. }
  337. },
  338. // 颜色选中事件
  339. colorActiveClick(res, index, resIndex) {
  340. const t = this
  341. t.selectArr[index] = res
  342. t.subIndex[index] = resIndex
  343. t.attrItemIdArr[index] = res.valueCode
  344. t.checkItem()
  345. t.checkItemDataClick(t.attrItemIdArr)
  346. },
  347. checkItem() {
  348. var self = this
  349. var option = self.attrList
  350. var result = [] // 定义数组存储被选中的值
  351. for (const i in option) {
  352. result[i] = self.selectArr[i] ? self.selectArr[i] : ''
  353. if (!self.subIndex[i]) {
  354. self.subIndex[i] = 0
  355. }
  356. if (!self.attrItemIdArr[i]) {
  357. self.attrItemIdArr[i] = option[i].values[0].valueCode
  358. }
  359. }
  360. for (const i in option) {
  361. var last = result[i] // 把选中的值存放到字符串last去
  362. for (const k in option[i].item) {
  363. result[i] = option[i].item[k].name // 赋值,存在直接覆盖,不存在往里面添加name值
  364. }
  365. result[i] = last // 还原,目的是记录点下去那个值,避免下一次执行循环时避免被覆盖
  366. }
  367. self.$forceUpdate() // 重绘
  368. },
  369. checkItemDataClick(attrItemIdArr) {
  370. let attrkey = ''
  371. for (let i = 0; i < attrItemIdArr.length; i++) {
  372. attrkey += attrItemIdArr[i] + ','
  373. }
  374. attrkey = attrkey.substring(0, attrkey.length - 1)
  375. const mapinfo = this.skuProdList.map
  376. for (var key in mapinfo) {
  377. if (attrkey == key) {
  378. this.skuProdId = mapinfo[key].skuId
  379. this.skuImg = mapinfo[key].skuImg
  380. this.skuPrice = mapinfo[key].price
  381. this.stockNumber = mapinfo[key].stockNumber
  382. }
  383. }
  384. },
  385. shareClick() {
  386. this.$refs.shareSpell.shareShow = true
  387. },
  388. shareCancel() {
  389. this.$refs.shareSpell.shareShow = false
  390. },
  391. goinvitePoster() {
  392. const data = {
  393. image: this.inviteSpell.image,
  394. headImage: this.inviteSpell.headImage,
  395. productName: this.inviteSpell.productName,
  396. person: this.inviteSpell.person,
  397. originalPrice: this.inviteSpell.originalPrice,
  398. price: this.inviteSpell.price,
  399. collageId: this.collageId,
  400. productId: this.productId,
  401. skuId: this.skuId,
  402. orderId: this.orderId
  403. }
  404. uni.navigateTo({
  405. url: '/another-tf/another-serve/invitePoster/index?data=' + JSON.stringify(data)
  406. })
  407. },
  408. getInviteSpell() {
  409. uni.showLoading({
  410. mask: true,
  411. title: '加载中...'
  412. })
  413. getInviteWorkApi({
  414. collageId: this.collageId,
  415. orderId: this.orderId
  416. }).then((res) => {
  417. this.inviteSpell = res.data
  418. this.type = 0
  419. this.inviteSpell.personList.forEach((item) => {
  420. if (item.buyerUserId === this.$store.getters.userInfo.buyerUserId) {
  421. this.type = 1
  422. }
  423. })
  424. this.personLen = res.data.personList.length
  425. this.remainPerson = res.data.person - this.personLen
  426. this.dateformat(res.data.time)
  427. this.countDown()
  428. uni.hideLoading()
  429. })
  430. .catch((res) => {
  431. uni.hideLoading()
  432. })
  433. },
  434. // 时分秒换算
  435. dateformat(micro_second) {
  436. // 总秒数
  437. const second = Math.floor(micro_second / 1000)
  438. // 天数
  439. const day = Math.floor(second / 3600 / 24)
  440. // 小时
  441. const hr = Math.floor(second / 3600 % 24)
  442. // 分钟
  443. const min = Math.floor(second / 60 % 60)
  444. // 秒
  445. const sec = Math.floor(second % 60)
  446. this.hou = hr
  447. this.min = min
  448. this.sec = sec
  449. },
  450. countDown() {
  451. const timeOut = setTimeout(() => {
  452. const hou = parseInt(this.hou)
  453. const min = parseInt(this.min)
  454. const sec = parseInt(this.sec)
  455. let netxSec = sec - 1
  456. let netxMin = min
  457. let netxHou = hou
  458. if (netxHou == 0 && netxMin == 0 && netxSec == -1) {
  459. clearTimeout(timeOut)
  460. } else {
  461. if (netxSec == -1) {
  462. netxSec = 59
  463. netxMin = netxMin - 1
  464. }
  465. if (netxMin == -1) {
  466. netxMin = 59
  467. netxHou = netxHou - 1
  468. }
  469. if (netxHou == -1) {
  470. netxHou = 23
  471. }
  472. this.hou = this.timeFormat(netxHou),
  473. this.min = this.timeFormat(netxMin),
  474. this.sec = this.timeFormat(netxSec),
  475. this.timeOut = timeOut
  476. this.countDown()
  477. }
  478. }, 1000)
  479. },
  480. timeFormat(param) { // 小于10的格式化函数
  481. return param < 10 ? '0' + param : param
  482. }
  483. }
  484. }
  485. </script>
  486. <style lang="less" scoped>
  487. .inviteSpell-con {
  488. background-color: #333333;
  489. background-size: contain;
  490. .grouped {
  491. text-align: center;
  492. padding-top: 40rpx;
  493. .number {
  494. display: inline-block;
  495. color: #FFEBC4;
  496. height: 48rpx;
  497. line-height: 48rpx;
  498. padding: 0 30rpx;
  499. background: #525252;
  500. margin-top: 10rpx;
  501. }
  502. }
  503. .z-index-0 {
  504. z-index: 0;
  505. }
  506. .border-FF7 {
  507. border: 2rpx solid #FFF;
  508. }
  509. .colonel-box {
  510. color: #FFEBC4;
  511. background-color: #333333;
  512. width: 86rpx;
  513. height: 32rpx;
  514. line-height: 32rpx;
  515. border-radius: 15rpx;
  516. text-align: center;
  517. margin-top: -20rpx;
  518. z-index: 2;
  519. }
  520. .font-color-C5AA7B {
  521. color: #C5AA7B;
  522. }
  523. .topBox {
  524. padding: 40rpx 20rpx 0 20rpx;
  525. }
  526. .title-box {
  527. padding: 30rpx;
  528. background: #FFFFFF;
  529. .title-lab {
  530. width: 400rpx;
  531. height: 130rpx;
  532. }
  533. .spellNum {
  534. background-color: #FFEDDF;
  535. border-radius: 22rpx;
  536. width: 144rpx;
  537. height: 44rpx;
  538. }
  539. .pro-img {
  540. width: 222rpx;
  541. height: 222rpx;
  542. }
  543. }
  544. .spellpersonnel-box {
  545. margin-top: 20rpx;
  546. padding: 0 20rpx;
  547. .bgBox {
  548. background-color: #FFFFFF;
  549. padding: 30rpx 0;
  550. }
  551. .head-icon {
  552. width: 102rpx;
  553. height: 102rpx;
  554. border-radius: 50%;
  555. }
  556. .replenish-icon {
  557. width: 102rpx;
  558. height: 102rpx;
  559. border-radius: 50%;
  560. border: 1rpx #E5E5E5 dashed;
  561. font-size: 60rpx;
  562. color: #DBDBDB;
  563. }
  564. .offered-but {
  565. background-color: #333333;
  566. border-radius: 5rpx;
  567. width: 420rpx;
  568. height: 66rpx;
  569. color: #FFEBC4;
  570. }
  571. .poster-but {
  572. border: #C5AA7B 1rpx solid;
  573. border-radius: 5rpx;
  574. width: 420rpx;
  575. height: 66rpx;
  576. color: #C5AA7B;
  577. }
  578. }
  579. .spellrule {
  580. background-color: #FFFFFF;
  581. padding: 50rpx 20rpx;
  582. .dot1 {
  583. width: 4rpx;
  584. height: 4rpx;
  585. background-color: #B6B6C1;
  586. border-radius: 50%;
  587. margin-left: 10rpx;
  588. }
  589. .dot2 {
  590. width: 6rpx;
  591. height: 6rpx;
  592. background-color: #B6B6C1;
  593. border-radius: 50%;
  594. margin-left: 10rpx;
  595. }
  596. .dot3 {
  597. width: 8rpx;
  598. height: 8rpx;
  599. background-color: #B6B6C1;
  600. border-radius: 50%;
  601. margin-left: 10rpx;
  602. }
  603. }
  604. .goosDetailshow-box {
  605. .detailImg-box {
  606. margin-top: 30upx;
  607. margin-left: 30upx;
  608. border-radius: 10upx;
  609. border-bottom: 1upx solid #EDEDED;
  610. padding-bottom: 20upx;
  611. width: 690upx;
  612. .detailImg {
  613. width: 180upx;
  614. height: 180upx;
  615. }
  616. }
  617. .color-box {
  618. padding: 30upx 30upx;
  619. border-bottom: 1upx solid #EDEDED;
  620. width: 690upx;
  621. .colorName-box {
  622. display: flex;
  623. flex-wrap: wrap;
  624. flex-direction: row;
  625. justify-content: flex-start;
  626. align-items: center;
  627. margin-top: 30upx;
  628. margin-left: -30upx;
  629. .colorName-on {
  630. background-color: #FFE5D0;
  631. color: #C5AA7B;
  632. margin-left: 30upx;
  633. padding: 10upx 32upx;
  634. border-radius: 28upx;
  635. border: 1upx solid #C5AA7B;
  636. font-size: 26upx;
  637. text-align: center;
  638. z-index: 1;
  639. }
  640. .colorName {
  641. background-color: #F5F5F5;
  642. margin-left: 30upx;
  643. padding: 10upx 32upx;
  644. border-radius: 28upx;
  645. font-size: 26upx;
  646. z-index: 2;
  647. }
  648. }
  649. }
  650. .joinbuyBut {
  651. width: 690upx;
  652. height: 80upx;
  653. border-radius: 40upx 40upx;
  654. background-color: #3D3C3D;
  655. color: #FFFEFE;
  656. font-size: 28upx;
  657. line-height: 80upx;
  658. text-align: center;
  659. }
  660. .goodsNum-box {
  661. padding: 30upx 30upx;
  662. width: 690upx;
  663. padding-bottom: 268upx;
  664. .goodsNumber {
  665. border: 1upx solid #999999;
  666. padding: 3upx 20upx;
  667. }
  668. .subtract {
  669. border: 1upx solid #999999;
  670. padding: 3upx 20upx;
  671. margin-right: -1upx;
  672. }
  673. .add {
  674. border: 1upx solid #999999;
  675. padding: 3upx 20upx;
  676. margin-left: -1upx;
  677. }
  678. }
  679. }
  680. }
  681. </style>