index.vue 52 KB

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