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