Helpsend.vue 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566
  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="https://mxys.chuanghai-tech.com/wmfile/20250814/99c5ced85df04062a736276ba75bdd1e.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. mask: true, // 是否显示透明蒙层,防止触摸穿透
  762. });
  763. if (res.code == 0) {
  764. console.log(this.openWay, '支付')
  765. uni.requestPayment({
  766. provider: 'wxpay',
  767. timeStamp: res.data.timestamp,
  768. nonceStr: res.data.noncestr,
  769. package: res.data.package,
  770. signType: res.data.signType,
  771. paySign: res.data.sign,
  772. success: function(suc) {
  773. console.log('success:' + JSON.stringify(suc));
  774. uni.showToast({
  775. title: '支付成功',
  776. icon: 'success'
  777. })
  778. uni.setStorageSync('current', 0)
  779. setTimeout(function() {
  780. uni.switchTab({
  781. url: '/pages/order/index',
  782. })
  783. }, 10)
  784. // uni.navigateTo({
  785. // url: '/pages/order/orderDetail/detail?indentNumber=' +indentNumber
  786. // })
  787. },
  788. fail: function(err) {
  789. console.log('fail:' + JSON.stringify(err));
  790. uni.showToast({
  791. title: '支付失败',
  792. icon: 'none'
  793. })
  794. uni.switchTab({
  795. url: '/pages/order/index'
  796. })
  797. }
  798. });
  799. }
  800. })
  801. // #endif
  802. // #ifdef H5
  803. let ua = navigator.userAgent.toLowerCase();
  804. if (ua.indexOf('micromessenger') !== -1) { //微信里打开
  805. this.$Request.postJson('/app/wxPay/wxPayMpOrder?indentNumber=' + this.indentNumber)
  806. .then(res => {
  807. console.log(res)
  808. if (res.code == 0) {
  809. console.log()
  810. this.callPay(res.data);
  811. } else {
  812. uni.showToast({
  813. icon: 'none',
  814. title: '支付失败!'
  815. });
  816. }
  817. });
  818. } else { //不是微信打开
  819. this.$Request.postJson('/app/wxPay/wxPayMpOrder?indentNumber=' + this.indentNumber)
  820. .then(
  821. res => {
  822. if (res.code == 0) {
  823. console.log('....11111111.....', res.data)
  824. const div = document.createElement('div')
  825. div.innerHTML = res.data //此处form就是后台返回接收到的数据
  826. console.log('....2.....', res.data)
  827. document.body.appendChild(div)
  828. console.log('....33333.....', document.forms[0])
  829. document.forms[0].submit()
  830. } else {
  831. uni.showToast({
  832. icon: 'none',
  833. title: '支付失败!'
  834. });
  835. }
  836. });
  837. }
  838. // #endif
  839. // #ifdef APP-PLUS
  840. // 微信APP支付 根据订单id获取支付信息
  841. console.log(this.indentNumber)
  842. this.$Request.postT("/app/wxPay/payAppOrder", {
  843. indentNumber: this.indentNumber
  844. }).then(ret => {
  845. console.log(JSON.stringify(ret),'支付信息')
  846. this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
  847. });
  848. // #endif
  849. } else {
  850. // #ifdef H5
  851. this.$Request.postJson('/app/aliPay/payH5Order?indentNumber=' + this.indentNumber).then(
  852. res => {
  853. if (res.code == 0) {
  854. const div = document.createElement('div')
  855. div.innerHTML = res.data //此处form就是后台返回接收到的数据
  856. document.body.appendChild(div)
  857. document.forms[0].submit()
  858. } else {
  859. uni.showToast({
  860. icon: 'none',
  861. title: '支付失败!'
  862. });
  863. }
  864. });
  865. // #endif
  866. // APP支付宝支付
  867. // #ifdef APP
  868. this.$Request.postJson("/app/aliPay/payAppOrder?indentNumber=" + this.indentNumber).then(ret => {
  869. console.log(ret)
  870. this.isCheckPay(ret.code, 'alipay', ret.data);
  871. });
  872. // #endif
  873. }
  874. },
  875. callPay: function(response) {
  876. if (typeof WeixinJSBridge === "undefined") {
  877. if (document.addEventListener) {
  878. document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady(response), false);
  879. } else if (document.attachEvent) {
  880. document.attachEvent('WeixinJSBridgeReady', this.onBridgeReady(response));
  881. document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReady(response));
  882. }
  883. } else {
  884. this.onBridgeReady(response);
  885. }
  886. },
  887. onBridgeReady: function(response) {
  888. let that = this;
  889. if (!response.package) {
  890. return;
  891. }
  892. WeixinJSBridge.invoke(
  893. 'getBrandWCPayRequest', {
  894. "appId": response.appid, //公众号名称,由商户传入
  895. "timeStamp": response.timestamp, //时间戳,自1970年以来的秒数
  896. "nonceStr": response.noncestr, //随机串
  897. "package": response.package,
  898. "signType": response.signType, //微信签名方式:
  899. "paySign": response.sign //微信签名
  900. },
  901. function(res) {
  902. console.log(res, '/*-/*-/*-')
  903. if (res.err_msg === "get_brand_wcpay_request:ok") {
  904. // 使用以上方式判断前端返回,微信团队郑重提示:
  905. //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  906. uni.showLoading({
  907. title: '支付成功'
  908. });
  909. setTimeout(function() {
  910. uni.hideLoading();
  911. uni.switchTab({
  912. url: '../order/order'
  913. })
  914. }, 1000);
  915. } else {
  916. uni.hideLoading();
  917. }
  918. WeixinJSBridge.log(response.err_msg);
  919. }
  920. );
  921. },
  922. isCheckPay(status, name, order) {
  923. if (status == 0) {
  924. this.setPayment(name, order);
  925. } else {
  926. uni.hideLoading();
  927. uni.showToast({
  928. title: '支付信息有误',
  929. icon: 'none'
  930. });
  931. }
  932. },
  933. setPayment(name, order) {
  934. console.log(name,'*-*-*',order)
  935. uni.requestPayment({
  936. provider: name,
  937. orderInfo: order, //微信、支付宝订单数据
  938. success: function(res) {
  939. console.log(res)
  940. uni.hideLoading();
  941. uni.showLoading({
  942. title: '支付成功'
  943. });
  944. setTimeout(function() {
  945. uni.switchTab({
  946. url: '/pages/order/index',
  947. })
  948. }, 1000);
  949. },
  950. fail: function(err) {
  951. console.log(err)
  952. uni.hideLoading();
  953. },
  954. complete() {
  955. uni.hideLoading();
  956. }
  957. });
  958. },
  959. }
  960. }
  961. </script>
  962. <style>
  963. body {
  964. background: #F2EDED;
  965. }
  966. /* #ifndef MP-WEIXIN */
  967. page {
  968. background: #F2EDED;
  969. }
  970. /* #endif */
  971. /* 取件时间弹框 */
  972. .popup_data {
  973. height: 600upx;
  974. width: 100%;
  975. position: relative;
  976. }
  977. .data_title {
  978. width: 92%;
  979. margin: 0 auto;
  980. font-size: 32rpx;
  981. line-height: 100upx;
  982. font-weight: bold;
  983. letter-spacing: 3upx;
  984. position: relative;
  985. top: 0upx;
  986. z-index: 99991;
  987. }
  988. .data_btn {
  989. position: absolute;
  990. bottom: 28upx;
  991. width: 100%;
  992. z-index: 99992;
  993. }
  994. .btn {
  995. width: 90%;
  996. margin: 0 auto;
  997. height: 80upx;
  998. color: white;
  999. background: #FF7F00;
  1000. border-radius: 20upx;
  1001. text-align: center;
  1002. line-height: 80upx;
  1003. letter-spacing: 2upx;
  1004. }
  1005. .u-close {
  1006. position: absolute;
  1007. z-index: 999999 !important;
  1008. }
  1009. .u-picker-body {
  1010. height: 700upx !important;
  1011. }
  1012. /* .u-picker-header {
  1013. position: relative !important;
  1014. top: 138upx;
  1015. z-index: 99992;
  1016. } */
  1017. /* 物品信息弹框 */
  1018. .popup_info {
  1019. height: 950rpx;
  1020. width: 100%;
  1021. position: relative;
  1022. }
  1023. .data_items {
  1024. width: 100%;
  1025. }
  1026. .item_box {
  1027. width: 90%;
  1028. margin: 0 auto;
  1029. }
  1030. .item_btn {
  1031. border: 1upx solid #cccccc;
  1032. border-radius: 70upx;
  1033. width: 200upx;
  1034. height: 70upx;
  1035. text-align: center;
  1036. line-height: 70upx;
  1037. font-size: 27rpx;
  1038. margin-right: 10upx;
  1039. margin-left: 10upx;
  1040. margin-bottom: 20upx;
  1041. }
  1042. .item_btn:active {
  1043. background: #ffd9b3;
  1044. border: 2upx solid #ff7f00;
  1045. }
  1046. .item_type {
  1047. display: flex;
  1048. flex-wrap: wrap;
  1049. margin-top: 20upx;
  1050. }
  1051. /* 物品保价弹框 */
  1052. .valua_icon {
  1053. width: 90%;
  1054. position: absolute;
  1055. bottom: 120upx;
  1056. left: 40upx;
  1057. }
  1058. .input {
  1059. width: 90%;
  1060. margin: 0 auto;
  1061. }
  1062. .u-input--border {
  1063. border-radius: 12rupx;
  1064. /* border-radius:12rupx; */
  1065. border: 2upx solid #F2F2F2 !important;
  1066. background: #F2F2F2 !important;
  1067. }
  1068. .input_bg {
  1069. width: 90%;
  1070. margin: 0 auto;
  1071. position: relative;
  1072. }
  1073. .input_bg image {
  1074. width: 100%;
  1075. height: 80upx;
  1076. }
  1077. .input_bg text {
  1078. position: absolute;
  1079. top: 30upx;
  1080. left: 24upx;
  1081. color: #FF7F00;
  1082. font-size: 26upx;
  1083. }
  1084. /* 红包弹框 */
  1085. .popup_money {
  1086. /* height: 400upx; */
  1087. width: 100%;
  1088. height: 630rpx;
  1089. position: relative;
  1090. background: #F2EDED;
  1091. padding-bottom: 45rpx;
  1092. /* #ifndef MP-WEIXIN */
  1093. height: 680rpx;
  1094. /* #endif */
  1095. }
  1096. .uni-scroll-view,
  1097. .uni-scroll-view-content {
  1098. position: relative;
  1099. width: 100%;
  1100. height: 100%;
  1101. background: #F2EDED;
  1102. }
  1103. .image_box {
  1104. width: 40%;
  1105. margin: 0 auto;
  1106. margin-bottom: 110rpx;
  1107. }
  1108. .u-drawer-bottom {
  1109. background-color: #FAF7F5 !important;
  1110. }
  1111. .money_box {
  1112. width: 93%;
  1113. margin: 0 auto;
  1114. background: #ffffff;
  1115. border-radius: 14upx;
  1116. height: 220rpx;
  1117. margin-bottom: 50rpx;
  1118. }
  1119. .box_tit {
  1120. width: 90%;
  1121. margin: 0 auto;
  1122. height: 80upx;
  1123. display: flex;
  1124. }
  1125. .money_name {
  1126. flex: 1;
  1127. display: flex;
  1128. justify-content: left;
  1129. align-items: center;
  1130. font-size: 27rpx;
  1131. font-weight: bold;
  1132. letter-spacing: 2upx;
  1133. }
  1134. .money_price {
  1135. flex: 1;
  1136. display: flex;
  1137. justify-content: flex-end;
  1138. align-items: center;
  1139. font-size: 34upx;
  1140. font-weight: bold;
  1141. color: red;
  1142. }
  1143. .money_data {
  1144. color: #999999;
  1145. font-size: 24rpx;
  1146. width: 90%;
  1147. margin: 0 auto;
  1148. margin-top: -8upx;
  1149. }
  1150. .u-line {
  1151. width: 90% !important;
  1152. border-bottom-width: 6upx !important;
  1153. margin: 0 auto !important;
  1154. margin-top: 22upx !important;
  1155. margin-bottom: 22upx !important;
  1156. }
  1157. .box_bottom {
  1158. width: 90%;
  1159. margin: 0 auto;
  1160. display: flex;
  1161. height: 40upx;
  1162. }
  1163. .money_use {
  1164. flex: 1;
  1165. color: #999999;
  1166. font-size: 24rpx;
  1167. display: flex;
  1168. justify-content: left;
  1169. align-items: center;
  1170. }
  1171. .lj_use {
  1172. width: 150rpx;
  1173. border: 2rpx solid #FF7F00;
  1174. color: #FF7F00;
  1175. text-align: center;
  1176. line-height: 48rpx;
  1177. border-radius: 40rpx;
  1178. font-size: 23rpx;
  1179. }
  1180. .slot-wrap {
  1181. /* display: flex; */
  1182. /* align-items: center; */
  1183. /* 如果您想让slot内容占满整个导航栏的宽度 */
  1184. /* flex: 1; */
  1185. /* 如果您想让slot内容与导航栏左右有空隙 */
  1186. /* padding: 0 30rpx; */
  1187. width: 100%;
  1188. text-align: center;
  1189. margin-left: 100rpx;
  1190. letter-spacing: 2rpx;
  1191. font-weight: bold;
  1192. font-size: 30rpx;
  1193. }
  1194. .contents {
  1195. width: 100%;
  1196. /* #ifdef MP-WEIXIN */
  1197. margin-top: 25rpx;
  1198. /* #endif */
  1199. }
  1200. .part_one {
  1201. width: 95%;
  1202. margin: 0 auto;
  1203. /* height: 240upx; */
  1204. background: #ffffff;
  1205. border-radius: 20upx;
  1206. margin-top: 20upx;
  1207. padding: 25rpx 10rpx;
  1208. }
  1209. .one_box {
  1210. width: 100%;
  1211. /* height: 80upx; */
  1212. /* background: #F5F5F5; */
  1213. margin: 0 auto;
  1214. border-radius: 12upx;
  1215. display: flex;
  1216. /* height: 100rpx; */
  1217. align-items: center;
  1218. }
  1219. .box_dian {
  1220. /* flex: 1; */
  1221. width:10%;
  1222. display: flex;
  1223. justify-content: center;
  1224. align-items: center;
  1225. }
  1226. .box_dian image {
  1227. width: 45rpx;
  1228. height: 45rpx;
  1229. }
  1230. .box_name {
  1231. flex: 5;
  1232. display: flex;
  1233. justify-content: left;
  1234. align-items: center;
  1235. color: #333333;
  1236. font-weight: 700;
  1237. }
  1238. .box_addres {
  1239. /* flex: 5; */
  1240. width: 80%;
  1241. font-size: 32rpx;
  1242. overflow: hidden;
  1243. }
  1244. .box_addres1 {
  1245. /* flex: 5; */
  1246. width: 80%;
  1247. font-size: 28rpx;
  1248. overflow: hidden;
  1249. }
  1250. .name {
  1251. display: inline;
  1252. font-size: 31rpx;
  1253. color: #999999;
  1254. }
  1255. .number {
  1256. display: initial;
  1257. color: #999999;
  1258. font-size: 31rpx;
  1259. margin-left: 30upx;
  1260. }
  1261. .box_image {
  1262. width: 15%;
  1263. /* margin-right: 22rpx; */
  1264. display: flex;
  1265. justify-content: center;
  1266. align-items: center;
  1267. }
  1268. .u-icon__icon {
  1269. color: #CCCCCC !important;
  1270. }
  1271. .icon_you {
  1272. /* position: relative;
  1273. top: 10upx !important; */
  1274. }
  1275. .box_jh {
  1276. margin-left: 19rpx;
  1277. height: 30rpx;
  1278. display: flex;
  1279. justify-content: left;
  1280. align-items: center;
  1281. }
  1282. .box_jh image {
  1283. width: 30upx;
  1284. height: 30upx;
  1285. }
  1286. .part_two {
  1287. width: 95%;
  1288. margin: 0 auto;
  1289. /* height: 260rpx; */
  1290. background: #ffffff;
  1291. border-radius: 20upx;
  1292. margin-top: 20upx;
  1293. }
  1294. .u-input {
  1295. width: 80% !important;
  1296. margin-left: 130rpx !important;
  1297. }
  1298. .part_three {
  1299. width: 95%;
  1300. margin: 0 auto;
  1301. /* height: 260rpx; */
  1302. background: #ffffff;
  1303. border-radius: 20upx;
  1304. margin-top: 20upx;
  1305. }
  1306. .u-form-item__body {
  1307. position: relative !important;
  1308. }
  1309. .u-form-item--left {
  1310. position: absolute !important;
  1311. top: 30upx;
  1312. left: 10rpx;
  1313. font-size: 31rpx;
  1314. /* font-weight: bold; */
  1315. letter-spacing: 2upx;
  1316. }
  1317. .u-form-item--right__content {
  1318. margin-right: 20upx !important;
  1319. }
  1320. .u-form-item {
  1321. line-height: 20upx !important;
  1322. padding: 25rpx 0 !important;
  1323. }
  1324. .u-input__input {
  1325. font-size: 28rpx !important;
  1326. }
  1327. .u-input {
  1328. position: relative;
  1329. display: flex;
  1330. flex-direction: row;
  1331. justify-content: flex-end !important;
  1332. }
  1333. .part_four {
  1334. width: 95%;
  1335. background: #ffffff;
  1336. margin: 0 auto;
  1337. border-radius: 20upx;
  1338. display: flex;
  1339. margin-top: 20upx;
  1340. }
  1341. .take_number {
  1342. flex: 4;
  1343. }
  1344. .number_name {
  1345. width: 90%;
  1346. margin: 0 auto;
  1347. font-size: 31rpx;
  1348. font-weight: bold;
  1349. line-height: 70rpx;
  1350. }
  1351. .number_text {
  1352. width: 90%;
  1353. margin: 0 auto;
  1354. color: #999999;
  1355. font-size: 25rpx;
  1356. line-height: 20upx;
  1357. }
  1358. .take_number_kg {
  1359. flex: 1;
  1360. display: flex;
  1361. justify-content: center;
  1362. align-items: center;
  1363. }
  1364. .content_sure {
  1365. display: flex;
  1366. align-items: center;
  1367. margin-bottom: 160rpx;
  1368. margin-left: 15px;
  1369. margin-top: 10px;
  1370. }
  1371. .u-checkbox__label {
  1372. font-size: 26upx !important;
  1373. letter-spacing: 2upx;
  1374. color: #888888 !important;
  1375. }
  1376. .tabbar {
  1377. width: 100%;
  1378. height: 130rpx;
  1379. background: #ffffff;
  1380. position: fixed;
  1381. bottom: 0upx;
  1382. left: 0upx;
  1383. right: 0upx;
  1384. display: flex;
  1385. /* #ifndef MP-WEIXIN */
  1386. position: fixed;
  1387. bottom: 0upx;
  1388. left: 0upx;
  1389. right: 0upx;
  1390. /* #endif */
  1391. z-index: 99;
  1392. }
  1393. .tabbar_price {
  1394. flex: 1;
  1395. display: flex;
  1396. justify-content: left;
  1397. align-items: center;
  1398. font-size: 30rpx;
  1399. font-weight: bold;
  1400. margin-left: 40upx;
  1401. }
  1402. .tabbar_price text {
  1403. color: #FF3333;
  1404. font-size: 38upx;
  1405. font-weight: 500;
  1406. }
  1407. .tabbar_btn {
  1408. flex: 1;
  1409. display: flex;
  1410. justify-content: flex-end;
  1411. align-items: center;
  1412. margin-right: 25rpx;
  1413. }
  1414. .but {
  1415. background: #FF7F00;
  1416. width: 230upx;
  1417. height: 80upx;
  1418. text-align: center;
  1419. line-height: 80upx;
  1420. border-radius: 60upx;
  1421. color: white;
  1422. font-size: 27rpx;
  1423. }
  1424. .actclass {
  1425. background-color: #FFD9B3;
  1426. border:none
  1427. }
  1428. /* 支付弹框 */
  1429. .popup_pay {
  1430. width: 100%;
  1431. }
  1432. .pay_btns {
  1433. width: 90%;
  1434. margin: 0 auto 40rpx;
  1435. text-align: center;
  1436. background: #FF7F00;
  1437. height: 80rpx;
  1438. border-radius: 16rpx;
  1439. color: #ffffff;
  1440. line-height: 80rpx;
  1441. margin-top: 20rpx;
  1442. }
  1443. </style>