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