index.vue 52 KB

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