index.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202
  1. <!-- <template>
  2. <view style="padding-bottom: 100rpx;">
  3. #ifdef H5
  4. <u-sticky :h5-nav-height="0" @fixed="xdCheck" @unfixed="noXDCheck">
  5. #endif
  6. #ifndef H5
  7. <u-sticky @fixed="xdCheck" @unfixed="noXDCheck">
  8. #endif
  9. <view style="background: #FFFFFF;" v-if="xcxSelect != '否'">
  10. <u-dropdown :menu-icon='menuicon' ref="uDropdown" @open="open" @close="close" menu-icon-size="18">
  11. <u-dropdown-item v-model="value1" :title="mrtitle">
  12. <view class="slot-content padding" style="background: #FFFFFF;">
  13. <view class="addbox bg" @click="goCFAddress(2)">
  14. <view class="add_cont">
  15. <view class="orgin"></view>
  16. <view class="add_tit" v-if="addlists.city === ''">选择出发地城市</view>
  17. <view class="add_tit" v-else>{{addlists.city}}</view>
  18. </view>
  19. <view>
  20. <image v-if="globalImages" :src="globalImages + 'images/static/image/go.png'" style="width: 16rpx;height: 25rpx;">
  21. </image>
  22. </view>
  23. </view>
  24. <view class="addbox bg" @click="goCFAddress(2)">
  25. <view class="add_cont">
  26. <u-input v-model="addlists.address" type="text" placeholder="请输入出发地地址"
  27. :border="true" :clearable="true"
  28. style="border: none;width: 610rpx;height: 100%;" />
  29. </view>
  30. </view>
  31. <view class="flex justify-between">
  32. <view class="qc_btn" @tap="goQC(2)">清除</view>
  33. <view class="sx_btn" @tap="goCX">查询</view>
  34. </view>
  35. </view>
  36. </u-dropdown-item>
  37. <u-dropdown-item v-model="value2" :title="carname">
  38. <view class="slot-content padding" style="background: #FFFFFF;">
  39. <view class="addbox bg" @click="goCFAddress(1)">
  40. <view class="add_cont">
  41. <view class="orgin"></view>
  42. <view class="add_tit" v-if="addlist.city === ''">选择目的地城市</view>
  43. <view class="add_tit" v-else>{{addlist.city}}</view>
  44. </view>
  45. <view>
  46. <image v-if="globalImages" :src="globalImages + 'images/static/image/go.png'" style="width: 16rpx;height: 25rpx;">
  47. </image>
  48. </view>
  49. </view>
  50. <view class="addbox bg" @click="goCFAddress(1)">
  51. <view class="add_cont">
  52. <u-input v-model="addlist.address" type="text" placeholder="请输入目的地地址"
  53. :border="true" :clearable="true"
  54. style="border: none;width: 610rpx;height: 100%;" />
  55. </view>
  56. </view>
  57. <view class="flex justify-between">
  58. <view class="qc_btn" @tap="goQC(1)">清除</view>
  59. <view class="sx_btn" @tap="goCX">查询</view>
  60. </view>
  61. </view>
  62. </u-dropdown-item>
  63. </u-dropdown>
  64. </view>
  65. </u-sticky>
  66. <view class="myOrder_itemView" v-if="xcxSelect != '否'" v-for="(item,index) in orderList"
  67. @tap="goDetail(item)">
  68. <view style="padding: 30rpx 40rpx 30rpx;">
  69. <view class="flex justify-between align-center">
  70. <view class="item_title">正在寻找乘客</view>
  71. <view style="color: #346EF6;font-weight: bold;">进行中</view>
  72. </view>
  73. <view class="flex align-center add_name" style="margin: 10rpx 6rpx 10rpx;">
  74. <view class="green"></view>出发地点:{{item.shipCity}} {{item.shipAddress}}
  75. </view>
  76. <image v-if="globalImages" :src="globalImages + 'images/static/upload/up.png'" class="order_up"></image>
  77. <view class="flex align-center add_name" style="margin-left: 6rpx;margin-top: 6rpx;">
  78. <view class="orgin"></view>到达地点:{{item.deliveryCity}} {{item.deliveryAddress}}
  79. </view>
  80. </view>
  81. <u-line color="#E6E6E6" />
  82. <view style="padding: 30rpx 40rpx 0rpx;display: flex;justify-content: space-between;">
  83. <view class="item_money">一口价:<text style="font-size: 32rpx;">¥</text><text>{{item.payMoney}}<text
  84. style="font-size: 32rpx;">/人</text></text>
  85. </view>
  86. <view class="item_btn" @tap="save(item)">立即下单</view>
  87. </view>
  88. </view>
  89. <empty v-if="orderList.length == 0"></empty>
  90. <u-popup v-model="saveShow" mode="center" border-radius="14" width="580rpx" :closeable="false">
  91. <view class="padding text-center">
  92. <view class="flex justify-center">
  93. <view class="box_money">一口价 <text style="font-size: 28rpx;">¥</text>
  94. <text>{{itemDetail.payMoney}}</text><text style="font-size: 28rpx;">/人</text>
  95. </view>
  96. </view>
  97. <view class="box_item" @click="openTime(1)">
  98. <view class="flex align-center">
  99. <image v-if="globalImages" :src="globalImages + 'images/static/image/time.png'" style="width: 34rpx;height: 34rpx;"></image>
  100. <view class="add_tit margin-left-xs" v-if="!yuyueTime">开始预约时间</view>
  101. <view class="add_tit margin-left-xs" v-else>{{yuyueTime}}</view>
  102. </view>
  103. <view class="margin-left-xs">
  104. <image v-if="globalImages" :src="globalImages + 'images/static/image/right.png'" style="width: 12rpx;height: 20rpx;">
  105. </image>
  106. </view>
  107. </view>
  108. <view class="box_item margin-top-sm" @click="openTime(2)">
  109. <view class="flex align-center">
  110. <image v-if="globalImages" :src="globalImages + 'images/static/image/time.png'" style="width: 34rpx;height: 34rpx;"></image>
  111. <view class="add_tit margin-left-xs" v-if="!yyEndTime">结束预约时间</view>
  112. <view class="add_tit margin-left-xs" v-else>{{yyEndTime}}</view>
  113. </view>
  114. <view class="margin-left-xs">
  115. <image v-if="globalImages" :src="globalImages + 'images/static/image/right.png'" style="width: 12rpx;height: 20rpx;">
  116. </image>
  117. </view>
  118. </view>
  119. <view class="box_item margin-top-sm" @click="personShow = true">
  120. <view class="flex align-center">
  121. <image v-if="globalImages" :src="globalImages + 'images/static/image/time.png'" style="width: 34rpx;height: 34rpx;"></image>
  122. <view class="add_tit margin-left-xs" v-if="!personNum">选择乘坐人数</view>
  123. <view class="add_tit margin-left-xs" v-else>{{personNum}}人乘坐</view>
  124. </view>
  125. <view class="margin-left-xs">
  126. <image v-if="globalImages" :src="globalImages + 'images/static/image/right.png'" style="width: 12rpx;height: 20rpx;">
  127. </image>
  128. </view>
  129. </view>
  130. <view class="flex align-center justify-center margin-top">
  131. <view class="zx_view" @click="openRemk">
  132. <image v-if="globalImages" :src="globalImages + 'images/static/image/beizhu.png'" style="width: 30rpx;height: 32rpx;">
  133. </image>
  134. <view class="zx_name">添加备注</view>
  135. </view>
  136. </view>
  137. <view class="itemDetail_btn" @tap="goPay">立即支付</view>
  138. </view>
  139. </u-popup>
  140. <u-picker :start-year="dqYear" v-model="Timeshow" mode="time" :params="params"
  141. @confirm="timeConfirm"></u-picker>
  142. <u-popup v-model="personShow" mode="bottom" border-radius="40" :closeable="true">
  143. <view style="padding: 50rpx 30rpx 50rpx 30rpx;">
  144. <view class="text-lg text-bold">选择乘车人数</view>
  145. <view class="text-df text-bold margin-top-lg">请如实填写人数,若人数不符,车主有权拒绝通行</view>
  146. <view class="flex margin-tb-lg">
  147. <view class="u-page__tag-item" v-for="(item, index) in radios" :key="index">
  148. <view :class="personNum == item.num ? 'rs_item_sel' : 'rs_item'"
  149. @tap="checkPerson(item.num)">
  150. {{item.num}}人
  151. </view>
  152. </view>
  153. </view>
  154. <view class="remkbtn" @click="savePerson">确定</view>
  155. </view>
  156. </u-popup>
  157. <u-popup v-model="remkShow" mode="bottom" border-radius="40" :closeable="true">
  158. <view style="padding: 50rpx 30rpx 50rpx 30rpx;">
  159. <view class="text-lg text-bold">添加行程备注</view>
  160. <view v-for="(item,index) in bzList">
  161. <view class="text-df text-bold margin-top-lg">{{item.title}}</view>
  162. <view class="flex">
  163. <view v-if="item.content && item.content.length > 0" v-for="(itee,indee) in item.content">
  164. <view :class="itee.state ? 'bz_item_sel' : 'bz_item'" @tap="checkBZ(index,indee)">
  165. {{itee.name}}
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="remkbtn" @click="remkShow = false">确定</view>
  171. </view>
  172. </u-popup>
  173. <u-popup v-model="showpay" mode="bottom">
  174. <view class="popup_pay">
  175. <view class="bgs margin-top padding-lr radius">
  176. <view style="padding: 0 20upx;margin-top: 36rpx;">
  177. <view
  178. style="display: flex;height: 100upx;align-items: center;padding: 20upx 0;justify-content: center;"
  179. v-for="(item,index) in openLists" :key='index'>
  180. <image :src="item.image" style="width: 55upx;height: 55upx;border-radius: 50upx;">
  181. </image>
  182. <view style="font-size: 30upx;margin-left: 20upx;width: 70%;">
  183. {{item.name}}
  184. </view>
  185. <radio-group name="openWay" style="margin-left: 45rpx;" @tap='selectWay(item)'>
  186. <label class="tui-radio">
  187. <radio color="#3699FF" :checked="openWay == item.id ? true : false" />
  188. </label>
  189. </radio-group>
  190. </view>
  191. </view>
  192. </view>
  193. <view class="pay_btns" @click="pay()">确认支付</view>
  194. </view>
  195. </u-popup>
  196. </view>
  197. </template> -->
  198. // <script>
  199. // import empty from '@/components/empty'
  200. // import { waitForGlobalImages } from '@/utils/globalImageLoader'
  201. // export default {
  202. // components: {
  203. // empty
  204. // },
  205. // data() {
  206. // return {
  207. // isDrop: false, //是否打开下拉筛选
  208. // addlists: {
  209. // city: '',
  210. // address: ''
  211. // },
  212. // addlist: {
  213. // city: '',
  214. // address: ''
  215. // },
  216. // ordersId: '',
  217. // bzList: [],
  218. // remkShow: false,
  219. // personNum: 1,
  220. // radios: [{
  221. // num: 1,
  222. // checked: true
  223. // },
  224. // {
  225. // num: 2,
  226. // checked: false
  227. // },
  228. // {
  229. // num: 3,
  230. // checked: false
  231. // },
  232. // {
  233. // num: 4,
  234. // checked: false
  235. // }
  236. // ],
  237. // personShow: false,
  238. // params: {
  239. // year: true,
  240. // month: true,
  241. // day: true,
  242. // hour: true,
  243. // minute: true,
  244. // second: false
  245. // },
  246. // dqYear: '',
  247. // Timeshow: false,
  248. // yuyueTime: '',
  249. // timeSel: 1,
  250. // yyEndTime: '',
  251. // saveShow: false,
  252. // itemDetail: {},
  253. // mrtitle: '筛选出发地',
  254. // carname: '筛选目的地',
  255. // menuicon: 'arrow-down-fill',
  256. // value1: 1,
  257. // value2: 2,
  258. // page: 1,
  259. // limit: 10,
  260. // orderList: [],
  261. // indentNumber: '',
  262. // openLists: [],
  263. // showpay: false,
  264. // openWay: 1,
  265. // userName: '',
  266. // phone: '',
  267. // xcxSelect: '否',
  268. // globalImages: '',
  269. // }
  270. // },
  271. // onLoad(d) {
  272. // waitForGlobalImages().then((path) => {
  273. // console.log('✅ 全局图片路径:', path)
  274. // this.globalImages = path
  275. // })
  276. // this.xcxSelect = this.$queue.getData('xcxSelect')
  277. // if (this.xcxSelect === '否') {
  278. // uni.setNavigationBarTitle({
  279. // title: '行程商品'
  280. // })
  281. // }
  282. // let timeNow = new Date();
  283. // timeNow.setMinutes(timeNow.getMinutes() + 30);
  284. // let timeEndNow = new Date();
  285. // timeEndNow.setMinutes(timeEndNow.getMinutes() + 60);
  286. // this.dqYear = timeNow.getFullYear()
  287. // this.yuyueTime =
  288. // `${this.padZero(timeNow.getMonth() + 1)}月${this.padZero(timeNow.getDate())}日${this.padZero(timeNow.getHours())}:${this.padZero(timeNow.getMinutes())}`;
  289. // this.getbzList();
  290. // this.yyEndTime =
  291. // `${this.padZero(timeEndNow.getMonth() + 1)}月${this.padZero(timeEndNow.getDate())}日${this.padZero(timeEndNow.getHours())}:${this.padZero(timeEndNow.getMinutes())}`;
  292. // // #ifdef MP-WEIXIN
  293. // this.openLists = [{
  294. // id: 1,
  295. // image: '../../static/image/icon_weixin.png',
  296. // name: '微信'
  297. // }, {
  298. // id: 3,
  299. // image: '../../static/image/jinbi.png',
  300. // name: '零钱'
  301. // }]
  302. // // #endif
  303. // // #ifdef H5
  304. // let ua = navigator.userAgent.toLowerCase();
  305. // if (ua.indexOf('micromessenger') !== -1) { //微信浏览器
  306. // this.$Request.get('/app/common/type/443').then(res => {
  307. // if (res.data && res.data.value && res.data.value == '是') {
  308. // this.openLists = [{
  309. // id: 1,
  310. // image: '../../static/image/icon_weixin.png',
  311. // name: '微信'
  312. // }, {
  313. // id: 3,
  314. // image: '../../static/image/jinbi.png',
  315. // name: '零钱'
  316. // }]
  317. // this.openWay = 1
  318. // } else {
  319. // this.openLists = [{
  320. // id: 3,
  321. // image: '../../static/image/jinbi.png',
  322. // name: '零钱'
  323. // }]
  324. // this.openWay = 3
  325. // }
  326. // })
  327. // } else { //非微信浏览器
  328. // this.openLists = [{
  329. // id: 2,
  330. // image: '../../static/image/zhifubao.png',
  331. // name: '支付宝'
  332. // }, {
  333. // id: 3,
  334. // image: '../../static/image/jinbi.png',
  335. // name: '零钱'
  336. // }]
  337. // this.openWay = 2
  338. // }
  339. // // #endif
  340. // // #ifdef APP-PLUS
  341. // this.openLists = [{
  342. // id: 1,
  343. // image: '../../static/image/icon_weixin.png',
  344. // name: '微信'
  345. // },
  346. // {
  347. // id: 2,
  348. // image: '../../static/image/zhifubao.png',
  349. // name: '支付宝'
  350. // }, {
  351. // id: 3,
  352. // image: '../../static/image/jinbi.png',
  353. // name: '零钱'
  354. // }
  355. // ]
  356. // // #endif
  357. // this.page = 1;
  358. // this.getMyOrderList();
  359. // },
  360. // onShow() {
  361. // let token = this.$queue.getData('token')
  362. // if (token) {
  363. // this.getuserinfo();
  364. // } else {
  365. // uni.stopPullDownRefresh();
  366. // // uni.showModal({
  367. // // title: '提示',
  368. // // content: '请先去登录',
  369. // // success: function(res) {
  370. // // if (res.confirm) {
  371. // // uni.navigateTo({
  372. // // url: '/pages/my/register'
  373. // // })
  374. // // } else if (res.cancel) {
  375. // // console.log('用户点击取消');
  376. // // }
  377. // // }
  378. // // });
  379. // }
  380. // },
  381. // methods: {
  382. // open(index) {
  383. // this.$refs.uDropdown.highlight();
  384. // this.isDrop = true
  385. // },
  386. // close(index) {
  387. // console.log('close', index)
  388. // // 关闭的时候,给当前项加上高亮
  389. // // 当然,您也可以通过监听dropdown-item的@change事件进行处理
  390. // this.$refs.uDropdown.highlight(index);
  391. // this.isDrop = false
  392. // },
  393. // goQC(index) {
  394. // if (index == 1) {
  395. // let addlist = {
  396. // city: '',
  397. // address: ''
  398. // }
  399. // this.addlist = addlist
  400. // }
  401. // if (index == 2) {
  402. // let addlists = {
  403. // city: '',
  404. // address: ''
  405. // }
  406. // this.addlists = addlists
  407. // }
  408. // if (this.isDrop) {
  409. // this.$refs.uDropdown.close();
  410. // }
  411. // this.page = 1;
  412. // this.getMyOrderList();
  413. // },
  414. // goCX() {
  415. // if (this.isDrop) {
  416. // this.$refs.uDropdown.close();
  417. // }
  418. // this.page = 1;
  419. // this.getMyOrderList();
  420. // },
  421. // goCFAddress(index) {
  422. // let that = this
  423. // uni.chooseLocation({
  424. // success: function(res) {
  425. // console.log('位置名称:' + res.name);
  426. // console.log('详细地址:' + res.address);
  427. // console.log('纬度:' + res.latitude);
  428. // console.log('经度:' + res.longitude);
  429. // if (index == 1) {
  430. // that.addlist.address = res.name
  431. // that.addlist.lng = res.longitude
  432. // that.addlist.lat = res.latitude
  433. // let data = {
  434. // lat: res.latitude,
  435. // lng: res.longitude
  436. // }
  437. // that.$Request.getT('/app/Login/selectCity', data).then(res => {
  438. // if (res.code === 0) {
  439. // that.addlist.province = res.data.province
  440. // that.addlist.city = res.data.city
  441. // that.addlist.district = res.data.district
  442. // }
  443. // });
  444. // } else if (index == 2) {
  445. // that.addlists.address = res.name
  446. // that.addlists.lng = res.longitude
  447. // that.addlists.lat = res.latitude
  448. // let data = {
  449. // lat: res.latitude,
  450. // lng: res.longitude
  451. // }
  452. // that.$Request.getT('/app/Login/selectCity', data).then(res => {
  453. // if (res.code === 0) {
  454. // that.addlists.province = res.data.province
  455. // that.addlists.city = res.data.city
  456. // that.addlists.district = res.data.district
  457. // }
  458. // });
  459. // }
  460. // }
  461. // });
  462. // },
  463. // // 获取用户信息
  464. // getuserinfo() {
  465. // this.$Request.getT('/app/user/selectUserById').then(res => {
  466. // if (res.code == 0 && res.data) {
  467. // this.userName = res.data.nickName;
  468. // this.phone = res.data.phone;
  469. // }
  470. // });
  471. // },
  472. // goPay() {
  473. // this.$queue.showLoading('提交中...')
  474. // if (this.yuyueTime === '') {
  475. // uni.hideLoading();
  476. // this.$queue.showToast('请选择开始预约时间!')
  477. // return;
  478. // }
  479. // if (this.yyEndTime === '') {
  480. // uni.hideLoading();
  481. // this.$queue.showToast('请选择结束预约时间!')
  482. // return;
  483. // }
  484. // let remarks = '';
  485. // for (var i = 0; i < this.bzList.length; i++) {
  486. // if (this.bzList[i].content) {
  487. // for (var d = 0; d < this.bzList[i].content.length; d++) {
  488. // if (this.bzList[i].content[d].state) {
  489. // if (remarks === '') {
  490. // remarks = this.bzList[i].content[d].name;
  491. // } else {
  492. // remarks = remarks + ',' + this.bzList[i].content[d].name;
  493. // }
  494. // }
  495. // }
  496. // }
  497. // }
  498. // let userId = this.$queue.getData('userId');
  499. // let data = {
  500. // shipUserName: this.userName,
  501. // shipUserPhone: this.phone,
  502. // userId: userId,
  503. // fixedStrokeId: this.itemDetail.fixedStrokeId,
  504. // appointmentNum: this.personNum,
  505. // appointmentStartTime: this.yuyueTime,
  506. // appointmentEndTime: this.yyEndTime,
  507. // appointmentType: 2,
  508. // remark: remarks
  509. // }
  510. // this.$Request.postJson('/app/orders/insertOrdersFixedStroke', data).then(res => {
  511. // uni.hideLoading();
  512. // if (res.code == 0) {
  513. // this.ordersId = res.data.ordersId
  514. // this.personNum = 1;
  515. // this.saveShow = false
  516. // this.showpay = true;
  517. // } else {
  518. // uni.showToast({
  519. // title: res.msg,
  520. // icon: 'none'
  521. // })
  522. // }
  523. // });
  524. // },
  525. // selectWay: function(item) {
  526. // this.openWay = item.id;
  527. // },
  528. // checkBZ(index, indee) {
  529. // this.bzList[index].content[indee].state = !this.bzList[index].content[indee].state;
  530. // },
  531. // getbzList() {
  532. // this.$Request.getT('/app/message/selectMessageList?state=10').then(res => {
  533. // if (res.code == 0) {
  534. // this.bzList = [];
  535. // res.data.forEach(d => {
  536. // if (d.content) {
  537. // let contentList = [];
  538. // d.content = d.content.split(',');
  539. // for (var i = 0; i < d.content.length; i++) {
  540. // let data = {
  541. // name: "" + d.content[i],
  542. // state: false
  543. // }
  544. // contentList.push(data);
  545. // }
  546. // d.content = contentList;
  547. // }
  548. // this.bzList.push(d);
  549. // });
  550. // }
  551. // });
  552. // },
  553. // openRemk() {
  554. // this.remkShow = true
  555. // },
  556. // savePerson() {
  557. // this.personShow = false
  558. // // this.orderPay();
  559. // },
  560. // checkPerson(num) {
  561. // this.personNum = num;
  562. // },
  563. // //时间格式转换
  564. // padZero(num) {
  565. // return num < 10 ? `0${num}` : num;
  566. // },
  567. // timeConfirm(e) {
  568. // if (this.timeSel == 1) {
  569. // this.yuyueTime = e.month + '月' + e.day + '日' + '' + e.hour + ':' + e.minute
  570. // this.hopeTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':00'
  571. // } else {
  572. // this.yyEndTime = e.month + '月' + e.day + '日' + '' + e.hour + ':' + e.minute
  573. // }
  574. // },
  575. // openTime(index) {
  576. // // this.Timeshow = true
  577. // if (index == 2 && this.yuyueTime === '') {
  578. // this.$queue.showToast('请选择开始预约时间!')
  579. // return;
  580. // }
  581. // this.timeSel = index;
  582. // this.Timeshow = true
  583. // },
  584. // save(item) {
  585. // let token = this.$queue.getData('token')
  586. // if (token) {
  587. // this.itemDetail = item;
  588. // this.saveShow = true;
  589. // } else {
  590. // uni.showModal({
  591. // title: '提示',
  592. // content: '请先去登录',
  593. // success: function(res) {
  594. // if (res.confirm) {
  595. // uni.navigateTo({
  596. // url: '/pages/my/register'
  597. // })
  598. // } else if (res.cancel) {
  599. // console.log('用户点击取消');
  600. // }
  601. // }
  602. // });
  603. // }
  604. // },
  605. // xdCheck(e) {
  606. // this.scrollTop = 1;
  607. // console.log('吸顶')
  608. // },
  609. // noXDCheck(e) {
  610. // this.scrollTop = 0;
  611. // console.log('no吸顶')
  612. // },
  613. // goDetail(item) {
  614. // if (this.indentNumber != '') {
  615. // uni.navigateTo({
  616. // url: '/pages/index/orderDet?indentNumber=' + this.indentNumber + '&driverRouteId=' + item
  617. // .driverRouteId
  618. // })
  619. // } else {
  620. // uni.navigateTo({
  621. // url: '/my/order/myOrderDetail?driverRouteId=' + item.driverRouteId
  622. // });
  623. // }
  624. // },
  625. // getMyOrderList() {
  626. // this.$queue.showLoading('加载中...')
  627. // this.$Request.getT('/app/fixedStroke/selectFixedStrokeList?page=' + this.page + '&limit=' + this
  628. // .limit + '&shipCity=' + this.addlists.city + '&shipAddress=' + this.addlists.address +
  629. // '&deliveryCity=' + this.addlist.city + '&deliveryAddress=' + this.addlist.address).then(res => {
  630. // if (res.code == 0 && res.data) {
  631. // if (this.page == 1) {
  632. // this.orderList = res.data.list
  633. // } else {
  634. // this.orderList = [...this.orderList, ...res.data.list]
  635. // }
  636. // uni.hideLoading();
  637. // uni.stopPullDownRefresh();
  638. // }
  639. // });
  640. // },
  641. // pay() {
  642. // if (this.openWay == 0) {
  643. // this.$queue.showToast('请选择支付方式!')
  644. // return;
  645. // }
  646. // this.showpay = false;
  647. // if (this.openWay == 1) {
  648. // // #ifdef APP-PLUS
  649. // let data = {
  650. // ordersId: this.ordersId,
  651. // type: 1
  652. // }
  653. // // 微信APP支付 根据订单id获取支付信息
  654. // this.$Request.postT("/app/wxPay/payOrders", data).then(res => {
  655. // console.log(JSON.stringify(res), '微信支付信息')
  656. // this.isCheckPay(res.code, 'wxpay', JSON.stringify(res.data));
  657. // });
  658. // // #endif
  659. // // #ifdef MP-WEIXIN
  660. // let data = {
  661. // ordersId: this.ordersId,
  662. // type: 3
  663. // }
  664. // let that = this
  665. // that.$Request.postT("/app/wxPay/payOrders", data).then(res => {
  666. // if (res.code == 0) {
  667. // uni.requestPayment({
  668. // provider: 'wxpay',
  669. // timeStamp: res.data.timestamp,
  670. // nonceStr: res.data.noncestr,
  671. // package: res.data.package,
  672. // signType: res.data.signType,
  673. // paySign: res.data.sign,
  674. // success: function(res) {
  675. // console.log(res)
  676. // uni.hideLoading();
  677. // uni.showToast({
  678. // title: '支付成功',
  679. // icon: 'none'
  680. // });
  681. // setTimeout(function() {
  682. // uni.switchTab({
  683. // url: '/pages/order/order'
  684. // })
  685. // }, 1000)
  686. // },
  687. // fail: function(err) {
  688. // console.log('fail:' + JSON.stringify(err));
  689. // uni.hideLoading();
  690. // that.$queue.showToast('支付失败');
  691. // }
  692. // });
  693. // } else {
  694. // uni.showToast({
  695. // title: res.msg,
  696. // icon: 'none'
  697. // })
  698. // }
  699. // });
  700. // // #endif
  701. // //微信公众号支付
  702. // // #ifdef H5
  703. // let ua = navigator.userAgent.toLowerCase();
  704. // if (ua.indexOf('micromessenger') !== -1) {
  705. // let data = {
  706. // ordersId: this.ordersId,
  707. // type: 2
  708. // }
  709. // let that = this
  710. // that.$Request.postT("/app/wxPay/payOrders", data).then(res => {
  711. // if (res.code == 0) {
  712. // this.callPay(res.data);
  713. // } else {
  714. // uni.showToast({
  715. // title: res.msg,
  716. // icon: 'none'
  717. // })
  718. // }
  719. // });
  720. // }
  721. // // #endif
  722. // } else if (this.openWay == 2) {
  723. // // APP支付宝支付
  724. // // #ifdef H5
  725. // let data = {
  726. // ordersId: this.ordersId,
  727. // type: 1
  728. // }
  729. // this.$Request.postT("/app/aliPay/payOrders", data).then(res => {
  730. // if (res.code == 0) {
  731. // const div = document.createElement('div')
  732. // div.innerHTML = res.data //此处form就是后台返回接收到的数据
  733. // document.body.appendChild(div)
  734. // document.forms[0].submit()
  735. // } else {
  736. // uni.showToast({
  737. // icon: 'none',
  738. // title: '支付失败!'
  739. // });
  740. // }
  741. // });
  742. // // #endif
  743. // // #ifdef APP
  744. // let data = {
  745. // ordersId: this.ordersId,
  746. // type: 2
  747. // }
  748. // this.$Request.postT("/app/aliPay/payOrders", data).then(res => {
  749. // console.log(JSON.stringify(res), '支付宝支付信息')
  750. // this.isCheckPay(res.code, 'alipay', res.data)
  751. // });
  752. // // #endif
  753. // } else if (this.openWay == 3) {
  754. // let data = {
  755. // ordersId: this.ordersId
  756. // }
  757. // let that = this
  758. // that.$Request.postT("/app/orders/payOrders", data).then(res => {
  759. // if (res.code == 0) {
  760. // uni.hideLoading();
  761. // uni.showToast({
  762. // title: '支付成功',
  763. // icon: 'none'
  764. // });
  765. // setTimeout(function() {
  766. // uni.switchTab({
  767. // url: '/pages/order/order'
  768. // })
  769. // }, 1000)
  770. // } else {
  771. // uni.showToast({
  772. // title: res.msg,
  773. // icon: 'none'
  774. // })
  775. // }
  776. // });
  777. // }
  778. // },
  779. // callPay: function(response) {
  780. // if (typeof WeixinJSBridge === "undefined") {
  781. // if (document.addEventListener) {
  782. // document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady(response), false);
  783. // } else if (document.attachEvent) {
  784. // document.attachEvent('WeixinJSBridgeReady', this.onBridgeReady(response));
  785. // document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReady(response));
  786. // }
  787. // } else {
  788. // this.onBridgeReady(response);
  789. // }
  790. // },
  791. // onBridgeReady: function(response) {
  792. // let that = this;
  793. // // if (!response.package) {
  794. // // return;
  795. // // }
  796. // console.log(response, 111111)
  797. // WeixinJSBridge.invoke(
  798. // 'getBrandWCPayRequest', {
  799. // "appId": response.appid, //公众号名称,由商户传入
  800. // "timeStamp": response.timestamp, //时间戳,自1970年以来的秒数
  801. // "nonceStr": response.noncestr, //随机串
  802. // "package": response.package,
  803. // "signType": response.signType, //微信签名方式:
  804. // "paySign": response.sign //微信签名
  805. // },
  806. // function(res) {
  807. // console.log(res, '/*-/*-/*-')
  808. // if (res.err_msg === "get_brand_wcpay_request:ok") {
  809. // // 使用以上方式判断前端返回,微信团队郑重提示:
  810. // //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  811. // uni.showLoading({
  812. // title: '支付成功'
  813. // });
  814. // setTimeout(function() {
  815. // uni.hideLoading();
  816. // uni.switchTab({
  817. // url: '/pages/order/order'
  818. // })
  819. // }, 1000);
  820. // } else {
  821. // uni.hideLoading();
  822. // }
  823. // WeixinJSBridge.log(response.err_msg);
  824. // }
  825. // );
  826. // },
  827. // isCheckPay(status, name, order) {
  828. // if (status == 0) {
  829. // this.setPayment(name, order);
  830. // } else {
  831. // uni.hideLoading();
  832. // uni.showToast({
  833. // title: '支付信息有误',
  834. // icon: 'none'
  835. // });
  836. // }
  837. // },
  838. // setPayment(name, order) {
  839. // console.log(name, '*-*-*', order)
  840. // uni.requestPayment({
  841. // provider: name,
  842. // orderInfo: order, //微信、支付宝订单数据
  843. // success: function(res) {
  844. // console.log(res)
  845. // uni.hideLoading();
  846. // uni.showLoading({
  847. // title: '支付成功'
  848. // });
  849. // setTimeout(function() {
  850. // uni.switchTab({
  851. // url: '/pages/order/order'
  852. // })
  853. // }, 1000);
  854. // },
  855. // fail: function(err) {
  856. // console.log(err)
  857. // uni.hideLoading();
  858. // },
  859. // complete() {
  860. // uni.hideLoading();
  861. // }
  862. // });
  863. // }
  864. // },
  865. // // 上拉加载
  866. // onReachBottom: function() {
  867. // this.page = this.page + 1;
  868. // this.getMyOrderList();
  869. // },
  870. // onPullDownRefresh: function() {
  871. // this.page = 1;
  872. // this.getMyOrderList();
  873. // }
  874. // }
  875. // </script>
  876. // <style lang="scss">
  877. // page {
  878. // background: #F5F5F5;
  879. // }
  880. // .qc_btn {
  881. // margin: 0 10rpx 10rpx;
  882. // width: 320rpx;
  883. // padding: 0 30rpx;
  884. // height: 90rpx;
  885. // border-radius: 50rpx;
  886. // text-align: center;
  887. // line-height: 90rpx;
  888. // background: #346EF6;
  889. // font-family: PingFang SC;
  890. // font-weight: 500;
  891. // font-size: 30rpx;
  892. // color: #FFFFFF;
  893. // }
  894. // .sx_btn {
  895. // margin: 0 10rpx 10rpx;
  896. // width: 320rpx;
  897. // padding: 0 30rpx;
  898. // height: 90rpx;
  899. // border-radius: 50rpx;
  900. // text-align: center;
  901. // line-height: 90rpx;
  902. // background: #346EF6;
  903. // font-family: PingFang SC;
  904. // font-weight: 500;
  905. // font-size: 30rpx;
  906. // color: #FFFFFF;
  907. // }
  908. // .addbox {
  909. // display: flex;
  910. // align-items: center;
  911. // justify-content: space-between;
  912. // margin: 0 10rpx 30rpx;
  913. // padding: 0 30rpx;
  914. // height: 110rpx;
  915. // border-radius: 16rpx;
  916. // }
  917. // .add_cont {
  918. // display: flex;
  919. // align-items: center;
  920. // }
  921. // .add_tit {
  922. // font-size: 30rpx;
  923. // font-family: PingFang SC;
  924. // font-weight: bold;
  925. // color: #333333;
  926. // margin-left: 10rpx;
  927. // }
  928. // .bg {
  929. // background: #F5F5F5;
  930. // }
  931. // /* 支付弹框 */
  932. // .popup_pay {
  933. // width: 100%;
  934. // }
  935. // .pay_btns {
  936. // width: 90%;
  937. // margin: 0 auto 40rpx;
  938. // text-align: center;
  939. // background: #3699FF;
  940. // height: 80rpx;
  941. // border-radius: 16rpx;
  942. // color: #ffffff;
  943. // line-height: 80rpx;
  944. // margin-top: 20rpx;
  945. // }
  946. // .itemDetail_btn {
  947. // width: 520rpx;
  948. // height: 98rpx;
  949. // background: #346EF6;
  950. // border-radius: 16rpx;
  951. // text-align: center;
  952. // line-height: 98rpx;
  953. // font-family: PingFang SC;
  954. // font-weight: bold;
  955. // font-size: 32rpx;
  956. // color: #FFFFFF;
  957. // margin-top: 30rpx;
  958. // }
  959. // .zx_view {
  960. // display: flex;
  961. // align-items: center;
  962. // width: 328rpx;
  963. // justify-content: center;
  964. // }
  965. // .zx_name {
  966. // font-family: PingFang SC;
  967. // font-weight: 500;
  968. // font-size: 26rpx;
  969. // color: #999999;
  970. // margin-left: 20rpx;
  971. // }
  972. // .rs_item {
  973. // width: fit-content;
  974. // padding: 20rpx 40rpx;
  975. // // height: 71rpx;
  976. // background: #FFFFFF;
  977. // border-radius: 24rpx;
  978. // border: 2px solid #CCCCCC;
  979. // font-family: PingFang SC;
  980. // font-weight: 500;
  981. // font-size: 24rpx;
  982. // color: #030303;
  983. // margin-top: 20rpx;
  984. // margin-right: 20rpx;
  985. // }
  986. // .rs_item_sel {
  987. // width: fit-content;
  988. // padding: 20rpx 40rpx;
  989. // // height: 71rpx;
  990. // background: #FFFFFF;
  991. // border-radius: 24rpx;
  992. // border: 2px solid #346EF6;
  993. // font-family: PingFang SC;
  994. // font-weight: 500;
  995. // font-size: 24rpx;
  996. // color: #346EF6;
  997. // margin-top: 20rpx;
  998. // margin-right: 20rpx;
  999. // }
  1000. // .bz_item {
  1001. // width: fit-content;
  1002. // padding: 20rpx 22rpx;
  1003. // // height: 71rpx;
  1004. // background: #FFFFFF;
  1005. // border-radius: 24rpx;
  1006. // border: 2px solid #CCCCCC;
  1007. // font-family: PingFang SC;
  1008. // font-weight: 500;
  1009. // font-size: 24rpx;
  1010. // color: #030303;
  1011. // margin-top: 20rpx;
  1012. // margin-right: 20rpx;
  1013. // }
  1014. // .bz_item_sel {
  1015. // width: fit-content;
  1016. // padding: 20rpx 22rpx;
  1017. // // height: 71rpx;
  1018. // background: #FFFFFF;
  1019. // border-radius: 24rpx;
  1020. // border: 2px solid #346EF6;
  1021. // font-family: PingFang SC;
  1022. // font-weight: 500;
  1023. // font-size: 24rpx;
  1024. // color: #346EF6;
  1025. // margin-top: 20rpx;
  1026. // margin-right: 20rpx;
  1027. // }
  1028. // .remkbtn {
  1029. // width: 100%;
  1030. // height: 98rpx;
  1031. // background: #346EF6;
  1032. // border-radius: 16rpx;
  1033. // font-size: 28rpx;
  1034. // font-family: PingFang SC;
  1035. // font-weight: bold;
  1036. // color: #FFFFFF;
  1037. // display: flex;
  1038. // align-items: center;
  1039. // justify-content: center;
  1040. // line-height: 98rpx;
  1041. // margin-top: 40rpx;
  1042. // }
  1043. // .box_money {
  1044. // font-family: PingFang SC;
  1045. // font-weight: 500;
  1046. // font-size: 28rpx;
  1047. // color: #030303;
  1048. // margin-bottom: 30rpx;
  1049. // margin-top: 10rpx;
  1050. // text {
  1051. // font-size: 40rpx;
  1052. // color: #FF2020;
  1053. // font-weight: bold;
  1054. // }
  1055. // }
  1056. // .box_item {
  1057. // padding: 0 20rpx;
  1058. // display: flex;
  1059. // align-items: center;
  1060. // width: 520rpx;
  1061. // height: 100rpx;
  1062. // background: #F7F7F7;
  1063. // border-radius: 16rpx;
  1064. // justify-content: space-between;
  1065. // }
  1066. // .add_tit {
  1067. // font-size: 30rpx;
  1068. // font-family: PingFang SC;
  1069. // font-weight: bold;
  1070. // color: #333333;
  1071. // margin-left: 10rpx;
  1072. // }
  1073. // .myOrder_itemView {
  1074. // width: 686rpx;
  1075. // // height: 549rpx;
  1076. // background: #FFFFFF;
  1077. // border-radius: 32rpx;
  1078. // margin: 0 auto;
  1079. // margin-top: 20rpx;
  1080. // padding-bottom: 40rpx;
  1081. // }
  1082. // .item_title {
  1083. // font-family: Source Han Sans CN;
  1084. // font-weight: 600;
  1085. // font-size: 32rpx;
  1086. // color: #242424;
  1087. // }
  1088. // .order_up {
  1089. // width: 6rpx;
  1090. // height: 24rpx;
  1091. // margin-left: 12rpx;
  1092. // }
  1093. // .add_name {
  1094. // font-family: PingFang SC;
  1095. // font-weight: 500;
  1096. // font-size: 28rpx;
  1097. // color: #101010;
  1098. // }
  1099. // .green {
  1100. // width: 16rpx;
  1101. // height: 16rpx;
  1102. // background: #1FC657;
  1103. // border-radius: 50%;
  1104. // margin-right: 20rpx;
  1105. // }
  1106. // .item_money {
  1107. // font-family: PingFang SC;
  1108. // font-weight: 500;
  1109. // font-size: 28rpx;
  1110. // color: #101010;
  1111. // text {
  1112. // font-size: 42rpx;
  1113. // color: #FF2020;
  1114. // font-weight: bold;
  1115. // }
  1116. // }
  1117. // .item_btn {
  1118. // width: 150rpx;
  1119. // height: 58rpx;
  1120. // background: #346EF6;
  1121. // border-radius: 30rpx;
  1122. // text-align: center;
  1123. // line-height: 58rpx;
  1124. // font-family: PingFang SC;
  1125. // font-weight: 500;
  1126. // font-size: 24rpx;
  1127. // color: #FFFFFF;
  1128. // }
  1129. // .orgin {
  1130. // width: 16rpx;
  1131. // height: 16rpx;
  1132. // background: #FBAC04;
  1133. // border-radius: 50%;
  1134. // margin-right: 20rpx;
  1135. // }
  1136. // </style>