index.vue 53 KB

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