index.vue 52 KB

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