Helppay.vue 38 KB

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