index.vue 52 KB

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