addgood.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. <template>
  2. <view style="padding-bottom: 130rpx;">
  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: 99;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.goodsIds = 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. this.$Request.getT("/admin/goods/updateBatchStatus", datas).then(res => {
  593. if (res.code == 0) {
  594. this.page = 1
  595. uni.showToast({
  596. title: '操作成功',
  597. icon: 'none'
  598. })
  599. this.getGoodsList()
  600. }
  601. });
  602. }
  603. },
  604. onReachBottom: function() {
  605. this.page = this.page + 1;
  606. this.getGoodsList();
  607. if (this.totalCount == this.goodsList.length) {
  608. uni.showToast({
  609. title: '已经到底了~',
  610. icon: 'none'
  611. })
  612. }
  613. },
  614. onPullDownRefresh: function() {
  615. this.page = 1;
  616. this.getGoodsList();
  617. },
  618. }
  619. </script>
  620. <style lang="scss" scoped>
  621. page {
  622. background: #EDF1F7;
  623. }
  624. .selectcz {
  625. width: 100%;
  626. background-color: #FFFFFF;
  627. position: fixed;
  628. bottom: 0upx;
  629. left: 0;
  630. right: 0;
  631. z-index: 9;
  632. }
  633. .tabse {
  634. width: 50rpx;
  635. height: 10rpx;
  636. background-color: #FCD202;
  637. position: absolute;
  638. bottom: 0;
  639. left: 45%;
  640. transform: translate(-100%, -100%);
  641. }
  642. .tabse1 {
  643. width: 50rpx;
  644. height: 10rpx;
  645. background-color: #FCD202;
  646. position: absolute;
  647. bottom: 0;
  648. left: 70%;
  649. transform: translate(-100%, -100%);
  650. }
  651. .tabse2 {
  652. width: 50rpx;
  653. height: 10rpx;
  654. background-color: #FCD202;
  655. position: absolute;
  656. bottom: 0;
  657. left: 95%;
  658. transform: translate(-100%, -100%);
  659. }
  660. .bg {
  661. background: #FFFFFF;
  662. }
  663. .boxs {
  664. // width: 150upx;
  665. height: 55upx;
  666. // border: 2upx solid #CCCCCC;
  667. border-radius: 28upx;
  668. text-align: center;
  669. line-height: 55upx;
  670. color: #999999;
  671. margin-right: 30rpx;
  672. display: inline-block;
  673. }
  674. .actives {
  675. // width: 150upx;
  676. height: 55upx;
  677. border: 2upx solid #FFCC00;
  678. border-radius: 28upx;
  679. text-align: center;
  680. line-height: 55upx;
  681. color: #000000;
  682. margin-right: 30rpx;
  683. }
  684. .btn {
  685. width: 120upx;
  686. height: 64upx;
  687. border: 2upx solid #999999;
  688. border-radius: 8upx;
  689. text-align: center;
  690. line-height: 64rpx;
  691. color: #000000;
  692. }
  693. .box {
  694. width: 131upx;
  695. height: 45rpx;
  696. background: #FFEAF0;
  697. border-radius: 4upx;
  698. text-align: center;
  699. line-height: 45rpx;
  700. font-size: 24upx;
  701. font-weight: 500;
  702. color: #FE215B;
  703. }
  704. .page-box {
  705. position: relative;
  706. // left: 0;
  707. height: 100vh;
  708. z-index: 0;
  709. top: -20px;
  710. }
  711. .centre {
  712. position: absolute;
  713. left: 0;
  714. top: 0;
  715. right: 0;
  716. bottom: 0;
  717. margin: auto;
  718. height: 400rpx;
  719. text-align: center;
  720. // padding: 200rpx auto;
  721. font-size: 32rpx;
  722. image {
  723. width: 387rpx;
  724. height: 341rpx;
  725. // margin-bottom: 20rpx;
  726. margin: 0 auto 20rpx;
  727. // border: 1px dotted #000000;
  728. }
  729. .tips {
  730. font-size: 32rpx;
  731. color: #2F3044;
  732. margin-top: 20rpx;
  733. font-weight: 700;
  734. }
  735. .btn {
  736. margin: 80rpx auto;
  737. width: 600rpx;
  738. border-radius: 32rpx;
  739. line-height: 90rpx;
  740. color: #ffffff;
  741. font-size: 34rpx;
  742. background: #5074FF;
  743. }
  744. }
  745. .boxIndex {
  746. height: 78upx;
  747. line-height: 78upx;
  748. }
  749. .tans {
  750. background: #fff;
  751. }
  752. .addguige {
  753. width: 38%;
  754. color: #ffffff;
  755. text-align: center;
  756. height: 88upx;
  757. line-height: 88upx;
  758. }
  759. .addguigezz{
  760. border-radius: 16upx 0 0 0;
  761. background-color: #999999;
  762. box-shadow: 0px 10upx 20upx 0px #999999;
  763. }
  764. .addguigezzs{
  765. border-radius: 0 16upx 0 0;
  766. background: #FCD202;
  767. box-shadow: 0px 10upx 20upx 0px #FCD202;
  768. }
  769. .addguiges {
  770. width: 90%;
  771. margin: 0 auto;
  772. background: #FCD202;
  773. box-shadow: 0px 10upx 20upx 0px #FFD9B3;
  774. border-radius: 16upx;
  775. text-align: center;
  776. height: 88upx;
  777. line-height: 88upx;
  778. /* position: fixed;
  779. bottom: 25upx;
  780. left: 0;
  781. right: 0; */
  782. }
  783. </style>