index.vue 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335
  1. <template>
  2. <view style="background-color: white" v-if="grouponOrderData.goodsInfos">
  3. <view class="all-products-body" v-for="(item, index) in grouponOrderData.goodsInfos" :key="index">
  4. <view class="all-products-item">
  5. <image
  6. :src="item.goodsCover"
  7. mode="scaleToFill" />
  8. <view class="all-products-item-content ">
  9. <view class="all-products-item-content-t">
  10. {{item.goodsName}}
  11. </view>
  12. <view class="all-products-item-content-b">
  13. <view style="display:flex;">
  14. <text class="red"> ¥{{item.discountPrice}}</text>
  15. </view>
  16. <view class="u-number-box">
  17. <!-- <u-number-box :name="item.id" :min="0" :max="10" v-model="grouponOrderData.goodsInfos[index].num" @change="calGoodsPrice"></u-number-box>-->
  18. <view class="symbol symboll" @click="numberBox(-1,index)">
  19. <text>-</text>
  20. </view>
  21. <view class="number-box">
  22. <text>{{grouponOrderData.goodsInfos[index].num}}</text>
  23. </view>
  24. <view class="symbol symbolr" @click="numberBox(1,index)">
  25. <text>+</text>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class='order-submission'>
  33. <view>
  34. <view class="nav acea-row">
  35. <view class="item font-num" :class="shippingType == 0 ? 'on' : 'on2'" @tap="addressType(0)"
  36. v-if='store_self_mention && is_shipping'></view>
  37. <view class="item font-num" :class="shippingType == 1 ? 'on' : 'on2'" @tap="addressType(1)"
  38. v-if='store_self_mention && is_shipping'></view>
  39. </view>
  40. <view class='address-info' @tap='onAddress'>
  41. <block>
  42. <view class="a-t">
  43. <view class="t1">
  44. 自提门店
  45. </view>
  46. <view class="t2" @tap='selectSelfTake()'>
  47. 更换自提网点
  48. <image src="http://www.gzzzyd.com/groupon/order_details/切换_面24@2x.png" mode="scaleToFill" />
  49. </view>
  50. </view>
  51. <view class="a-m">
  52. <view class="am1">
  53. <view class="am1-1">
  54. {{selfTake.name}}
  55. </view>
  56. <view class="am1-2">
  57. 距您{{selfTake.distanceDesc}}
  58. <image src="http://www.gzzzyd.com/groupon/order_details/距离@2x.png" mode="scaleToFill" @click="openmap(selfTake)" />
  59. </view>
  60. </view>
  61. <view class="am2">
  62. {{selfTake.address}}
  63. </view>
  64. <view class="am3">
  65. 营业时间 {{selfTake.busStartTimeDesc}}-{{selfTake.busEndTimeDesc}}
  66. </view>
  67. </view>
  68. <view class="a-b">
  69. <view class="a-b1">
  70. 对接团长:
  71. <text class="red">
  72. {{selfTake.contactPerson}}
  73. </text>
  74. </view>
  75. <view class="a-b2">
  76. <image src="http://www.gzzzyd.com/groupon/order_details/微信@2x.png" mode="scaleToFill" @click="openPopup(selfTake.qrCode)"></image>
  77. <image src="http://www.gzzzyd.com/groupon/order_details/电话键盘_填充@2x.png" mode="scaleToFill" @click="callPhone(selfTake.contactNumber)"></image>
  78. </view>
  79. </view>
  80. </block>
  81. </view>
  82. <view class="payment-details">
  83. <blok>
  84. <view class="p-t">
  85. 付款明细
  86. </view>
  87. <view class="p-b-item">
  88. <view class="item-lable">商品金额</view>
  89. <view class="item-value">¥{{parseFloat(totalPrice).toFixed(2)}}</view>
  90. </view>
  91. <view class="p-b-item">
  92. <view class="item-lable">积分抵扣</view>
  93. <view class="item-value">¥0</view>
  94. </view>
  95. <view class="p-b-item">
  96. <view class="item-lable">总计金额</view>
  97. <view class="item-value">¥{{parseFloat(totalPrice).toFixed(2)}}</view>
  98. </view>
  99. </blok>
  100. </view>
  101. <my-swiper :type=4 ></my-swiper>
  102. </view>
  103. <!-- <orderGoods :cartInfo="cartInfo" :is_confirm='true' :shipping_type="shippingType"></orderGoods>-->
  104. <view class='moneyList'>
  105. <view class='item acea-row row-between-wrapper' v-if="priceGroup.storePostage > 0">
  106. <view>{{ $t(`配送运费`) }}:</view>
  107. <view class='money'>
  108. {{ $t(`¥`) }}{{ (parseFloat(priceGroup.storePostage) + parseFloat(priceGroup.storePostageDiscount)).toFixed(2)
  109. }}
  110. </view>
  111. </view>
  112. <view class='item acea-row row-between-wrapper'
  113. v-if="priceGroup.vipPrice > 0 && userInfo.vip && !pinkId && !BargainId && !combinationId && !seckillId && !discountId">
  114. <view>{{ $t(`会员商品优惠`) }}:</view>
  115. <view class='money'>-{{ $t(`¥`) }}{{ parseFloat(priceGroup.vipPrice).toFixed(2) }}</view>
  116. </view>
  117. <view class='item acea-row row-between-wrapper' v-if="priceGroup.storePostageDiscount > 0">
  118. <view>{{ $t(`会员运费优惠`) }}:</view>
  119. <view class='money'>-{{ $t(`¥`) }}{{ parseFloat(priceGroup.storePostageDiscount).toFixed(2) }}</view>
  120. </view>
  121. <view class='item acea-row row-between-wrapper' v-if="coupon_price > 0">
  122. <view>{{ $t(`优惠券抵扣`) }}:</view>
  123. <view class='money'>-{{ $t(`¥`) }}{{ parseFloat(coupon_price).toFixed(2) }}</view>
  124. </view>
  125. <view class='item acea-row row-between-wrapper' v-if="integral_price > 0">
  126. <view>{{ $t(`积分抵扣`) }}:</view>
  127. <view class='money'>-{{ $t(`¥`) }}{{ parseFloat(integral_price).toFixed(2) }}</view>
  128. </view>
  129. </view>
  130. <view style='height:120rpx;'></view>
  131. <view class='footer acea-row row-between-wrapper'>
  132. <view>{{ $t(`合计`) }}:
  133. <text class='font-color'>{{ $t(`¥`) }}{{ parseFloat(totalPrice).toFixed(2) || 0 }}</text>
  134. </view>
  135. <view class='settlement' style='z-index:100' @tap.stop="goPay" v-if="totalPrice > 0">立即支付
  136. </view>
  137. <view class='settlement bg-color-hui' style='z-index:100' v-else>立即支付</view>
  138. </view>
  139. </view>
  140. <view class="alipaysubmit" v-html="formContent"></view>
  141. <!-- <couponListWindow :coupon='coupon' @ChangCouponsClone="ChangCouponsClone" :openType='openType' :cartId='cartId'
  142. @ChangCoupons="ChangCoupons"></couponListWindow> -->
  143. <!-- <addressWindow ref="addressWindow" @changeTextareaStatus="changeTextareaStatus" :news='news' :address='address'
  144. :pagesUrl="pagesUrl" @OnChangeAddress="OnChangeAddress" @changeClose="changeClose"></addressWindow> -->
  145. <!-- #ifdef MP -->
  146. <!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
  147. <!-- #endif -->
  148. <!-- <home v-show="!invShow"></home> -->
  149. <invoice-picker :inv-show="invShow" :inv-list="invList" :inv-checked="invChecked" :is-special="special_invoice"
  150. :url-query="urlQuery" @inv-close="invClose" @inv-change="invChange" @inv-cancel="invCancel">
  151. </invoice-picker>
  152. <payment :payMode="cartArr" :pay_close="pay_close" :isCall="false" :totalPrice="parseFloat(totalPrice).toFixed(2)"
  153. @changePayType="changePayType" @onChangeFun="onChangeFun" :order_id="orderKey"></payment>
  154. <canvas canvas-id="canvas" v-if="canvasStatus"
  155. :style="{ width: canvasWidth + 'px', height: canvasHeight + 'px', position: 'absolute', left: '-100000px', top: '-100000px' }"></canvas>
  156. <uni-popup ref="popup" type="center">
  157. <view class="block_3">
  158. <image @click="closePopup"
  159. class="icon_1"
  160. referrerpolicy="no-referrer"
  161. src="/static/images/X.png"
  162. />
  163. <image
  164. class="image_3"
  165. referrerpolicy="no-referrer"
  166. :src="qrCode"
  167. show-menu-by-longpress="true"
  168. />
  169. <text class="text_23">长按图片识别&nbsp;“加团长微信”</text>
  170. </view>
  171. </uni-popup>
  172. <u-popup :show="selfTakeShow" @close="selfTakeShow = false">
  173. <view class="box_3 flex-col">
  174. <image @click="selfTakeShow = false"
  175. class="icon_2"
  176. referrerpolicy="no-referrer"
  177. src="/static/images/X.png"
  178. />
  179. <text class="text_25">更换自提网点</text>
  180. <scroll-view scroll-y="true" class="scroll-y">
  181. <view class="list_1 flex-col">
  182. <view @click="clickSelfTake(item)"
  183. class="list-items_1 flex-col"
  184. v-for="(item, index) in selfTakeList"
  185. :key="index">
  186. <view class="group_14 flex-row justify-between">
  187. <view class="flex-col" >
  188. <text class="text_26" >{{item.name}}</text>
  189. </view>
  190. <view class="flex-row justify-between">
  191. <text class="text-group_9" >距您{{item.distanceDesc}}</text>
  192. <image class="icon_3"
  193. src="http://www.gzzzyd.com/groupon/order_details/距离@2x.png"/>
  194. </view>
  195. </view>
  196. <view class="text_27_view ">
  197. <text class="text_27" >{{item.address}}</text>
  198. </view>
  199. <view class="group_15 flex-row">
  200. <view class="tag_1 flex-col">
  201. <text class="c">营业时间: {{item.busStartTimeDesc}}-{{item.busEndTimeDesc}}</text>
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. </scroll-view>
  207. </view>
  208. </u-popup>
  209. </view>
  210. </template>
  211. <script>
  212. import {getGrouponSelfTakeList } from "@/api/groupon.js";
  213. import {
  214. postOrderSubmit, getUserAddressByIdAndFreight
  215. } from "@/api/home.js";
  216. import {
  217. getCouponsOrderPrice,
  218. getGroupOrderData
  219. } from '@/api/order.js';
  220. import {
  221. getAddressDefault,
  222. invoiceList,
  223. } from '@/api/user.js';
  224. import {
  225. openPaySubscribe
  226. } from '@/utils/SubscribeMessage.js';
  227. import {
  228. storeListApi
  229. } from '@/api/store.js';
  230. import couponListWindow from '@/components/couponListWindow';
  231. import addressWindow from '@/components/addressWindow';
  232. import home from '@/components/home';
  233. import {
  234. toLogin
  235. } from '@/libs/login.js';
  236. import {
  237. mapGetters
  238. } from "vuex";
  239. // #ifdef MP
  240. import authorize from '@/components/Authorize';
  241. // #endif
  242. import payment from '@/components/payment';
  243. import colors from "@/mixins/color";
  244. import productConSwiperGroupbuying from "@/components/productConSwiperGroupbuying";
  245. export default {
  246. components: {
  247. payment,
  248. couponListWindow,
  249. productConSwiperGroupbuying,
  250. addressWindow,
  251. // orderGoods,
  252. home,
  253. // #ifdef MP
  254. authorize
  255. // #endif
  256. },
  257. mixins: [colors],
  258. data () {
  259. const currentDate = this.getDate({
  260. format: true
  261. })
  262. return {
  263. qrCode: '',
  264. selfTakeShow: false,
  265. selectSelfTakePopupShow: false,
  266. confirm: '', //自定义留言
  267. date: this.$t(`请选择`),
  268. time: this.$t(`请选择`),
  269. canvasWidth: "",
  270. canvasHeight: "",
  271. canvasStatus: false,
  272. newImg: [],
  273. textareaStatus: true,
  274. //支付方式
  275. cartArr: [{
  276. "name": this.$t(`微信支付`),
  277. "icon": "icon-weixin2",
  278. value: 'weixin',
  279. title: this.$t(`使用微信快捷支付`),
  280. payStatus: 1,
  281. },
  282. // {
  283. // "name": this.$t(`支付宝支付`),
  284. // "icon": "icon-zhifubao",
  285. // value: 'alipay',
  286. // title: this.$t(`使用支付宝支付`),
  287. // payStatus: 1,
  288. // },
  289. // {
  290. // "name": this.$t(`余额支付`),
  291. // "icon": "icon-yuezhifu",
  292. // value: 'yue',
  293. // title: this.$t(`可用余额`),
  294. // payStatus: 1,
  295. // },
  296. // {
  297. // "name": this.$t(`线下支付`),
  298. // "icon": "icon-yuezhifu1",
  299. // value: 'offline',
  300. // title: this.$t(`使用线下付款`),
  301. // payStatus: 2,
  302. // }, {
  303. // "name": this.$t(`好友代付`),
  304. // "icon": "icon-haoyoudaizhifu",
  305. // value: 'friend',
  306. // title: this.$t(`找微信好友支付`),
  307. // payStatus: 1,
  308. // }
  309. ],
  310. virtual_type: 0,
  311. formContent: '',
  312. payType: 'weixin', //支付方式
  313. openType: 1, //优惠券打开方式 1=使用
  314. active: 0, //支付方式切换
  315. coupon: {
  316. coupon: false,
  317. list: [],
  318. statusTile: this.$t(`立即使用`)
  319. }, //优惠券组件
  320. address: {
  321. address: false
  322. }, //地址组件
  323. addressInfo: {}, //地址信息
  324. pinkId: 0, //拼团id
  325. addressId: 0, //地址id
  326. couponId: 0, //优惠券id
  327. cartId: '', //购物车id
  328. BargainId: 0,
  329. combinationId: 0,
  330. seckillId: 0,
  331. discountId: 0,
  332. userInfo: {}, //用户信息
  333. mark: '', //备注信息
  334. couponTitle: this.$t(`请选择`), //优惠券
  335. coupon_price: 0, //优惠券抵扣金额
  336. useIntegral: false, //是否使用积分
  337. integral_price: 0, //积分抵扣金额
  338. integral: 0,
  339. usable_integral: 0,
  340. ChangePrice: 0, //使用积分抵扣变动后的金额
  341. formIds: [], //收集formid
  342. status: 0,
  343. is_address: false,
  344. toPay: false, //修复进入支付时页面隐藏从新刷新页面
  345. shippingType: 0,
  346. system_store: {},
  347. storePostage: 0,
  348. advanceId: 0,
  349. contacts: '',
  350. contactsTel: '',
  351. mydata: {},
  352. storeList: [],
  353. store_self_mention: 0,
  354. cartInfo: [],
  355. priceGroup: {},
  356. animated: false,
  357. totalPrice: 0,
  358. integralRatio: "0",
  359. pagesUrl: "",
  360. orderKey: "",
  361. // usableCoupon: {},
  362. offlinePostage: "",
  363. isAuto: false, //没有授权的不会自动授权
  364. isShowAuth: false, //是否隐藏授权
  365. from: '',
  366. news: 1,
  367. num: 0,
  368. // invTitle: '不开发票',
  369. invTitle: this.$t(`不开发票`),
  370. special_invoice: false,
  371. invoice_func: false,
  372. header_type: '',
  373. invShow: false,
  374. invList: [],
  375. invChecked: '',
  376. urlQuery: '',
  377. pay_close: false,
  378. noCoupon: 0,
  379. valid_count: 0,
  380. discount_id: 0,
  381. is_shipping: true,
  382. inputTrip: false,
  383. focus: true,
  384. goodsSpecId: 0,
  385. freight: 0,
  386. zoneType: 0,
  387. goods: [],
  388. organizerUserId: '',
  389. selfTakeId: '',
  390. grouponOrderData: {},
  391. selfTake: {},
  392. selfTakeList: [],
  393. grouponId: ''
  394. };
  395. },
  396. computed: mapGetters(['isLogin']),
  397. // watch: {
  398. // startDate() {
  399. // return this.getDate('start');
  400. // },
  401. // endDate() {
  402. // return this.getDate('end');
  403. // }
  404. // },
  405. onLoad (options) {
  406. const goods = JSON.parse(decodeURIComponent(options.goods));
  407. this.goods = goods;
  408. this.organizerUserId = options.organizerUserId;
  409. this.selfTakeId = options.selfTakeId;
  410. this.grouponId = options.grouponId;
  411. this.from = 'routine'
  412. // if (!options.productId) return this.$util.Tips({
  413. // title: this.$t(`请选择要购买的商品`)
  414. // }, {
  415. // tab: 3,
  416. // url: 1
  417. // });
  418. if (this.isLogin && this.toPay == false) {
  419. this.getOrderData();
  420. // this.checkShipping();
  421. // this.getaddressInfo();
  422. // this.getConfirm();
  423. // this.$nextTick(function() {
  424. // this.$refs.addressWindow.getAddressList();
  425. // })
  426. } else {
  427. toLogin();
  428. }
  429. },
  430. /**
  431. * 生命周期函数--监听页面显示
  432. */
  433. onShow: function () {
  434. let _this = this
  435. uni.$on("handClick", res => {
  436. if (res) {
  437. _this.system_store = res.address
  438. }
  439. // 清除监听
  440. uni.$off('handClick');
  441. })
  442. },
  443. methods: {
  444. numberBox(number,index){
  445. console.log('+++++++++++++++++')
  446. if (number<0 && this.grouponOrderData.goodsInfos[index].num ===0){
  447. return
  448. }
  449. if (number>0 && this.grouponOrderData.goodsInfos[index].num ===10){
  450. return
  451. }
  452. this.grouponOrderData.goodsInfos[index].num = this.grouponOrderData.goodsInfos[index].num + number
  453. console.log(this.grouponOrderData.goodsInfos[index].num)
  454. },
  455. openmap(selfTake) {
  456. uni.openLocation({
  457. latitude: selfTake.latitude,
  458. longitude: selfTake.longitude,
  459. address: selfTake.address,
  460. success: function () {
  461. console.log('success');
  462. }
  463. });
  464. },
  465. clickSelfTake(item){
  466. this.selfTakeShow =false;
  467. //item 选中的自提点
  468. this.selfTake = item;
  469. this.selfTakeId = item.id;
  470. },
  471. closePopup(){
  472. this.$refs.popup.close()
  473. },
  474. openPopup(qrCode){
  475. let that = this;
  476. this.qrCode = qrCode;
  477. if (!this.qrCode) {
  478. return that.$util.Tips({
  479. title: that.$t(`团长未设置微信号`)
  480. });
  481. }
  482. this.$refs.popup.open()
  483. },
  484. callPhone(phone){
  485. uni.makePhoneCall({
  486. phoneNumber: phone
  487. })
  488. },
  489. selectSelfTake() {
  490. this.selectSelfTakePopupShow = true;
  491. let longitude = uni.getStorageSync("user_longitude"); //经度
  492. let latitude = uni.getStorageSync("user_latitude"); //纬度
  493. let address = uni.getStorageSync("user_address"); //纬度
  494. getGrouponSelfTakeList({
  495. grouponId: this.grouponId,
  496. longitude: longitude,
  497. latitude: latitude,
  498. address: address
  499. }).then(res => {
  500. this.selfTakeShow = true;
  501. this.selfTakeList = res.data;
  502. }).catch(err => {
  503. uni.showToast({
  504. title: err,
  505. icon: 'none'
  506. });
  507. });
  508. },
  509. calGoodsPrice(value) {
  510. this.grouponOrderData.goodsInfos.forEach(e => {
  511. if (value.name == e.id) {
  512. let c = value.value - e.num;
  513. this.totalPrice = this.totalPrice + (c*e.discountPrice)
  514. }
  515. });
  516. },
  517. getOrderData() {
  518. uni.showLoading({ title: '加载中' });
  519. let longitude = uni.getStorageSync("user_longitude"); //经度
  520. let latitude = uni.getStorageSync("user_latitude"); //纬度
  521. let param = {
  522. goods: this.goods,
  523. organizerUserId: this.organizerUserId,
  524. selfTakeId: this.selfTakeId,
  525. longitude: longitude,
  526. latitude: latitude,
  527. grouponId: this.grouponId
  528. };
  529. getGroupOrderData(param).then(res => {
  530. uni.hideLoading();
  531. this.grouponOrderData = res.data;
  532. let total = 0.0;
  533. this.grouponOrderData.goodsInfos.forEach(e => {
  534. total+=(e.discountPrice*e.num)
  535. });
  536. this.selfTake = this.grouponOrderData.selfTake;
  537. this.totalPrice = total;
  538. }).catch(err => {
  539. uni.hideLoading();
  540. uni.showToast({
  541. title: err,
  542. icon: 'none'
  543. });
  544. });
  545. },
  546. checkShipping () {
  547. let that = this;
  548. this.getConfirm();
  549. this.getaddressInfo();
  550. },
  551. // 不开发票
  552. invCancel () {
  553. this.invChecked = '';
  554. this.invTitle = this.$t(`不开发票`)
  555. this.invShow = false;
  556. },
  557. // 选择发票
  558. invChange (id) {
  559. this.invChecked = id;
  560. this.invShow = false;
  561. const result = this.invList.find(item => item.id === id);
  562. let name = '';
  563. name += result.header_type === 1 ? this.$t(`个人`) : this.$t(`企业`);
  564. name += result.type === 1 ? this.$t(`普通`) : this.$t(`专用`);
  565. name += this.$t(`发票`);
  566. this.invTitle = name;
  567. },
  568. // 关闭发票
  569. invClose () {
  570. this.invShow = false;
  571. this.getInvoiceList()
  572. },
  573. getInvoiceList () {
  574. uni.showLoading({
  575. title: this.$t(`正在加载中`)
  576. })
  577. invoiceList().then(res => {
  578. uni.hideLoading();
  579. this.invList = res.data.map(item => {
  580. item.id = item.id.toString();
  581. return item;
  582. });
  583. const result = this.invList.find(item => item.id == this.invChecked);
  584. if (result) {
  585. let name = '';
  586. name += result.header_type === 1 ? this.$t(`个人`) : this.$t(`企业`);
  587. name += result.type === 1 ? this.$t(`普通`) : this.$t(`专用`);
  588. name += this.$t(`发票`);
  589. this.invTitle = name;
  590. }
  591. }).catch(err => {
  592. uni.showToast({
  593. title: err,
  594. icon: 'none'
  595. });
  596. });
  597. },
  598. /**
  599. * 开发票
  600. */
  601. goInvoice: function () {
  602. this.getInvoiceList()
  603. this.invShow = true;
  604. this.urlQuery =
  605. `new=${this.news}&cartId=${this.cartId}&pinkId=${this.pinkId}&couponId=${this.couponId}&addressId=${this.addressId}&specialInvoice=${this.special_invoice}&couponTitle=${this.couponTitle}`;
  606. },
  607. /**
  608. * 授权回调事件
  609. *
  610. */
  611. onLoadFun: function () {
  612. this.getaddressInfo();
  613. this.getConfirm();
  614. //调用子页面方法授权后执行获取地址列表
  615. // this.$scope.selectComponent('#address-window').getAddressList();
  616. },
  617. /**
  618. * 事件回调
  619. *
  620. */
  621. onChangeFun: function (e) {
  622. let opt = e;
  623. let action = opt.action || null;
  624. let value = opt.value != undefined ? opt.value : null;
  625. action && this[action] && this[action](value);
  626. },
  627. payClose: function () {
  628. this.pay_close = false;
  629. },
  630. goPay () {
  631. let that = this
  632. uni.showLoading({
  633. title: that.$t(`下单中`)
  634. });
  635. that.orderCreate()
  636. },
  637. orderCreate () {
  638. console.log("orderCreate .. ", this.grouponOrderData.goodsInfos)
  639. let goodsInfos = [];
  640. this.grouponOrderData.goodsInfos.forEach(e => {
  641. let g = {goodsId: e.id, num: e.num};
  642. goodsInfos.push(g);
  643. })
  644. let that = this
  645. postOrderSubmit({
  646. distributeMode: 1,
  647. orderType: 1,
  648. orderSource: 1,
  649. grouponId: this.grouponId,
  650. selfTakeId: this.selfTakeId,
  651. goodsInfos: goodsInfos
  652. }).then(res => {
  653. that.orderKey = res.data.orderNo,
  654. uni.showLoading({
  655. title: that.$t(`下单成功`)
  656. });
  657. setTimeout(res => {
  658. uni.hideLoading();
  659. that.pay_close = true;
  660. }, 500)
  661. }).catch(err => {
  662. uni.hideLoading();
  663. return that.$util.Tips({
  664. title: err
  665. });
  666. });
  667. },
  668. pay_complete (type) {
  669. let that = this
  670. this.payType = type;
  671. // let url = '/pages/goods/order_pay_status/index?order_id=' + this.orderKey + '&msg=' + "支付成功" +
  672. // '&type=3' + '&totalPrice=' + this.totalPrice
  673. uni.showToast({
  674. title: that.$t(`支付成功`)
  675. })
  676. that.pay_close = false
  677. setTimeout(res => {
  678. uni.navigateBack({
  679. delta: 1
  680. })
  681. }, 500)
  682. // this.SubOrder();
  683. },
  684. payCheck (type) {
  685. this.payType = type;
  686. // console.log(this.payType);
  687. // let url = '/pages/goods/order_pay_status/index?order_id=' + this.orderKey + '&msg=' + "支付成功" +
  688. // '&type=3' + '&totalPrice=' + this.totalPrice
  689. // uni.showToast({
  690. // title: that.$t(`支付成功`)
  691. // })
  692. // setTimeout(res => {
  693. // uni.redirectTo({
  694. // url: url
  695. // })
  696. // }, 1000)
  697. // this.SubOrder();
  698. },
  699. /**
  700. * 获取门店列表数据
  701. */
  702. getList: function () {
  703. let longitude = uni.getStorageSync("user_longitude"); //经度
  704. let latitude = uni.getStorageSync("user_latitude"); //纬度
  705. let data = {
  706. latitude: latitude, //纬度
  707. longitude: longitude, //经度
  708. page: 1,
  709. limit: 10
  710. }
  711. storeListApi(data).then(res => {
  712. let list = res.data.list.list || [];
  713. this.$set(this, 'storeList', list);
  714. this.$set(this, 'system_store', list[0]);
  715. }).catch(err => { })
  716. },
  717. // 关闭地址弹窗;
  718. changeClose: function () {
  719. this.$set(this.address, 'address', false);
  720. },
  721. /*
  722. * 跳转门店列表
  723. */
  724. showStoreList: function () {
  725. let _this = this
  726. if (this.storeList.length > 0) {
  727. uni.navigateTo({
  728. url: '/pages/goods/goods_details_store/index'
  729. })
  730. }
  731. },
  732. changePayType (type) {
  733. this.payType = type
  734. // this.computedPrice()
  735. },
  736. computedPrice: function () {
  737. let that = this
  738. // postBeforeCheck({
  739. // goodsSpecId: this.goodsSpecId,
  740. // num: this.num,
  741. // userAddressId: this.addressId
  742. // }).then(function (res) {
  743. // //验证是否可下单
  744. // if (res.code == 200) {
  745. // that.freight = res.data.freight - 0
  746. // that.totalPrice = res.data.freight - 0
  747. // that.cartInfo.forEach(e => {
  748. // that.totalPrice += e.salePrice - 0
  749. // })
  750. // } else {
  751. // this.totalPrice = 0
  752. // that.$util.Tips({
  753. // title: that.$t(`所选商品属性不支持下单`),
  754. // success: () => {
  755. // // that.getCartCount(true);
  756. // },
  757. // });
  758. // }
  759. // })
  760. },
  761. addressType (e) {
  762. let index = e;
  763. let that = this;
  764. if (this.shippingType == parseInt(index)) return
  765. this.shippingType = parseInt(index);
  766. if (index == 1) {
  767. // #ifdef H5
  768. if (that.$wechat.isWeixin()) {
  769. that.$wechat.location().then(res => {
  770. uni.setStorageSync('user_latitude', res.latitude);
  771. uni.setStorageSync('user_longitude', res.longitude);
  772. this.getList()
  773. }).catch(err => {
  774. this.getList()
  775. })
  776. } else {
  777. // #endif
  778. uni.getLocation({
  779. type: 'wgs84',
  780. success: (res) => {
  781. uni.setStorageSync('user_latitude', res.latitude);
  782. uni.setStorageSync('user_longitude', res.longitude);
  783. this.getList()
  784. },
  785. complete: () => {
  786. this.getList()
  787. }
  788. });
  789. // #ifdef H5
  790. }
  791. // #endif
  792. };
  793. this.$nextTick(e => {
  794. this.getConfirm();
  795. this.computedPrice();
  796. })
  797. },
  798. bindPickerChange: function (e) {
  799. let value = e.detail.value;
  800. this.shippingType = value;
  801. this.computedPrice();
  802. },
  803. ChangCouponsClone: function () {
  804. this.$set(this.coupon, 'coupon', false);
  805. },
  806. changeTextareaStatus: function () {
  807. for (let i = 0, len = this.coupon.list.length; i < len; i++) {
  808. this.coupon.list[i].use_title = '';
  809. this.coupon.list[i].is_use = 0;
  810. }
  811. this.textareaStatus = true;
  812. this.status = 0;
  813. this.$set(this.coupon, 'list', this.coupon.list);
  814. },
  815. /**
  816. * 处理点击优惠券后的事件
  817. *
  818. */
  819. ChangCoupons: function (e) {
  820. // this.usableCoupon = e
  821. // this.coupon.coupon = false
  822. let index = e,
  823. list = this.coupon.list,
  824. couponTitle = this.$t(`请选择`),
  825. couponId = 0;
  826. for (let i = 0, len = list.length; i < len; i++) {
  827. if (i != index) {
  828. list[i].use_title = '';
  829. list[i].is_use = 0;
  830. }
  831. }
  832. if (list[index].is_use) {
  833. //不使用优惠券
  834. list[index].use_title = '';
  835. list[index].is_use = 0;
  836. } else {
  837. //使用优惠券
  838. list[index].use_title = this.$t(`不使用`);
  839. list[index].is_use = 1;
  840. couponTitle = list[index].coupon_title;
  841. couponId = list[index].id;
  842. }
  843. this.couponTitle = couponTitle;
  844. this.couponId = couponId;
  845. this.$set(this.coupon, 'coupon', false);
  846. this.$set(this.coupon, 'list', list);
  847. this.computedPrice();
  848. },
  849. /**
  850. * 使用积分抵扣
  851. */
  852. ChangeIntegral: function () {
  853. this.useIntegral = !this.useIntegral;
  854. this.computedPrice();
  855. },
  856. /**
  857. * 选择地址后改变事件
  858. * @param object e
  859. */
  860. OnChangeAddress: function (e) {
  861. this.textareaStatus = true;
  862. this.addressId = e;
  863. this.address.address = false;
  864. this.getConfirm()
  865. this.getaddressInfo();
  866. this.computedPrice();
  867. },
  868. bindHideKeyboard: function (e) {
  869. this.mark = e.detail.value;
  870. },
  871. /**
  872. * 获取当前订单详细信息
  873. *
  874. */
  875. getConfirm: function () {
  876. let that = this;
  877. // uni.showLoading({
  878. // title: that.$t(`正在加载中`),
  879. // mask: true
  880. // });
  881. // getGoodsDetail({ id: that.cartId })
  882. // .then((res) => {
  883. // that.cartInfo = []
  884. // let porject = res.data
  885. // that.zoneType = porject.zoneType
  886. // //找出选择的规格
  887. // porject.goodsSpecList.forEach(element => {
  888. // if (that.goodsSpecId == element.id) {
  889. // porject.unit = element.spceName
  890. // }
  891. // });
  892. // porject.totalSales = that.num
  893. // // 计算总价
  894. // that.totalPrice = (that.num - 0) * (porject.salePrice - 0) + that.freight - 0
  895. // that.cartInfo.push(porject)
  896. // uni.hideLoading()
  897. // })
  898. // .catch((err) => {
  899. // uni.hideLoading()
  900. // return this.$util.Tips({
  901. // title: err
  902. // });
  903. // });
  904. },
  905. /*
  906. * 提取砍价和拼团id
  907. */
  908. getBargainId: function () {
  909. let that = this;
  910. let cartINfo = that.cartInfo;
  911. let BargainId = 0;
  912. let combinationId = 0;
  913. let discountId = 0;
  914. let advanceId = 0;
  915. cartINfo.forEach(function (value, index, cartINfo) {
  916. BargainId = cartINfo[index].bargain_id,
  917. combinationId = cartINfo[index].combination_id,
  918. discountId = cartINfo[index].discount_id,
  919. advanceId = cartINfo[index].advance_id
  920. })
  921. that.$set(that, 'BargainId', parseInt(BargainId));
  922. that.$set(that, 'combinationId', parseInt(combinationId));
  923. that.$set(that, 'discountId', parseInt(discountId));
  924. that.$set(that, 'advanceId', parseInt(advanceId));
  925. if (that.cartArr.length == 3 && (BargainId || combinationId || that.seckillId || discountId)) {
  926. that.cartArr[2].payStatus = 0;
  927. that.$set(that, 'cartArr', that.cartArr);
  928. }
  929. },
  930. /**
  931. * 获取当前金额可用优惠券
  932. *
  933. */
  934. getCouponList: function () {
  935. let that = this;
  936. let data = {
  937. cartId: this.cartId,
  938. 'new': this.news
  939. }
  940. getCouponsOrderPrice(this.totalPrice, data).then(res => {
  941. that.$set(that.coupon, 'list', res.data);
  942. that.openType = 1;
  943. });
  944. },
  945. /*
  946. * 获取默认收货地址或者获取某条地址信息
  947. */
  948. getaddressInfo: function () {
  949. let that = this;
  950. if (that.addressId) {
  951. getUserAddressByIdAndFreight({ id: that.addressId }).then(res => {
  952. res.data.is_default = parseInt(res.data.is_default);
  953. that.addressInfo = res.data || {};
  954. that.addressId = res.data.id || 0;
  955. that.address.addressId = res.data.id || 0;
  956. })
  957. } else {
  958. getAddressDefault().then(res => {
  959. res.data.is_default = parseInt(res.data.is_default);
  960. that.addressInfo = res.data || {};
  961. that.addressId = res.data.id || 0;
  962. that.address.addressId = res.data.id || 0;
  963. })
  964. }
  965. },
  966. payItem: function (e) {
  967. let that = this;
  968. let active = e;
  969. that.active = active;
  970. that.animated = true;
  971. that.payType = that.cartArr[active].value;
  972. that.computedPrice();
  973. setTimeout(function () {
  974. that.car();
  975. }, 500);
  976. },
  977. couponTap: function () {
  978. this.coupon.coupon = true;
  979. this.coupon.list.forEach((item, index) => {
  980. if (item.id == this.couponId) {
  981. item.is_use = 1
  982. } else {
  983. item.is_use = 0
  984. }
  985. })
  986. this.$set(this.coupon, 'list', this.coupon.list);
  987. },
  988. car: function () {
  989. let that = this;
  990. that.animated = false;
  991. },
  992. onAddress: function () {
  993. let that = this;
  994. that.textareaStatus = false;
  995. that.address.address = true;
  996. that.pagesUrl = '/pages/users/user_address_list/index?news=' + this.news + '&cartId=' + this.cartId +
  997. '&pinkId=' +
  998. this.pinkId +
  999. '&couponId=' +
  1000. this.couponId;
  1001. },
  1002. payment (data) {
  1003. let that = this;
  1004. // postOrderSubmit({
  1005. // distributeMode: 1,
  1006. // goodsList: [{
  1007. // goodsId: that.cartId,
  1008. // goodsNum: that.num,
  1009. // goodsSpecIds: that.goodsSpecId
  1010. // }],
  1011. // payType: 1,
  1012. // remark: that.remark,
  1013. // settleType: 1,
  1014. // userAddressId: that.addressInfo.id,
  1015. // wlPrice: that.freight
  1016. // }).then(res => {
  1017. // let status = "",
  1018. // orderId = res.data.orderNo,
  1019. // jsConfig = {},
  1020. // goPages = '/pages/goods/order_pay_status/index?order_id=' + orderId + '&msg=' + "支付成功" +
  1021. // '&type=3' + '&totalPrice=' + this.totalPrice
  1022. // that.toPay = true;
  1023. // uni.requestPayment({
  1024. // provider: 'wxpay',
  1025. // orderInfo: jsConfig,
  1026. // success: (e) => {
  1027. // let url = goPages;
  1028. // uni.showToast({
  1029. // title: that.$t(`支付成功`)
  1030. // })
  1031. // setTimeout(res => {
  1032. // uni.redirectTo({
  1033. // url: url
  1034. // })
  1035. // }, 2000)
  1036. // },
  1037. // fail: (e) => {
  1038. // let url = '/pages/goods/order_pay_status/index?order_id=' +
  1039. // orderId +
  1040. // '&msg=' + that.$t(`支付失败`);
  1041. // uni.showModal({
  1042. // content: that.$t(`支付失败`),
  1043. // showCancel: false,
  1044. // success: function (res) {
  1045. // if (res.confirm) {
  1046. // uni.redirectTo({
  1047. // url: url
  1048. // })
  1049. // } else if (res.cancel) { }
  1050. // }
  1051. // })
  1052. // },
  1053. // complete: () => {
  1054. // uni.hideLoading();
  1055. // },
  1056. // });
  1057. // switch (status) {
  1058. // case 'ORDER_EXIST':
  1059. // case 'EXTEND_ORDER':
  1060. // case 'PAY_ERROR':
  1061. // uni.hideLoading();
  1062. // return that.$util.Tips({
  1063. // title: res.msg
  1064. // }, {
  1065. // tab: 5,
  1066. // url: goPages
  1067. // });
  1068. // break;
  1069. // case 'SUCCESS':
  1070. // uni.hideLoading();
  1071. // if ((that.BargainId || that.combinationId || that.pinkId || that.seckillId || that
  1072. // .discountId) && data.payType != 'friend')
  1073. // return that.$util.Tips({
  1074. // title: res.msg,
  1075. // icon: 'success'
  1076. // }, {
  1077. // tab: 4,
  1078. // url: goPages
  1079. // });
  1080. // return that.$util.Tips({
  1081. // title: res.msg,
  1082. // icon: 'success'
  1083. // }, {
  1084. // tab: 4,
  1085. // url: data.payType == 'friend' ? friendPay : goPages
  1086. // });
  1087. // break;
  1088. // case 'WECHAT_PAY':
  1089. // that.toPay = true;
  1090. // // #ifdef MP
  1091. // /* that.toPay = true; */
  1092. // let mp_pay_name = ''
  1093. // if (uni.requestOrderPayment) {
  1094. // mp_pay_name = 'requestOrderPayment'
  1095. // } else {
  1096. // mp_pay_name = 'requestPayment'
  1097. // }
  1098. // uni[mp_pay_name]({
  1099. // timeStamp: jsConfig.timestamp,
  1100. // nonceStr: jsConfig.nonceStr,
  1101. // package: jsConfig.package,
  1102. // signType: jsConfig.signType,
  1103. // paySign: jsConfig.paySign,
  1104. // success: function (res) {
  1105. // uni.hideLoading();
  1106. // if (that.BargainId || that.combinationId || that.pinkId || that
  1107. // .seckillId || that.discountId)
  1108. // return that.$util.Tips({
  1109. // title: that.$t(`支付成功`),
  1110. // icon: 'success'
  1111. // }, {
  1112. // tab: 4,
  1113. // url: goPages
  1114. // });
  1115. // return that.$util.Tips({
  1116. // title: that.$t(`支付成功`),
  1117. // icon: 'success'
  1118. // }, {
  1119. // tab: 5,
  1120. // url: goPages
  1121. // });
  1122. // },
  1123. // fail: function (e) {
  1124. // uni.hideLoading();
  1125. // return that.$util.Tips({
  1126. // title: that.$t(`取消支付`)
  1127. // }, {
  1128. // tab: 5,
  1129. // url: goPages + '&status=2'
  1130. // });
  1131. // },
  1132. // complete: function (e) {
  1133. // uni.hideLoading();
  1134. // //关闭当前页面跳转至订单状态
  1135. // if (res.errMsg == 'requestPayment:cancel' || e.errMsg ==
  1136. // 'requestOrderPayment:cancel') return that.$util
  1137. // .Tips({
  1138. // title: that.$t(`取消支付`)
  1139. // }, {
  1140. // tab: 5,
  1141. // url: goPages + '&status=2'
  1142. // });
  1143. // },
  1144. // })
  1145. // // #endif
  1146. // // #ifdef H5
  1147. // this.$wechat.pay(res.data.result.jsConfig).then(res => {
  1148. // return that.$util.Tips({
  1149. // title: that.$t(`支付成功`),
  1150. // icon: 'success'
  1151. // }, {
  1152. // tab: 5,
  1153. // url: goPages
  1154. // });
  1155. // }).catch(res => {
  1156. // if (!this.$wechat.isWeixin()) {
  1157. // uni.redirectTo({
  1158. // url: goPages + '&msg=' + that.$t(`支付失败`) + '&status=2'
  1159. // // '&msg=支付失败&status=2'
  1160. // })
  1161. // }
  1162. // if (res.errMsg == 'chooseWXPay:cancel') return that.$util.Tips({
  1163. // title: that.$t(`取消支付`)
  1164. // }, {
  1165. // tab: 5,
  1166. // url: goPages + '&status=2'
  1167. // });
  1168. // })
  1169. // // #endif
  1170. // // #ifdef APP-PLUS
  1171. // uni.requestPayment({
  1172. // provider: 'wxpay',
  1173. // orderInfo: jsConfig,
  1174. // success: (e) => {
  1175. // let url = goPages;
  1176. // uni.showToast({
  1177. // title: that.$t(`支付成功`)
  1178. // })
  1179. // setTimeout(res => {
  1180. // uni.redirectTo({
  1181. // url: url
  1182. // })
  1183. // }, 2000)
  1184. // },
  1185. // fail: (e) => {
  1186. // let url = '/pages/goods/order_pay_status/index?order_id=' +
  1187. // orderId +
  1188. // '&msg=' + that.$t(`支付失败`);
  1189. // uni.showModal({
  1190. // content: that.$t(`支付失败`),
  1191. // showCancel: false,
  1192. // success: function (res) {
  1193. // if (res.confirm) {
  1194. // uni.redirectTo({
  1195. // url: url
  1196. // })
  1197. // } else if (res.cancel) { }
  1198. // }
  1199. // })
  1200. // },
  1201. // complete: () => {
  1202. // uni.hideLoading();
  1203. // },
  1204. // });
  1205. // // #endif
  1206. // break;
  1207. // case 'PAY_DEFICIENCY':
  1208. // uni.hideLoading();
  1209. // //余额不足
  1210. // return that.$util.Tips({
  1211. // title: res.msg
  1212. // }, {
  1213. // tab: 5,
  1214. // url: goPages + '&status=1'
  1215. // });
  1216. // break;
  1217. // case "WECHAT_H5_PAY":
  1218. // uni.hideLoading();
  1219. // that.$util.Tips({
  1220. // title: that.$t(`订单创建成功`)
  1221. // }, {
  1222. // tab: 4,
  1223. // url: goPages + '&status=0'
  1224. // });
  1225. // setTimeout(() => {
  1226. // location.href = res.data.result.jsConfig.mweb_url;
  1227. // }, 2000);
  1228. // break;
  1229. // case 'ALIPAY_PAY':
  1230. // //#ifdef H5
  1231. // if (this.from === 'weixin') {
  1232. // uni.redirectTo({
  1233. // url: `/pages/users/alipay_invoke/index?id=${orderId}&pay_key=${res.data.result.pay_key}`
  1234. // });
  1235. // } else {
  1236. // uni.hideLoading();
  1237. // that.formContent = res.data.result.jsConfig;
  1238. // that.$nextTick(() => {
  1239. // document.getElementById('alipaysubmit').submit();
  1240. // })
  1241. // }
  1242. // //#endif
  1243. // // #ifdef MP
  1244. // uni.navigateTo({
  1245. // url: `/pages/users/alipay_invoke/index?id=${orderId}&link=${jsConfig.qrCode}`
  1246. // });
  1247. // // #endif
  1248. // // #ifdef APP-PLUS
  1249. // uni.requestPayment({
  1250. // provider: 'alipay',
  1251. // orderInfo: jsConfig,
  1252. // success: (e) => {
  1253. // uni.showToast({
  1254. // title: that.$t(`支付成功`)
  1255. // })
  1256. // let url = '/pages/goods/order_pay_status/index?order_id=' +
  1257. // orderId +
  1258. // '&msg=' + that.$t(`支付成功`);
  1259. // setTimeout(res => {
  1260. // uni.redirectTo({
  1261. // url: url
  1262. // })
  1263. // }, 2000)
  1264. // },
  1265. // fail: (e) => {
  1266. // let url = '/pages/goods/order_pay_status/index?order_id=' +
  1267. // orderId +
  1268. // '&msg=' + that.$t(`支付失败`);
  1269. // uni.showModal({
  1270. // content: that.$t(`支付失败`),
  1271. // showCancel: false,
  1272. // success: function (res) {
  1273. // if (res.confirm) {
  1274. // uni.redirectTo({
  1275. // url: url
  1276. // })
  1277. // } else if (res.cancel) { }
  1278. // }
  1279. // })
  1280. // },
  1281. // complete: () => {
  1282. // uni.hideLoading();
  1283. // },
  1284. // });
  1285. // // #endif
  1286. // break;
  1287. // }
  1288. // }).catch(err => {
  1289. // uni.hideLoading();
  1290. // return that.$util.Tips({
  1291. // title: err
  1292. // });
  1293. // });
  1294. },
  1295. clickTextArea () {
  1296. this.$refs.textarea.focus()
  1297. },
  1298. SubOrder (e) {
  1299. let that = this,
  1300. data = {};
  1301. if (!that.payType) return that.$util.Tips({
  1302. title: that.$t(`请选择支付方式`)
  1303. });
  1304. if (!that.addressId && !that.shippingType && !that.virtual_type) return that.$util.Tips({
  1305. title: that.$t(`请选择收货地址`)
  1306. });
  1307. if (that.shippingType == 1) {
  1308. if (that.contacts == "" || that.contactsTel == "") {
  1309. return that.$util.Tips({
  1310. title: that.$t(`请填写联系人或联系人电话`)
  1311. });
  1312. }
  1313. if (!/^1(3|4|5|7|8|9|6)\d{9}$/.test(that.contactsTel)) {
  1314. return that.$util.Tips({
  1315. title: that.$t(`请输入正确的手机号码`)
  1316. });
  1317. }
  1318. if (!that.contacts) {
  1319. return that.$util.Tips({
  1320. title: that.$t(`请输入姓名`)
  1321. });
  1322. }
  1323. if (that.storeList.length == 0) return that.$util.Tips({
  1324. title: that.$t(`暂无门店,请选择其他方式`)
  1325. });
  1326. }
  1327. for (var i = 0; i < that.confirm.length; i++) {
  1328. let data = that.confirm[i]
  1329. if (data.status) {
  1330. if (data.label === 'text' || data.label === 'data' || data.label === 'time' || data.label ===
  1331. 'id') {
  1332. if (!data.value.trim()) {
  1333. return uni.showToast({
  1334. title: that.$t(`请输入`) + `${data.title}`,
  1335. icon: 'none'
  1336. });
  1337. }
  1338. }
  1339. if (data.label === 'number') {
  1340. if (data.value <= 0) {
  1341. return uni.showToast({
  1342. title: that.$t(`请输入`) + `${data.title}`,
  1343. icon: 'none'
  1344. });
  1345. }
  1346. }
  1347. if (data.label === 'email') {
  1348. if (!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(data.value)) {
  1349. return uni.showToast({
  1350. title: that.$t(`请输入正确的`) + `${data.title}`,
  1351. icon: 'none'
  1352. });
  1353. }
  1354. }
  1355. if (data.label === 'phone') {
  1356. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(data.value)) {
  1357. return uni.showToast({
  1358. title: that.$t(`请输入正确的`) + `${data.title}`,
  1359. icon: 'none'
  1360. });
  1361. }
  1362. }
  1363. if (data.label === 'img') {
  1364. if (!data.value.length) {
  1365. return uni.showToast({
  1366. title: that.$t(`请上传`) + `${data.title}`,
  1367. icon: 'none'
  1368. });
  1369. }
  1370. }
  1371. }
  1372. }
  1373. data = {
  1374. custom_form: that.confirm,
  1375. real_name: that.contacts,
  1376. phone: that.contactsTel,
  1377. addressId: that.addressId,
  1378. formId: '',
  1379. couponId: that.couponId,
  1380. payType: that.payType,
  1381. useIntegral: that.useIntegral,
  1382. bargainId: that.BargainId,
  1383. combinationId: that.combinationId,
  1384. discountId: that.discountId,
  1385. pinkId: that.pinkId,
  1386. advanceId: that.advanceId,
  1387. seckill_id: that.seckillId,
  1388. mark: that.mark,
  1389. store_id: that.system_store ? that.system_store.id : 0,
  1390. 'from': that.from,
  1391. shipping_type: that.$util.$h.Add(that.shippingType, 1),
  1392. 'new': that.news,
  1393. 'invoice_id': that.invChecked,
  1394. // #ifdef H5
  1395. quitUrl: location.protocol + '//' + location.hostname +
  1396. '/pages/goods/order_pay_status/index?' +
  1397. '&type=3' + '&totalPrice=' + this.totalPrice
  1398. // #endif
  1399. // #ifdef APP-PLUS
  1400. quitUrl: '/pages/goods/order_details/index?order_id=' + this.order_id
  1401. // #endif
  1402. };
  1403. if (data.payType == 'yue' && parseFloat(that.userInfo.now_money) < parseFloat(that.totalPrice))
  1404. return that.$util.Tips({
  1405. title: that.$t(`余额不足`)
  1406. });
  1407. uni.showLoading({
  1408. title: that.$t(`订单支付中`)
  1409. });
  1410. // #ifdef MP
  1411. openPaySubscribe().then(() => {
  1412. that.payment(data);
  1413. });
  1414. // #endif
  1415. // #ifndef MP
  1416. that.payment(data);
  1417. // #endif
  1418. },
  1419. bindDateChange: function (e, index) {
  1420. this.confirm[index].value = e.target.value
  1421. },
  1422. bindTimeChange: function (e, index) {
  1423. this.confirm[index].value = e.target.value
  1424. },
  1425. getDate (type) {
  1426. const date = new Date();
  1427. let year = date.getFullYear();
  1428. let month = date.getMonth() + 1;
  1429. let day = date.getDate();
  1430. if (type === 'start') {
  1431. year = year - 60;
  1432. } else if (type === 'end') {
  1433. year = year + 2;
  1434. }
  1435. month = month > 9 ? month : '0' + month;
  1436. day = day > 9 ? day : '0' + day;
  1437. return `${year}-${month}-${day}`;
  1438. },
  1439. uploadpic: function (index, item) {
  1440. let that = this;
  1441. this.canvasStatus = true
  1442. that.$util.uploadImageChange('upload/image', function (res) {
  1443. item.value.push(res.data.url);
  1444. }, (res) => {
  1445. this.canvasStatus = false
  1446. }, (res) => {
  1447. this.canvasWidth = res.w
  1448. this.canvasHeight = res.h
  1449. });
  1450. },
  1451. DelPic: function (index, indexs) {
  1452. let that = this,
  1453. pic = this.confirm[index].value;
  1454. that.confirm[index].value.splice(indexs, 1);
  1455. // that.$set(that, 'pics', that.pics);
  1456. },
  1457. inputTripClick () {
  1458. this.inputTrip = true
  1459. // this.$refs.trip.foucs()
  1460. },
  1461. }
  1462. }
  1463. </script>
  1464. <style lang="scss" scoped>
  1465. @import "/static/css/common.css";
  1466. .text_27_view{
  1467. padding-right: 5rpx;
  1468. }
  1469. .block_3 {
  1470. background-color: rgba(255, 255, 255, 1);
  1471. border-radius: 4px;
  1472. padding: 16rpx 16rpx 32rpx 24rpx;
  1473. display: flex;
  1474. flex-direction: column;
  1475. }
  1476. .icon_1 {
  1477. width: 32rpx;
  1478. height: 32rpx;
  1479. margin-left: 566rpx;
  1480. }
  1481. .image_3 {
  1482. width: 590rpx;
  1483. height: 766rpx;
  1484. margin: 16rpx 8rpx 0 0;
  1485. }
  1486. .text_23 {
  1487. overflow-wrap: break-word;
  1488. color: rgba(51, 51, 51, 1);
  1489. font-size: 28rpx;
  1490. font-weight: NaN;
  1491. text-align: center;
  1492. white-space: nowrap;
  1493. line-height: 40rpx;
  1494. margin: 24rpx 128rpx 0 122rpx;
  1495. }
  1496. /deep/uni-checkbox[disabled] .uni-checkbox-input {
  1497. background-color: #eee;
  1498. }
  1499. .alipaysubmit {
  1500. display: none;
  1501. }
  1502. .order-submission .line {
  1503. width: 100%;
  1504. height: 3rpx;
  1505. }
  1506. .order-submission .line image {
  1507. width: 100%;
  1508. height: 100%;
  1509. display: block;
  1510. }
  1511. .order-submission .address {
  1512. padding: 28rpx 30rpx;
  1513. background-color: #fff;
  1514. box-sizing: border-box;
  1515. }
  1516. .order-submission .address .addressCon {
  1517. width: 610rpx;
  1518. font-size: 26rpx;
  1519. color: #666;
  1520. }
  1521. .order-submission .address .addressCon .name {
  1522. font-size: 30rpx;
  1523. color: #282828;
  1524. font-weight: bold;
  1525. margin-bottom: 10rpx;
  1526. }
  1527. .order-submission .address .addressCon .name .phone {
  1528. margin-left: 50rpx;
  1529. }
  1530. .order-submission .address .addressCon .default {
  1531. margin-right: 12rpx;
  1532. }
  1533. .order-submission .address .addressCon .setaddress {
  1534. color: #333;
  1535. font-size: 28rpx;
  1536. }
  1537. .order-submission .address .iconfont {
  1538. font-size: 35rpx;
  1539. color: #707070;
  1540. }
  1541. .order-submission .allAddress {
  1542. width: 100%;
  1543. background: linear-gradient(to bottom, var(--view-theme) 0%, #f5f5f5 100%);
  1544. padding-top: 100rpx;
  1545. margin-bottom: 12rpx;
  1546. }
  1547. .order-submission .allAddress .nav {
  1548. width: 710rpx;
  1549. margin: 0 auto;
  1550. }
  1551. .order-submission .allAddress .nav .item {
  1552. width: 355rpx;
  1553. }
  1554. .order-submission .allAddress .nav .item.on {
  1555. position: relative;
  1556. width: 250rpx;
  1557. }
  1558. .order-submission .allAddress .nav .item.on::before {
  1559. position: absolute;
  1560. bottom: 0;
  1561. content: "快递配送";
  1562. font-size: 28rpx;
  1563. display: block;
  1564. height: 0;
  1565. width: 336rpx;
  1566. border-width: 0 20rpx 80rpx 0;
  1567. border-style: none solid solid;
  1568. border-color: transparent transparent #fff;
  1569. z-index: 2;
  1570. border-radius: 7rpx 30rpx 0 0;
  1571. text-align: center;
  1572. line-height: 80rpx;
  1573. }
  1574. .order-submission .allAddress .nav .item:nth-of-type(2).on::before {
  1575. content: "到店自提";
  1576. border-width: 0 0 80rpx 20rpx;
  1577. border-radius: 30rpx 7rpx 0 0;
  1578. }
  1579. .order-submission .allAddress .nav .item.on2 {
  1580. position: relative;
  1581. }
  1582. .order-submission .allAddress .nav .item.on2::before {
  1583. position: absolute;
  1584. bottom: 0;
  1585. content: "到店自提";
  1586. font-size: 28rpx;
  1587. display: block;
  1588. height: 0;
  1589. width: 400rpx;
  1590. border-width: 0 0 60rpx 60rpx;
  1591. border-style: none solid solid;
  1592. border-color: transparent transparent rgba(255, 255, 255, 0.6);
  1593. border-radius: 40rpx 6rpx 0 0;
  1594. text-align: center;
  1595. line-height: 60rpx;
  1596. }
  1597. .order-submission .allAddress .nav .item:nth-of-type(1).on2::before {
  1598. content: "快递配送";
  1599. border-width: 0 60rpx 60rpx 0;
  1600. border-radius: 6rpx 40rpx 0 0;
  1601. }
  1602. .order-submission .allAddress .address {
  1603. width: 710rpx;
  1604. height: 150rpx;
  1605. margin: 0 auto;
  1606. }
  1607. .order-submission .allAddress .line {
  1608. width: 710rpx;
  1609. margin: 0 auto;
  1610. }
  1611. .order-submission .wrapper .item .discount .placeholder {
  1612. color: #ccc;
  1613. }
  1614. .placeholder-textarea {
  1615. position: relative;
  1616. .placeholder {
  1617. position: absolute;
  1618. color: #ccc;
  1619. top: 26rpx;
  1620. left: 30rpx;
  1621. }
  1622. }
  1623. .order-submission .wrapper {
  1624. background-color: #fff;
  1625. margin-top: 13rpx;
  1626. }
  1627. .order-submission .wrapper .item {
  1628. padding: 27rpx 30rpx;
  1629. font-size: 30rpx;
  1630. color: #282828;
  1631. border-bottom: 1px solid #f0f0f0;
  1632. .mark {
  1633. background-color: #f9f9f9;
  1634. width: 345px;
  1635. height: 70px;
  1636. border-radius: 1px;
  1637. margin-top: 15px;
  1638. padding: 12px 14px;
  1639. color: #ccc;
  1640. font-size: 28rpx;
  1641. box-sizing: border-box;
  1642. }
  1643. .mark-msg {
  1644. color: #333;
  1645. font-size: 32rpx;
  1646. }
  1647. }
  1648. .order-submission .wrapper .item .discount {
  1649. font-size: 30rpx;
  1650. color: #999;
  1651. }
  1652. .order-submission .wrapper .item .discount input {
  1653. text-align: end;
  1654. }
  1655. .order-submission .wrapper .item .discount .iconfont {
  1656. color: #515151;
  1657. font-size: 30rpx;
  1658. margin-left: 15rpx;
  1659. }
  1660. .order-submission .wrapper .item .discount .num {
  1661. font-size: 32rpx;
  1662. margin-right: 20rpx;
  1663. }
  1664. .order-submission .wrapper .item .shipping {
  1665. font-size: 30rpx;
  1666. color: #999;
  1667. position: relative;
  1668. padding-right: 58rpx;
  1669. }
  1670. .order-submission .wrapper .item .shipping .iconfont {
  1671. font-size: 35rpx;
  1672. color: #707070;
  1673. position: absolute;
  1674. right: 0;
  1675. top: 50%;
  1676. transform: translateY(-50%);
  1677. margin-left: 30rpx;
  1678. }
  1679. .order-submission .wrapper .item textarea {
  1680. background-color: #f9f9f9;
  1681. width: 690rpx;
  1682. height: 140rpx;
  1683. border-radius: 3rpx;
  1684. margin-top: 30rpx;
  1685. padding: 25rpx 28rpx;
  1686. box-sizing: border-box;
  1687. }
  1688. .order-submission .wrapper .item .placeholder {
  1689. color: #ccc;
  1690. font-size: 28rpx;
  1691. }
  1692. .order-submission .wrapper .item .list {
  1693. margin-top: 35rpx;
  1694. }
  1695. .order-submission .wrapper .item .list .payItem {
  1696. border: 1px solid #eee;
  1697. border-radius: 6rpx;
  1698. height: 86rpx;
  1699. width: 100%;
  1700. box-sizing: border-box;
  1701. margin-top: 20rpx;
  1702. font-size: 28rpx;
  1703. color: #282828;
  1704. }
  1705. .order-submission .wrapper .item .list .payItem.on {
  1706. border-color: #fc5445;
  1707. color: #e93323;
  1708. }
  1709. .order-submission .wrapper .item .list .payItem .name {
  1710. width: 50%;
  1711. text-align: center;
  1712. border-right: 1px solid #eee;
  1713. padding-left: 80rpx;
  1714. }
  1715. .order-submission .wrapper .item .list .payItem .name .iconfont {
  1716. width: 44rpx;
  1717. height: 44rpx;
  1718. border-radius: 50%;
  1719. text-align: center;
  1720. line-height: 44rpx;
  1721. background-color: #fe960f;
  1722. color: #fff;
  1723. font-size: 30rpx;
  1724. margin-right: 15rpx;
  1725. }
  1726. .order-submission .wrapper .item .list .payItem .name .iconfont.icon-weixin2 {
  1727. background-color: #41b035;
  1728. }
  1729. .order-submission .wrapper .item .list .payItem .name .iconfont.icon-zhifubao {
  1730. background-color: #1677FF;
  1731. }
  1732. .order-submission .wrapper .item .list .payItem .tip {
  1733. width: 49%;
  1734. text-align: center;
  1735. font-size: 26rpx;
  1736. color: #aaa;
  1737. }
  1738. .order-submission .moneyList {
  1739. margin-top: 12rpx;
  1740. background-color: #fff;
  1741. padding: 30rpx;
  1742. }
  1743. .order-submission .moneyList .item {
  1744. font-size: 28rpx;
  1745. color: #282828;
  1746. }
  1747. .order-submission .moneyList .item~.item {
  1748. margin-top: 20rpx;
  1749. }
  1750. .order-submission .moneyList .item .money {
  1751. color: #868686;
  1752. }
  1753. .order-submission .footer {
  1754. width: 100%;
  1755. height: 100rpx;
  1756. background-color: #fff;
  1757. padding: 0 30rpx;
  1758. font-size: 28rpx;
  1759. color: #333;
  1760. box-sizing: border-box;
  1761. position: fixed;
  1762. bottom: 0;
  1763. left: 0;
  1764. z-index: 9;
  1765. }
  1766. .order-submission .footer .settlement {
  1767. font-size: 30rpx;
  1768. color: #fff;
  1769. width: 240rpx;
  1770. height: 70rpx;
  1771. background-color: #B42A3E;
  1772. border-radius: 50rpx;
  1773. text-align: center;
  1774. line-height: 70rpx;
  1775. }
  1776. .footer .transparent {
  1777. opacity: 0
  1778. }
  1779. .confirm {
  1780. text-align: right;
  1781. font-size: 22rpx;
  1782. }
  1783. .confirmImg {
  1784. width: 100%;
  1785. .img {
  1786. width: 136rpx;
  1787. height: 136rpx;
  1788. }
  1789. .pictrue {
  1790. width: 136rpx;
  1791. height: 136rpx;
  1792. box-sizing: border-box;
  1793. margin: 18rpx;
  1794. margin-bottom: 35rpx;
  1795. position: relative;
  1796. font-size: 22rpx;
  1797. color: #bbb;
  1798. .del {
  1799. position: absolute;
  1800. top: 0;
  1801. right: 0;
  1802. }
  1803. }
  1804. .bor {
  1805. border: 1rpx solid #ddd;
  1806. }
  1807. }
  1808. .fontC {
  1809. color: grey;
  1810. }
  1811. .all-products-body {
  1812. .all-products-item {
  1813. display: flex;
  1814. margin-bottom: 20rpx;
  1815. background: #fff;
  1816. image {
  1817. width: 128rpx;
  1818. height: 128rpx;
  1819. margin-left: 10rpx;
  1820. border-radius: 4rpx;
  1821. }
  1822. .all-products-item-content {
  1823. flex-grow: 1;
  1824. display: flex;
  1825. flex-direction: column;
  1826. margin-left: 20rpx;
  1827. .all-products-item-content-t {
  1828. font-size: 24rpx;
  1829. font-weight: 400;
  1830. color: #333333;
  1831. line-height: 40rpx;
  1832. height: 80rpx;
  1833. width: 560rpx;
  1834. display: -webkit-box;
  1835. -webkit-box-orient: vertical;
  1836. -webkit-line-clamp: 2;
  1837. overflow: hidden;
  1838. text-overflow: ellipsis;
  1839. }
  1840. .all-products-item-content-b {
  1841. flex: 1;
  1842. font-size: 28rpx;
  1843. height: 48rpx;
  1844. font-weight: 500;
  1845. line-height: 48rpx;
  1846. display: flex;
  1847. justify-content: space-between;
  1848. .red {
  1849. display: block;
  1850. font-size: 28rpx;
  1851. font-weight: 500;
  1852. color: #B22338 !important;
  1853. margin-right: 10rpx;
  1854. }
  1855. .line-thr {
  1856. display: block;
  1857. font-size: 28rpx;
  1858. font-weight: 400;
  1859. color: #999999;
  1860. text-decoration: line-through;
  1861. }
  1862. }
  1863. }
  1864. }
  1865. }
  1866. .address-info {
  1867. padding: 30rpx 0;
  1868. background: white;
  1869. .a-t {
  1870. padding: 0 30rpx;
  1871. display: flex;
  1872. justify-content: space-between;
  1873. height: 44rpx;
  1874. margin-bottom: 20rpx;
  1875. .t1 {
  1876. height: 44rpx;
  1877. font-size: 32rpx;
  1878. font-weight: 500;
  1879. color: #111111;
  1880. line-height: 44rpx;
  1881. }
  1882. .t2 {
  1883. height: 34rpx;
  1884. font-size: 24rpx;
  1885. font-weight: 400;
  1886. color: #B42A3E;
  1887. line-height: 34rpx;
  1888. image {
  1889. margin-left: 30rpx;
  1890. height: 34rpx;
  1891. width: 34rpx;
  1892. vertical-align: middle;
  1893. }
  1894. }
  1895. }
  1896. .a-m {
  1897. padding: 0 20rpx;
  1898. .am1 {
  1899. display: flex;
  1900. justify-content: space-between;
  1901. margin-bottom: 20rpx;
  1902. .am1-1 {
  1903. height: 40rpx;
  1904. font-size: 28rpx;
  1905. font-weight: 400;
  1906. color: #111111;
  1907. line-height: 40rpx;
  1908. }
  1909. .am1-2 {
  1910. height: 36rpx;
  1911. font-size: 20rpx;
  1912. font-weight: 400;
  1913. color: #666666;
  1914. line-height: 36rpx;
  1915. image {
  1916. margin-left: 30rpx;
  1917. vertical-align: middle;
  1918. height: 34rpx;
  1919. width: 34rpx;
  1920. }
  1921. }
  1922. }
  1923. .am2 {
  1924. margin-bottom: 20rpx;
  1925. font-size: 24rpx;
  1926. padding: 5rpx 0;
  1927. font-weight: 400;
  1928. color: #999999;
  1929. line-height: 34rpx;
  1930. }
  1931. .am3 {
  1932. display: inline-block;
  1933. height: 44rpx;
  1934. background: #FFF7F8;
  1935. border-radius: 8rpx;
  1936. padding: 0rpx 30rpx;
  1937. margin-top: 0rpx;
  1938. font-size: 20rpx;
  1939. font-weight: 400;
  1940. color: #999999;
  1941. line-height: 44rpx;
  1942. }
  1943. }
  1944. .a-b {
  1945. padding: 0 30rpx;
  1946. /*width: 100%;*/
  1947. background: #FFF7F8;
  1948. height: 60rpx;
  1949. line-height: 60rpx;
  1950. margin: 20rpx;
  1951. display: flex;
  1952. justify-content: space-between;
  1953. .a-b1 {
  1954. font-size: 20rpx;
  1955. font-weight: 400;
  1956. color: #666666;
  1957. .red {
  1958. font-size: 20rpx;
  1959. font-weight: 500;
  1960. color: #B22338;
  1961. }
  1962. }
  1963. .a-b2 {
  1964. image {
  1965. vertical-align: middle;
  1966. margin-left: 30rpx;
  1967. height: 34rpx;
  1968. width: 34rpx;
  1969. }
  1970. }
  1971. }
  1972. }
  1973. .payment-details {
  1974. margin-top: 20rpx;
  1975. margin-bottom: 20rpx;
  1976. padding: 30rpx;
  1977. background: white;
  1978. .p-t {
  1979. font-size: 32rpx;
  1980. height: 80rpx;
  1981. font-weight: 500;
  1982. color: #111111;
  1983. line-height: 80rpx;
  1984. }
  1985. .p-b-item {
  1986. height: 60rpx;
  1987. line-height: 60rpx;
  1988. display: flex;
  1989. justify-content: space-between;
  1990. .item-lable {
  1991. font-size: 28rpx;
  1992. font-weight: 400;
  1993. color: #666666;
  1994. }
  1995. .item-value {
  1996. font-size: 28rpx;
  1997. font-weight: 400;
  1998. color: #B22338;
  1999. }
  2000. }
  2001. }
  2002. .scroll-y{
  2003. height: 600rpx;
  2004. }
  2005. .box_3 {
  2006. background-color: rgba(250, 250, 250, 1);
  2007. border-radius: 4px 4px 0px 0px;
  2008. padding: 16rpx 16rpx 40rpx 32rpx;
  2009. }
  2010. .icon_2 {
  2011. width: 32rpx;
  2012. height: 32rpx;
  2013. margin-left: 670rpx;
  2014. }
  2015. .text_25 {
  2016. overflow-wrap: break-word;
  2017. color: rgba(17, 17, 17, 1);
  2018. font-size: 32rpx;
  2019. font-family: PingFangSC-Medium;
  2020. font-weight: 500;
  2021. text-align: left;
  2022. white-space: nowrap;
  2023. line-height: 44rpx;
  2024. margin: 0 278rpx 0 264rpx;
  2025. }
  2026. .list_1 {
  2027. height: 602rpx;
  2028. margin: 24rpx 16rpx 0 0;
  2029. }
  2030. .list-items_1 {
  2031. background-color: rgba(255, 255, 255, 1);
  2032. border-radius: 4px;
  2033. margin-bottom: 16rpx;
  2034. padding: 24rpx 24rpx 24rpx 24rpx;
  2035. }
  2036. .group_14 {
  2037. width: 638rpx;
  2038. }
  2039. .text_26 {
  2040. overflow-wrap: break-word;
  2041. color: rgba(17, 17, 17, 1);
  2042. font-size: 28rpx;
  2043. font-weight: NaN;
  2044. text-align: left;
  2045. white-space: nowrap;
  2046. line-height: 40rpx;
  2047. margin-right: 184rpx;
  2048. }
  2049. .text_27 {
  2050. overflow-wrap: break-word;
  2051. color: rgba(153, 153, 153, 1);
  2052. font-size: 24rpx;
  2053. font-weight: NaN;
  2054. text-align: left;
  2055. /*white-space: nowrap;*/
  2056. line-height: 34rpx;
  2057. margin-top: 16rpx;
  2058. }
  2059. .text-group_9 {
  2060. overflow-wrap: break-word;
  2061. color: rgba(102, 102, 102, 1);
  2062. font-size: 20rpx;
  2063. font-weight: NaN;
  2064. text-align: left;
  2065. white-space: nowrap;
  2066. line-height: 36rpx;
  2067. }
  2068. .icon_3 {
  2069. width: 34rpx;
  2070. height: 34rpx;
  2071. margin-left: 10rpx;
  2072. /*margin: 4rpx 0 4rpx 4rpx;*/
  2073. }
  2074. .group_15 {
  2075. margin: 8rpx 390rpx 0 0;
  2076. }
  2077. .tag_1 {
  2078. background-color: rgba(255, 247, 248, 1);
  2079. border-radius: 4px;
  2080. padding: 8rpx 24rpx 8rpx 26rpx;
  2081. }
  2082. .text_28 {
  2083. overflow-wrap: break-word;
  2084. color: rgba(153, 153, 153, 1);
  2085. font-size: 20rpx;
  2086. font-weight: NaN;
  2087. text-align: left;
  2088. white-space: nowrap;
  2089. line-height: 28rpx;
  2090. }
  2091. .u-number-box{
  2092. margin-right: 20rpx;
  2093. width: 200rpx;
  2094. height: 56rpx;
  2095. display: flex;
  2096. flex-direction: row;
  2097. justify-content: space-between;
  2098. border-radius: 8rpx;
  2099. border: 2rpx solid rgba(180,42,62,0.3);
  2100. overflow: hidden;
  2101. }
  2102. .number-box{
  2103. width: 64rpx;
  2104. height: 52rpx;
  2105. text-align: center;
  2106. font-size: 24rpx;
  2107. line-height: 52rpx;
  2108. color: #666666;
  2109. }
  2110. .symbol{
  2111. width: 64rpx;
  2112. height: 52rpx;
  2113. display: flex;
  2114. flex-direction: column;
  2115. justify-content: center;
  2116. text-align: center;
  2117. background: #fff7f8;
  2118. color: #b42a3e;
  2119. font-size: 35rpx;
  2120. font-weight: bold;
  2121. }
  2122. .symboll{
  2123. border-right: 2rpx solid rgba(180,42,62,0.3);
  2124. }
  2125. .symbolr{
  2126. border-left: 2rpx solid rgba(180,42,62,0.3);
  2127. }
  2128. .font-color {
  2129. margin-left: 10rpx;
  2130. color: #B22338 !important;;
  2131. .money {
  2132. font-size: 40rpx;
  2133. color: #B22338;
  2134. }
  2135. }
  2136. .block_3 {
  2137. background-color: rgba(255, 255, 255, 1);
  2138. border-radius: 4px;
  2139. padding: 16rpx 16rpx 32rpx 24rpx;
  2140. display: flex;
  2141. flex-direction: column;
  2142. }
  2143. .icon_1 {
  2144. width: 32rpx;
  2145. height: 32rpx;
  2146. margin-left: 566rpx;
  2147. }
  2148. .image_3 {
  2149. width: 590rpx;
  2150. height: 766rpx;
  2151. margin: 16rpx 8rpx 0 0;
  2152. }
  2153. .text_23 {
  2154. overflow-wrap: break-word;
  2155. color: rgba(51, 51, 51, 1);
  2156. font-size: 28rpx;
  2157. font-weight: NaN;
  2158. text-align: center;
  2159. white-space: nowrap;
  2160. line-height: 40rpx;
  2161. margin: 24rpx 128rpx 0 122rpx;
  2162. }
  2163. </style>