order.vue 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593
  1. <template>
  2. <app-layout>
  3. <scroll-view @scrolltolower="getMore" scroll-y :style="{'height':`${windowHeight}px`}">
  4. <!-- 订单切换 -->
  5. <view v-if="!search" class="tab-info">
  6. <view class='main-center tab'>
  7. <view @click="tabStatus(1)" :class="['tab-item','tab-left',`${status==1?'active': ''}`]">普通订单</view>
  8. <view @click="tabStatus(2)" :class="['tab-item','tab-right',`${status==2?'active': ''}`]">维权订单</view>
  9. </view>
  10. </view>
  11. <!-- 搜索界面 -->
  12. <view v-if="search" class="search-item main-between cross-center">
  13. <view class="search-input">
  14. <image class="search-icon" src='/static/image/icon/icon-search.png'></image>
  15. <input :focus="!msg" @confirm='searchMethod' confirm-type='search' v-model='keyword' placeholder-style='color:#999999;font-size:13px;' @blur="getFocus=false" @focus="getFocus=true" placeholder='请输入订单号/商品名称/收货人姓名搜索' />
  16. <image v-if="getFocus && keyword.length > 0" @click.stop="clearSearch" class="search-clear" src="../image/clear.png"></image>
  17. </view>
  18. <view @click="cancelSeacrch">取消</view>
  19. </view>
  20. <view v-if="!searchResult && search && list.length === 0" class="search-history">
  21. <view v-if="candidate.length !== 0" class='main-between search-title'>
  22. <view>历史搜索</view>
  23. <view @click="clear">
  24. <image class="delete-icon" src="/static/image/icon/delete.png"></image>
  25. </view>
  26. </view>
  27. <view class='flex-wrap candidate-list'>
  28. <view @click="keywordSearch(item)" class="keyword-item box-grow-0" v-for="item in candidate" :key="item">
  29. <text class="t-omit">{{item}}</text>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 搜索框 -->
  34. <view v-if="!search" class="search-area main-between cross-center">
  35. <view class="search main-center" @click="toSearch">
  36. <image class="icon-search" src="/static/image/icon/icon-search.png"></image>
  37. <text>搜索</text>
  38. </view>
  39. <view class="choose" @click='toTime'>
  40. <text v-if="time == 0">汇总</text>
  41. <text v-else-if="time == 1">今日</text>
  42. <text v-else-if="time == 2">昨日</text>
  43. <text v-else-if="time == 3">7日</text>
  44. <text v-else>自定义</text>
  45. <image src='./../image/open.png'></image>
  46. </view>
  47. </view>
  48. <!-- 普通订单tab栏 -->
  49. <view v-if="!search && status==1" class="main-between navs-info">
  50. <view @click="tab(-1)" class="box-grow-1 main-center cross-center navs">
  51. <text :class="[`${_num==-1?'active':'nav-text'}`]">全部</text>
  52. </view>
  53. <view @click="tab(0)" class="box-grow-1 main-center cross-center navs">
  54. <text :class="[`${_num==0?'active':'nav-text'}`]">待付款</text>
  55. </view>
  56. <view @click="tab(1)" class="box-grow-1 main-center cross-center navs">
  57. <text :class="[`${_num==1?'active':'nav-text'}`]">待发货</text>
  58. </view>
  59. <view @click="show=!show" v-if="active" class="box-grow-1 main-center navs more-navs">
  60. <text :class="[`${_num==active.value?'active':'nav-text'}`]">{{active.name}}</text>
  61. <image src="./../image/more-active.png"></image>
  62. </view>
  63. <view @click="show=!show" v-if="!active" class="box-grow-1 main-center navs more-navs">
  64. <text class="nav-text">更多状态</text>
  65. <image src="./../image/more.png"></image>
  66. </view>
  67. </view>
  68. <!-- 售后订单tab栏 -->
  69. <view v-if="!search && status==2" class="main-between navs-info">
  70. <view @click="tab(-1)" class="box-grow-1 main-center cross-center navs">
  71. <text :class="[`${_num==-1?'active':'nav-text'}`]">全部</text>
  72. </view>
  73. <view @click="tab(0)" class="box-grow-1 main-center cross-center navs">
  74. <text :class="[`${_num==0?'active':'nav-text'}`]">待审核</text>
  75. </view>
  76. <view @click="tab(1)" class="box-grow-1 main-center cross-center navs">
  77. <text :class="[`${_num==1?'active':'nav-text'}`]">待买家处理</text>
  78. </view>
  79. <view @click="tab(2)" class="box-grow-1 main-center cross-center navs">
  80. <text :class="[`${_num==2?'active':'nav-text'}`]">待卖家处理</text>
  81. </view>
  82. </view>
  83. <!-- 更多隐藏tab栏 -->
  84. <view v-if="!search && show" class="more-menu">
  85. <view @click="chooseItem(item.value)" v-for="item in menu" :key="item.value">{{item.name}}</view>
  86. </view>
  87. <view v-if="!search" class="search-palce"></view>
  88. <!-- 订单信息 -->
  89. <view>
  90. <view class="order-item" v-for="item in list" :key="item.id">
  91. <view @click="toDetail(item.id,status)">
  92. <view class="main-between order-info" v-if="status ==1">
  93. <view style="width: 80%">
  94. <view>订单号 {{item.order_no}}</view>
  95. <view v-if="item.seller_remark && item.seller_remark != null" class="remark-info">商家备注 {{item.seller_remark}}</view>
  96. </view>
  97. <!-- 订单右上角信息 -->
  98. <view v-if="item.is_sale == 1">已完成</view>
  99. <view v-else-if="item.cancel_status == 2">待退款</view>
  100. <view v-else-if="item.is_send == 0 && item.is_pay == 1 && item.detailExpress && item.detailExpress.length > 0">部分发货</view>
  101. <view v-else-if="item.is_pay == 0">待付款</view>
  102. <view v-else-if="item.is_send == 0">待发货</view>
  103. <view v-else-if="item.is_confirm == 0">待收货</view>
  104. <view v-else-if="item.is_confirm == 1">已收货</view>
  105. </view>
  106. <view class="main-between order-info" v-if="status ==2">
  107. <view>订单号 {{item.order_no}}</view>
  108. <view class="status-txt">{{item.refund_status_cn}}</view>
  109. </view>
  110. <view class="dir-left-nowrap cross-center order-user" v-if="status ==1">
  111. <view>{{item.name ? item.name : item.nickname}}</view>
  112. <view>{{item.mobile}}</view>
  113. <view v-if="item.mobile" @click.stop='toCall(item)' class="to-tel dir-left-nowrap cross-center">
  114. <image src='./../image/tel.png'></image>
  115. <text>联系收货人</text>
  116. </view>
  117. </view>
  118. <view class="dir-left-nowrap cross-center order-user" v-if="status ==2">
  119. <view>{{item.order.name}}</view>
  120. <view>{{item.order.mobile}}</view>
  121. <view v-if="item.order.mobile" @click.stop='toCall(item.order)' class="to-tel dir-left-nowrap cross-center">
  122. <image src='./../image/tel.png'></image>
  123. <text>联系收货人</text>
  124. </view>
  125. </view>
  126. <view v-for="(goods, dIndex) in item.detail" class="goods" :key="goods.id">
  127. <image class="goods-img" :src='goods.goods_info.goods_attr.pic_url ? goods.goods_info.goods_attr.pic_url : goods.goods_info.goods_attr.cover_pic'></image>
  128. <view v-if="status ==2" class="goods-status">{{item.type == 3 ? '仅退款' : item.refund_type_text}}</view>
  129. <view class='t-omit-two goods-name'>{{goods.goods_info.goods_attr.name}}</view>
  130. <view class="goods-attr t-omit">
  131. <text v-for="attr in goods.attr_list" :key="attr.attr_id">{{attr.attr_group_name}}:{{attr.attr_name}}</text>
  132. </view>
  133. <view class="goods-num">x{{goods.num}}</view>
  134. <view class="goods-price">
  135. <span v-if="item.plugin_data.exchange_list && item.plugin_data.exchange_list.length">{{item.plugin_data.exchange_list[dIndex].value}}{{item.plugin_data.price_name}}+</span>
  136. ¥{{goods.total_price}}
  137. </view>
  138. </view>
  139. <view class="dir-right-nowrap">
  140. <view class="price-info">
  141. <text class="other">合计</text>
  142. <span v-if="status == 1">
  143. <text v-if="item.plugin_data.exchange_count">{{item.plugin_data.exchange_count}}{{item.plugin_data.price_name}}+</text>
  144. <text>¥{{item.total_pay_price}}</text>
  145. </span>
  146. <text v-if="status == 2">¥{{item.refund_price}}</text>
  147. <text v-if="status == 1 && item.is_show_express === 1" class="other">(含运费¥{{item.express_price}})</text>
  148. </view>
  149. </view>
  150. </view>
  151. <view class="menu-button">
  152. <order-menu @change="cancel" :address="address" @to="toRefundOrder" :status="status" @update="update" :item="item"></order-menu>
  153. </view>
  154. </view>
  155. </view>
  156. <view class='no-tip' v-if="list.length === 0 && !loading">
  157. <image :src='adminImg.no_order'></image>
  158. <view>没有任何订单哦~</view>
  159. </view>
  160. <view class="safe-area-inset-bottom">
  161. <view class="u-bottom-height"></view>
  162. </view>
  163. <view class="safe-area-inset-bottom u-bottom-fixed">
  164. <view :class="['main-between bottom-tab']">
  165. <view class="box-grow-1 tab-nav-item" @click="toRedirect('/pages/app_admin/index/index')">
  166. <image class="tab-icon" src="./../image/index.png"></image>
  167. <view>首页</view>
  168. </view>
  169. <view class="box-grow-1 tab-nav-item active" @click="reload">
  170. <image class="tab-icon" src="./../image/order-active.png"></image>
  171. <view>订单</view>
  172. </view>
  173. <view class="box-grow-1 tab-nav-item" @click="toRedirect('/pages/app_admin/goods/goods')">
  174. <image class="tab-icon" src="./../image/goods.png"></image>
  175. <view>商品</view>
  176. </view>
  177. <view class="box-grow-1 tab-nav-item" @click="toRedirect('/pages/app_admin/setting/setting')">
  178. <image class="tab-icon" src="./../image/setting.png"></image>
  179. <view>设置</view>
  180. </view>
  181. </view>
  182. </view>
  183. </scroll-view>
  184. <app-time-screening theme="admin" @click="toChoose" @cancel="cancel" v-if="chooseTime" :time="time" :start-date="date_start" :end-date="date_end"></app-time-screening>
  185. </app-layout>
  186. </template>
  187. <script>
  188. import appTimeScreening from "../../../components/page-component/app-time-screening/app-time-screening.vue";
  189. import orderMenu from "../components/order-menu.vue";
  190. import { mapState } from "vuex";
  191. export default {
  192. data() {
  193. return {
  194. status: '1',
  195. _num: '-1',
  196. getFocus: false,
  197. more_list: false,
  198. cityList: [],
  199. deliveryId: '0',
  200. delivery: '',
  201. addressId: '0',
  202. refund_price: 0,
  203. page: 1,
  204. menu: [
  205. {
  206. name: '待收货',
  207. value: '2'
  208. },
  209. {
  210. name: '待退款',
  211. value: '4'
  212. },
  213. {
  214. name: '已收货',
  215. value: '9'
  216. },
  217. {
  218. name: '已完成',
  219. value: '3'
  220. }
  221. ],
  222. active: null,
  223. show: false,
  224. search: false,
  225. keyword: '',
  226. list: [],
  227. candidate: [],
  228. date_start: '',
  229. date_end: '',
  230. time: 0,
  231. inSearch: false,
  232. address: [],
  233. chooseTime: false,
  234. msg: false,
  235. searchResult: false,
  236. total: 0,
  237. about: '',
  238. iphone_x: false,
  239. loading: false
  240. }
  241. },
  242. components: {
  243. "app-time-screening": appTimeScreening,
  244. "order-menu": orderMenu
  245. },
  246. computed: {
  247. ...mapState({
  248. userInfo: state => state.user.info,
  249. adminImg: state => state.mallConfig.__wxapp_img.app_admin,
  250. windowHeight : state=>state.gConfig.systemInfo.windowHeight
  251. })
  252. },
  253. methods: {
  254. cancel(e) {
  255. if(e && e.id) {
  256. for(let i in this.list) {
  257. if(this.list[i].id == e.id) {
  258. this.list[i] = e;
  259. this.$forceUpdate();
  260. }
  261. }
  262. }
  263. this.chooseTime = false;
  264. },
  265. toCall(e) {
  266. e.showMobile = true;
  267. },
  268. update(row) {
  269. if(row == 0) {
  270. this.page = 1;
  271. uni.showLoading({
  272. title: '加载中...'
  273. });
  274. this.getList();
  275. }else {
  276. for(let index in this.list) {
  277. if(this.list[index].id == row.id) {
  278. this.list[index] = row;
  279. this.$forceUpdate();
  280. }
  281. }
  282. }
  283. },
  284. clearSearch() {
  285. this.keyword = '';
  286. },
  287. reload() {
  288. uni.showLoading({
  289. title: '加载中...'
  290. });
  291. this.page = 1;
  292. this.list = [];
  293. this.getList();
  294. },
  295. toDetail(order_id,status) {
  296. uni.navigateTo({
  297. url: '/pages/app_admin/order-detail/order-detail?id='+order_id+'&status='+status
  298. })
  299. },
  300. toRedirect(url) {
  301. uni.redirectTo({
  302. url: url
  303. })
  304. },
  305. // 切换类别
  306. tabStatus(e) {
  307. let that = this;
  308. that.status = e;
  309. that.active = null;
  310. that.list = [];
  311. that.date_start = '';
  312. that.date_end = '';
  313. that.keyword = '';
  314. that.time = 0;
  315. that.show = false;
  316. that._num = '-1';
  317. that.page = 1;
  318. uni.showLoading({
  319. title: '加载中...'
  320. });
  321. that.getList();
  322. },
  323. toSearch() {
  324. this.search = true;
  325. this.list = [];
  326. this.searchResult = false;
  327. this.candidate = uni.getStorageSync('keyword');
  328. this.inSearch = false;
  329. },
  330. keywordSearch(e) {
  331. this.keyword = e;
  332. this.searchResult = true;
  333. uni.showLoading({
  334. title: '加载中...'
  335. });
  336. this.page = 1;
  337. this.getList();
  338. },
  339. // 清除搜索记录
  340. clear() {
  341. let that = this;
  342. uni.removeStorage({
  343. key: 'keyword',
  344. success() {
  345. that.candidate = [];
  346. uni.showToast({
  347. title: '清理成功',
  348. duration: 1000,
  349. type: 'success',
  350. mask: false
  351. });
  352. }
  353. });
  354. },
  355. // 搜索
  356. searchMethod() {
  357. let value = uni.getStorageSync('keyword');
  358. if (this.keyword.length === 0) {
  359. return
  360. } else if (value.length > 0) {
  361. value.unshift(this.keyword)
  362. } else {
  363. value = [this.keyword]
  364. }
  365. uni.showLoading({
  366. title: '加载中...'
  367. });
  368. this.page = 1;
  369. this.getList();
  370. value.forEach(function(row, index) {
  371. if (value[0] == value[index] && index > 0) {
  372. value.splice(index, 1);
  373. }
  374. })
  375. uni.setStorage({
  376. key: "keyword",
  377. data: value
  378. })
  379. this.inSearch = true;
  380. this.searchResult = true;
  381. },
  382. // 取消搜索
  383. cancelSeacrch() {
  384. uni.showLoading({
  385. title: '加载中...'
  386. });
  387. this.search = false;
  388. this.keyword = '';
  389. this.page = 1;
  390. this.getList();
  391. },
  392. // 确认选择时间
  393. toChoose(date_start,date_end,time) {
  394. let that = this;
  395. uni.showLoading({
  396. title: '加载中...'
  397. });
  398. that.date_start = date_start;
  399. that.date_end = date_end;
  400. that.time = time;
  401. that.page = 1;
  402. that.getList();
  403. that.chooseTime = false;
  404. },
  405. // 打开时间筛选
  406. toTime() {
  407. let that = this;
  408. that.chooseTime = !that.chooseTime;
  409. that.show = false;
  410. },
  411. // 选择更多状态
  412. chooseItem(e) {
  413. let that = this;
  414. uni.showLoading({
  415. title: '加载中...'
  416. });
  417. that._num = e;
  418. that.menu.forEach(function(row, index) {
  419. if (row.value == that._num) {
  420. that.active = row;
  421. }
  422. })
  423. that.show = !that.show;
  424. that.page = 1;
  425. that.list = [];
  426. that.getList();
  427. },
  428. // 切换状态
  429. tab(e) {
  430. this._num = e;
  431. this.show = false;
  432. this.active = null;
  433. this.list = [];
  434. this.keyword = '';
  435. this.page = 1;
  436. uni.showLoading({
  437. title: '加载中...'
  438. });
  439. this.getList();
  440. },
  441. getList() {
  442. let that = this;
  443. if(that.loading) {
  444. return false
  445. }
  446. that.loading = true;
  447. that.about = '';
  448. let url;
  449. if (this.status == 1) {
  450. url = that.$api.app_admin.order
  451. } else if (this.status == 2) {
  452. url = that.$api.app_admin.refund
  453. }
  454. that.$request({
  455. url: url,
  456. data: {
  457. status: that._num,
  458. date_end: that.date_end,
  459. date_start: that.date_start,
  460. page: that.page,
  461. keyword: that.keyword
  462. }
  463. }).then(response=>{
  464. that.$hideLoading();
  465. uni.hideLoading();
  466. that.loading = false;
  467. if(response.code == 0) {
  468. let list = response.data.list;
  469. if (that.status == 2) {
  470. let status = [];
  471. list.forEach(function(row) {
  472. row.detail = [row.detail];
  473. status = row.status_cn.split(' ');
  474. row.refund_status_cn = status[status.length - 1];
  475. })
  476. let address = response.data.address;
  477. address.forEach((row) => {
  478. row.address = row.address.replace(/"/g, '');
  479. row.address = row.address.replace(/,/g, '');
  480. row.address = row.address.replace('[', '');
  481. row.address = row.address.replace(']', '');
  482. })
  483. that.address = address;
  484. } else {
  485. list.forEach(function(row) {
  486. row.showMobile = false;
  487. row.detail.forEach(function(res) {
  488. if (res.refund_status == 1 || res.refund_status == 2) {
  489. row.have_refund = 1;
  490. }
  491. })
  492. })
  493. }
  494. that.more_list = false;
  495. if (list.length == response.data.pagination.pageSize) {
  496. that.more_list = true;
  497. }
  498. if(that.page == 1) {
  499. that.list = list;
  500. }else {
  501. that.list = that.list.concat(list);
  502. }
  503. that.page++;
  504. that.$forceUpdate();
  505. }else {
  506. uni.showToast({
  507. title: response.msg,
  508. icon: 'none',
  509. duration: 1000
  510. });
  511. }
  512. }).catch(() => {
  513. that.loading = false;
  514. that.$hideLoading();
  515. uni.hideLoading();
  516. });
  517. },
  518. toRefundOrder(e) {
  519. let that = this;
  520. that.list = [];
  521. that.more_list = false;
  522. that.keyword = e;
  523. that.status = 2;
  524. that.search = true;
  525. that.searchMethod();
  526. },
  527. getMore() {
  528. if (this.more_list) {
  529. this.getList();
  530. }
  531. },
  532. toSendType() {
  533. let that = this;
  534. let para;
  535. if (that.sendType == 1 || that.detail.send_type == 2) {
  536. uni.showLoading({
  537. title: '加载中...'
  538. });
  539. para = {
  540. is_express: 0,
  541. words: '',
  542. order_id: that.detail.id
  543. };
  544. if(that.detail.send_type == 2) {
  545. para.man = that.delivery;
  546. }
  547. that.$request({
  548. url: that.$api.app_admin.send,
  549. data: para,
  550. method: 'post'
  551. }).then(response => {
  552. uni.hideLoading();
  553. if (response.code === 0) {
  554. uni.showToast({
  555. title: response.msg,
  556. type: 'success',
  557. mask: false,
  558. duration: 2000
  559. });
  560. that.page = 1;
  561. that.isSend = false;
  562. that.sendType = 0;
  563. that.getList();
  564. } else {
  565. uni.showToast({
  566. title: response.msg,
  567. icon: 'none',
  568. duration: 1000
  569. });
  570. }
  571. }).catch(response => {
  572. uni.hideLoading();
  573. uni.showToast({
  574. title: response,
  575. icon: 'none',
  576. duration: 1000
  577. });
  578. });
  579. }
  580. },
  581. look(e) {
  582. uni.previewImage({
  583. current: e, // 当前显示图片的http链接
  584. urls: [e] // 需要预览的图片http链接列表
  585. })
  586. },
  587. lookAbout(e) {
  588. this.detail = e;
  589. this.isReason = true;
  590. },
  591. toConfirm(e) {
  592. this.detail = e;
  593. this.confirmOrder = !this.confirmOrder;
  594. },
  595. toRefund(e) {
  596. this.detail = e;
  597. this.refund_price = e.refund_price;
  598. this.isRefund = !this.isRefund;
  599. },
  600. agree() {
  601. let that = this;
  602. uni.showLoading({
  603. title: '处理中...'
  604. });
  605. if (that.detail.refund_price > 0) {
  606. that.$request({
  607. url: that.$api.app_admin.refund_handle,
  608. data: {
  609. order_refund_id: that.detail.id,
  610. type: that.detail.type,
  611. is_agree: 1,
  612. refund_price: that.refund_price,
  613. merchant_remark: that.about
  614. },
  615. method: 'post'
  616. }).then(response => {
  617. uni.hideLoading();
  618. if (response.code === 0) {
  619. uni.showModal({
  620. title: '提示',
  621. content: response.msg,
  622. showCancel: false,
  623. success: function (res) {
  624. if (res.confirm) {
  625. that.notRefund = false;
  626. that.openAddress = false;
  627. that.isRefund = false;
  628. that.addressId = 0;
  629. that.page = 1;
  630. uni.showLoading({
  631. title: '加载中...'
  632. });
  633. that.getList();
  634. }
  635. }
  636. });
  637. } else {
  638. uni.showToast({
  639. title: response.msg,
  640. icon: 'none',
  641. duration: 1000
  642. });
  643. }
  644. }).catch(response => {
  645. uni.hideLoading();
  646. uni.showToast({
  647. title: response,
  648. icon: 'none',
  649. duration: 1000
  650. });
  651. });
  652. } else {
  653. uni.showToast({
  654. title: '退款金额需大于零',
  655. icon: 'none',
  656. duration: 1000
  657. });
  658. }
  659. },
  660. refundHandle(type,detail,cancel) {
  661. if (cancel == 1) {
  662. this.cancelRefund = true;
  663. }
  664. if (type == 1) {
  665. if(detail.type == 3) {
  666. this.refundOnly = true;
  667. this.detail = detail;
  668. }else if(detail.order.send_type != 0){
  669. this.cityRefund = true;
  670. this.detail = detail;
  671. }else {
  672. if (this.address.length == 0) {
  673. this.noAddress = true;
  674. } else {
  675. this.detail = detail;
  676. this.openAddress = true;
  677. }
  678. }
  679. } else if (type == 2) {
  680. this.detail = detail;
  681. this.notRefund = true;
  682. }
  683. },
  684. toAgreeCancel(e) {
  685. this.detail = e;
  686. this.isReason = !this.isReason;
  687. this.noRefund = false;
  688. },
  689. decline(type) {
  690. let that = this;
  691. let para = {
  692. order_refund_id: that.detail.id,
  693. type: that.detail.type,
  694. is_agree: type != 0 ? 1 : 0,
  695. refund_price: that.detail.refund_price,
  696. merchant_remark: that.about
  697. }
  698. if (type == 1) {
  699. if (that.addressId < 1) {
  700. uni.showToast({
  701. title: '请选择地址',
  702. icon: 'none',
  703. duration: 1000
  704. });
  705. return false;
  706. }else {
  707. para.address_id = that.addressId
  708. }
  709. }
  710. if(type == 4) {
  711. para.refund = 1
  712. }
  713. if (that.cancelRefund) {
  714. type = 2;
  715. para.is_agree = 2
  716. }
  717. uni.showLoading({
  718. title: '处理中...'
  719. });
  720. that.$request({
  721. url: that.$api.app_admin.refund_handle,
  722. data: para,
  723. method: 'post'
  724. }).then(response => {
  725. uni.hideLoading();
  726. if (response.code === 0) {
  727. uni.showModal({
  728. title: '提示',
  729. content: response.msg,
  730. showCancel: false,
  731. success: function (res) {
  732. if (res.confirm) {
  733. that.page = 1;
  734. that.notRefund = false;
  735. that.cancelOrder = false;
  736. that.openAddress = false;
  737. that.refundOnly = false;
  738. that.cityRefund = false;
  739. that.addressId = 0;
  740. that.getList();
  741. }
  742. }
  743. });
  744. } else {
  745. uni.showToast({
  746. title: response.msg,
  747. icon: 'none',
  748. duration: 1000
  749. });
  750. }
  751. }).catch(response => {
  752. uni.hideLoading();
  753. uni.showToast({
  754. title: response,
  755. icon: 'none',
  756. duration: 1000
  757. });
  758. });
  759. },
  760. chooseAddress(e) {
  761. if (this.addressId == e) {
  762. this.addressId = ''
  763. }else {
  764. this.addressId = e
  765. }
  766. },
  767. chooseDelivery(e) {
  768. if (this.getDeliveryId == e.id) {
  769. this.deliveryId = ''
  770. }else {
  771. this.deliveryId = e.id
  772. this.delivery = "(" + e.id + ")" + e.name;
  773. }
  774. },
  775. noCancel() {
  776. let that = this;
  777. uni.showLoading({
  778. title: '处理中...'
  779. });
  780. that.$request({
  781. url: that.$api.app_admin.cancel,
  782. data: {
  783. status: 2,
  784. remark: that.about,
  785. order_id: that.detail.id
  786. },
  787. method: 'post'
  788. }).then(response => {
  789. uni.hideLoading();
  790. if (response.code === 0) {
  791. uni.showToast({
  792. title: response.msg,
  793. type: 'success',
  794. mask: false,
  795. duration: 2000
  796. });
  797. that.page = 1;
  798. that.noRefund = false;
  799. that.isReason = false;
  800. that.getList();
  801. } else {
  802. uni.showToast({
  803. title: response.msg,
  804. icon: 'none',
  805. duration: 1000
  806. });
  807. }
  808. }).catch(response => {
  809. uni.hideLoading();
  810. uni.showToast({
  811. title: response,
  812. icon: 'none',
  813. duration: 1000
  814. });
  815. });
  816. },
  817. beNotRefund(e) {
  818. this.detail = e;
  819. this.isReason = !this.isReason
  820. this.noRefund = !this.noRefund;
  821. }
  822. },
  823. onShow: function() {
  824. this.page = 1;
  825. this.getList();
  826. },
  827. onLoad(options) {
  828. let that = this;
  829. that.$showLoading({
  830. type: 'global',
  831. text: '加载中...'
  832. });
  833. that.status = '1';
  834. that._num = '-1';
  835. let myDate = new Date();
  836. // 今天
  837. let year = myDate.getFullYear();
  838. let month = myDate.getMonth() + 1;
  839. if (month >= 1 && month <= 9) {
  840. month = "0" + month;
  841. }
  842. let now = myDate.getDate();
  843. that.today = year + "-" + month + "-" + now;
  844. let timestamp = Date.parse(new Date());
  845. // 昨天
  846. let yesterTime = (timestamp / 1000 - 24 * 60 * 60) * 1000;
  847. let yesterDate = new Date(yesterTime)
  848. let yester_year = yesterDate.getFullYear();
  849. let yester_month = yesterDate.getMonth() + 1;
  850. if (yester_month >= 1 && yester_month <= 9) {
  851. yester_month = "0" + yester_month;
  852. }
  853. let yester_now = yesterDate.getDate();
  854. that.yesterday = yester_year + "-" + yester_month + "-" + yester_now;
  855. // 7天
  856. let weekTime = (timestamp / 1000 - 24 * 60 * 60 * 7) * 1000;
  857. let weekDate = new Date(weekTime)
  858. let week_year = weekDate.getFullYear();
  859. let week_month = weekDate.getMonth() + 1;
  860. if (week_month >= 1 && week_month <= 9) {
  861. week_month = "0" + week_month;
  862. }
  863. let week_now = weekDate.getDate();
  864. that.weekday = week_year + "-" + week_month + "-" + week_now;
  865. that.$request({
  866. url: that.$api.app_admin.delivery
  867. }).then(response=>{
  868. if(response.code === 0) {
  869. this.cityList = response.data.list;
  870. this.deliveryId = response.data.list[0].id;
  871. this.delivery = "(" + response.data.list[0].id + ")" + response.data.list[0].name
  872. }else {
  873. uni.showToast({
  874. title: response.msg,
  875. icon: 'none',
  876. duration: 1000
  877. });
  878. }
  879. }).catch(response => {
  880. uni.hideLoading();
  881. });
  882. if(options.msg) {
  883. that.msg = true;
  884. }
  885. if(options.status > -1) {
  886. that._num = options.status
  887. }
  888. if(options.refund > 0) {
  889. that.status = 2
  890. }
  891. if (options.no) {
  892. if (options.no.slice(0, 2) === "RE") {
  893. that.status = 2;
  894. }
  895. that.search = true;
  896. that.inSearch = true;
  897. that.keyword = options.no;
  898. this.getList();
  899. }
  900. }
  901. }
  902. </script>
  903. <style scoped lang="scss">
  904. .no-tip {
  905. position: fixed;
  906. top: #{400rpx};
  907. left: 0;
  908. right: 0;
  909. margin: 0 auto;
  910. color: #666666;
  911. font-size: #{24rpx};
  912. width: #{240rpx};
  913. text-align: center;
  914. image {
  915. height: #{240rpx};
  916. width: #{240rpx};
  917. margin-bottom: #{20rpx};
  918. }
  919. }
  920. .tab {
  921. margin: #{24rpx} auto;
  922. width: #{320rpx};
  923. height: #{56rpx};
  924. }
  925. .bottom-tab {
  926. width: 100%;
  927. height: #{96rpx};
  928. background-color: #fff;
  929. font-size: #{20rpx};
  930. color: #9096ad;
  931. padding-top: #{14rpx};
  932. }
  933. .u-bottom-fixed {
  934. z-index: 999;
  935. position: fixed;
  936. bottom: 0;
  937. left: 0;
  938. right: 0;
  939. background-color: #ffffff;
  940. }
  941. .tab-nav-item {
  942. text-align: center;
  943. &.active {
  944. color: #446dfd;
  945. }
  946. view {
  947. margin-top: #{-5rpx};
  948. }
  949. }
  950. .tab-icon {
  951. height: #{48rpx};
  952. width: #{48rpx};
  953. display: inline-block;
  954. }
  955. .tab-info {
  956. background-color: #fff;
  957. position: fixed;
  958. z-index: 2;
  959. top: 0;
  960. left: 0;
  961. right: 0;
  962. height: #{104rpx};
  963. }
  964. .tab-item {
  965. width: #{160rpx};
  966. text-align: center;
  967. height: #{56rpx};
  968. line-height: #{54rpx};
  969. background-color: #fff;
  970. color: #666;
  971. font-size: #{24rpx};
  972. display: block;
  973. &.tab-left {
  974. border-top-left-radius: #{28rpx};
  975. border-bottom-left-radius: #{28rpx};
  976. border: #{2rpx} solid #446dfd;
  977. border-right: 0;
  978. }
  979. &.tab-right {
  980. border-top-right-radius: #{28rpx};
  981. border-bottom-right-radius: #{28rpx};
  982. border: #{2rpx} solid #446dfd;
  983. border-left: 0;
  984. }
  985. &.active {
  986. background-color: #446dfd;
  987. color: #fff;
  988. }
  989. }
  990. .search-area {
  991. position: fixed;
  992. z-index: 3;
  993. top: #{104rpx};
  994. left: 0;
  995. right: 0;
  996. height: #{88rpx};
  997. line-height: #{88rpx};
  998. background-color: #efeff4;
  999. padding: 0 #{48rpx} 0 #{24rpx};
  1000. }
  1001. .search {
  1002. height: #{56rpx};
  1003. line-height: #{56rpx};
  1004. border-radius: #{28rpx};
  1005. background-color: #fff;
  1006. color: #b2b2b2;
  1007. width: #{528rpx};
  1008. text-align: center;
  1009. }
  1010. .choose {
  1011. color: #446dfd;
  1012. font-size: #{26rpx};
  1013. image {
  1014. width: #{22rpx};
  1015. height: #{12rpx};
  1016. margin-left: #{12rpx};
  1017. }
  1018. }
  1019. .navs-info {
  1020. background-color: #fff;
  1021. border-bottom: #{1rpx} solid #e2e2e2;
  1022. position: fixed;
  1023. z-index: 2;
  1024. top: #{182rpx};
  1025. left: 0;
  1026. right: 0;
  1027. padding-top: #{10rpx};
  1028. }
  1029. .navs {
  1030. height: #{100rpx};
  1031. font-size: #{28rpx};
  1032. color: #666;
  1033. text-align: center;
  1034. position: relative;
  1035. &.more-navs {
  1036. line-height: #{100rpx};
  1037. }
  1038. .active {
  1039. color: #446dfd;
  1040. display: inline-block;
  1041. height: #{100rpx};
  1042. line-height: #{102rpx};
  1043. border-bottom: #{2rpx} solid #446dfd;
  1044. }
  1045. image {
  1046. height: #{16rpx};
  1047. width: #{16rpx};
  1048. margin-left: #{16rpx};
  1049. display: block;
  1050. float: right;
  1051. margin-top: #{42rpx};
  1052. }
  1053. }
  1054. .order-item {
  1055. background-color: #fff;
  1056. padding: #{24rpx};
  1057. margin: #{20rpx} #{24rpx} 0;
  1058. border-radius: #{16rpx};
  1059. display: block;
  1060. }
  1061. .order-info {
  1062. font-size: #{24rpx};
  1063. color: #353535;
  1064. margin-bottom: #{24rpx};
  1065. .remark-info {
  1066. margin-top: #{8rpx};
  1067. }
  1068. }
  1069. .order-user {
  1070. height: #{72rpx};
  1071. background-color: #f7f7f7;
  1072. padding-left: #{28rpx};
  1073. font-size: #{24rpx};
  1074. color: #353535;
  1075. view:first-of-type {
  1076. margin-right: #{32rpx};
  1077. }
  1078. }
  1079. .to-tel {
  1080. color: #446dfd;
  1081. font-size: #{24rpx};
  1082. margin-left: #{20rpx};
  1083. height: #{72rpx};
  1084. line-height: #{72rpx};
  1085. image {
  1086. height: 14px;
  1087. width: 14px;
  1088. margin-right: #{12rpx};
  1089. display: inline-block;
  1090. }
  1091. }
  1092. .goods {
  1093. height: #{160rpx};
  1094. margin-top: #{24rpx};
  1095. position: relative;
  1096. font-size: #{24rpx};
  1097. color: #353535;
  1098. margin-bottom: #{24rpx};
  1099. .goods-status {
  1100. height: #{40rpx};
  1101. line-height: #{40rpx};
  1102. color: #fff;
  1103. width: #{160rpx};
  1104. position: absolute;
  1105. bottom: 0;
  1106. left: 0;
  1107. text-align: center;
  1108. background-color: #446dfd;
  1109. border-bottom-left-radius: #{4rpx};
  1110. border-bottom-right-radius: #{4rpx};
  1111. }
  1112. .goods-img {
  1113. height: #{160rpx};
  1114. width: #{160rpx};
  1115. float: left;
  1116. margin-right: #{20rpx};
  1117. border-radius: #{4rpx};
  1118. }
  1119. .goods-attr {
  1120. font-size: #{24rpx};
  1121. color: #999;
  1122. position: absolute;
  1123. top: #{78rpx};
  1124. left: #{180rpx};
  1125. width: 70%;
  1126. text {
  1127. margin-right: #{20rpx};
  1128. }
  1129. }
  1130. .goods-num {
  1131. font-size: #{24rpx};
  1132. color: #999;
  1133. position: absolute;
  1134. top: #{126rpx};
  1135. left: #{180rpx};
  1136. }
  1137. .goods-price {
  1138. font-size: #{24rpx};
  1139. color: #353535;
  1140. position: absolute;
  1141. bottom: 0;
  1142. right: 0;
  1143. }
  1144. }
  1145. .price-info {
  1146. font-size: #{28rpx};
  1147. color: #353535;
  1148. .other {
  1149. font-size: #{24rpx};
  1150. color: #999;
  1151. }
  1152. }
  1153. .more-menu {
  1154. position: fixed;
  1155. z-index: 5;
  1156. top: #{270rpx};
  1157. padding-top: #{22rpx};
  1158. right: #{22rpx};
  1159. width: #{196rpx};
  1160. background-color: #fff;
  1161. font-size: #{28rpx};
  1162. color: #666;
  1163. border-bottom: #{1rpx} solid #e0e0e0;
  1164. view {
  1165. width: #{196rpx};
  1166. height: #{68rpx};
  1167. line-height: #{68rpx};
  1168. text-align: center;
  1169. border-left: #{1rpx} solid #e0e0e0;
  1170. border-right: #{1rpx} solid #e0e0e0;
  1171. }
  1172. }
  1173. .more-menu.go-out, .search-history.go-out {
  1174. display: none;
  1175. }
  1176. .search-item {
  1177. height: #{96rpx};
  1178. background-color: #efeff4;
  1179. padding: 0 #{24rpx};
  1180. font-size: #{28rpx};
  1181. color: #00c203;
  1182. }
  1183. .search-input {
  1184. height: #{64rpx};
  1185. position: relative;
  1186. width: #{620rpx};
  1187. .search-clear {
  1188. position: absolute;
  1189. right: #{15rpx};
  1190. top: #{21rpx};
  1191. width: #{30rpx};
  1192. height: #{30rpx};
  1193. z-index: 100;
  1194. }
  1195. .search-icon {
  1196. height: #{22rpx};
  1197. width: #{22rpx};
  1198. position: absolute;
  1199. top: #{21rpx};
  1200. left: #{28rpx};
  1201. z-index: 10;
  1202. }
  1203. input {
  1204. padding-left: #{62rpx};
  1205. padding-right: #{70rpx};
  1206. background-color: #fff;
  1207. border-radius: #{32rpx};
  1208. height: #{64rpx};
  1209. font-size: #{26rpx};
  1210. color: #353535;
  1211. }
  1212. }
  1213. .search-history {
  1214. position: absolute;
  1215. top: #{96rpx};
  1216. left: 0;
  1217. right: 0;
  1218. height: 100%;
  1219. background-color: #fff;
  1220. padding: #{24rpx} #{4rpx};
  1221. font-size: #{28rpx};
  1222. color: #666;
  1223. z-index: 20;
  1224. }
  1225. .search-title {
  1226. padding: 0 #{20rpx};
  1227. margin-bottom: #{24rpx};
  1228. }
  1229. .keyword-item {
  1230. height: #{64rpx};
  1231. line-height: #{64rpx};
  1232. padding: 0 #{20rpx};
  1233. background-color: #f7f7f7;
  1234. color: #333;
  1235. border-radius: #{32rpx};
  1236. font-size: #{28rpx};
  1237. margin-left: #{20rpx};
  1238. margin-bottom: #{20rpx};
  1239. max-width: 90%;
  1240. }
  1241. .bg {
  1242. background-color: rgba(0, 0, 0, 0.3);
  1243. position: fixed;
  1244. top: 0;
  1245. left: 0;
  1246. height: 100%;
  1247. width: 100%;
  1248. z-index: 100;
  1249. }
  1250. .dialog {
  1251. width: #{620rpx};
  1252. border-radius: #{16rpx};
  1253. margin: 0 auto;
  1254. background-color: #fff;
  1255. z-index: 20;
  1256. &.get-top {
  1257. margin-top: #{-60rpx};
  1258. }
  1259. }
  1260. .remark-input {
  1261. padding: 0 #{32rpx};
  1262. height: #{80rpx};
  1263. margin-bottom: #{32rpx};
  1264. color: #353535;
  1265. input {
  1266. border-radius: #{16rpx};
  1267. background-color: #F7F7F7;
  1268. height: #{80rpx};
  1269. line-height: #{80rpx};
  1270. padding: 0 #{24rpx};
  1271. }
  1272. }
  1273. .dialog-title {
  1274. font-size: #{32rpx};
  1275. color: #353535;
  1276. width: #{620rpx};
  1277. margin: #{32rpx} auto #{40rpx};
  1278. text-align: center;
  1279. }
  1280. .dialog-choose-item {
  1281. width: #{170rpx};
  1282. height: #{68rpx};
  1283. line-height: #{68rpx};
  1284. text-align: center;
  1285. border-radius: #{34rpx};
  1286. border: #{2rpx} solid #ddd;
  1287. color: #666;
  1288. font-size: #{28rpx};
  1289. margin-bottom: #{16rpx};
  1290. }
  1291. .send-item {
  1292. width: #{180rpx};
  1293. height: #{68rpx};
  1294. line-height: #{66rpx};
  1295. text-align: center;
  1296. border-radius: #{34rpx};
  1297. border: #{2rpx} solid #ddd;
  1298. color: #666;
  1299. background-color: #fff;
  1300. font-size: #{28rpx};
  1301. margin: 0 #{30rpx} #{36rpx};
  1302. }
  1303. .send-item.active {
  1304. color: #fff;
  1305. border: #{2rpx} solid #446dfd;
  1306. background-color: #446dfd;
  1307. }
  1308. .dialog-choose-item.active {
  1309. color: #446dfd;
  1310. border: #{2rpx} solid #446dfd;
  1311. }
  1312. .btn-area {
  1313. height: #{88rpx};
  1314. position: relative;
  1315. border-top: #{2rpx} solid #e2e2e2;
  1316. }
  1317. .btn-area.other-btn-area {
  1318. margin-top: #{10rpx};
  1319. }
  1320. .btn-area .line {
  1321. height: #{32rpx};
  1322. width: #{1rpx};
  1323. background-color: #e2e2e2;
  1324. position: absolute;
  1325. top: #{28rpx};
  1326. left: 0;
  1327. right: 0;
  1328. margin: 0 auto;
  1329. }
  1330. .submit-btn {
  1331. height: #{88rpx};
  1332. line-height: #{88rpx};
  1333. font-size: #{32rpx};
  1334. color: #666;
  1335. width: #{310rpx};
  1336. text-align: center;
  1337. }
  1338. .submit-btn.be-submit {
  1339. color: #446dfd;
  1340. }
  1341. .textarea {
  1342. height: #{252rpx};
  1343. width: #{492rpx};
  1344. padding: #{24rpx} #{32rpx};
  1345. font-size: #{28rpx};
  1346. border-radius: #{16rpx};
  1347. border: #{2rpx} solid #e2e2e2;
  1348. text-align: left;
  1349. margin: #{32rpx} auto;
  1350. }
  1351. .change-price-item {
  1352. position: relative;
  1353. height: #{64rpx};
  1354. line-height: #{64rpx};
  1355. color: #353535;
  1356. font-size: #{28rpx};
  1357. margin-bottom: #{26rpx};
  1358. }
  1359. .change-price-item:first-of-type {
  1360. margin-bottom: #{32rpx};
  1361. }
  1362. .change-price-item:last-of-type {
  1363. margin: #{24rpx} 0 #{34rpx};
  1364. }
  1365. .label {
  1366. height: #{64rpx};
  1367. line-height: #{64rpx};
  1368. text-align: right;
  1369. width: #{178rpx};
  1370. }
  1371. .price-input {
  1372. width: #{298rpx};
  1373. height: #{64rpx};
  1374. margin-left: #{24rpx};
  1375. border-radius: #{32rpx};
  1376. padding-left: #{62rpx};
  1377. background-color: #f7f7f7;
  1378. }
  1379. .money {
  1380. position: absolute;
  1381. left: #{234rpx};
  1382. }
  1383. .reason {
  1384. padding-left: #{32rpx};
  1385. max-height: 600#{rpx};
  1386. overflow: scroll;
  1387. margin-bottom: 40#{rpx};
  1388. &+textarea {
  1389. height: #{186rpx};
  1390. width: #{556rpx};
  1391. }
  1392. }
  1393. .reason-title {
  1394. font-size: #{28rpx};
  1395. color: #999;
  1396. margin-bottom: #{14rpx};
  1397. }
  1398. .reason-content {
  1399. font-size: #{28rpx};
  1400. color: #353535;
  1401. width: #{556rpx};
  1402. margin-bottom: #{20rpx};
  1403. word-break: break-all;
  1404. &.two-line {
  1405. overflow: hidden;
  1406. //#ifdef MP-ALIPAY
  1407. height: #{64rpx};
  1408. //#endif
  1409. // #ifndef MP-ALIPAY
  1410. height: #{76rpx};
  1411. // #endif
  1412. margin-bottom: #{10rpx};
  1413. }
  1414. }
  1415. .reason-img {
  1416. margin-bottom: #{14rpx};
  1417. }
  1418. .reason-img image {
  1419. height: #{180rpx};
  1420. width: #{180rpx};
  1421. margin: 0 #{8rpx} #{8rpx} 0;
  1422. }
  1423. .add-list {
  1424. margin-top: #{50rpx};
  1425. max-height: #{388rpx};
  1426. overflow: auto;
  1427. padding: 0 #{36rpx};
  1428. }
  1429. .add-item {
  1430. padding: #{32rpx} 0;
  1431. margin-left: #{64rpx};
  1432. position: relative;
  1433. font-size: #{28rpx};
  1434. color: #353535;
  1435. border-bottom: #{1rpx} solid #e2e2e2;
  1436. }
  1437. .add-item.delivery-item {
  1438. padding-left: #{64rpx};
  1439. margin-left: 0;
  1440. }
  1441. .add-item:last-of-type {
  1442. border-bottom: 0;
  1443. }
  1444. .add-item image {
  1445. height: #{36rpx};
  1446. width: #{36rpx};
  1447. position: absolute;
  1448. left: #{-66rpx};
  1449. top: 50%;
  1450. margin-top: #{-18rpx};
  1451. }
  1452. .add-item .add-active {
  1453. position: absolute;
  1454. left: #{-64rpx};
  1455. top: 50%;
  1456. margin-top: #{-18rpx};
  1457. }
  1458. .add-item .add-name {
  1459. width: #{220rpx};
  1460. overflow: hidden;
  1461. text-overflow: ellipsis;
  1462. white-space: nowrap;
  1463. }
  1464. .add-item.delivery-item .add-name {
  1465. width: #{400rpx};
  1466. }
  1467. .no-tip {
  1468. position: fixed;
  1469. top: #{400rpx};
  1470. left: 0;
  1471. right: 0;
  1472. margin: 0 auto;
  1473. color: #666666;
  1474. font-size: #{24rpx};
  1475. width: #{240rpx};
  1476. text-align: center;
  1477. }
  1478. .no-tip image {
  1479. height: #{240rpx};
  1480. width: #{240rpx};
  1481. margin-bottom: #{20rpx};
  1482. }
  1483. .refund-price {
  1484. width: #{160rpx};
  1485. border: #{2rpx} solid #e2e2e2;
  1486. border-radius: #{5rpx};
  1487. font-size: #{32rpx};
  1488. padding: 0 #{5rpx};
  1489. }
  1490. .u-bottom-height {
  1491. height: 116upx;
  1492. }
  1493. .delete-icon {
  1494. height: #{34rpx};
  1495. width: #{28rpx};
  1496. }
  1497. .candidate-list {
  1498. max-height: #{420rpx};
  1499. overflow: hidden;
  1500. }
  1501. .icon-search {
  1502. height: #{24rpx};
  1503. width: #{24rpx};
  1504. margin-top: #{16rpx};
  1505. &+text {
  1506. color:#b2b2b2;
  1507. font-size:#{24rpx};
  1508. margin:0 #{5rpx};
  1509. }
  1510. }
  1511. .search-palce {
  1512. height: #{292rpx};
  1513. }
  1514. .goods-name {
  1515. padding-top: #{5rpx};
  1516. }
  1517. .menu-button {
  1518. margin-top: #{24rpx};
  1519. }
  1520. </style>