createOrder.vue 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516
  1. <template>
  2. <view>
  3. <!-- 地址 -->
  4. <uni-notice-bar class="notice-bar" background-color="#FFFFFF" color="#141414" showIcon="true" single="true" :text="notice"></uni-notice-bar>
  5. <view v-if="tabCurrentIndex == 0" class="address-section" @click="Toaddress">
  6. <view class="order-content" v-if="addressData.real_name">
  7. <text class="iconfont iconlocation"></text>
  8. <view class="cen">
  9. <view class="top">
  10. <text class="name">{{ addressData.real_name }}</text>
  11. <text class="mobile">{{ addressData.phone }}</text>
  12. </view>
  13. <text class="address">{{ addressData.province + addressData.city + addressData.district }} {{ addressData.detail }}</text>
  14. </view>
  15. <text class="iconfont iconenter"></text>
  16. </view>
  17. <view class="order-content" v-if="!addressData.real_name">
  18. <view class="addAddress">
  19. <text class="iconfont iconaddition"></text>
  20. <text>添加收货地址</text>
  21. </view>
  22. </view>
  23. <image class="a-bg" :src="addressImg"></image>
  24. </view>
  25. <navigator v-if="tabCurrentIndex == 1" url="/pages/address/shopList" class="address-section">
  26. <view class="order-content" v-if="shopAddress.name">
  27. <text class="iconfont iconlocation"></text>
  28. <view class="cen">
  29. <view class="top">
  30. <text class="name">{{ shopAddress.name }}</text>
  31. <text class="mobile">{{ shopAddress.mobile }}</text>
  32. </view>
  33. <text class="address">{{ shopAddress.address }} {{ shopAddress.area }}</text>
  34. </view>
  35. <text class="iconfont iconenter"></text>
  36. </view>
  37. <view class="order-content" v-if="!shopAddress.name">
  38. <text class="addAddress">
  39. <text class="iconfont iconaddition"></text>
  40. <text>添加收货地址</text>
  41. </text>
  42. </view>
  43. <image class="a-bg" :src="addressImg"></image>
  44. <!-- 商品列表 -->
  45. </navigator>
  46. <!-- 商品列表 -->
  47. <view class="goods">
  48. <view class="goods-name flex">
  49. <view class="name">订单详情</view>
  50. <view class="time flex" v-if="showMask">
  51. <view>
  52. <view class="result">{{ resulttime }}</view><!-- @tap="showPicker('linkage')" -->
  53. <!-- <w-picker
  54. mode="linkage"
  55. :value="defaultRegion1"
  56. :options="options"
  57. :level="2"
  58. default-type="id"
  59. :default-props="defaultProps1"
  60. @confirm="onConfirm($event, 'linkage')"
  61. @cancel="onCancel"
  62. ref="linkage"
  63. ></w-picker> -->
  64. </view>
  65. <text class="iconfont iconenter"></text>
  66. </view>
  67. <view class="" v-if="pink_type == 1">{{mark}}</view>
  68. </view>
  69. <view class="goods-section">
  70. <view class="pink_name" v-if="pink_type == 1">{{pink_name}}</view>
  71. <view class="g-item flex_item" v-if="ShowType == 2">
  72. <scroll-view class="scroll-list" scroll-x>
  73. <view class="scoll-box" v-for="(ls, ind) in shopList" :key="ls.id">
  74. <view class="scoll-img"><image :src="ls.productInfo.image"></image></view>
  75. </view>
  76. </scroll-view>
  77. <view class="total">共{{ shopList.length }}件</view>
  78. </view>
  79. <view class="gift-item flex_item" v-if="ShowType == 1" v-for="(ls, ind) in shopList" :key="ind">
  80. <image :src="ls.productInfo.image"></image>
  81. <view class="right">
  82. <text class="title clamp">{{ ls.productInfo.store_name }}</text>
  83. <!-- <text class="spec">{{ ls.productInfo.attrInfo ? ls.productInfo.attrInfo.suk : '默认' }}</text> -->
  84. <view class="price-box">
  85. <text class="price">¥{{ ls.productInfo.attrInfo ? ls.productInfo.attrInfo.price : ls.productInfo.price }}</text>
  86. <!-- <text class="number">{{ 'x ' + ls.cart_num }}</text> -->
  87. </view>
  88. <view class="price-box">
  89. <text class="number">{{ 'x ' + ls.cart_num }}</text>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <!-- 金额明细 -->
  96. <!-- <view class="yt-list">
  97. <view class="yt-list-cell b-b">
  98. <text class="cell-tit clamp">支付方式</text>
  99. <text class="cell-tip">微信</text>
  100. </view>
  101. </view> -->
  102. <view class="goods" v-if="activityPro">
  103. <view class="goods-section">
  104. <view class="gift-item flex_item padding-t-0">
  105. <image :src="activityPro.image"></image>
  106. <view class="right">
  107. <text class="title clamp">{{ activityPro.store_name }}</text>
  108. <!-- <text class="spec">{{ activityPro.attrInfo ? activityPro.attrInfo.suk : '默认' }}</text> -->
  109. <view class="price-box"><text class="price">免费</text></view>
  110. </view>
  111. <view class="iconLeftTip">活动赠品</view>
  112. </view>
  113. </view>
  114. </view>
  115. <!-- <view class="green_card">
  116. <view class="box">
  117. <view class="img"><image src="/static/img/img36.png"></image></view>
  118. <view class="list flex">
  119. <view class="tpl">
  120. <view class="tip" v-if="grade < 100">
  121. 开通美卡,本单最高可减
  122. <text>{{ moneyAll.vipPrice }}元</text>
  123. </view>
  124. <view class="tip" v-if="grade > 99">
  125. 您已开通美卡,本单节省
  126. <text>{{ moneyAll.vipPrice }}元</text>
  127. </view>
  128. <view class="top" v-if="grade < 100">一天2毛4,一年约省806元</view>
  129. <view class="top" v-if="grade > 99">美卡有效期至{{ userInfo.level_valid_time }}</view>
  130. </view>
  131. <view class="tpl flex" v-if="grade < 100">
  132. <view class="money">¥88.00/年</view>
  133. <radio @click="checkbox" color="#06B163" :checked="checked" />
  134. </view>
  135. <view class="member" v-if="grade > 99" @click="ToMemer">
  136. 我的美卡
  137. <text class="iconfont iconenter"></text>
  138. </view>
  139. </view>
  140. </view>
  141. </view> -->
  142. <!-- 优惠明细 -->
  143. <view class="yt-list" v-if="showMask">
  144. <!-- 优惠券 -->
  145. <view class="yt-list-cell b-b" @click="toggleMask('show')">
  146. <!-- maskState: 0, //优惠券面板显示状态
  147. goodsState:0,//商品券面板显示状态
  148. deliveryState:0,//配送权面板显示状态 -->
  149. <text class="cell-tit clamp">优惠券</text>
  150. <text class="cell-tip active" v-if="userInfo.discount_coupon_count > 0 && !couponChecked.coupon_price">
  151. {{ userInfo.discount_coupon_count }}张可用
  152. <text class="iconfont iconenter"></text>
  153. </text>
  154. <text class="cell-tip red" v-if="couponChecked.coupon_price">-¥{{ couponChecked.coupon_price }}</text>
  155. <text class="cell-tip disabled" v-if="userInfo.discount_coupon_count == 0 && !couponChecked.coupon_price">没有优惠券</text>
  156. <text class="cell-more wanjia wanjia-gengduo-d"></text>
  157. </view>
  158. <!-- 免配送券 -->
  159. <view class="yt-list-cell b-b flex" v-if="userInfo.freight_coupon_count > 0 && moneyAll.storePostage > 0">
  160. <view class="cell-tit clamp">免配送券({{ userInfo.freight_coupon_count }}张可用)</view>
  161. <view class="cell-tip active"><radio @click="Getcheckbox" color="#06B163" :checked="checkedPei" /></view>
  162. </view>
  163. <!-- 商品券 -->
  164. <view class="yt-list-cell b-b" @click="goods('show')">
  165. <text class="cell-tit clamp">商品券</text>
  166. <text class="cell-tip active" v-if="userInfo.product_coupon_count > 0 && !GoodsChecked.coupon_price">
  167. {{ userInfo.product_coupon_count }}张可用
  168. <text class="iconfont iconenter"></text>
  169. </text>
  170. <text class="cell-tip red" v-if="GoodsChecked.coupon_price">{{ GoodsChecked.coupon_title }}</text>
  171. <text class="cell-tip disabled" v-if="userInfo.product_coupon_count > 0 == 0 && !GoodsChecked.coupon_price">没有优惠券</text>
  172. <text class="cell-more wanjia wanjia-gengduo-d"></text>
  173. </view>
  174. <view class="yt-list-cell b-b">
  175. <text class="cell-tit clamp">备注</text>
  176. <input class="desc" type="text" v-model="desc" placeholder="请填写备注信息" placeholder-class="placeholder" />
  177. </view>
  178. </view>
  179. <view class="info">
  180. <view class="flex">
  181. <view>商品金额</view>
  182. <view>¥{{ priceGroupDate.total_price }}</view>
  183. </view>
  184. <view class="flex">
  185. <view>配送费用</view>
  186. <view>¥{{ priceGroupDate.pay_postage }}</view>
  187. </view>
  188. <view class="flex" v-if="showMask"><view style="color: #ff383e;font-size: 24rpx;">(第一笔订单满19元时,第二单选择相同时段配送免配送费)</view></view>
  189. <view class="flex" v-if="!DeliveryChecked.coupon_price"></view>
  190. <view class="flex" v-if="DeliveryChecked.coupon_price">
  191. <view>配送券</view>
  192. <view class="red">-¥{{ DeliveryChecked.coupon_price }}</view>
  193. </view>
  194. </view>
  195. <!-- 底部 -->
  196. <view class="footer">
  197. <view class="price-content">
  198. <text>实付款:</text>
  199. <text class="price-tip">¥</text>
  200. <text class="price">{{ payPrice }}</text>
  201. </view>
  202. <text class="submit" :class="{ submitNo: !payType }" @click="payType ? submit() : ''">提交订单</text>
  203. </view>
  204. <!-- 优惠券面板 -->
  205. <view class="mask" :class="maskState === 0 ? 'none' : maskState === 1 ? 'show' : ''" @click="toggleMask">
  206. <view class="mask-content">
  207. <!-- 优惠券页面,仿mt -->
  208. <view class="name">领优惠券</view>
  209. <view class="coupon-item flex" @click="checkedCp(item)" v-for="(item, index) in couponList" :key="index">
  210. <view class="left">
  211. <view class="left-price">
  212. <text>{{ item.coupon_price }}</text>
  213. </view>
  214. <view class="left-man">满{{ item.use_min_price }}元使用</view>
  215. </view>
  216. <view class="right flex">
  217. <view class="right-info">
  218. <view class="info-name">{{ item.coupon_title }}</view>
  219. <view class="info-tip">限指定商品使用</view>
  220. <view class="info-tip">有效期至{{ item.end_time }}</view>
  221. </view>
  222. <!-- <view class="right-submit">立即领取</view> -->
  223. </view>
  224. </view>
  225. </view>
  226. </view>
  227. <!-- 领取商品券 -->
  228. <view class="mask" :class="goodsState === 0 ? 'none' : goodsState === 1 ? 'show' : ''" @click="goods">
  229. <view class="mask-content">
  230. <!-- 优惠券页面,仿mt -->
  231. <view class="name">领商品券</view>
  232. <view v-for="(item, index) in goodsList" :key="index" @click="checkedGoods(item)" class="goodsState flex">
  233. <view class="img"><image src="/static/img/img37.png" mode="scaleToFill"></image></view>
  234. <view class="delivery-box flex">
  235. <view class="list-money">
  236. <view class="tit">
  237. <text>{{ item.coupon_price }}</text>
  238. </view>
  239. <view class="price">美天选菜商品券</view>
  240. </view>
  241. <view class="row_list_right">
  242. <view class="title">{{ item.coupon_title }}</view>
  243. <view class="text">使用日期:{{ item.add_time }} 至{{ item.end_time }}</view>
  244. </view>
  245. <view class="use"><text>使用</text></view>
  246. </view>
  247. <view class="img"><image src="/static/img/img38.png" mode="scaleToFill"></image></view>
  248. </view>
  249. </view>
  250. </view>
  251. <view class="check_box flex" v-if="pink_type == 1">
  252. <view class="ziti-text" @click="Ziti">用户自提协议</view>
  253. <view><radio style="transform: scale(0.75)" @click="Getcheckbox11" color="#3DCF35" :checked="checked11" />同意</view>
  254. </view>
  255. <!-- 是否需要食物商品 -->
  256. <uni-popup ref="popup" type="center" :maskClick="false">
  257. <view class="pop-box">
  258. <view class="pop-tit">是否需要实物商品</view>
  259. <view class="pop-buttom">
  260. <view class="pop-sub" style="color: #5dbc7c;" @click="Needyes">是</view>
  261. <view class="pop-sub" style="color: #FF0000;" @click="Needno">否</view>
  262. </view>
  263. </view>
  264. </uni-popup>
  265. </view>
  266. </template>
  267. <script>
  268. import { mapState, mapMutations } from 'vuex';
  269. import { confirm } from '@/api/order.js';
  270. import { couponsOrder } from '@/api/coupon.js';
  271. import { computedOrderkey } from '@/api/money.js';
  272. import { cartAdd } from '@/api/product.js';
  273. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  274. import wPicker from '@/components/w-picker/w-picker.vue';
  275. export default {
  276. components: {
  277. wPicker,
  278. uniPopup
  279. },
  280. data() {
  281. return {
  282. pink_type:"",//区分拼团订单和普通订单
  283. pink_name:"",//区分aa团和达人团
  284. checked11:false,
  285. mark:"",
  286. ShowType: 1, //商品显示形式
  287. checkedPei: false, //是否选择配送券
  288. checked: false, //是否选择开通美卡
  289. isBuyVip: 0, //0为未使用配送券,1为使用配送券
  290. Deliveryid: 0, //选择的配送券id
  291. userInfo: '', //用户个人信息
  292. estimated_time: '11:00', //选择配送时间
  293. resulttime: '明日到家 预计11:00前', //选择配送时间传值 请选择送达时间
  294. defaultProps1: {
  295. label: 'name',
  296. value: 'id',
  297. children: 'child'
  298. },
  299. defaultRegion1: ['1', '9'],
  300. options: [
  301. {
  302. id: '1',
  303. name: '明日到家',
  304. child: [
  305. {
  306. id: '9',
  307. name: '请选择送达时间',
  308. child: []
  309. },
  310. {
  311. id: '11',
  312. name: '预计17:00前',
  313. child: []
  314. },
  315. {
  316. id: '10',
  317. name: '预计11:00前',
  318. child: []
  319. }
  320. ]
  321. }
  322. ],
  323. addressImg: '/static/img/img35.png',
  324. // 当前选中的支付方式
  325. tabCurrentIndex: 0,
  326. notice: '商品到货后,系统将会通知您来取货~',
  327. navList: [
  328. {
  329. state: 0,
  330. text: '快递配送'
  331. },
  332. {
  333. state: 1,
  334. text: '到店自提'
  335. }
  336. ],
  337. showMask: true, //是否显示优惠券面板
  338. maskState: 0, //优惠券面板显示状态
  339. goodsState: 0, //商品券面板显示状态
  340. deliveryState: 0, //配送权面板显示状态
  341. desc: '', //备注
  342. couponList: [], // 优惠券列表
  343. deliveryList: [], //配送券列表
  344. goodsList: [], //商品券列表
  345. couponChecked: '', //选中的优惠券
  346. DeliveryChecked: '', //选中的配送券
  347. GoodsChecked: '', //选中的商品券
  348. // 收货地址
  349. addressData: {},
  350. // 店铺地址
  351. shopAddress: {
  352. name: '',
  353. mobile: '',
  354. addressName: '',
  355. address: '',
  356. area: '',
  357. default: false
  358. },
  359. // 商品列表
  360. shopList: [],
  361. // 购物车id
  362. cartId: '',
  363. grade: '', //用户等级
  364. //购物金额详情
  365. moneyAll: {
  366. storeFreePostage: 0, //邮费优惠
  367. storePostage: 0, //邮费
  368. totalPrice: 0, //总支付金额
  369. vipPrice: 0 //vip优惠价
  370. },
  371. payPrice: 0, //总支付金额
  372. orderKey: '', //订单id
  373. checkedPoints: false, //判断是否积分抵扣
  374. integralShow: false, //是否显示积分抵扣金额
  375. payType: 1, //1微信 2支付宝
  376. // payType: true, //是否可支付
  377. pinkid: '', //保存拼团商品id
  378. form: '', //0优惠券,3配送券,2商品券
  379. priceGroupDate: '', //重新计算金额
  380. activityPro: '' ,//活动赠送商品
  381. goodsType: '', // 是否为拼团
  382. neednum: '', // 是否需要食物
  383. pinkUser: '' //是否为团长
  384. };
  385. },
  386. onLoad(option) {
  387. console.log(option,968)
  388. // 判断是否为拼团商品
  389. if (option.type == 'pink') {
  390. this.showMask = false;
  391. this.pinkid = option.pinkid;
  392. this.cartAdd(option);
  393. } else {
  394. // 判断是否拼团商品过来的
  395. if (+option.goodsType == 2) {
  396. this.showMask = false;
  397. }
  398. // 保存当前商品在购物车中的id
  399. this.cartId = option.id;
  400. this.pinkUser = option.pinkUser
  401. this.loadData();
  402. }
  403. },
  404. watch: {
  405. checkedPoints(newValue, oldValue) {
  406. this.integralShow = false;
  407. this.payMoneyNub();
  408. },
  409. estimated_time(newValue, oldValue) {
  410. this.payMoneyNub();
  411. }
  412. },
  413. computed: {
  414. Postage() {
  415. let money = +this.moneyAll.storePostage;
  416. if (money == 0) {
  417. return '免运费';
  418. } else {
  419. return '¥' + money;
  420. }
  421. },
  422. payAllMoney() {
  423. return +this.moneyAll.totalPrice + +this.moneyAll.vipPrice;
  424. }
  425. },
  426. methods: {
  427. ...mapMutations(['upAddressPageShow']),
  428. // 选择是
  429. Needyes(){
  430. this.neednum = 0;
  431. this.payMoneyNub()
  432. this.$refs.popup.close()
  433. console.log(this.neednum,99)
  434. },
  435. //自提服务协议
  436. Getcheckbox11() {
  437. let obj = this;
  438. obj.checked11 = !obj.checked11;
  439. },
  440. // 跳转到自提协议
  441. Ziti() {
  442. uni.navigateTo({
  443. url: '/pages/rule/Pickrule'
  444. });
  445. },
  446. // 选择否
  447. Needno(){
  448. this.neednum = 1;
  449. this.payMoneyNub()
  450. this.$refs.popup.close()
  451. console.log(this.neednum,99)
  452. },
  453. showPicker(type) {
  454. // 判断是否为 椒江 路桥 黄岩
  455. console.log(this.addressData.district)
  456. if( this.addressData.district == '路桥区' || this.addressData.district == '路桥' || this.addressData.district == '椒江区' || this.addressData.district == '椒江' || this.addressData.district == '黄岩区' || this.addressData.district == '黄岩' ) {
  457. console.log(2222222)
  458. this.$refs[type].show();
  459. } else {
  460. console.log(1111111)
  461. return;
  462. }
  463. },
  464. onConfirm(res, type) {
  465. this.resulttime = res.result;
  466. if (res.value[1] == 10) {
  467. this.estimated_time = '11:00';
  468. }
  469. if (res.value[1] == 11) {
  470. this.estimated_time = '17:00';
  471. }
  472. if (res.value[1] == 9) {
  473. this.estimated_time = '11:00';
  474. }
  475. },
  476. onCancel() {},
  477. navTo(url) {
  478. uni.navigateTo({
  479. url
  480. });
  481. },
  482. // 添加商品到购物车
  483. cartAdd(opt) {
  484. let obj = this;
  485. cartAdd({
  486. cartNum: 1, //商品数量
  487. new: 1, //商品是否新增加到购物车1为不加入0为加入
  488. mer_id: +opt.merid, //商店id
  489. combinationId: +opt.gid, //拼团商品id
  490. productId: +opt.pid //普通商品id
  491. })
  492. .then(function(e) {
  493. let da = e.data;
  494. // 獲取购物车号
  495. obj.cartId = da.cartId;
  496. // 加载数据
  497. obj.loadData();
  498. })
  499. .catch(e => {
  500. console.log(e);
  501. });
  502. },
  503. //是否选择配送券
  504. Getcheckbox() {
  505. let obj = this;
  506. obj.checkedPei = !obj.checkedPei;
  507. if (obj.checkedPei == false) {
  508. obj.Deliveryid = 0;
  509. obj.payMoneyNub();
  510. } else {
  511. obj.Deliveryid = obj.deliveryList[0].id;
  512. obj.payMoneyNub();
  513. }
  514. },
  515. Toaddress() {
  516. let addressPageShow = uni.getStorageSync('addaddressPageShowressData');
  517. if (!addressPageShow) {
  518. this.upAddressPageShow();
  519. }
  520. uni.showModal({
  521. title: '提示',
  522. content: '修改地址需要重新下单,是否确认修改?',
  523. success: function(res) {
  524. if (res.confirm) {
  525. uni.navigateTo({
  526. url: '/pages/index/address'
  527. });
  528. } else if (res.cancel) {
  529. }
  530. }
  531. });
  532. },
  533. //是否开通美卡
  534. checkbox() {
  535. let obj = this;
  536. obj.checked = !obj.checked;
  537. console.log(obj.checked, 'checked');
  538. if (obj.checked == false) {
  539. obj.isBuyVip = 0;
  540. obj.payMoneyNub();
  541. } else {
  542. obj.isBuyVip = 1;
  543. obj.payMoneyNub();
  544. }
  545. },
  546. // 计算支付金额
  547. payMoneyNub() {
  548. console.log(this.neednum)
  549. computedOrderkey({
  550. isBuyVip: this.isBuyVip, //是否使用配送券
  551. orderkey: this.orderKey,
  552. useIntegral: this.checkedPoints ? 1 : 0, //是否积分抵扣
  553. couponId: this.couponChecked.id, //优惠券编号
  554. goCouponId: this.Deliveryid, //配送券编号
  555. productCouponId: this.GoodsChecked.id, //商品券编号
  556. addressId: this.addressData.id, //地址编号
  557. estimated_time: this.estimated_time,
  558. is_pink_free: this.neednum,
  559. isPink: 0, // 是否为拼团商品 0 普通 1 拼团
  560. })
  561. .then(({ data }) => {
  562. this.payType = true;
  563. this.integralShow = true;
  564. // 获取支付金额
  565. this.payPrice = +data.result.pay_price;
  566. this.priceGroupDate = data.result;
  567. // 保存活动赠送商品
  568. this.activityPro = data.result.activityPro;
  569. })
  570. .catch(e => {
  571. console.log(e);
  572. this.integralShow = false;
  573. this.payType = false;
  574. });
  575. },
  576. // 是否使用积分
  577. checkedIntegral() {
  578. this.checkedPoints = !this.checkedPoints;
  579. },
  580. // 选中优惠券
  581. checkedCp(item) {
  582. this.couponChecked = item;
  583. this.payMoneyNub();
  584. },
  585. // 选中配送券
  586. // checkedDelivery(item) {
  587. // this.DeliveryChecked = item;
  588. // this.payMoneyNub();
  589. // },
  590. // 选中商品券
  591. checkedGoods(item) {
  592. this.GoodsChecked = item;
  593. this.payMoneyNub();
  594. },
  595. //顶部tab点击
  596. tabClick(index) {
  597. this.tabCurrentIndex = index;
  598. },
  599. // maskState: 0, //优惠券面板显示状态
  600. // goodsState:0,//商品券面板显示状态
  601. // deliveryState:0,//配送券面板显示状态
  602. //显示优惠券面板
  603. toggleMask(type) {
  604. if (this.userInfo.discount_coupon_count == 0) {
  605. return;
  606. } else {
  607. let timer = type === 'show' ? 10 : 300;
  608. let state = type === 'show' ? 1 : 0;
  609. this.maskState = 2;
  610. setTimeout(() => {
  611. this.maskState = state;
  612. }, timer);
  613. }
  614. },
  615. //显示商品券面板
  616. goods(type) {
  617. if (this.userInfo.product_coupon_count == 0) {
  618. return;
  619. }
  620. let timer = type === 'show' ? 10 : 300;
  621. let state = type === 'show' ? 1 : 0;
  622. this.goodsState = 2;
  623. setTimeout(() => {
  624. this.goodsState = state;
  625. }, timer);
  626. },
  627. //显示配送券面板
  628. delivery(type) {
  629. if (this.userInfo.freight_coupon_count == 0) {
  630. return;
  631. }
  632. let timer = type === 'show' ? 10 : 300;
  633. let state = type === 'show' ? 1 : 0;
  634. this.deliveryState = 2;
  635. setTimeout(() => {
  636. this.deliveryState = state;
  637. }, timer);
  638. },
  639. // 加载优惠券列表
  640. couponsOrder() {
  641. let obj = this;
  642. let money = obj.moneyAll.totalPrice;
  643. couponsOrder(
  644. {
  645. form: 0
  646. },
  647. money
  648. ).then(e => {
  649. this.couponList = e.data;
  650. });
  651. couponsOrder(
  652. {
  653. form: 2
  654. },
  655. money
  656. ).then(e => {
  657. this.goodsList = e.data;
  658. });
  659. couponsOrder(
  660. {
  661. form: 3
  662. },
  663. money
  664. ).then(e => {
  665. this.deliveryList = e.data;
  666. });
  667. },
  668. //获取订单信息
  669. loadData() {
  670. let obj = this;
  671. confirm({ cartId: obj.cartId + '' })
  672. .then(({ data }) => {
  673. obj.mark = data.mark;
  674. obj.addressData = data.addressInfo || {};
  675. // 判断是否为 椒江 路桥 黄岩
  676. if( this.addressData.district == '温岭市' || this.addressData.district == '温岭' || this.addressData.district == '玉环县' || this.addressData.district == '玉环' || this.addressData.district == '临海市' || this.addressData.district == '临海' ) {
  677. console.log(444)
  678. obj.resulttime = '预计17:00前';
  679. obj.estimated_time = '11:00'
  680. }
  681. obj.shopList = data.cartInfo; //商品列表
  682. if (obj.shopList.length < 2) {
  683. obj.ShowType = 1;
  684. } else {
  685. obj.ShowType = 2;
  686. }
  687. obj.moneyAll = data.priceGroup; //金额数据
  688. obj.orderKey = data.orderKey; //订单key
  689. obj.userInfo = data.userInfo;
  690. if(data.combination_id){
  691. if(data.combination_id > 0){
  692. obj. pink_type= 1;
  693. obj. pink_name= data.pink_type ;
  694. }else{
  695. obj. pink_type= 0;
  696. }
  697. }
  698. console.log(data.pink_type,55)
  699. if (data.userInfo.level_info == null) {
  700. obj.grade = 0;
  701. } else {
  702. obj.grade = data.userInfo.level_info.grade;
  703. }
  704. // 计算金额
  705. obj.payMoneyNub();
  706. // 加载各种券
  707. obj.couponsOrder();
  708. // if( this.pinkid == '' && this.userInfo.day_give == 1 && this.pinkUser == 1) {
  709. // this.$refs.popup.open()
  710. // }
  711. })
  712. .catch(e => {
  713. console.log(e.message);
  714. if (e.message == '未在营业时间') {
  715. setTimeout(function() {
  716. uni.switchTab({
  717. url: '/pages/index/index'
  718. });
  719. }, 1000);
  720. }
  721. });
  722. },
  723. // 购买数量变化
  724. numberChange(data) {
  725. this.number = data.number;
  726. },
  727. // 修改支付方式
  728. changePayType(type) {
  729. this.payType = type;
  730. },
  731. // 提交订单
  732. submit() {
  733. if(this.pink_type == 1){
  734. if(this.checked11 === false){
  735. this.$api.msg('请同意用户自提协议');
  736. return false;
  737. }
  738. }
  739. if (this.checkedPoints && this.shopList.length > 1) {
  740. this.$api.msg('积分商品只可单件购买');
  741. return false;
  742. }
  743. if (!this.addressData.real_name) {
  744. this.$api.msg('请选择收货地址');
  745. return false;
  746. }
  747. if (this.estimated_time == '' && this.showMask) {
  748. this.$api.msg('请选择送达时间');
  749. return false;
  750. }
  751. let url = '/pages/money/pay?key=' + this.orderKey + '&estimated_time=' + this.estimated_time + '&free=' + this.neednum + '&pinkUser=' + this.pinkUser + '&isPink=0';
  752. if (this.pinkid) {
  753. url += '&pinkid=' + this.pinkid;
  754. }
  755. // 判断是否为拼团商品
  756. if (!this.showMask) {
  757. url += '&pink=1';
  758. }
  759. uni.navigateTo({
  760. url
  761. });
  762. },
  763. ToMemer() {
  764. if (this.grade > 99) {
  765. uni.navigateTo({
  766. url: '/pages/user/renew'
  767. });
  768. }
  769. if (this.grade < 100) {
  770. uni.navigateTo({
  771. url: '/pages/user/card'
  772. });
  773. }
  774. }
  775. }
  776. };
  777. </script>
  778. <style lang="scss">
  779. page {
  780. background: $page-color-base;
  781. padding-bottom: 100rpx;
  782. }
  783. .notice-bar {
  784. position: relative;
  785. top: 10rpx;
  786. }
  787. .navbar {
  788. display: flex;
  789. height: 80rpx;
  790. padding: 0 5px;
  791. background: #fff;
  792. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
  793. position: relative;
  794. z-index: 10;
  795. .nav-item {
  796. flex: 1;
  797. display: flex;
  798. justify-content: center;
  799. align-items: center;
  800. height: 100%;
  801. font-size: $font-lg + 4rpx;
  802. color: $font-color-dark;
  803. position: relative;
  804. &.current {
  805. color: $base-color;
  806. &:after {
  807. content: '';
  808. position: absolute;
  809. left: 50%;
  810. bottom: 0;
  811. transform: translateX(-50%);
  812. width: 140rpx;
  813. height: 0;
  814. border-bottom: 2px solid $base-color;
  815. }
  816. }
  817. }
  818. }
  819. .address-section {
  820. padding: 30rpx 0;
  821. background: #fff;
  822. position: relative;
  823. border-top: 1px solid $border-color-light;
  824. .order-content {
  825. min-height: 100rpx;
  826. display: flex;
  827. align-items: center;
  828. .addAddress {
  829. text-align: center;
  830. width: 100%;
  831. display: flex;
  832. justify-content: center;
  833. align-items: center;
  834. .iconaddition {
  835. font-size: 55rpx;
  836. line-height: 1;
  837. border-radius: 100rpx;
  838. margin-right: 20rpx;
  839. }
  840. }
  841. }
  842. .iconlocation {
  843. flex-shrink: 0;
  844. display: flex;
  845. align-items: center;
  846. justify-content: center;
  847. width: 90rpx;
  848. color: #888;
  849. font-size: 44rpx;
  850. }
  851. .cen {
  852. display: flex;
  853. flex-direction: column;
  854. flex: 1;
  855. font-size: 28rpx;
  856. color: $font-color-dark;
  857. }
  858. .name {
  859. font-size: 34rpx;
  860. margin-right: 24rpx;
  861. }
  862. .address {
  863. margin-top: 16rpx;
  864. margin-right: 20rpx;
  865. color: $font-color-light;
  866. }
  867. .icon-you {
  868. font-size: 32rpx;
  869. color: $font-color-light;
  870. margin-right: 30rpx;
  871. }
  872. .a-bg {
  873. position: absolute;
  874. left: 0;
  875. bottom: 0;
  876. display: block;
  877. width: 100%;
  878. height: 5rpx;
  879. }
  880. }
  881. .pink_name{
  882. position: absolute;
  883. top: 20rpx;
  884. left: 25rpx;
  885. z-index: 99;
  886. background-color: #FFF270;
  887. color: #934721;
  888. font-size: 22rpx;
  889. padding: 0rpx 8rpx;
  890. }
  891. .goods {
  892. padding: 15rpx 25rpx;
  893. padding-bottom: 25rpx;
  894. background: #ffffff;
  895. margin-top: 25rpx;
  896. .iconLeftTip {
  897. position: absolute;
  898. top: 20rpx;
  899. left: 0rpx;
  900. padding: 5rpx 10rpx;
  901. background-color: $color-red;
  902. color: #ffffff;
  903. font-size: $font-sm - 4rpx;
  904. }
  905. .goods-name {
  906. color: #141414;
  907. font-size: 24rpx;
  908. padding: 30rpx 0rpx;
  909. .name {
  910. font-size: 35rpx;
  911. }
  912. .time {
  913. text {
  914. padding-top: 7rpx;
  915. }
  916. }
  917. }
  918. .goods-section {
  919. position: relative;
  920. .g-header {
  921. display: flex;
  922. align-items: center;
  923. height: 84rpx;
  924. padding: 0 30rpx;
  925. position: relative;
  926. }
  927. .logo {
  928. display: block;
  929. width: 50rpx;
  930. height: 50rpx;
  931. border-radius: 100px;
  932. }
  933. .name {
  934. font-size: 30rpx;
  935. color: $font-color-base;
  936. margin-left: 24rpx;
  937. }
  938. .gift-item {
  939. display: flex;
  940. margin: 20rpx 30rpx;
  941. padding-top: 20rpx;
  942. position: relative;
  943. image {
  944. flex-shrink: 0;
  945. display: block;
  946. width: 140rpx;
  947. height: 140rpx;
  948. border-radius: 4rpx;
  949. }
  950. .right {
  951. flex: 1;
  952. padding-left: 24rpx;
  953. overflow: hidden;
  954. align-self: stretch;
  955. }
  956. .title {
  957. font-size: 30rpx;
  958. color: $font-color-dark;
  959. }
  960. .spec {
  961. font-size: 26rpx;
  962. color: $font-color-light;
  963. }
  964. .price-box {
  965. display: flex;
  966. align-items: center;
  967. font-size: 32rpx;
  968. color: $font-color-dark;
  969. padding-top: 10rpx;
  970. .price {
  971. margin-bottom: 4rpx;
  972. }
  973. .number {
  974. font-size: 26rpx;
  975. color: $font-color-base;
  976. margin-left: 20rpx;
  977. }
  978. }
  979. .step-box {
  980. position: relative;
  981. }
  982. }
  983. .g-item {
  984. width: 100%;
  985. font-size: 24rpx;
  986. height: 170rpx;
  987. .scroll-list {
  988. width: 80%;
  989. overflow: hidden;
  990. white-space: nowrap;
  991. .scoll-box {
  992. margin-right: 25rpx;
  993. text-align: center;
  994. display: inline-block;
  995. .scoll-img {
  996. width: 150rpx;
  997. height: 150rpx;
  998. border-radius: 100%;
  999. image {
  1000. width: 150rpx;
  1001. height: 100%;
  1002. border-radius: 100%;
  1003. }
  1004. }
  1005. }
  1006. }
  1007. .total {
  1008. width: 20%;
  1009. text-align: center;
  1010. color: #515151;
  1011. font-size: 26rpx !important;
  1012. }
  1013. }
  1014. }
  1015. }
  1016. .green_card {
  1017. background: #ffffff;
  1018. padding: 30rpx 27rpx;
  1019. width: 100%;
  1020. margin-top: 15rpx;
  1021. font-size: 26rpx;
  1022. .box {
  1023. background: #f5f5f5;
  1024. padding: 25rpx 25rpx;
  1025. .img {
  1026. width: 100rpx;
  1027. height: 40rpx;
  1028. margin-bottom: 15rpx;
  1029. image {
  1030. width: 100%;
  1031. height: 100%;
  1032. }
  1033. }
  1034. .list {
  1035. .tpl {
  1036. .tip {
  1037. color: #425272;
  1038. text {
  1039. color: #ff383e;
  1040. }
  1041. }
  1042. .top {
  1043. color: #999999;
  1044. padding-top: 15rpx;
  1045. }
  1046. .money {
  1047. padding-right: 10rpx;
  1048. }
  1049. }
  1050. .member {
  1051. color: #425272;
  1052. }
  1053. }
  1054. }
  1055. }
  1056. .yt-list {
  1057. margin-top: 16rpx;
  1058. background: #fff;
  1059. }
  1060. .yt-list-cell {
  1061. display: flex;
  1062. align-items: center;
  1063. padding: 10rpx 30rpx 10rpx 40rpx;
  1064. line-height: 70rpx;
  1065. position: relative;
  1066. &.cell-hover {
  1067. background: #fafafa;
  1068. }
  1069. &.b-b:after {
  1070. left: 30rpx;
  1071. }
  1072. .cell-icon {
  1073. height: 32rpx;
  1074. width: 32rpx;
  1075. font-size: 22rpx;
  1076. color: #fff;
  1077. text-align: center;
  1078. line-height: 32rpx;
  1079. background: #f85e52;
  1080. border-radius: 4rpx;
  1081. margin-right: 12rpx;
  1082. &.hb {
  1083. background: #ffaa0e;
  1084. }
  1085. &.lpk {
  1086. background: #3ab54a;
  1087. }
  1088. }
  1089. .cell-more {
  1090. align-self: center;
  1091. font-size: 24rpx;
  1092. color: $font-color-light;
  1093. margin-left: 8rpx;
  1094. margin-right: -10rpx;
  1095. }
  1096. .cell-tit {
  1097. flex: 1;
  1098. font-size: 26rpx;
  1099. color: $font-color-light;
  1100. margin-right: 10rpx;
  1101. }
  1102. .cell-tip {
  1103. font-size: 26rpx;
  1104. color: $font-color-dark;
  1105. &.disabled {
  1106. color: $font-color-light;
  1107. }
  1108. &.active {
  1109. color: #b3b3b3;
  1110. }
  1111. &.red {
  1112. color: $base-color;
  1113. }
  1114. }
  1115. &.desc-cell {
  1116. .cell-tit {
  1117. max-width: 90rpx;
  1118. }
  1119. }
  1120. .desc {
  1121. flex: 1;
  1122. text-align: right;
  1123. font-size: $font-base;
  1124. color: $font-color-dark;
  1125. }
  1126. }
  1127. .info {
  1128. margin-top: 25rpx;
  1129. background: #ffffff;
  1130. padding-top: 25rpx !important;
  1131. margin-bottom: 25rpx !important;
  1132. padding: 0rpx 25rpx;
  1133. font-size: 28rpx;
  1134. color: #909399;
  1135. view {
  1136. padding-bottom: 10rpx;
  1137. }
  1138. }
  1139. .red {
  1140. color: #ff1a27;
  1141. }
  1142. /* 支付列表 */
  1143. .pay-list {
  1144. padding-left: 40rpx;
  1145. margin-top: 16rpx;
  1146. background: #fff;
  1147. .pay-item {
  1148. display: flex;
  1149. align-items: center;
  1150. padding-right: 20rpx;
  1151. line-height: 1;
  1152. height: 110rpx;
  1153. position: relative;
  1154. }
  1155. .icon-weixinzhifu {
  1156. width: 80rpx;
  1157. font-size: 40rpx;
  1158. color: #6bcc03;
  1159. }
  1160. .icon-alipay {
  1161. width: 80rpx;
  1162. font-size: 40rpx;
  1163. color: #06b4fd;
  1164. }
  1165. .icon-xuanzhong2 {
  1166. display: flex;
  1167. align-items: center;
  1168. justify-content: center;
  1169. width: 60rpx;
  1170. height: 60rpx;
  1171. font-size: 40rpx;
  1172. color: $base-color;
  1173. }
  1174. .tit {
  1175. font-size: 32rpx;
  1176. color: $font-color-dark;
  1177. flex: 1;
  1178. }
  1179. }
  1180. .footer {
  1181. position: fixed;
  1182. left: 0;
  1183. bottom: 0;
  1184. z-index: 995;
  1185. display: flex;
  1186. align-items: center;
  1187. width: 100%;
  1188. height: 90rpx;
  1189. justify-content: space-between;
  1190. font-size: 30rpx;
  1191. background-color: #fff;
  1192. z-index: 998;
  1193. color: $font-color-base;
  1194. box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  1195. .price-content {
  1196. padding-left: 30rpx;
  1197. }
  1198. .price-tip {
  1199. color: #ff383e;
  1200. margin-left: 8rpx;
  1201. }
  1202. .price {
  1203. font-size: 36rpx;
  1204. color: #ff383e;
  1205. }
  1206. .submit {
  1207. display: flex;
  1208. align-items: center;
  1209. justify-content: center;
  1210. width: 280rpx;
  1211. height: 100%;
  1212. color: #fff;
  1213. font-size: 32rpx;
  1214. background-color: $base-color;
  1215. &.submitNo {
  1216. background-color: $font-color-disabled;
  1217. }
  1218. }
  1219. }
  1220. .check_box {
  1221. padding: 0rpx 25rpx;
  1222. font-size: 28rpx;
  1223. text{
  1224. color: #3DCF35;
  1225. }
  1226. .ziti-text {
  1227. color: $base-color;
  1228. text-decoration: underline;
  1229. }
  1230. }
  1231. /* 优惠券面板 */
  1232. .mask {
  1233. display: flex;
  1234. align-items: flex-end;
  1235. position: fixed;
  1236. left: 0;
  1237. top: var(--window-top);
  1238. bottom: 0;
  1239. width: 100%;
  1240. background: rgba(0, 0, 0, 0);
  1241. z-index: 9995;
  1242. transition: 0.3s;
  1243. .mask-content {
  1244. width: 100%;
  1245. max-height: 70vh;
  1246. background: #f3f3f3;
  1247. transform: translateY(100%);
  1248. transition: 0.3s;
  1249. overflow-y: scroll;
  1250. border-top-left-radius: 25rpx;
  1251. border-top-right-radius: 25rpx;
  1252. .name {
  1253. width: 100%;
  1254. text-align: center;
  1255. padding: 15rpx 15rpx;
  1256. margin-top: 15rpx;
  1257. }
  1258. }
  1259. &.none {
  1260. display: none;
  1261. }
  1262. &.show {
  1263. background: rgba(0, 0, 0, 0.4);
  1264. .mask-content {
  1265. transform: translateY(0);
  1266. }
  1267. }
  1268. }
  1269. /* 优惠券列表 */
  1270. .coupon-item {
  1271. margin: 20rpx 24rpx;
  1272. background: #fff;
  1273. font-size: 26rpx;
  1274. height: 170rpx;
  1275. .left {
  1276. background: #eef9f1;
  1277. width: 28%;
  1278. height: 170rpx;
  1279. text-align: center;
  1280. color: #2dbd59;
  1281. .left-price {
  1282. padding-top: 25%;
  1283. text {
  1284. font-size: 59rpx;
  1285. font-weight: bold;
  1286. }
  1287. }
  1288. }
  1289. .right {
  1290. width: 72%;
  1291. height: 170rpx;
  1292. padding: 0rpx 25rpx;
  1293. .info-name {
  1294. font-weight: bold;
  1295. font-size: 30rpx;
  1296. }
  1297. .info-tip {
  1298. color: #999999;
  1299. font-size: 22rpx;
  1300. padding: 5rpx 0rpx;
  1301. }
  1302. .right-submit {
  1303. background: #2dbd59;
  1304. color: #ffffff;
  1305. border-radius: 25rpx;
  1306. padding: 10rpx 15rpx;
  1307. }
  1308. }
  1309. }
  1310. //配送券
  1311. .deliveryState {
  1312. border-radius: 15rpx;
  1313. margin: 20rpx 24rpx;
  1314. height: 200rpx;
  1315. overflow: hidden;
  1316. background: #ffffff;
  1317. .list-interval {
  1318. border: 1px dashed $border-color-light;
  1319. height: 100%;
  1320. .top,
  1321. .bottom {
  1322. border-radius: 100rpx;
  1323. width: 30rpx;
  1324. height: 30rpx;
  1325. position: absolute;
  1326. background-color: $page-color-base;
  1327. right: -15rpx;
  1328. }
  1329. .top {
  1330. top: -18rpx;
  1331. }
  1332. .bottom {
  1333. bottom: -18rpx;
  1334. }
  1335. }
  1336. .list-money {
  1337. height: 100%;
  1338. image {
  1339. height: 100%;
  1340. width: 20rpx;
  1341. margin-right: 10rpx;
  1342. position: relative;
  1343. }
  1344. .list-money-text {
  1345. width: 220rpx;
  1346. padding: 0 25rpx;
  1347. text-align: center;
  1348. color: #fc4141;
  1349. .tit {
  1350. padding: 15rpx 0rpx;
  1351. font-size: 55rpx;
  1352. font-weight: bold;
  1353. }
  1354. .price {
  1355. padding-bottom: 25rpx;
  1356. color: #999999;
  1357. font-size: 24rpx;
  1358. }
  1359. }
  1360. }
  1361. .row_list_right {
  1362. width: 60%;
  1363. font-size: 26rpx;
  1364. .title {
  1365. text {
  1366. color: #fc4141;
  1367. font-size: 30rpx;
  1368. }
  1369. }
  1370. .text {
  1371. padding: 7rpx;
  1372. color: #999999;
  1373. }
  1374. .use {
  1375. margin-top: 15rpx;
  1376. text {
  1377. border: 2rpx solid #313131;
  1378. padding: 7rpx 20rpx;
  1379. border-radius: 25rpx;
  1380. }
  1381. }
  1382. }
  1383. }
  1384. //商品券
  1385. .goodsState {
  1386. border-radius: 15rpx;
  1387. margin: 20rpx 24rpx;
  1388. height: 200rpx;
  1389. overflow: hidden;
  1390. .img {
  1391. width: 30rpx;
  1392. height: 200rpx;
  1393. image {
  1394. height: 100%;
  1395. width: 100%;
  1396. }
  1397. }
  1398. .delivery-box {
  1399. background: linear-gradient(270deg, rgba(111, 178, 47, 1) 0%, rgba(160, 217, 106, 1) 100%);
  1400. width: 100%;
  1401. height: 100%;
  1402. color: #ffffff;
  1403. .list-money {
  1404. height: 100%;
  1405. font-size: 22rpx;
  1406. text-align: center;
  1407. padding-top: 4%;
  1408. padding-left: 10rpx;
  1409. .tit {
  1410. text {
  1411. font-size: 80rpx;
  1412. }
  1413. }
  1414. }
  1415. .row_list_right {
  1416. width: 43%;
  1417. font-size: 26rpx;
  1418. .title {
  1419. text {
  1420. color: #fc4141;
  1421. font-size: 30rpx;
  1422. }
  1423. }
  1424. .text {
  1425. padding: 7rpx;
  1426. color: #ffffff;
  1427. font-size: 20rpx;
  1428. }
  1429. }
  1430. .use {
  1431. margin-top: 15rpx;
  1432. text {
  1433. background-color: #ffffff;
  1434. font-size: 26rpx;
  1435. padding: 12rpx 30rpx;
  1436. border-radius: 25rpx;
  1437. color: rgba(111, 178, 47, 1);
  1438. }
  1439. }
  1440. }
  1441. }
  1442. .pop-box {
  1443. background: #FFFFFF;
  1444. width: 500rpx;
  1445. border-radius: 15rpx;
  1446. text-align: center;
  1447. .pop-tit {
  1448. font-size: $font-base;
  1449. padding-top: 60rpx;
  1450. }
  1451. .pop-buttom {
  1452. display: flex;
  1453. align-items: center;
  1454. margin-top: 40rpx;
  1455. border-bottom-left-radius: 15rpx;
  1456. border-bottom-right-radius: 15rpx;
  1457. border: 1px solid #f0f0f0;
  1458. height: 80rpx;
  1459. .pop-sub {
  1460. flex: 1;
  1461. text-align: center;
  1462. font-size: $font-base;
  1463. border-right: 1px solid #f0f0f0;
  1464. &:last-of-type {
  1465. border-right: 0;
  1466. }
  1467. }
  1468. }
  1469. }
  1470. </style>