search-order.vue 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073
  1. <template>
  2. <view class="search-container">
  3. <!-- <or-search :theme="themeClass" @getSearchText="getSearchText"></or-search> -->
  4. <view class="search-main">
  5. <view class="search">
  6. <view class="search-input">
  7. <text class="iconfont icon-sousuo"></text>
  8. <input maxlength="20" focus type="text" value="" confirm-type="search" @focus="onFocus" @input="onShowClose" @confirm="subMitSearch()" placeholder="请输入商品关键词" v-model.trim="searchInputVal"/>
  9. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
  10. </view>
  11. <view class="search-btn" @click="subMitSearch()">搜索</view>
  12. </view>
  13. </view>
  14. <view class="search-container-history" v-if="!isShowWrapper">
  15. <view :class="'s-' + themeClass" v-if="serachRecordList.length>0">
  16. <view class="header">
  17. 搜索历史<text class="iconfont icon-shanchu" @click="confirmDetele"></text>
  18. </view>
  19. <view class="list">
  20. <view v-for="(item,index) in serachRecordList" :key="index" @click="keywordsClick(item)">{{item}}</view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class=" order-container" v-if="isShowWrapper" :style="{'overflow' : 'auto','height': (showSkeleton? windowHeight + 'px' : 'auto')}">
  25. <scroll-view class="tui-skeleton" :style="{'height':scrollHeight+'px'}" @scrolltolower="scrolltolower" scroll-y >
  26. <view :class="{'tui-order-list':scrollTop >= 0}" class="tui-skeleton clearfix">
  27. <!-- 空白页 -->
  28. <empty v-if="isShowEmpty" :navbarHeight="navbarHeight"></empty>
  29. <!-- 列表 -->
  30. <view v-else class="tui-order-content">
  31. <view class="tui-order-item" v-for="(order,orderIndex) in orderList" :key="orderIndex" @click.stop="detail(order.orderId)">
  32. <view class="order-title">
  33. <view class="order-title-t">
  34. <text class="bage-text tui-skeleton-fillet"><text class="text">订单编号:</text>{{order.orderNo}}</text>
  35. </view>
  36. <view class="order-title-b">
  37. <view class="order-title-btxt tui-skeleton-fillet"><text class="text">下单时间:</text>{{order.orderTime}}</view>
  38. <view class="order-title-tip tui-skeleton-fillet">{{ StateExpFormat(order.status) }}</view>
  39. </view>
  40. </view>
  41. <block v-for="(shop,index) in order.shopOrderList" :key="index">
  42. <view class="goods-title">
  43. <view class="title-logo"><image :src="shop.shopLogo" mode=""></image></view>
  44. <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
  45. </view>
  46. <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex">
  47. <view class="goods-pros-t">
  48. <view class="pros-img tui-skeleton-fillet">
  49. <image :src="pros.productImage" alt="" />
  50. <text class="tips" v-if="pros.productType ==2 || pros.productType ==1">赠品</text>
  51. </view>
  52. <view class="pros-product">
  53. <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
  54. <view class="productspec tui-skeleton-fillet" v-if="pros.productCategory!=2">规格:{{pros.productUnit}}</view>
  55. <view class="productprice">
  56. <view class="price " v-if="pros.productType ==2 || pros.productType ==1">
  57. <text>¥0.00</text>
  58. </view>
  59. <view v-else class="price tui-skeleton-fillet" :class="PromotionsFormat(pros.productPromotion) ? 'disabled' : ''">
  60. <text>¥{{pros.price | NumFormat}}</text>
  61. </view>
  62. <view class="count tui-skeleton-fillet">
  63. <text class="small">x</text>{{pros.num}}
  64. </view>
  65. </view>
  66. <view class="floor-item-act" v-if="pros.productPromotion!=null">
  67. <view v-if="PromotionsFormat(pros.productPromotion)" class="floor-tags">
  68. {{pros.productPromotion.name}}
  69. <text v-if ="pros.productPromotion!=null && pros.productPromotion.type !=3">
  70. :¥{{ pros.productPromotion == null ? '0.00' : pros.productPromotion.touchPrice | NumFormat}}
  71. </text>
  72. </view>
  73. <view v-else-if="pros.productPromotion.type !=3" class="floor-tags">{{pros.productPromotion.name}}</view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </block>
  79. <view class="order-footer">
  80. <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{ order.discountFee | NumFormat }}</view>
  81. <view class="order-footer-bot">
  82. <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
  83. <view class="money tui-skeleton-fillet">待付总额:¥{{ order.pendingPayments | NumFormat}}</view>
  84. </view>
  85. </view>
  86. <!-- 底部button -->
  87. <order-button v-if="order.userId == userId"
  88. ref="orderButton"
  89. :status="order.status"
  90. :order="order"
  91. @buttonConfirm="handButtonConfirm">
  92. </order-button>
  93. </view>
  94. <!--加载loadding-->
  95. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  96. <tui-nomore :visible="!pullUpOn" :backgroundColor="'#F7F7F7'" :text='nomoreText'></tui-nomore>
  97. <!--加载loadding-->
  98. </view>
  99. </view>
  100. </scroll-view>
  101. </view>
  102. <!-- 操作弹窗 -->
  103. <tui-modal :show="modal" @click="handleClick" @cancel="hideMobel(1)" :content="contentModalText" color="#333" :size="32" shape="circle" :maskClosable="false"></tui-modal>
  104. <!-- 再次购买订单商品全部下架弹窗 -->
  105. <tui-modal :show="modal2" @click="handleClick2" @cancel="hideMobel(2)" shape="circle" content="订单内商品已全部下架,不能购买!" :button="button"></tui-modal>
  106. <!-- 再次购买部分商品失效弹窗 -->
  107. <tui-modal :show="modal3" @cancel="hideMobel(3)" :custom="true">
  108. <view class="tui-modal-custom">
  109. <view class="tui-modal-custom-text">
  110. <view class="title">以下商品已失效,不能进行购买;是否先将其他商品加入购物车?</view>
  111. <scroll-view scroll-y class="tui-modal-custom-list">
  112. <view class="custom-list" v-for="(invalid,index) in invalidList" :key="index">
  113. <view class="custom-list-image"><image :src="invalid.productImage" mode=""></image></view>
  114. <view class="custom-list-name">{{ invalid.name }}</view>
  115. </view>
  116. </scroll-view>
  117. </view>
  118. <view class="tui-modal-button">
  119. <button class="modal-button cancel" @click="hideMobel(3)">我再想想</button>
  120. <button class="modal-button confirm" @click="handleClick3">加入购物车</button>
  121. </view>
  122. </view>
  123. </tui-modal> <!-- 透明模态层 -->
  124. <modal-layer v-if='isModalLayer'></modal-layer>
  125. </view>
  126. </template>
  127. <script>
  128. import orSearch from '@/components/uni-search/or-search.vue'
  129. import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
  130. import tuiNomore from "@/components/tui-components/nomore/nomore"
  131. import orderButton from '@/components/cm-module/orderDetails/orderListButton' //按钮
  132. import modalLayer from "@/components/modal-layer"
  133. import empty from "@/components/empty";
  134. import authorize from '@/common/config/authorize.js'
  135. export default {
  136. components: {
  137. orSearch,
  138. tuiLoadmore,
  139. tuiNomore,
  140. orderButton,
  141. empty,
  142. },
  143. data() {
  144. return {
  145. themeClass: 'block',
  146. searchInputVal:'',
  147. isShowClose:false, //是否显示清空输入框图标
  148. isSearchHistory:false, //是都显示搜索历史
  149. serachRecordList:[],
  150. isShowWrapper:false,
  151. isShowEmpty:false,
  152. windowHeight: '',
  153. showSkeleton: true,
  154. userId:0,
  155. orderList: [],
  156. btnoRderID: 0, //点击按钮传入的的订单ID
  157. pageNum: 1, //页数
  158. pageSize: 10, //条数
  159. scrollTop: 0,
  160. deteleType:'',
  161. skeletonShow: true,
  162. isModalLayer: false,
  163. loadding: false,
  164. pullUpOn: true,
  165. hasNextPage: false,
  166. pullFlag: true,
  167. navbarHeight:'',
  168. nomoreText: '上拉显示更多',
  169. scrollHeight:'',
  170. modal:false,
  171. modal2:false,
  172. modal3:false,
  173. OperationType:'',
  174. contentModalText:'',
  175. button: [
  176. {
  177. text: '确定',
  178. type:'danger'
  179. }
  180. ],
  181. invalidList:[]
  182. }
  183. },
  184. onLoad() {
  185. this.$api.getStorage().then((resolve) =>{
  186. this.userId = resolve.userId
  187. this.InitGetSerachRecord(this.userId)
  188. })
  189. },
  190. filters:{
  191. NumFormat(value) {//处理金额
  192. return Number(value).toFixed(2);
  193. }
  194. },
  195. methods:{
  196. subMitSearch() {
  197. if (this.searchInputVal == '') {
  198. this.$util.msg('请输入商品关键词',2000);
  199. }else{
  200. this.commodityList =[]
  201. this.GetOrderDatainit()
  202. }
  203. },
  204. InitGetSerachRecord(){
  205. this.OrderService.SearchOrderHistory({userId:this.userId}).then(response =>{
  206. this.serachRecordList = response.data
  207. if(this.serachRecordList.length>0){
  208. this.isSearchHistory = true
  209. }else{
  210. this.isSearchHistory = false
  211. }
  212. }).catch(error =>{
  213. this.$util.msg(error.msg,2000)
  214. })
  215. },
  216. onShowClose () { //输入框失去焦点时触发
  217. this.inputEmpty(this.searchInputVal)
  218. },
  219. onFocus () { //输入框获取焦点时触发
  220. this.inputEmpty(this.searchInputVal)
  221. this.InitGetSerachRecord()
  222. },
  223. delInputText () { //清除输入框内容
  224. this.searchInputVal = ''
  225. this.isShowClose = false
  226. this.isShowWrapper = false
  227. this.inputEmpty(this.searchInputVal)
  228. this.InitGetSerachRecord()
  229. },
  230. keywordsClick (item) { //关键词搜索与历史搜索
  231. this.searchInputVal = item;
  232. this.isShowClose = true;
  233. this.subMitSearch();
  234. },
  235. confirmDetele () {//清空历史记录
  236. this.modal = true;
  237. this.contentModalText = '确定删除历史记录?';
  238. this.OperationType = 'history';
  239. },
  240. inputEmpty(val){
  241. this.isShowWrapper = false
  242. if(val != ''){
  243. this.isShowClose = true
  244. }else{
  245. this.isShowClose = false
  246. }
  247. },
  248. GetOrderDatainit(index,source){
  249. /**
  250. * @订单初始化加载 仅加载第一页码
  251. * @param:searchWord(搜索关键词)
  252. * @param:userId(用户ID)
  253. * @param:pageNum(页码数)
  254. * @param:pageSize(每页条数)
  255. * @param:userId(全局变量组织ID)
  256. */
  257. this.OrderService.QueryOrderDealerList(
  258. {
  259. orderState:0,
  260. orderType:0,
  261. searchWord:this.searchInputVal,
  262. userId:this.userId,
  263. pageNum:1,
  264. pageSize:this.pageSize,
  265. }
  266. )
  267. .then(response =>{
  268. this.isShowWrapper = true
  269. this.showSkeleton = true
  270. const _responseData = response.data.list;
  271. if(_responseData && _responseData.length > 0){
  272. let filrerData = _responseData.filter(item=>{
  273. //添加不同状态下订单的表现形式
  274. item = Object.assign(item, this.StateExpFormat(item.state));
  275. return item;
  276. });
  277. this.orderList =[];
  278. filrerData.forEach(item=>{
  279. this.orderList.push(item);
  280. })
  281. this.hasNextPage = response.data.hasNextPage;
  282. if(this.hasNextPage){
  283. this.pullUpOn = false
  284. this.nomoreText = '上拉显示更多'
  285. }else{
  286. if(this.orderList.length < 2){
  287. this.pullUpOn = true
  288. }else{
  289. this.pullUpOn = false
  290. this.nomoreText = '已至底部'
  291. }
  292. }
  293. this.isShowEmpty = false
  294. }else{
  295. this.isShowEmpty = true
  296. }
  297. }).catch(error =>{
  298. this.$util.msg(error.msg,2000)
  299. })
  300. },
  301. getOnReachBottomData(index){//上拉加载
  302. this.pageNum+=1
  303. this.OrderService.QueryOrderDealerList(
  304. {
  305. orderState:0,
  306. orderType:0,
  307. searchWord:this.searchInputVal,
  308. userId:this.userId,
  309. pageNum:this.pageNum,
  310. pageSize:this.pageSize,
  311. }
  312. )
  313. .then(response =>{
  314. let resData = response.data.list
  315. this.hasNextPage = response.data.hasNextPage;
  316. this.orderList = this.orderList.concat(resData)
  317. this.pullFlag = false;// 防上拉暴滑
  318. setTimeout(()=>{this.pullFlag = true;},500)
  319. if(this.hasNextPage){
  320. this.pullUpOn = false
  321. this.nomoreText = '上拉显示更多'
  322. }else{
  323. this.loadding = false
  324. this.pullUpOn = false
  325. this.nomoreText = '已至底部'
  326. }
  327. }).catch(error =>{
  328. this.$util.msg(error.msg,2000)
  329. })
  330. },
  331. scrolltolower() {
  332. if(this.hasNextPage){
  333. this.loadding = true
  334. this.pullUpOn = true
  335. this.showSkeleton = false
  336. this.getOnReachBottomData();
  337. }
  338. },
  339. detail(id) {//订单详情跳转
  340. this.isModalLayer = true;
  341. this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&orderId=${id}`)
  342. },
  343. handButtonConfirm(data) {//获取点击
  344. this.hanldOrder = data
  345. this.btnoRderID = data.orderId
  346. this.OperationType = data.type
  347. this.handShowAlert(data)
  348. },
  349. handShowAlert(data) {//执行
  350. switch(data.type){
  351. case 'cancel':
  352. this.modal = true;
  353. this.contentModalText = '确认取消该订单吗?';
  354. break;
  355. case 'delete':
  356. this.modal = true;
  357. this.contentModalText = '确认删除该订单吗?';
  358. break;
  359. case 'confirm':
  360. this.modal = true;
  361. this.contentModalText = '是否确认收货?'
  362. break;
  363. case 'query':
  364. this.isModalLayer = true;
  365. this.$api.navigateTo('/pages/user/order/order-logistics?orderId='+data.orderId)
  366. break;
  367. case 'again':
  368. this.handBuyAgainInfo()
  369. break;
  370. case 'pay':
  371. this.MiniWxPayFor(data.order)
  372. break;
  373. }
  374. },
  375. handleClick(e) {//用户操作订单
  376. let index = e.index;
  377. if(index == 1){
  378. switch(this.OperationType){
  379. case 'delete':
  380. this.handOrderDetele(this.btnoRderID);
  381. break
  382. case 'cancel':
  383. this.handCenceConfirm(this.btnoRderID)
  384. break
  385. case 'confirm':
  386. this.handOrderConfirm(this.btnoRderID);
  387. break
  388. }
  389. }
  390. this.modal = false;
  391. },
  392. handleClick2(){
  393. this.modal2 = false;
  394. },
  395. handleClick3(){
  396. this.handShoppingAgainCart()
  397. this.modal3 = false
  398. },
  399. hideMobel(index) {
  400. switch(index){
  401. case 1:this.modal = false;break;
  402. case 2:this.modal2 = false;break;
  403. case 3:this.modal3 = false;break;
  404. }
  405. },
  406. handBuyAgainInfo(){//再次购买初始化查询订单商品信息
  407. this.OrderService.GetOrderBuyAgain(
  408. {
  409. orderId:this.btnoRderID,
  410. }
  411. )
  412. .then(response =>{
  413. this.handShoppingAgainCart()
  414. })
  415. .catch(error =>{
  416. if(error.data && error.data.length > 0){
  417. this.modal3 = true
  418. this.invalidList = error.data
  419. }else{
  420. this.modal2 = true
  421. }
  422. })
  423. },
  424. handShoppingAgainCart(){ //一键加入购物车
  425. this.ProductService.ShoppingAgainCart(
  426. {
  427. orderId:this.btnoRderID,
  428. }
  429. )
  430. .then(response => {
  431. this.ProductService.QueryShoppingQuantity({userId:this.userId}).then(response => {
  432. this.$api.switchTabTo('/pages/tabBar/cart/index');
  433. }).catch(error =>{
  434. console.log('查询购物车数量错误信息',error)
  435. })
  436. })
  437. .catch(error =>{
  438. this.$util.msg(error.msg,2000);
  439. })
  440. },
  441. handOrderConfirm (id){//确认收货
  442. this.OrderService.ConfirmReceipt({orderId:id}).then(response =>{
  443. this.$util.msg(response.msg,2000,true,'success');
  444. setTimeout(() => {
  445. this.GetOrderDatainit(this.currentTab)
  446. },2000)
  447. }).catch(error =>{
  448. this.$util.msg(error.msg,2000)
  449. })
  450. },
  451. handOrderDetele(id){//删除订单
  452. this.OrderService.DeleteOrder({orderId:id}).then(response =>{
  453. this.$util.msg(response.msg,2000,true,'success');
  454. setTimeout(() => {
  455. this.GetOrderDatainit(this.currentTab)
  456. },2000)
  457. }).catch(error =>{
  458. this.$util.msg(error.msg,2000)
  459. })
  460. },
  461. handCenceConfirm(id){//取消订单
  462. this.OrderService.CancelOrder({orderId:id}).then(response =>{
  463. this.$util.msg(response.msg,2000,true,'success');
  464. setTimeout(() => {
  465. this.GetOrderDatainit(this.currentTab)
  466. },2000)
  467. }).catch(error =>{
  468. this.$util.msg(error.msg,2000)
  469. })
  470. },
  471. async MiniWxPayFor(data){
  472. const wechatCode = await authorize.getCode('weixin')
  473. this.PayService.WeChatMiniWxPay(
  474. {
  475. payAmount:data.payableAmount*100,
  476. payWay:"WEIXIN",
  477. code:wechatCode,
  478. orderId:data.orderId
  479. }
  480. )
  481. .then(response =>{
  482. let PayInfo = JSON.parse(response.data.data.payInfo);
  483. this.WxRequestPayment(PayInfo)
  484. })
  485. .catch(error =>{
  486. this.$util.msg(error.msg,2000)
  487. })
  488. },
  489. WxRequestPayment(data){
  490. let self = this
  491. wx.requestPayment({
  492. 'timeStamp': data.timeStamp,
  493. 'nonceStr': data.nonceStr,
  494. 'package': data.package,
  495. 'signType': data.signType,
  496. 'paySign': data.paySign,
  497. 'success':function(res){
  498. wx.reLaunch({url: '/pages/tabBar/index/index'});
  499. },
  500. 'fail':function(res){
  501. console.log(res)
  502. self.$api.redirectTo(`/pages/user/order/success?data=${JSON.stringify({data:self.hanldOrder.order})}`)
  503. },
  504. 'complete':function(res){
  505. }
  506. })
  507. },
  508. handlSearchPath(){
  509. this.$api.navigateTo('/pages/user/order/search-order')
  510. },
  511. setScrollHeight() {
  512. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  513. this.windowHeight = windowHeight - 1;
  514. this.scrollHeight = windowHeight - 1;
  515. },
  516. PromotionsFormat(promo){//促销活动类型数据处理
  517. if(promo!=null){
  518. if(promo.type == 1 && promo.mode == 1){
  519. return true
  520. }else{
  521. return false
  522. }
  523. }
  524. return false
  525. },
  526. StateExpFormat(state){ //订单状态文字和颜色
  527. var HtmlStateText = '',
  528. stateTextObject={
  529. 0:'待确认',
  530. 4:'交易完成',
  531. 5:'订单完成',
  532. 6:'已关闭',
  533. 7:'交易全退',
  534. 77:'交易全退',
  535. 11:'待付款待发货',
  536. 12:'待付款部分发货',
  537. 13:'待付款已发货',
  538. 21:'部分付款待发货',
  539. 22:'部分付款部分发货',
  540. 23:'部分付款已发货',
  541. 31:'已付款待发货',
  542. 32:'已付款部分发货',
  543. 33:'已付款已发货',
  544. 111:'待付款待发货'
  545. };
  546. Object.keys(stateTextObject).forEach(function(key){
  547. if(key == state){
  548. HtmlStateText = stateTextObject[key]
  549. }
  550. });
  551. return HtmlStateText;
  552. }
  553. },
  554. onPageScroll(e) {
  555. this.scrollTop = e.scrollTop;
  556. },
  557. onShow() {
  558. this.setScrollHeight();
  559. }
  560. }
  561. </script>
  562. <style lang="scss">
  563. @import "@/uni.scss";
  564. page{
  565. background-color: #F7F7F7 !important;
  566. }
  567. .search{
  568. width: 702rpx;
  569. height: 70rpx;
  570. padding: 12rpx 24rpx;
  571. border-bottom: 1px solid #F0F0F0;
  572. position: fixed;
  573. top: 0;
  574. left: 0;
  575. background: #FFFFFF;
  576. z-index: 1001;
  577. .search-input{
  578. width: 448rpx;
  579. height: 70rpx;
  580. padding: 0 68rpx;
  581. line-height: 70rpx;
  582. border-radius: 40rpx;
  583. position: relative;
  584. background: #F0F0F0;
  585. float: left;
  586. .icon-sousuo{
  587. font-size: 36rpx;
  588. color: #8A8A8A;
  589. position: absolute;
  590. left: 24rpx;
  591. z-index: 10;
  592. }
  593. .icon-shanchu1{
  594. font-size: 36rpx;
  595. color: #8A8A8A;
  596. position: absolute;
  597. right: 24rpx;
  598. top: 0;
  599. padding: 0 10rpx;
  600. z-index: 10;
  601. }
  602. input{
  603. width: 448rpx;
  604. height: 70rpx;
  605. background-color: #F0F0F0;
  606. font-size: 26rpx;
  607. }
  608. }
  609. .search-btn{
  610. width: 118rpx;
  611. height: 70rpx;
  612. line-height: 70rpx;
  613. color: $color-system;
  614. font-size: 30rpx;
  615. text-align: center;
  616. float: left;
  617. }
  618. .voice-icon{
  619. width: 36rpx;
  620. height: 36rpx;
  621. padding: 16rpx 20rpx 16rpx 0;
  622. position: absolute;
  623. left: 16rpx;
  624. top: 4rpx;
  625. z-index: 10;
  626. }
  627. }
  628. .search-container{
  629. padding-top: 106rpx;
  630. }
  631. .s-block{
  632. background: #FFFFFF;
  633. .header{
  634. font-size: 32rpx;
  635. padding:40rpx 24rpx 22rpx 24rpx;
  636. line-height: 42rpx;
  637. font-size: 30rpx;
  638. font-weight: bold;
  639. position: relative;
  640. .icon-shanchu{
  641. font-size: 36rpx;
  642. color: #333333;
  643. float: right;
  644. padding: 0 10rpx;
  645. z-index: 10;
  646. font-weight: normal;
  647. }
  648. }
  649. .list{
  650. display: flex;
  651. flex-wrap: wrap;
  652. padding-bottom: 40rpx;
  653. view{
  654. color: #8A8A8A;
  655. font-size: 24rpx;
  656. box-sizing: border-box;
  657. text-align: center;
  658. height: 48rpx;
  659. line-height: 48rpx;
  660. border-radius: 24rpx;
  661. margin:12rpx;
  662. padding:.0 30rpx;
  663. overflow: hidden;
  664. white-space: nowrap;
  665. text-overflow: ellipsis;
  666. background-color: #F3F3F3;
  667. }
  668. }
  669. }
  670. .s-circle{
  671. margin-top: 30rpx;
  672. .header{
  673. font-size: 32rpx;
  674. padding: 30rpx;
  675. border-bottom: 2rpx solid #F9F9F9;
  676. position: relative;
  677. image{
  678. width: 36rpx;
  679. height: 36rpx;
  680. padding: 10rpx;
  681. position: absolute;
  682. right: 40rpx;
  683. top: 24rpx;
  684. }
  685. }
  686. .list{
  687. display: flex;
  688. flex-wrap: wrap;
  689. padding: 0 30rpx 20rpx;
  690. view{
  691. padding: 8rpx 30rpx;
  692. margin: 20rpx 30rpx 0 0;
  693. font-size: 28rpx;
  694. color: #8A8A8A;
  695. background-color: #F7F7F7;
  696. box-sizing: border-box;
  697. text-align: center;
  698. border-radius: 20rpx;
  699. }
  700. }
  701. }
  702. .wanted-block{
  703. margin-top: 30rpx;
  704. .header{
  705. font-size: 32rpx;
  706. padding: 30rpx;
  707. }
  708. .list{
  709. display: flex;
  710. flex-wrap: wrap;
  711. view{
  712. width: 50%;
  713. color: #8A8A8A;
  714. font-size: 28rpx;
  715. box-sizing: border-box;
  716. text-align: center;
  717. padding: 20rpx 0;
  718. border-top: 2rpx solid #FFF;
  719. border-left: 2rpx solid #FFF;
  720. background-color: #F7F7F7;
  721. overflow: hidden;
  722. white-space: nowrap;
  723. text-overflow: ellipsis;
  724. }
  725. }
  726. }
  727. .wanted-circle{
  728. margin-top: 30rpx;
  729. .header{
  730. font-size: 32rpx;
  731. padding: 30rpx;
  732. }
  733. .list{
  734. display: flex;
  735. flex-wrap: wrap;
  736. padding: 0 30rpx 20rpx;
  737. view{
  738. padding: 8rpx 30rpx;
  739. margin: 20rpx 30rpx 0 0;
  740. font-size: 28rpx;
  741. color: #8A8A8A;
  742. background-color: #F7F7F7;
  743. box-sizing: border-box;
  744. text-align: center;
  745. border-radius: 20rpx;
  746. }
  747. }
  748. }
  749. .order-container {
  750. scroll-view {
  751. height: 100%;
  752. overflow: scroll;
  753. }
  754. }
  755. .container {
  756. padding-bottom: env(safe-area-inset-bottom);
  757. height: auto;
  758. position: relative;
  759. }
  760. .tui-order-content{
  761. width: 100%;
  762. height: auto;
  763. }
  764. .tui-order-list {
  765. width: 100%;
  766. position: relative;
  767. }
  768. .tui-order-item {
  769. display: flex;
  770. flex-direction: column;
  771. width: 702rpx;
  772. padding:20rpx 24rpx 0 24rpx;
  773. background: #fff;
  774. border-bottom: 20rpx solid #F7F7F7;
  775. }
  776. .order-title{
  777. width: 100%;
  778. height: auto;
  779. padding-bottom: 20rpx;
  780. .order-title-t{
  781. width: 100%;
  782. height: 48rpx;
  783. float: left;
  784. line-height: 48rpx;
  785. position: relative;
  786. .bage-text{
  787. display: inline-block;
  788. font-size: $font-size-28;
  789. line-height: 48rpx;
  790. text-align: left;
  791. color: $color-system;
  792. .text{
  793. color: #999999;
  794. }
  795. }
  796. }
  797. .order-title-b{
  798. width: 100%;
  799. height: 48rpx;
  800. float: left;
  801. margin-top: 8rpx;
  802. .order-title-btxt{
  803. float: left;
  804. font-size: $font-size-28;
  805. line-height: 48rpx;
  806. color: #999999;
  807. text-align: left;
  808. .text{
  809. color: #999999;
  810. }
  811. }
  812. .order-title-tip{
  813. float: right;
  814. font-size: $font-size-28;
  815. line-height: 48rpx;
  816. text-align: right;
  817. color: #FF2A2A;
  818. }
  819. }
  820. }
  821. .goods-title{
  822. width: 100%;
  823. height: 56rpx;
  824. float: left;
  825. margin-top:10rpx;
  826. .title-logo{
  827. width: 56rpx;
  828. height: 56rpx;
  829. float: left;
  830. border-radius: 8rpx;
  831. border: 1px solid #e1e1e1;
  832. margin-right: 8rpx;
  833. image{
  834. border-radius: 8rpx;
  835. width: 56rpx;
  836. height: 56rpx;
  837. }
  838. }
  839. .title-text{
  840. width: 400rpx;
  841. overflow: hidden;
  842. text-overflow:ellipsis;
  843. white-space: nowrap;
  844. float: left;
  845. font-size: $font-size-28;
  846. color: $text-color;
  847. text-align: left;
  848. line-height: 56rpx;
  849. font-weight: bold;
  850. }
  851. }
  852. .goods-item{
  853. width: 100%;
  854. height: auto;
  855. }
  856. .goods-pros-t{
  857. display: flex;
  858. align-items: center;
  859. width: 100%;
  860. height: 217rpx;
  861. padding:24rpx 0;
  862. .pros-img{
  863. float: left;
  864. width: 210rpx;
  865. height: 100%;
  866. border-radius: 10rpx;
  867. margin:0 26rpx 0 0;
  868. position: relative;
  869. .tips{
  870. display: inline-block;
  871. width: 80rpx;
  872. height: 40rpx;
  873. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  874. line-height: 40rpx;
  875. text-align: center;
  876. font-size: $font-size-24;
  877. color: #FFFFFF;
  878. border-radius:10rpx 0 10rpx 0 ;
  879. position: absolute;
  880. top:0;
  881. left: 0;
  882. }
  883. image{
  884. width: 210rpx;
  885. height: 210rpx;
  886. border-radius: 10rpx;
  887. border:1px solid #f3f3f3;
  888. }
  889. }
  890. }
  891. .pros-product{
  892. width: 468rpx;
  893. height: 100%;
  894. line-height: 36rpx;
  895. font-size: $font-size-26;
  896. position: relative;
  897. .producttitle{
  898. width: 100%;
  899. display: inline-block;
  900. height: auto;
  901. text-overflow:ellipsis;
  902. display: -webkit-box;
  903. word-break: break-all;
  904. -webkit-box-orient: vertical;
  905. -webkit-line-clamp: 2;
  906. overflow: hidden;
  907. margin-bottom: 8rpx;
  908. }
  909. .productspec{
  910. height: 36rpx;
  911. color: #999999;
  912. }
  913. .productprice{
  914. height: 48rpx;
  915. position: absolute;
  916. width: 100%;
  917. bottom: 0;
  918. .price{
  919. line-height: 48rpx;
  920. font-size: $font-size-28;
  921. width: 48%;
  922. color: #FF2A2A;
  923. float: left;
  924. font-weight: bold;
  925. &.disabled{
  926. color: #999999;
  927. text-decoration: line-through;
  928. }
  929. }
  930. .count{
  931. height: 100%;
  932. float: right;
  933. position: relative;
  934. .small{
  935. color: #666666;
  936. }
  937. }
  938. }
  939. .floor-item-act{
  940. width: 100%;
  941. height: 56rpx;
  942. text-align: center;
  943. box-sizing: border-box;
  944. float: left;
  945. padding:0 0 10rpx 0;
  946. .floor-tags{
  947. height: 28rpx;
  948. border-radius: 6rpx;
  949. background-color: #FFFFFF;
  950. line-height: 28rpx;
  951. color: #ff2a2a;
  952. text-align: center;
  953. display: inline-block;
  954. padding:0 5rpx;
  955. font-size: $font-size-20;
  956. border: 1px solid #ff2a2a;
  957. float: left;
  958. }
  959. }
  960. }
  961. .order-footer{
  962. width: 100%;
  963. height: 78rpx;
  964. float: left;
  965. .order-footer-top{
  966. width: 100%;
  967. height: 34rpx;
  968. line-height: 34rpx;
  969. font-size: $font-size-24;
  970. color: #999999;
  971. text-align: right;
  972. }
  973. .order-footer-bot{
  974. width: 100%;
  975. float: left;
  976. height: 48rpx;
  977. line-height: 48rpx;
  978. font-size: $font-size-28;
  979. font-weight: bold;
  980. color: $text-color;
  981. .count{
  982. width: 50%;
  983. float: left;
  984. text-align: left;
  985. }
  986. .money{
  987. width: 50%;
  988. float: right;
  989. text-align: right;
  990. }
  991. }
  992. }
  993. .tui-modal-custom-text{
  994. min-height: 300rpx;
  995. margin-bottom: 30rpx;
  996. .title{
  997. width: 100%;
  998. height: auto;
  999. font-size: $font-size-30;
  1000. text-align: justify;
  1001. color: #333333;
  1002. line-height: 40rpx;
  1003. margin-bottom: 30rpx;
  1004. }
  1005. .tui-modal-custom-list{
  1006. width: 100%;
  1007. height: 350rpx;
  1008. overflow: hidden;
  1009. .custom-list{
  1010. width: 100%;
  1011. height: 117rpx;
  1012. box-sizing: border-box;
  1013. float: left;
  1014. padding: 15rpx 0;
  1015. .custom-list-image{
  1016. width: 86rpx;
  1017. height: 86rpx;
  1018. float: left;
  1019. border-radius: 6rpx;
  1020. box-sizing: border-box;
  1021. border: 1px solid #e1e1e1;
  1022. image{
  1023. width: 84rpx;
  1024. height: 84rpx;
  1025. border-radius: 6rpx;
  1026. display: block;
  1027. }
  1028. }
  1029. .custom-list-name{
  1030. width: 400rpx;
  1031. height: 86rpx;
  1032. float: right;
  1033. line-height: 43rpx;
  1034. font-size: $font-size-26;
  1035. color: #666666;
  1036. text-overflow: ellipsis;
  1037. overflow: hidden;
  1038. display: -webkit-box;
  1039. -webkit-line-clamp: 2;
  1040. line-clamp: 2;
  1041. -webkit-box-orient: vertical;
  1042. }
  1043. }
  1044. }
  1045. }
  1046. .tui-modal-button{
  1047. width: 100%;
  1048. height: 72rpx;
  1049. display: flex;
  1050. .modal-button{
  1051. width: 200rpx;
  1052. height: 72rpx;
  1053. line-height: 72rpx;
  1054. border-radius: 36rpx;
  1055. box-sizing: border-box;
  1056. &.cancel{
  1057. border: 1px solid #b2b2b2;
  1058. background: #FFFFFF;
  1059. color: #333333;
  1060. }
  1061. &.confirm{
  1062. background: $btn-confirm;
  1063. color: #FFFFFF;
  1064. }
  1065. }
  1066. }
  1067. </style>