addgood.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  1. <template>
  2. <view>
  3. <view>
  4. <!-- #ifndef H5 -->
  5. <view style="position: fixed;top: 0;left: 0;right: 0;z-index: 9999;background: #fff;">
  6. <!-- #endif -->
  7. <!-- #ifdef H5 -->
  8. <view style="position: fixed;top: 44px;left: 0;right: 0;z-index: 1;background: #fff;">
  9. <!-- #endif -->
  10. <view class="bg padding-lr padding-tb-sm flex align-center">
  11. <u-search @change="search" v-model="goodsName" placeholder="搜索商品标题 " bg-color="#F7F7F7"
  12. style="width: 100%;" shape="square" :show-action="false"></u-search>
  13. </view>
  14. <view class="flex bg">
  15. <view v-for="(item,index) in tab" :key="index" class="flex-sub boxIndex"
  16. :class="tabIndex == index?'tans':''"
  17. :style="index==1?'text-align:center':(index==2?'text-align:right;margin-right:40rpx':'')"
  18. style="position: relative;padding-left: 40rpx;" @click="bindindex(index)">
  19. {{item.name}}
  20. <view :class="index==0?'tabse':(index==1?'tabse1':'tabse2')" v-show="tabIndex == index">
  21. </view>
  22. </view>
  23. </view>
  24. <scroll-view scroll-x="true" class="flex align-center padding-sm"
  25. style="height: 100rpx;width: 100%;white-space: nowrap">
  26. <view v-for="(item,index) in list" :key="index" class="boxs"
  27. :class="counts == index?'actives':''" @click="bindTabs(index,item)">{{item.classifyName}}
  28. </view>
  29. </scroll-view>
  30. </view>
  31. <!-- #ifdef H5 -->
  32. <view style="margin-top: 155px;" v-if="goodsList.length>0">
  33. <!-- #endif -->
  34. <!-- #ifndef H5 -->
  35. <view style="margin-top: 290upx;padding-bottom: 170px;" v-if="goodsList.length>0">
  36. <!-- #endif -->
  37. <u-checkbox-group class="flex justify-center flex-wrap">
  38. <view class="bg radius" style="width: 686rpx;margin-top: 20rpx;" v-for="(item,index) in goodsList" :key='index'>
  39. <view class="padding-sm" style="position: relative;">
  40. <u-checkbox @change="checkboxChange(item)" v-model="item.checkeds">
  41. </u-checkbox>
  42. 创建时间:{{item.createTime}}
  43. <span style="position: absolute;right: 20rpx;">
  44. <u-switch v-model="item.checked" active-color="#17cd8a" inactive-color="#eee" size="40"
  45. @change="changeKg(index,item)"></u-switch>
  46. </span>
  47. </view>
  48. <view style="width:100%;border-top: 1upx solid #E6E6E6;"></view>
  49. <view class="flex padding" @click="goDet(item)">
  50. <view>
  51. <image :src="item.goodsCover?item.goodsCover:'../../static/logo.png'" class="radius"
  52. style="width:210upx;height:170upx;"></image>
  53. </view>
  54. <view class="margin-left flex flex-direction justify-between">
  55. <view class="text-lg text-bold">{{item.goodsName}}</view>
  56. <view class="margin-tb-xs u-line-2" style="color:#999999;">
  57. {{item.goodsDescribe}}
  58. </view>
  59. <view style="width: 414rpx;" class="text-lg flex justify-between align-center">
  60. <view class="">
  61. <text class="text-sm">¥</text>{{item.goodsMoney}}
  62. </view>
  63. <view style="margin-right: 10rpx;">库存:{{item.inventory?item.inventory:'0'}}</view>
  64. </view>
  65. </view>
  66. </view>
  67. <view style="width: 686upx;height: 1upx;border: 1upx solid #E6E6E6;margin:0 auto;"></view>
  68. <view class="flex justify-between padding align-center" >
  69. <!-- <view>库存:{{item.inventory?item.inventory:'0'}}</view> -->
  70. <view class="flex align-center justify-end" style="width: 100%;">
  71. <view @click="goodsSort(item)" class="btn margin-right-sm">排序</view>
  72. <view @click="goodupdete(item)" class="btn margin-right-sm">删除</view>
  73. <view @click="deitor(item)" class="btn margin-right-sm">库存</view>
  74. <view @click="goUpdate(item)" class="btn">修改</view>
  75. </view>
  76. </view>
  77. </view>
  78. </u-checkbox-group>
  79. </view>
  80. <!-- <view class="addguige text-bold" @click="goAdd()">添加商品</view> -->
  81. <empty v-if="goodsList.length == 0"></empty>
  82. </view>
  83. <view class="selectcz flex align-center">
  84. <u-checkbox @change="checkboxChanges()" style="margin-left: 40rpx;" v-model="checkedz">全选</u-checkbox>
  85. <view class="addguige text-bold addguigezz" @click="selectczan">操作</view>
  86. <view class="addguige text-bold addguigezzs" @click="goAdd()">添加商品</view>
  87. </view>
  88. <!-- 排序 -->
  89. <u-popup v-model="shows3" mode="center" border-radius="14" width="500rpx" height="300rpx"
  90. :closeable="true">
  91. <view>
  92. <view class="padding">
  93. <view>排序</view>
  94. <view style="margin-top: 20rpx;" class="flex justify-center">
  95. <u-number-box :input-width="300" :input-height="60" v-model="paixu" :min="0" placeholder="请填写"></u-number-box>
  96. </view>
  97. </view>
  98. <view class="addguiges" @click="bindclose3()">确定</view>
  99. </view>
  100. </u-popup>
  101. <u-popup v-model="shows" mode="center" border-radius="14" width="500rpx" height="300rpx"
  102. :closeable="closeable">
  103. <view>
  104. <view class="padding">
  105. <view>添加库存</view>
  106. <view>
  107. <u-input v-model="typeperature" placeholder="请填写" type="number" />
  108. </view>
  109. </view>
  110. <view class="addguiges" @click="bindclose()">确定</view>
  111. </view>
  112. </u-popup>
  113. <!-- 批量修改库存 -->
  114. <u-popup v-model="shows2" mode="center" border-radius="14" width="500rpx" height="300rpx"
  115. :closeable="true">
  116. <view>
  117. <view class="padding">
  118. <view>修改库存</view>
  119. <view>
  120. <u-input v-model="typeperature2" placeholder="请填写" type="number" />
  121. </view>
  122. </view>
  123. <view class="addguiges" @click="bindclose2()">确定</view>
  124. </view>
  125. </u-popup>
  126. <!-- 多选操作菜单 -->
  127. <u-action-sheet :list="tabIndex==2?lists1:lists" @click="click" v-model="show"></u-action-sheet>
  128. </view>
  129. </template>
  130. <script>
  131. import empty from '@/components/empty.vue'
  132. export default {
  133. components: {
  134. empty
  135. },
  136. data() {
  137. return {
  138. goodsIds:[],
  139. shows3:false,
  140. paixu:0,
  141. shows2:false,
  142. typeperature2:'',
  143. checkedz:false,
  144. show: false,
  145. lists: [{
  146. text: '批量下架'
  147. }, {
  148. text: '修改库存'
  149. }, {
  150. text: '批量删除'
  151. }],
  152. lists1: [{
  153. text: '批量上架',
  154. }, {
  155. text: '修改库存'
  156. }, {
  157. text: '批量删除'
  158. }],
  159. tab: [{
  160. name: '出售中',
  161. }, {
  162. name: '已售完',
  163. }, {
  164. name: '已下架'
  165. }],
  166. tabIndex: 0,
  167. list: [{
  168. name: '奶茶热饮'
  169. }, {
  170. name: '鲜榨果汁'
  171. }, {
  172. name: '牛奶系列'
  173. }, {
  174. name: '超低折扣'
  175. }],
  176. counts: '',
  177. classifyId: '',
  178. page: 1,
  179. limit: 10,
  180. shopId: '',
  181. goodsName: '',
  182. goodsList: [],
  183. totalCount: 0,
  184. shows: false,
  185. typeperature: '',
  186. goodsId: '',
  187. checked: false,
  188. pageList: [],
  189. closeable: true
  190. }
  191. },
  192. onLoad(option) {
  193. uni.showLoading({
  194. title: '加载中......',
  195. icon: 'loading'
  196. })
  197. // this.shopId = option.shopId
  198. this.shopId = this.$queue.getData("shopId")
  199. this.getClassifyList()
  200. },
  201. onShow() {
  202. this.getGoodsList()
  203. },
  204. methods: {
  205. // 批量库存
  206. bindclose2(index){
  207. if (!this.typeperature2) {
  208. uni.showToast({
  209. title: '请填写规格数量',
  210. icon: 'none',
  211. duration: 1000
  212. })
  213. return
  214. }
  215. if(this.typeperature2<0){
  216. uni.showToast({
  217. title: '库存数量不得小于0',
  218. icon: 'none',
  219. duration: 1000
  220. })
  221. return
  222. }
  223. let data = {
  224. goodsIds: this.goodsIds.join(),
  225. inventory: this.typeperature2
  226. }
  227. let that = this
  228. that.shows2 = false
  229. uni.showModal({
  230. title:'提示',
  231. content:'确认已选中的商品批量修改库存?',
  232. complete:function(ret){
  233. if(ret.confirm){
  234. that.$Request.getA("/admin/goods/updateBatchInventory", data).then(res => {
  235. if (res.code == 0) {
  236. that.shows2 = false
  237. uni.showToast({
  238. title: '修改成功',
  239. icon: 'none'
  240. })
  241. that.typeperature2 = ''
  242. that.checkedz = false
  243. that.goodsIds = []
  244. that.page = 1
  245. that.getGoodsList()
  246. }
  247. });
  248. }
  249. }
  250. })
  251. },
  252. bindclose3(){
  253. let data = {
  254. sort:this.paixu,
  255. goodsId:this.goodsId
  256. }
  257. this.$Request.getA('/admin/goods/updateSort', data).then(res => {
  258. if(res.code==0){
  259. uni.showToast({
  260. title:'修改成功'
  261. })
  262. this.goodsId = ''
  263. this.shows3 = false
  264. this.page = 1
  265. this.getGoodsList();
  266. }else{
  267. uni.showToast({
  268. title:res.msg,
  269. icon:'none'
  270. })
  271. }
  272. })
  273. },
  274. //排序
  275. goodsSort(item){
  276. if(item.sort){
  277. this.paixu = item.sort
  278. }else{
  279. this.paixu = 0
  280. }
  281. this.shows3 = true
  282. this.goodsId = item.goodsId
  283. },
  284. selectczan(){
  285. if(this.goodsIds.length==0){
  286. uni.showToast({
  287. title:'请选择商品后操作',
  288. icon:'none'
  289. })
  290. }else{
  291. this.show = true
  292. }
  293. },
  294. //全选
  295. checkboxChanges(){
  296. this.goodsIds = []
  297. if(this.checkedz==false){//全选(把总复选框选中并把goodsid赋给数组)
  298. this.goodsList.map(item=>{
  299. item.checkeds = true
  300. this.goodsIds.push(item.goodsId)
  301. })
  302. console.log(this.goodsList)
  303. }else{//全不选
  304. this.goodsList.map(item=>{
  305. item.checkeds = false
  306. })
  307. }
  308. },
  309. //批量操作
  310. caozuos(url,datas,data){
  311. let that = this
  312. uni.showModal({
  313. title:'提示',
  314. content:'确认'+data+'已选中的商品?',
  315. complete:function(ret){
  316. if(ret.confirm){
  317. that.$Request.getA(url, datas).then(res => {
  318. if(res.code==0){
  319. uni.showToast({
  320. title:data+'成功'
  321. })
  322. that.checkedz=false
  323. that.goodsIds = []
  324. that.page = 1
  325. that.getGoodsList();
  326. }else{
  327. uni.showToast({
  328. title:res.msg,
  329. icon:'none'
  330. })
  331. }
  332. })
  333. }
  334. }
  335. })
  336. },
  337. //选择的操作
  338. click(e) {
  339. let data = this.lists[e].text
  340. if(this.tabIndex==2){
  341. if(data == '批量下架'){
  342. data = '批量上架'
  343. }
  344. }
  345. switch (data) {
  346. case '批量下架':
  347. let datas = {
  348. goodsIds:this.goodsIds.join(','),
  349. status:1
  350. }
  351. this.caozuos('/admin/goods/updateBatchStatus',datas,data)
  352. break;
  353. case '修改库存':
  354. this.shows2 = true
  355. break;
  356. case '批量删除':
  357. let datas2 = {
  358. goodsIds:this.goodsIds.join(','),
  359. }
  360. this.caozuos('/admin/goods/deleteBatchIds',datas2,data)
  361. break;
  362. case '批量上架':
  363. let datas1 = {
  364. goodsIds:this.goodsIds.join(','),
  365. status:0
  366. }
  367. this.caozuos('/admin/goods/updateBatchStatus',datas1,data)
  368. break;
  369. default:
  370. break;
  371. }
  372. },
  373. // 选中某个复选框时,由checkbox时触发
  374. checkboxChange(e) {
  375. if(this.goodsIds.indexOf(e.goodsId)==-1){//如果没有选中则把goodsid增加到数组中
  376. this.goodsIds.push(e.goodsId)
  377. }else{//如果找到了则把goodsid删除
  378. this.goodsIds.splice(this.goodsIds.indexOf(e.goodsId),1)
  379. }
  380. if(this.goodsIds.length==this.goodsList.length){ //判断是否全部选中
  381. this.checkedz = true
  382. }else{
  383. this.checkedz = false
  384. }
  385. },
  386. //修改商品
  387. goUpdate(item) {
  388. uni.navigateTo({
  389. url: '/my/publish/goods?goodsId=' + item.goodsId
  390. })
  391. },
  392. goAdd() {
  393. uni.navigateTo({
  394. url: '/my/publish/goods'
  395. })
  396. },
  397. //搜索
  398. search() {
  399. this.getGoodsList()
  400. },
  401. bindindex(index) {
  402. console.log(index)
  403. uni.showLoading({
  404. title: '加载中......',
  405. icon: 'loading'
  406. })
  407. this.page = 1
  408. this.tabIndex = index
  409. this.getGoodsList()
  410. },
  411. getGoodsList() {
  412. let data = {
  413. page: this.page,
  414. limit: this.limit,
  415. goodsName: this.goodsName,
  416. // shopId: this.shopId,
  417. classifyId: this.classifyId,
  418. shopId: uni.getStorageSync('shopId'),
  419. status: this.tabIndex == 1 ? 2 : (this.tabIndex == 2 ? 1 : this.tabIndex)
  420. }
  421. this.$Request.getA("/admin/goodsShop/selectGoodsByShopId", data).then(res => {
  422. if (res.code == 0) {
  423. uni.hideLoading()
  424. if (res.data.list.length > 0) {
  425. for (var i in res.data.list) {
  426. if (res.data.list[i].status == 1) {
  427. res.data.list[i].checked = false
  428. } else {
  429. res.data.list[i].checked = true
  430. }
  431. }
  432. console.log('res.data.list', res.data.list)
  433. if (this.page == 1) {
  434. this.goodsList = res.data.list
  435. } else {
  436. this.goodsList = [...this.goodsList, ...res.data.list]
  437. }
  438. this.totalCount = res.data.totalCount
  439. } else {
  440. if (this.page == 1) {
  441. this.goodsList = []
  442. } else {
  443. this.goodsList = this.goodsList
  444. }
  445. }
  446. }
  447. uni.stopPullDownRefresh();
  448. uni.hideLoading()
  449. });
  450. },
  451. //删除商品
  452. goodupdete(e) {
  453. console.log(e)
  454. let that = this
  455. uni.showModal({
  456. title: '提示',
  457. content: '确定要删除当前商品吗?刪除后无法恢复',
  458. cancelText: "取消", // 取消按钮的文字
  459. confirmText: "确定", // 确认按钮文字
  460. showCancel: true, // 是否显示取消按钮,默认为 true
  461. confirmColor: '#f55850',
  462. cancelColor: '#39B54A',
  463. success: (res) => {
  464. if (res.confirm) {
  465. let data = {
  466. shopId: uni.getStorageSync('shopId'),
  467. goodsId: e.goodsId,
  468. }
  469. that.$Request.postA("/admin/goodsShop/deleteGoodsByShopId", data).then(res => {
  470. if (res.code == 0) {
  471. uni.showToast({
  472. title: "删除成功",
  473. icon: 'none'
  474. })
  475. that.page = 1
  476. that.getGoodsList();
  477. } else {
  478. uni.showToast({
  479. title: res.msg,
  480. icon: 'none'
  481. })
  482. }
  483. });
  484. } else {
  485. }
  486. }
  487. })
  488. },
  489. // 商品类型
  490. getClassifyList() {
  491. this.$Request.getA("/admin/goods/selectAllClassify?shopId=" + this.shopId).then(res => {
  492. if (res.code == 0) {
  493. let data = [{
  494. classifyName: '全部',
  495. classifyId: ''
  496. }]
  497. this.list = [...data, ...res.data]
  498. this.classifyId = this.list[0].classifyId
  499. this.getGoodsList()
  500. }
  501. });
  502. },
  503. //库存弹框
  504. bindclose(index) {
  505. if (!this.typeperature) {
  506. uni.showToast({
  507. title: '请填写规格数量',
  508. icon: 'none',
  509. duration: 1000
  510. })
  511. return
  512. }
  513. let data = {
  514. shopId: uni.getStorageSync('shopId'),
  515. goodsId: this.goodsId,
  516. inventory: this.typeperature
  517. }
  518. this.$Request.postJson("/admin/goodsShop/updateGoodsByShopId", data).then(res => {
  519. if (res.code == 0) {
  520. this.shows = false
  521. this.typeperature = ''
  522. uni.showToast({
  523. title: '修改成功',
  524. icon: 'none'
  525. })
  526. this.getGoodsList()
  527. }
  528. });
  529. },
  530. //编辑库存
  531. deitor(e) {
  532. this.shows = true
  533. this.goodsId = e.goodsId
  534. },
  535. add(item) {
  536. let that = this
  537. let data = [{
  538. goodsId: item.goodsId,
  539. shopId: this.shopId
  540. }]
  541. this.$Request.postJsonA("/admin/goodsShop/addGoodsByShopId", data).then(res => {
  542. if (res.code == 0) {
  543. this.page = 1
  544. this.getGoodsList()
  545. uni.showToast({
  546. title: '添加成功',
  547. icon: 'none'
  548. })
  549. this.getGoodsList()
  550. }
  551. });
  552. },
  553. goDet(e) {
  554. uni.navigateTo({
  555. url: '/my/store/goodDetail?goodsId=' + e.goodsId + "&shopId=" + this.shopId + '&type=2'
  556. })
  557. },
  558. bindDetail() {
  559. uni.navigateTo({
  560. url: './goodDetail'
  561. })
  562. },
  563. bindTabs(index, e) {
  564. console.log(e)
  565. uni.showLoading({
  566. title: '加载中......',
  567. icon: 'loading'
  568. })
  569. this.counts = index
  570. this.classifyId = e.classifyId
  571. this.page = 1
  572. this.getGoodsList()
  573. },
  574. bindAddgood() {
  575. uni.navigateTo({
  576. url: './addgood'
  577. })
  578. },
  579. // 上下架商品
  580. changeKg(index, row) {
  581. console.log(row.status)
  582. var datas = {}
  583. datas.goodsId = row.goodsId
  584. if (row.status == 0) {
  585. datas.status = 1
  586. }
  587. if (row.status == 1) {
  588. datas.status = 0
  589. }
  590. // datas.status = row.status
  591. this.$Request.postJsonA("/admin/goods/update", datas).then(res => {
  592. if (res.code == 0) {
  593. this.page = 1
  594. uni.showToast({
  595. title: '操作成功',
  596. icon: 'none'
  597. })
  598. this.getGoodsList()
  599. }
  600. });
  601. }
  602. },
  603. onReachBottom: function() {
  604. this.page = this.page + 1;
  605. this.getGoodsList();
  606. if (this.totalCount == this.goodsList.length) {
  607. uni.showToast({
  608. title: '已经到底了~',
  609. icon: 'none'
  610. })
  611. }
  612. },
  613. onPullDownRefresh: function() {
  614. this.page = 1;
  615. this.getGoodsList();
  616. },
  617. }
  618. </script>
  619. <style lang="scss" scoped>
  620. page {
  621. background: #EDF1F7;
  622. }
  623. .selectcz {
  624. width: 100%;
  625. background-color: #FFFFFF;
  626. position: fixed;
  627. bottom: 0upx;
  628. left: 0;
  629. right: 0;
  630. z-index: 9;
  631. }
  632. .tabse {
  633. width: 50rpx;
  634. height: 10rpx;
  635. background-color: #FCD202;
  636. position: absolute;
  637. bottom: 0;
  638. left: 45%;
  639. transform: translate(-100%, -100%);
  640. }
  641. .tabse1 {
  642. width: 50rpx;
  643. height: 10rpx;
  644. background-color: #FCD202;
  645. position: absolute;
  646. bottom: 0;
  647. left: 70%;
  648. transform: translate(-100%, -100%);
  649. }
  650. .tabse2 {
  651. width: 50rpx;
  652. height: 10rpx;
  653. background-color: #FCD202;
  654. position: absolute;
  655. bottom: 0;
  656. left: 95%;
  657. transform: translate(-100%, -100%);
  658. }
  659. .bg {
  660. background: #FFFFFF;
  661. }
  662. .boxs {
  663. width: 150upx;
  664. height: 55upx;
  665. border: 2upx solid #CCCCCC;
  666. border-radius: 28upx;
  667. text-align: center;
  668. line-height: 55upx;
  669. color: #999999;
  670. margin-right: 30rpx;
  671. display: inline-block;
  672. }
  673. .actives {
  674. width: 150upx;
  675. height: 55upx;
  676. border: 2upx solid #FFCC00;
  677. border-radius: 28upx;
  678. text-align: center;
  679. line-height: 55upx;
  680. color: #000000;
  681. margin-right: 30rpx;
  682. }
  683. .btn {
  684. width: 120upx;
  685. height: 64upx;
  686. border: 2upx solid #999999;
  687. border-radius: 8upx;
  688. text-align: center;
  689. line-height: 64rpx;
  690. color: #000000;
  691. }
  692. .box {
  693. width: 131upx;
  694. height: 45rpx;
  695. background: #FFEAF0;
  696. border-radius: 4upx;
  697. text-align: center;
  698. line-height: 45rpx;
  699. font-size: 24upx;
  700. font-weight: 500;
  701. color: #FE215B;
  702. }
  703. .page-box {
  704. position: relative;
  705. // left: 0;
  706. height: 100vh;
  707. z-index: 0;
  708. top: -20px;
  709. }
  710. .centre {
  711. position: absolute;
  712. left: 0;
  713. top: 0;
  714. right: 0;
  715. bottom: 0;
  716. margin: auto;
  717. height: 400rpx;
  718. text-align: center;
  719. // padding: 200rpx auto;
  720. font-size: 32rpx;
  721. image {
  722. width: 387rpx;
  723. height: 341rpx;
  724. // margin-bottom: 20rpx;
  725. margin: 0 auto 20rpx;
  726. // border: 1px dotted #000000;
  727. }
  728. .tips {
  729. font-size: 32rpx;
  730. color: #2F3044;
  731. margin-top: 20rpx;
  732. font-weight: 700;
  733. }
  734. .btn {
  735. margin: 80rpx auto;
  736. width: 600rpx;
  737. border-radius: 32rpx;
  738. line-height: 90rpx;
  739. color: #ffffff;
  740. font-size: 34rpx;
  741. background: #5074FF;
  742. }
  743. }
  744. .boxIndex {
  745. height: 78upx;
  746. line-height: 78upx;
  747. }
  748. .tans {
  749. background: #fff;
  750. }
  751. .addguige {
  752. width: 38%;
  753. color: #ffffff;
  754. text-align: center;
  755. height: 88upx;
  756. line-height: 88upx;
  757. }
  758. .addguigezz{
  759. border-radius: 16upx 0 0 0;
  760. background-color: #999999;
  761. box-shadow: 0px 10upx 20upx 0px #999999;
  762. }
  763. .addguigezzs{
  764. border-radius: 0 16upx 0 0;
  765. background: #FCD202;
  766. box-shadow: 0px 10upx 20upx 0px #FCD202;
  767. }
  768. .addguiges {
  769. width: 90%;
  770. margin: 0 auto;
  771. background: #FCD202;
  772. box-shadow: 0px 10upx 20upx 0px #FFD9B3;
  773. border-radius: 16upx;
  774. text-align: center;
  775. height: 88upx;
  776. line-height: 88upx;
  777. /* position: fixed;
  778. bottom: 25upx;
  779. left: 0;
  780. right: 0; */
  781. }
  782. </style>