Helpsend.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565
  1. <template>
  2. <view style="padding-bottom: 10upx;">
  3. <!-- 正文内容 -->
  4. <view class="contents">
  5. <view class="part_one">
  6. <!-- 发货地址 -->
  7. <view class="one_box" @click="bindtake(1)">
  8. <view class="box_dian">
  9. <image src="../static/icon_f.png"></image>
  10. </view>
  11. <view class="box_addres" v-if="Object.keys(take).length>0" >
  12. <view class="add">{{take.province}}{{take.city}}{{take.district}}{{take.addressDetail}}</view>
  13. <view class="num">
  14. <view class="name">{{take.userName}}</view>
  15. <view class="number">{{take.userPhone}}</view>
  16. </view>
  17. </view>
  18. <view class="box_addres1 text-df text-right" v-else>请填写发货地址</view>
  19. <view class="box_image">
  20. <u-icon name="arrow-right" class="icon_you"></u-icon>
  21. </view>
  22. </view>
  23. <!-- 转换 -->
  24. <view class="box_jh margin-tb-sm">
  25. <image src="../static/icon_qh.png"></image>
  26. </view>
  27. <!-- 收货地址 -->
  28. <view class="one_box" @click="bindtake(2)" style="padding-bottom: 10rpx;">
  29. <view class="box_dian">
  30. <image src="../static/icon_s.png"></image>
  31. </view>
  32. <view class="box_addres" v-if="Object.keys(close).length>0">
  33. <view class="add">{{close.province}}{{close.city}}{{close.district}}{{close.addressDetail}}</view>
  34. <view class="num">
  35. <view class="name">{{close.userName}}</view>
  36. <view class="number">{{close.userPhone}}</view>
  37. </view>
  38. </view>
  39. <view class="box_addres1 text-df text-right" v-else>请填写收货地址</view>
  40. <view class="box_image">
  41. <u-icon name="arrow-right" class="icon_you"></u-icon>
  42. </view>
  43. </view>
  44. <view style="text-align:right;padding: 10upx;margin-right: 32upx;font-size: 24upx;" v-if="distance">
  45. 预估跑腿距离:
  46. <text v-if="distance>1000">{{parseFloat(distance/1000).toFixed(1)}}km</text>
  47. <text v-else>{{distance}}m</text>
  48. </view>
  49. </view>
  50. <view class="part_two">
  51. <u-form :model="forms" ref="uForm" label-position="left" :label-style="labelstyle">
  52. <u-form-item label="时间" right-icon="arrow-right">
  53. <u-input @click="onshowdata" :clearable="clearable" :disabled="true" v-model="forms.data"
  54. input-align="right" placeholder="预约时间" />
  55. </u-form-item>
  56. <u-form-item label="物品信息" right-icon="arrow-right">
  57. <u-input @click="onshowinfo" v-model="forms.wpinfo" :disabled="true" :clearable="clearable"
  58. input-align="right" placeholder="请选择物品信息" />
  59. </u-form-item>
  60. <u-form-item label="备注" >
  61. <u-input v-model="forms.remarks" type="textarea" input-align="right" placeholder="物品描述 送件要求"
  62. maxlength="65" />
  63. </u-form-item>
  64. </u-form>
  65. <!-- <view class="beizhu">
  66. <view>备注</view>
  67. </view> -->
  68. </view>
  69. <view class="part_three">
  70. <u-form :model="form" ref="uForm" label-position="left" :label-style="labelstyle">
  71. <u-form-item label="物品保价" right-icon="arrow-right">
  72. <u-input v-model="form.price" :clearable="clearable" input-align="right"
  73. placeholder="未保价物品最高赔付5倍跑腿费" @click="showwp" :disabled="true" />
  74. </u-form-item>
  75. <u-form-item label="红包" right-icon="arrow-right">
  76. <u-input @click="onshowmoney" v-model="form.hongbao" :disabled="true" :clearable="clearable"
  77. input-align="right" placeholder="请选择红包" />
  78. </u-form-item>
  79. <u-form-item label="小费" right-icon="arrow-right">
  80. <u-input v-model="form.tip" type="number" :clearable="clearable" input-align="right"
  81. placeholder="接单更快 购买更加及时" @input="onKeyInput()" />
  82. </u-form-item>
  83. </u-form>
  84. </view>
  85. <view class="part_four" style="padding-bottom: 36upx;">
  86. <view class="take_number">
  87. <view class="number_name">收货码</view>
  88. <view class="number_text">骑手送达时,需提供收货码,确保安全签收</view>
  89. </view>
  90. <view class="take_number_kg">
  91. <u-switch v-model="checked" size="40" active-color="#FF7F00" @change="codekg"></u-switch>
  92. </view>
  93. </view>
  94. <view class="part_four" v-if="price">
  95. <view class="take_number">
  96. <view class="number_name">预估跑腿费</view>
  97. </view>
  98. <view class="take_number_kg">
  99. ¥{{price}}
  100. </view>
  101. </view>
  102. <view class="content_sure">
  103. <u-checkbox-group>
  104. <u-checkbox v-model="check" shape="circle" active-color="#FF7F00">同意并接受</u-checkbox>
  105. </u-checkbox-group>
  106. <view style="font-size: 25rpx;margin-left: -10rpx;" @click="binduserxieyi()">
  107. 《跑腿代购服务用户协议》
  108. </view>
  109. </view>
  110. <view class="tabbar">
  111. <view class="tabbar_price">支付:
  112. <text v-if="totalprice == ''">¥{{price || 0}}</text>
  113. <text v-else>¥{{totalprice}}</text>
  114. </view>
  115. <view class="tabbar_btn">
  116. <view class="but" @click="bindpay()">发布并支付</view>
  117. </view>
  118. </view>
  119. <!-- 取件时间弹框 :range="multiSelector"-->
  120. <u-picker mode="time" v-model="showdata" :default-selector='[0, 0]' cancel-tex="确认" :params="params"
  121. @confirm="confirm"></u-picker>
  122. <!-- 物品信息弹框-->
  123. <u-popup v-model="showinfo" mode="bottom" close-icon="close-circle" close-icon-pos="top-right"
  124. close-icon-color="#8f9298" close-icon-size="50">
  125. <!-- <popupInfo></popupInfo> -->
  126. <view class="popup_info">
  127. <view class="data_title">物品信息</view>
  128. <view class="data_items">
  129. <view class="item_box" v-for="(item,index) in info" :key="item.id">
  130. <view class="item_name">{{item.name}}</view>
  131. <view class="item_type">
  132. <view class="item_btn" v-for="(mytype,index) in item.info_list"
  133. :class="selected_foods1==index?'actclass':''" @click="selectFoods(item,index)"
  134. :key="index">{{mytype.num}}</view>
  135. </view>
  136. </view>
  137. <view class="item_box" v-for="(item,index) in info1" :key="item.id">
  138. <view class="item_name">{{item.name}}</view>
  139. <view class="item_type">
  140. <view class="item_btn" v-for="(mytype,index) in item.info_list"
  141. :class="selected_foods2==index?'actclass':''" @click="selectFoods(item,index)"
  142. :key="index">{{mytype.num}}</view>
  143. </view>
  144. </view>
  145. <view class="item_box" v-for="(item,index) in info2" :key="item.id">
  146. <view class="item_name">{{item.name}}</view>
  147. <view class="item_type">
  148. <view class="item_btn" v-for="(mytype,index) in item.info_list"
  149. :class="selected_foods3==index?'actclass':''" @click="selectFoods(item,index)"
  150. :key="index">{{mytype.num}}</view>
  151. </view>
  152. </view>
  153. </view>
  154. <view class="data_btn">
  155. <view class="btn" @click="bindinfo">
  156. 确定
  157. </view>
  158. </view>
  159. </view>
  160. </u-popup>
  161. <!-- 物品保价弹框 -->
  162. <u-select v-model="onshowwp" mode="single-column" :list="listwp" @confirm="wpconfirm"></u-select>
  163. <!-- 红包弹框 closeable="true"-->
  164. <u-popup v-model="showmoney" mode="bottom" close-icon="close-circle" close-icon-pos="top-right"
  165. close-icon-color="#8f9298" close-icon-size="50" :closeable="true">
  166. <view class="popup_money">
  167. <view class="data_title">红包</view>
  168. <view class="data_select">
  169. <view class="money_box" v-for="(item,index) in hongbao" :key="index"
  170. v-if="Number(item.redPacketType)==0||Number(item.redPacketType)==indentType">
  171. <view class="box_tit">
  172. <view class="money_name">{{item.redPacketTitle}}</view>
  173. <view class="money_price">¥{{item.redPacketAmount}}</view>
  174. </view>
  175. <view class="money_data">有效期至{{item.expirationTime}}</view>
  176. <view class="money_line">
  177. <u-line direction="row" color="#E6E6E6" border-style="dashed" />
  178. </view>
  179. <view class="box_bottom">
  180. <view class="money_use">满{{item.minimumAmount}}元可使用</view>
  181. <view class="money_btn">
  182. <view class="lj_use" @click="bindhongindex(item.redPacketId,item.redPacketAmount)">
  183. 立即使用
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. <!-- 暂无红包 -->
  189. <view class="image_box" v-if="hongbao.length==0">
  190. <image src="../../static/images/empty.png" style="width:100%;height: 350rpx;"></image>
  191. <view style="width: 100%;text-align: center;color: #ccc;">暂无红包</view>
  192. </view>
  193. </view>
  194. </view>
  195. </u-popup>
  196. <u-popup v-model="showpay" mode="bottom" close-icon="close-circle" close-icon-pos="top-right"
  197. close-icon-color="#8f9298" close-icon-size="50">
  198. <view class="popup_pay">
  199. <view class="bg margin-top padding-lr radius">
  200. <view style="padding: 0 20upx;margin-top: 36rpx;">
  201. <view
  202. style="display: flex;height: 100upx;align-items: center;padding: 20upx 0;justify-content: center;"
  203. v-for="(item,index) in openLists" :key='index'>
  204. <image :src="item.image" style="width: 55upx;height: 55upx;border-radius: 50upx;">
  205. </image>
  206. <view style="font-size: 30upx;margin-left: 20upx;width: 70%;">
  207. {{item.text}}
  208. </view>
  209. <radio-group name="openWay" style="margin-left: 45rpx;" @tap='selectWay(item)'>
  210. <label class="tui-radio">
  211. <radio color="#FF7F00" :checked="openWay === item.id ? true : false" />
  212. </label>
  213. </radio-group>
  214. </view>
  215. </view>
  216. </view>
  217. <view class="pay_btns" @click="pay()">确认支付</view>
  218. </view>
  219. </u-popup>
  220. </view>
  221. </view>
  222. </template>
  223. <script>
  224. export default {
  225. data() {
  226. return {
  227. openWay: 0,
  228. take: {},
  229. close: {},
  230. distance: '',
  231. hongbao: '',
  232. price: '',
  233. wpprice: '',
  234. wpbjprice: '',
  235. checked: true,
  236. check: false,
  237. mobile: '',
  238. code: '',
  239. indentType: 1,
  240. form: {
  241. price: '',
  242. hongbao: '',
  243. tip: ''
  244. },
  245. forms: {
  246. data: '立即送',
  247. wpinfo: this.wpinfo,
  248. remarks: ''
  249. },
  250. clearable: false,
  251. showdata: false,
  252. showinfo: false,
  253. showmoney: false,
  254. showpay: false,
  255. onshowwp: false,
  256. listwp: [{
  257. value: '0',
  258. label: '保价'
  259. }, {
  260. value: '1',
  261. label: '不保价'
  262. }],
  263. cargoInsuranceFlag: 1,
  264. value: '',
  265. type: 'text',
  266. autoHeight: true,
  267. params: {
  268. // year: true,
  269. // month: true,
  270. day: true,
  271. hour: true,
  272. minute: true,
  273. timestamp: true
  274. },
  275. info: [{
  276. id: 1,
  277. name: '物品类型',
  278. info_list: [{
  279. num: '文件'
  280. }, {
  281. num: '餐饮'
  282. }, {
  283. num: '生鲜'
  284. }, {
  285. num: '蛋糕'
  286. }, {
  287. num: '数码'
  288. }, {
  289. num: '服装'
  290. }]
  291. }],
  292. info1: [{
  293. id: 2,
  294. name: '物品价值',
  295. info_list: [{
  296. num: '50元以下'
  297. }, {
  298. num: '50-150元'
  299. }, {
  300. num: '150-350元'
  301. }, {
  302. num: '350-500元'
  303. }, {
  304. num: '500-1000元'
  305. }]
  306. }],
  307. info2: [{
  308. id: 3,
  309. name: "物品重量",
  310. info_list: [{
  311. num: '25斤以内'
  312. }, {
  313. num: '26-30斤'
  314. }, {
  315. num: '31-40斤'
  316. }, {
  317. num: '41-50斤'
  318. }]
  319. }],
  320. selected_foods1: '',
  321. selected_foods2: '',
  322. selected_foods3: '',
  323. itemType: '文件',
  324. itemValue: '50元以下',
  325. itemWeight: '25斤以内',
  326. wpinfo: [],
  327. labelstyle: {
  328. whiteSpace: 'nowrap',
  329. fontWeight: 'bold',
  330. textIndent: '20rpx'
  331. },
  332. indentNumber: '',
  333. openLists: [],
  334. totalprice: '',
  335. itemCodeFlag: 0, //是否打开收货码
  336. cargoInsurance: 0,
  337. addressId: '',
  338. addressType: ''
  339. }
  340. },
  341. onLoad(e) {
  342. console.log(e)
  343. this.indentType = e.index
  344. if(this.indentType == 1) {
  345. uni.setNavigationBarTitle({
  346.   title: '帮我送'
  347. })
  348. } else if(this.indentType == 2) {
  349. uni.setNavigationBarTitle({
  350.   title: '帮我取'
  351. })
  352. }
  353. // #ifdef H5
  354. let ua = navigator.userAgent.toLowerCase();
  355. if (ua.indexOf('micromessenger') !== -1) {
  356. this.openLists = [{
  357. image: '../static/icon_weixin.png',
  358. text: '微信',
  359. id: 2
  360. }];
  361. this.openWay = 2;
  362. } else {
  363. this.openLists = [{
  364. image: '../static/zhifubao.png',
  365. text: '支付宝',
  366. id: 1
  367. }];
  368. this.openWay = 2;
  369. }
  370. // #endif
  371. // #ifdef APP-PLUS
  372. this.openLists = [{
  373. image: '../static/zhifubao.png',
  374. text: '支付宝',
  375. id: 1
  376. }, {
  377. image: '../static/icon_weixin.png',
  378. text: '微信',
  379. id: 2
  380. }];
  381. this.openWay = 2;
  382. // #endif
  383. // #ifdef MP-WEIXIN
  384. this.openLists = [{
  385. image: '../static/icon_weixin.png',
  386. text: '微信',
  387. id: 2
  388. }];
  389. this.openWay = 2;
  390. // #endif
  391. },
  392. onShow() {
  393. this.addressId = this.addressId?this.addressId:uni.getStorageSync('addressId')
  394. this.addressType = this.addressType?this.addressType:uni.getStorageSync('addressType')
  395. if(this.addressId) {
  396. this.getAddress(this.addressId)
  397. // uni.removeStorageSync('addressType')
  398. // uni.removeStorageSync('addressId')
  399. }
  400. },
  401. methods: {
  402. // 查询地址
  403. getAddress(e) {
  404. let data = {
  405. addressId: e
  406. }
  407. this.$Request.getT('/app/address/selectAddressById', data).then(res => {
  408. if (res.code == 0) {
  409. console.log(res)
  410. if(this.addressType == 1) {
  411. this.take = res.data
  412. } else if(this.addressType == 2) {
  413. this.close = res.data
  414. }
  415. console.log(this.take)
  416. if(Object.keys(this.take).length && Object.keys(this.close).length) {
  417. console.log('计算距离')
  418. this.binddistance()
  419. }
  420. uni.removeStorageSync('addressId')
  421. }
  422. });
  423. },
  424. // 距离计算
  425. binddistance() {
  426. console.log('this.take',this.take,'this.close:',this.close)
  427. let ol = this.take.lat
  428. let od = this.take.lng
  429. let dl = this.close.lat
  430. let dd = this.close.lng
  431. console.log(this.take)
  432. console.log('取货纬度:' + ol, '取货经度:' + od, '送货纬度:' + dl, '送货经度:' + dd)
  433. this.$Request.postT('/app/tbindent/distance?ol=' + ol + '&od=' + od + '&dl=' + dl + '&dd=' + dd).then(
  434. res => {
  435. // console.log(res)
  436. if (res.code === 0) {
  437. this.distance = res.data
  438. console.log(this.distance)
  439. }
  440. });
  441. },
  442. // 跑腿用户协议
  443. binduserxieyi() {
  444. uni.navigateTo({
  445. url: '/my/setting/xieyi'
  446. })
  447. },
  448. // switch打开或者关闭时触发,值为true或者false
  449. // 即使不监听此事件,this.checked此时也会相应的变成true或者false
  450. // 开关 是否需要收货码
  451. codekg(e) {
  452. console.log(e)
  453. if (e == true) {
  454. this.itemCodeFlag = 0
  455. } else if (e == false) {
  456. this.itemCodeFlag = 1
  457. }
  458. },
  459. // 跳转发货地址
  460. bindtake(e) {
  461. this.addressType = e;
  462. // uni.navigateTo({
  463. // url: '/running/takeaddress/takeaddress?addressType=' + e
  464. // })
  465. uni.navigateTo({
  466. url: '/my/address/index?add=1&addressType=' + e
  467. })
  468. },
  469. // 跳转收货地址
  470. // bindtake() {
  471. // uni.navigateTo({
  472. // url: '/pages/closeaddress/closeaddress?index=1'
  473. // })
  474. // },
  475. confirm(e) {
  476. console.log(e.timestamp)
  477. let curDate = new Date();
  478. this.year = curDate.getFullYear();
  479. this.month = curDate.getMonth();
  480. console.log(e.timestamp * 1000)
  481. console.log(curDate)
  482. if (parseInt(curDate) >= parseInt(e.timestamp * 1000)) {
  483. uni.showToast({
  484. title: '请选择正确时间',
  485. icon: 'none'
  486. })
  487. } else {
  488. // this.selTime = e.timestamp
  489. this.buyTime = this.year + '-' + this.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00'
  490. this.forms.data = e.day + '号' + e.hour + ':' + e.minute
  491. // this.forms.data = this.year + '-' + this.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00'
  492. }
  493. },
  494. onshowdata() {
  495. this.showdata = true
  496. },
  497. showwp() {
  498. this.onshowwp = true
  499. },
  500. binddata(e) {
  501. this.showdata = false
  502. console.log(e)
  503. },
  504. onshowinfo() {
  505. this.showinfo = true
  506. },
  507. bindinfo() {
  508. this.showinfo = false
  509. let wpinfo = {
  510. itemType: this.itemType,
  511. itemValue: this.itemValue,
  512. itemWeight: this.itemWeight
  513. }
  514. uni.setStorageSync('wpinfo', wpinfo)
  515. this.wpinfo = uni.getStorageSync('wpinfo')
  516. console.log(this.wpinfo)
  517. this.forms.wpinfo = wpinfo.itemType + wpinfo.itemValue + wpinfo.itemWeight
  518. console.log(this.forms.wpinfo)
  519. this.orderjc()
  520. },
  521. selectFoods(e, i) {
  522. // console.log(e)
  523. if (e.name == "物品类型") {
  524. this.selected_foods1 = i
  525. this.itemType = e.info_list[i].num
  526. // console.log(e.info_list[i].num)
  527. }
  528. if (e.name == "物品价值") {
  529. this.selected_foods2 = i
  530. this.itemValue = e.info_list[i].num
  531. // console.log(e.info_list[i].num)
  532. }
  533. if (e.name == "物品重量") {
  534. this.selected_foods3 = i
  535. this.itemWeight = e.info_list[i].num
  536. // console.log(e.info_list[i].num)
  537. }
  538. },
  539. // 根据订单信息判断用户可用红包
  540. onshowmoney() {
  541. this.showmoney = true
  542. let data = {
  543. indentType: this.indentType, //订单类型
  544. indentBasicsMoney: this.price
  545. }
  546. this.$Request.postJson('/app/tbindent/findRedPacket', data).then(res => {
  547. // console.log(res)
  548. if (res.code === 0) {
  549. this.hongbao = res.data
  550. // console.log(this.hongbao)
  551. }
  552. });
  553. },
  554. // 物品保价
  555. wpconfirm(e) {
  556. console.log(e,'物品报价')
  557. this.cargoInsuranceFlag = e[0].value
  558. this.form.price = e[0].label
  559. console.log(this.cargoInsuranceFlag, '8888', e[0].label)
  560. if (this.cargoInsuranceFlag == 0) {
  561. // 总价
  562. let price1 = ( Number(this.price) - Number(this.form.hongbao) ).toFixed(2)
  563. if(price1<=0) {
  564. price1 = 0.01
  565. }
  566. console.log(price1,'价格',Number(this.cargoInsurance))
  567. this.totalprice = (Number(price1) + Number(this.cargoInsurance) + Number(this.form.tip)).toFixed(2)
  568. // this.totalprice = (Number(this.price) + Number(this.cargoInsurance) + Number(this.form.tip) - Number(
  569. // this.form.hongbao)).toFixed(2)
  570. } else {
  571. this.form.price = '不保价';
  572. let price1 = ( Number(this.price) - Number(this.form.hongbao) ).toFixed(2)
  573. if(price1<=0) {
  574. price1 = 0.01
  575. }
  576. this.totalprice = (Number(price1) + Number(this.form.tip)).toFixed(2)
  577. // this.totalprice = (Number(this.price) + Number(this.form.tip) - Number(
  578. // this.form.hongbao)).toFixed(2)
  579. }
  580. if(this.totalprice<=0) {
  581. this.totalprice = 0.01
  582. }
  583. },
  584. // 判断红包使用id
  585. bindhongindex(id, money) {
  586. console.log(id, money)
  587. this.redPacketId = id
  588. this.form.hongbao = money
  589. this.showmoney = false
  590. if (this.cargoInsuranceFlag == 0) {
  591. let price1 = ( Number(this.price) - Number(this.form.hongbao) ).toFixed(2)
  592. if(price1<=0) {
  593. price1 = 0.01
  594. }
  595. this.totalprice = (Number(price1) + Number(this.cargoInsurance) + Number(this.form.tip)).toFixed(2)
  596. } else {
  597. let price1 = ( Number(this.price) - Number(this.form.hongbao) ).toFixed(2)
  598. if(price1<=0) {
  599. price1 = 0.01
  600. }
  601. this.totalprice = (Number(price1) + Number(this.form.tip)).toFixed(2)
  602. }
  603. if(this.totalprice<=0) {
  604. this.totalprice = 0.01
  605. }
  606. },
  607. //计算订单基础价格
  608. orderjc() {
  609. let data = {
  610. indentType: this.indentType, //订单类型
  611. itemWeight: this.wpinfo.itemWeight, //物品重量:kg
  612. itemValue: this.wpinfo.itemValue, //物品价格:
  613. distance: this.distance, //距离
  614. }
  615. console.log()
  616. this.$Request.postJson('/app/tbindent/basicsMoney', data).then(res => {
  617. // console.log(res)
  618. if (res.code === 0) {
  619. this.price = res.data.indentBasicsMoney
  620. this.wpprice = res.data
  621. this.cargoInsurance = res.data.cargoInsurance
  622. console.log(this.wpprice)
  623. console.log(this.price, 'mmmmm')
  624. this.onKeyInput();
  625. }
  626. console.log(this.price, 'mmmmm')
  627. // if (this.cargoInsuranceFlag == 0) {
  628. // this.totalprice = Number(this.price) + Number(this.cargoInsurance) + Number(this.form
  629. // .tip) - Number(
  630. // this.form.hongbao)
  631. // } else {
  632. // this.totalprice = Number(this.price) + Number(this.form.tip) - Number(
  633. // this.form.hongbao)
  634. // }
  635. });
  636. },
  637. // 小费计算
  638. onKeyInput(e) {
  639. console.log(e)
  640. if (this.cargoInsuranceFlag == 0) {
  641. // 总价
  642. let price = (Number(this.price) - Number(this.form.hongbao)).toFixed(2)
  643. if(price<=0) {
  644. price = 0.01
  645. }
  646. this.totalprice = (Number(price) + Number(this.cargoInsurance) + Number(this.form.tip)).toFixed(2)
  647. } else {
  648. let price = (Number(this.price) - Number(this.form.hongbao)).toFixed(2)
  649. if(price<=0) {
  650. price = 0.01
  651. }
  652. this.totalprice = (Number(price) + Number(this.form.tip)).toFixed(2)
  653. }
  654. if(this.totalprice<=0) {
  655. this.totalprice = 0.01
  656. }
  657. },
  658. // 提交订单
  659. bindpay() {
  660. // if (this.cargoInsuranceFlag == 0) {
  661. // this.totalprice = (Number(this.price) + Number(this.cargoInsurance) + Number(this.form.tip) - Number(
  662. // this.form.hongbao)).toFixed()
  663. // } else {
  664. // this.totalprice = (Number(this.price) + Number(this.form.tip) - Number(
  665. // this.form.hongbao)).toFixed(2)
  666. // }
  667. console.log(this.totalprice, this.forms.data)
  668. if (this.wpinfo == '') {
  669. uni.showToast({
  670. title: '请选取物品信息',
  671. icon: 'none',
  672. duration: 2000
  673. });
  674. return
  675. }
  676. if (this.check == false) {
  677. uni.showToast({
  678. title: '请勾选跑腿协议',
  679. icon: 'none',
  680. duration: 2000
  681. });
  682. return
  683. } else {
  684. let data = {
  685. indentType: this.indentType, //订单类型
  686. itemWeight: this.wpinfo.itemWeight, //物品重量:kg
  687. itemValue: this.wpinfo.itemValue, //物品价值:
  688. itemType: this.wpinfo.itemType,
  689. distance: this.distance, //距离
  690. shopName: this.take.userName, //发货人姓名
  691. shopPhone: this.take.userPhone, //发货人电话
  692. shopProvince: this.take.province, //发货人 省
  693. shopCity: this.take.city, //发货人 市
  694. shopDistrict: this.take.district, //发货人 区
  695. shopAddressDetail: this.take.addressDetail, //发货人详细地址
  696. shopLng: this.take.lng,
  697. shopLat: this.take.lat,
  698. userName: this.close.userName, //收货人姓名
  699. userPhone: this.close.userPhone, //收货人电话
  700. userProvince: this.close.province, //收货人 省
  701. userCity: this.close.city, //收货人 市
  702. userDistrict: this.close.district, //收货人 区
  703. userAddressDetail: this.close.addressDetail, //收货人详细地址
  704. userLng: this.close.lng,
  705. userLat: this.close.lat,
  706. // cargoInsurance: this.cargoInsurance, //保价费
  707. cargoInsuranceFlag: this.cargoInsuranceFlag,
  708. // cargoInsurance: this.wpprice.cargoInsurance,
  709. tip: this.form.tip, //小费金额
  710. modeOfPayment: "", //支付方式
  711. // itemCode: true,
  712. itemCodeFlag: this.itemCodeFlag,
  713. remarks: this.forms.remarks,
  714. // redPacketId: '', //红包id,
  715. indentBasicsMoney: this.wpprice.indentBasicsMoney, //订单价格
  716. userFine: this.wpprice.userFine, //用户取消订单罚金
  717. riderFine: this.wpprice.riderFine, //骑手取消订单罚金
  718. errandMoney: this.wpprice.errandMoney, //配送费
  719. // sendOutTime: this.buyTime, //时间
  720. sendOutTime: this.forms.data,
  721. redPacketId: this.redPacketId, //红包ID
  722. deliveryAddressLongitude: this.close.lng,
  723. deliveryAddressLatitude: this.close.lat
  724. }
  725. console.log(data)
  726. console.log(this.wpinfo)
  727. // if (this.indentNumber != '') {
  728. this.$Request.postJson('/app/tbindent/addIndent', data).then(res => {
  729. // console.log(res)
  730. if (res.code == 0) {
  731. this.indentNumber = res.data.indentNumber
  732. // #ifdef MP-WEIXIN
  733. this.openWay= 2
  734. this.pay()
  735. // #endif
  736. // #ifndef MP-WEIXIN
  737. this.showpay = true
  738. // #endif
  739. }
  740. });
  741. // }
  742. }
  743. },
  744. selectWay: function(item) {
  745. this.openWay = item.id;
  746. },
  747. pay() {
  748. // let indentNumber = this.indentNumber
  749. // console.log(data)
  750. if (this.openWay == 0) {
  751. this.$queue.showToast('请选择支付方式!')
  752. return;
  753. }
  754. if (this.openWay == 2) {
  755. // #ifdef MP-WEIXIN
  756. // 微信小程序支付
  757. this.$Request.postJson("/app/wxErrPay/wxPayJsApiOrder?indentNumber=" + this.indentNumber).then(res => {
  758. console.log(res, '********')
  759. uni.showLoading({
  760. title: '支付中...'
  761. });
  762. if (res.code == 0) {
  763. console.log(this.openWay, '支付')
  764. uni.requestPayment({
  765. provider: 'wxpay',
  766. timeStamp: res.data.timestamp,
  767. nonceStr: res.data.noncestr,
  768. package: res.data.package,
  769. signType: res.data.signType,
  770. paySign: res.data.sign,
  771. success: function(suc) {
  772. console.log('success:' + JSON.stringify(suc));
  773. uni.showToast({
  774. title: '支付成功',
  775. icon: 'success'
  776. })
  777. uni.setStorageSync('current', 0)
  778. setTimeout(function() {
  779. uni.switchTab({
  780. url: '/pages/order/index',
  781. })
  782. }, 10)
  783. // uni.navigateTo({
  784. // url: '/pages/order/orderDetail/detail?indentNumber=' +indentNumber
  785. // })
  786. },
  787. fail: function(err) {
  788. console.log('fail:' + JSON.stringify(err));
  789. uni.showToast({
  790. title: '支付失败',
  791. icon: 'none'
  792. })
  793. uni.switchTab({
  794. url: '/pages/order/index'
  795. })
  796. }
  797. });
  798. }
  799. })
  800. // #endif
  801. // #ifdef H5
  802. let ua = navigator.userAgent.toLowerCase();
  803. if (ua.indexOf('micromessenger') !== -1) { //微信里打开
  804. this.$Request.postJson('/app/wxPay/wxPayMpOrder?indentNumber=' + this.indentNumber)
  805. .then(res => {
  806. console.log(res)
  807. if (res.code == 0) {
  808. console.log()
  809. this.callPay(res.data);
  810. } else {
  811. uni.showToast({
  812. icon: 'none',
  813. title: '支付失败!'
  814. });
  815. }
  816. });
  817. } else { //不是微信打开
  818. this.$Request.postJson('/app/wxPay/wxPayMpOrder?indentNumber=' + this.indentNumber)
  819. .then(
  820. res => {
  821. if (res.code == 0) {
  822. console.log('....11111111.....', res.data)
  823. const div = document.createElement('div')
  824. div.innerHTML = res.data //此处form就是后台返回接收到的数据
  825. console.log('....2.....', res.data)
  826. document.body.appendChild(div)
  827. console.log('....33333.....', document.forms[0])
  828. document.forms[0].submit()
  829. } else {
  830. uni.showToast({
  831. icon: 'none',
  832. title: '支付失败!'
  833. });
  834. }
  835. });
  836. }
  837. // #endif
  838. // #ifdef APP-PLUS
  839. // 微信APP支付 根据订单id获取支付信息
  840. console.log(this.indentNumber)
  841. this.$Request.postT("/app/wxPay/payAppOrder", {
  842. indentNumber: this.indentNumber
  843. }).then(ret => {
  844. console.log(JSON.stringify(ret),'支付信息')
  845. this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
  846. });
  847. // #endif
  848. } else {
  849. // #ifdef H5
  850. this.$Request.postJson('/app/aliPay/payH5Order?indentNumber=' + this.indentNumber).then(
  851. res => {
  852. if (res.code == 0) {
  853. const div = document.createElement('div')
  854. div.innerHTML = res.data //此处form就是后台返回接收到的数据
  855. document.body.appendChild(div)
  856. document.forms[0].submit()
  857. } else {
  858. uni.showToast({
  859. icon: 'none',
  860. title: '支付失败!'
  861. });
  862. }
  863. });
  864. // #endif
  865. // APP支付宝支付
  866. // #ifdef APP
  867. this.$Request.postJson("/app/aliPay/payAppOrder?indentNumber=" + this.indentNumber).then(ret => {
  868. console.log(ret)
  869. this.isCheckPay(ret.code, 'alipay', ret.data);
  870. });
  871. // #endif
  872. }
  873. },
  874. callPay: function(response) {
  875. if (typeof WeixinJSBridge === "undefined") {
  876. if (document.addEventListener) {
  877. document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady(response), false);
  878. } else if (document.attachEvent) {
  879. document.attachEvent('WeixinJSBridgeReady', this.onBridgeReady(response));
  880. document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReady(response));
  881. }
  882. } else {
  883. this.onBridgeReady(response);
  884. }
  885. },
  886. onBridgeReady: function(response) {
  887. let that = this;
  888. if (!response.package) {
  889. return;
  890. }
  891. WeixinJSBridge.invoke(
  892. 'getBrandWCPayRequest', {
  893. "appId": response.appid, //公众号名称,由商户传入
  894. "timeStamp": response.timestamp, //时间戳,自1970年以来的秒数
  895. "nonceStr": response.noncestr, //随机串
  896. "package": response.package,
  897. "signType": response.signType, //微信签名方式:
  898. "paySign": response.sign //微信签名
  899. },
  900. function(res) {
  901. console.log(res, '/*-/*-/*-')
  902. if (res.err_msg === "get_brand_wcpay_request:ok") {
  903. // 使用以上方式判断前端返回,微信团队郑重提示:
  904. //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  905. uni.showLoading({
  906. title: '支付成功'
  907. });
  908. setTimeout(function() {
  909. uni.hideLoading();
  910. uni.switchTab({
  911. url: '../order/order'
  912. })
  913. }, 1000);
  914. } else {
  915. uni.hideLoading();
  916. }
  917. WeixinJSBridge.log(response.err_msg);
  918. }
  919. );
  920. },
  921. isCheckPay(status, name, order) {
  922. if (status == 0) {
  923. this.setPayment(name, order);
  924. } else {
  925. uni.hideLoading();
  926. uni.showToast({
  927. title: '支付信息有误',
  928. icon: 'none'
  929. });
  930. }
  931. },
  932. setPayment(name, order) {
  933. console.log(name,'*-*-*',order)
  934. uni.requestPayment({
  935. provider: name,
  936. orderInfo: order, //微信、支付宝订单数据
  937. success: function(res) {
  938. console.log(res)
  939. uni.hideLoading();
  940. uni.showLoading({
  941. title: '支付成功'
  942. });
  943. setTimeout(function() {
  944. uni.switchTab({
  945. url: '/pages/order/index',
  946. })
  947. }, 1000);
  948. },
  949. fail: function(err) {
  950. console.log(err)
  951. uni.hideLoading();
  952. },
  953. complete() {
  954. uni.hideLoading();
  955. }
  956. });
  957. },
  958. }
  959. }
  960. </script>
  961. <style>
  962. body {
  963. background: #F2EDED;
  964. }
  965. /* #ifndef MP-WEIXIN */
  966. page {
  967. background: #F2EDED;
  968. }
  969. /* #endif */
  970. /* 取件时间弹框 */
  971. .popup_data {
  972. height: 600upx;
  973. width: 100%;
  974. position: relative;
  975. }
  976. .data_title {
  977. width: 92%;
  978. margin: 0 auto;
  979. font-size: 32rpx;
  980. line-height: 100upx;
  981. font-weight: bold;
  982. letter-spacing: 3upx;
  983. position: relative;
  984. top: 0upx;
  985. z-index: 99991;
  986. }
  987. .data_btn {
  988. position: absolute;
  989. bottom: 28upx;
  990. width: 100%;
  991. z-index: 99992;
  992. }
  993. .btn {
  994. width: 90%;
  995. margin: 0 auto;
  996. height: 80upx;
  997. color: white;
  998. background: #FF7F00;
  999. border-radius: 20upx;
  1000. text-align: center;
  1001. line-height: 80upx;
  1002. letter-spacing: 2upx;
  1003. }
  1004. .u-close {
  1005. position: absolute;
  1006. z-index: 999999 !important;
  1007. }
  1008. .u-picker-body {
  1009. height: 700upx !important;
  1010. }
  1011. /* .u-picker-header {
  1012. position: relative !important;
  1013. top: 138upx;
  1014. z-index: 99992;
  1015. } */
  1016. /* 物品信息弹框 */
  1017. .popup_info {
  1018. height: 950rpx;
  1019. width: 100%;
  1020. position: relative;
  1021. }
  1022. .data_items {
  1023. width: 100%;
  1024. }
  1025. .item_box {
  1026. width: 90%;
  1027. margin: 0 auto;
  1028. }
  1029. .item_btn {
  1030. border: 1upx solid #cccccc;
  1031. border-radius: 70upx;
  1032. width: 200upx;
  1033. height: 70upx;
  1034. text-align: center;
  1035. line-height: 70upx;
  1036. font-size: 27rpx;
  1037. margin-right: 10upx;
  1038. margin-left: 10upx;
  1039. margin-bottom: 20upx;
  1040. }
  1041. .item_btn:active {
  1042. background: #ffd9b3;
  1043. border: 2upx solid #ff7f00;
  1044. }
  1045. .item_type {
  1046. display: flex;
  1047. flex-wrap: wrap;
  1048. margin-top: 20upx;
  1049. }
  1050. /* 物品保价弹框 */
  1051. .valua_icon {
  1052. width: 90%;
  1053. position: absolute;
  1054. bottom: 120upx;
  1055. left: 40upx;
  1056. }
  1057. .input {
  1058. width: 90%;
  1059. margin: 0 auto;
  1060. }
  1061. .u-input--border {
  1062. border-radius: 12rupx;
  1063. /* border-radius:12rupx; */
  1064. border: 2upx solid #F2F2F2 !important;
  1065. background: #F2F2F2 !important;
  1066. }
  1067. .input_bg {
  1068. width: 90%;
  1069. margin: 0 auto;
  1070. position: relative;
  1071. }
  1072. .input_bg image {
  1073. width: 100%;
  1074. height: 80upx;
  1075. }
  1076. .input_bg text {
  1077. position: absolute;
  1078. top: 30upx;
  1079. left: 24upx;
  1080. color: #FF7F00;
  1081. font-size: 26upx;
  1082. }
  1083. /* 红包弹框 */
  1084. .popup_money {
  1085. /* height: 400upx; */
  1086. width: 100%;
  1087. height: 630rpx;
  1088. position: relative;
  1089. background: #F2EDED;
  1090. padding-bottom: 45rpx;
  1091. /* #ifndef MP-WEIXIN */
  1092. height: 680rpx;
  1093. /* #endif */
  1094. }
  1095. .uni-scroll-view,
  1096. .uni-scroll-view-content {
  1097. position: relative;
  1098. width: 100%;
  1099. height: 100%;
  1100. background: #F2EDED;
  1101. }
  1102. .image_box {
  1103. width: 40%;
  1104. margin: 0 auto;
  1105. margin-bottom: 110rpx;
  1106. }
  1107. .u-drawer-bottom {
  1108. background-color: #FAF7F5 !important;
  1109. }
  1110. .money_box {
  1111. width: 93%;
  1112. margin: 0 auto;
  1113. background: #ffffff;
  1114. border-radius: 14upx;
  1115. height: 220rpx;
  1116. margin-bottom: 50rpx;
  1117. }
  1118. .box_tit {
  1119. width: 90%;
  1120. margin: 0 auto;
  1121. height: 80upx;
  1122. display: flex;
  1123. }
  1124. .money_name {
  1125. flex: 1;
  1126. display: flex;
  1127. justify-content: left;
  1128. align-items: center;
  1129. font-size: 27rpx;
  1130. font-weight: bold;
  1131. letter-spacing: 2upx;
  1132. }
  1133. .money_price {
  1134. flex: 1;
  1135. display: flex;
  1136. justify-content: flex-end;
  1137. align-items: center;
  1138. font-size: 34upx;
  1139. font-weight: bold;
  1140. color: red;
  1141. }
  1142. .money_data {
  1143. color: #999999;
  1144. font-size: 24rpx;
  1145. width: 90%;
  1146. margin: 0 auto;
  1147. margin-top: -8upx;
  1148. }
  1149. .u-line {
  1150. width: 90% !important;
  1151. border-bottom-width: 6upx !important;
  1152. margin: 0 auto !important;
  1153. margin-top: 22upx !important;
  1154. margin-bottom: 22upx !important;
  1155. }
  1156. .box_bottom {
  1157. width: 90%;
  1158. margin: 0 auto;
  1159. display: flex;
  1160. height: 40upx;
  1161. }
  1162. .money_use {
  1163. flex: 1;
  1164. color: #999999;
  1165. font-size: 24rpx;
  1166. display: flex;
  1167. justify-content: left;
  1168. align-items: center;
  1169. }
  1170. .lj_use {
  1171. width: 150rpx;
  1172. border: 2rpx solid #FF7F00;
  1173. color: #FF7F00;
  1174. text-align: center;
  1175. line-height: 48rpx;
  1176. border-radius: 40rpx;
  1177. font-size: 23rpx;
  1178. }
  1179. .slot-wrap {
  1180. /* display: flex; */
  1181. /* align-items: center; */
  1182. /* 如果您想让slot内容占满整个导航栏的宽度 */
  1183. /* flex: 1; */
  1184. /* 如果您想让slot内容与导航栏左右有空隙 */
  1185. /* padding: 0 30rpx; */
  1186. width: 100%;
  1187. text-align: center;
  1188. margin-left: 100rpx;
  1189. letter-spacing: 2rpx;
  1190. font-weight: bold;
  1191. font-size: 30rpx;
  1192. }
  1193. .contents {
  1194. width: 100%;
  1195. /* #ifdef MP-WEIXIN */
  1196. margin-top: 25rpx;
  1197. /* #endif */
  1198. }
  1199. .part_one {
  1200. width: 95%;
  1201. margin: 0 auto;
  1202. /* height: 240upx; */
  1203. background: #ffffff;
  1204. border-radius: 20upx;
  1205. margin-top: 20upx;
  1206. padding: 25rpx 10rpx;
  1207. }
  1208. .one_box {
  1209. width: 100%;
  1210. /* height: 80upx; */
  1211. /* background: #F5F5F5; */
  1212. margin: 0 auto;
  1213. border-radius: 12upx;
  1214. display: flex;
  1215. /* height: 100rpx; */
  1216. align-items: center;
  1217. }
  1218. .box_dian {
  1219. /* flex: 1; */
  1220. width:10%;
  1221. display: flex;
  1222. justify-content: center;
  1223. align-items: center;
  1224. }
  1225. .box_dian image {
  1226. width: 45rpx;
  1227. height: 45rpx;
  1228. }
  1229. .box_name {
  1230. flex: 5;
  1231. display: flex;
  1232. justify-content: left;
  1233. align-items: center;
  1234. color: #333333;
  1235. font-weight: 700;
  1236. }
  1237. .box_addres {
  1238. /* flex: 5; */
  1239. width: 80%;
  1240. font-size: 32rpx;
  1241. overflow: hidden;
  1242. }
  1243. .box_addres1 {
  1244. /* flex: 5; */
  1245. width: 80%;
  1246. font-size: 28rpx;
  1247. overflow: hidden;
  1248. }
  1249. .name {
  1250. display: inline;
  1251. font-size: 31rpx;
  1252. color: #999999;
  1253. }
  1254. .number {
  1255. display: initial;
  1256. color: #999999;
  1257. font-size: 31rpx;
  1258. margin-left: 30upx;
  1259. }
  1260. .box_image {
  1261. width: 15%;
  1262. /* margin-right: 22rpx; */
  1263. display: flex;
  1264. justify-content: center;
  1265. align-items: center;
  1266. }
  1267. .u-icon__icon {
  1268. color: #CCCCCC !important;
  1269. }
  1270. .icon_you {
  1271. /* position: relative;
  1272. top: 10upx !important; */
  1273. }
  1274. .box_jh {
  1275. margin-left: 19rpx;
  1276. height: 30rpx;
  1277. display: flex;
  1278. justify-content: left;
  1279. align-items: center;
  1280. }
  1281. .box_jh image {
  1282. width: 30upx;
  1283. height: 30upx;
  1284. }
  1285. .part_two {
  1286. width: 95%;
  1287. margin: 0 auto;
  1288. /* height: 260rpx; */
  1289. background: #ffffff;
  1290. border-radius: 20upx;
  1291. margin-top: 20upx;
  1292. }
  1293. .u-input {
  1294. width: 80% !important;
  1295. margin-left: 130rpx !important;
  1296. }
  1297. .part_three {
  1298. width: 95%;
  1299. margin: 0 auto;
  1300. /* height: 260rpx; */
  1301. background: #ffffff;
  1302. border-radius: 20upx;
  1303. margin-top: 20upx;
  1304. }
  1305. .u-form-item__body {
  1306. position: relative !important;
  1307. }
  1308. .u-form-item--left {
  1309. position: absolute !important;
  1310. top: 30upx;
  1311. left: 10rpx;
  1312. font-size: 31rpx;
  1313. /* font-weight: bold; */
  1314. letter-spacing: 2upx;
  1315. }
  1316. .u-form-item--right__content {
  1317. margin-right: 20upx !important;
  1318. }
  1319. .u-form-item {
  1320. line-height: 20upx !important;
  1321. padding: 25rpx 0 !important;
  1322. }
  1323. .u-input__input {
  1324. font-size: 28rpx !important;
  1325. }
  1326. .u-input {
  1327. position: relative;
  1328. display: flex;
  1329. flex-direction: row;
  1330. justify-content: flex-end !important;
  1331. }
  1332. .part_four {
  1333. width: 95%;
  1334. background: #ffffff;
  1335. margin: 0 auto;
  1336. border-radius: 20upx;
  1337. display: flex;
  1338. margin-top: 20upx;
  1339. }
  1340. .take_number {
  1341. flex: 4;
  1342. }
  1343. .number_name {
  1344. width: 90%;
  1345. margin: 0 auto;
  1346. font-size: 31rpx;
  1347. font-weight: bold;
  1348. line-height: 70rpx;
  1349. }
  1350. .number_text {
  1351. width: 90%;
  1352. margin: 0 auto;
  1353. color: #999999;
  1354. font-size: 25rpx;
  1355. line-height: 20upx;
  1356. }
  1357. .take_number_kg {
  1358. flex: 1;
  1359. display: flex;
  1360. justify-content: center;
  1361. align-items: center;
  1362. }
  1363. .content_sure {
  1364. display: flex;
  1365. align-items: center;
  1366. margin-bottom: 160rpx;
  1367. margin-left: 15px;
  1368. margin-top: 10px;
  1369. }
  1370. .u-checkbox__label {
  1371. font-size: 26upx !important;
  1372. letter-spacing: 2upx;
  1373. color: #888888 !important;
  1374. }
  1375. .tabbar {
  1376. width: 100%;
  1377. height: 130rpx;
  1378. background: #ffffff;
  1379. position: fixed;
  1380. bottom: 0upx;
  1381. left: 0upx;
  1382. right: 0upx;
  1383. display: flex;
  1384. /* #ifndef MP-WEIXIN */
  1385. position: fixed;
  1386. bottom: 0upx;
  1387. left: 0upx;
  1388. right: 0upx;
  1389. /* #endif */
  1390. z-index: 99;
  1391. }
  1392. .tabbar_price {
  1393. flex: 1;
  1394. display: flex;
  1395. justify-content: left;
  1396. align-items: center;
  1397. font-size: 30rpx;
  1398. font-weight: bold;
  1399. margin-left: 40upx;
  1400. }
  1401. .tabbar_price text {
  1402. color: #FF3333;
  1403. font-size: 38upx;
  1404. font-weight: 500;
  1405. }
  1406. .tabbar_btn {
  1407. flex: 1;
  1408. display: flex;
  1409. justify-content: flex-end;
  1410. align-items: center;
  1411. margin-right: 25rpx;
  1412. }
  1413. .but {
  1414. background: #FF7F00;
  1415. width: 230upx;
  1416. height: 80upx;
  1417. text-align: center;
  1418. line-height: 80upx;
  1419. border-radius: 60upx;
  1420. color: white;
  1421. font-size: 27rpx;
  1422. }
  1423. .actclass {
  1424. background-color: #FFD9B3;
  1425. border:none
  1426. }
  1427. /* 支付弹框 */
  1428. .popup_pay {
  1429. width: 100%;
  1430. }
  1431. .pay_btns {
  1432. width: 90%;
  1433. margin: 0 auto 40rpx;
  1434. text-align: center;
  1435. background: #FF7F00;
  1436. height: 80rpx;
  1437. border-radius: 16rpx;
  1438. color: #ffffff;
  1439. line-height: 80rpx;
  1440. margin-top: 20rpx;
  1441. }
  1442. </style>