index.vue 52 KB

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