index.vue 52 KB

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