addgood.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  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.showModal({
  268. title: '提示',
  269. content: res.msg,
  270. success: function (res) {
  271. if (res.confirm) {
  272. } else if (res.cancel) {
  273. }
  274. }
  275. });
  276. }
  277. })
  278. },
  279. //排序
  280. goodsSort(item){
  281. if(item.sort){
  282. this.paixu = item.sort
  283. }else{
  284. this.paixu = 0
  285. }
  286. this.shows3 = true
  287. this.goodsId = item.goodsId
  288. },
  289. selectczan(){
  290. if(this.goodsIds.length==0){
  291. uni.showToast({
  292. title:'请选择商品后操作',
  293. icon:'none'
  294. })
  295. }else{
  296. this.show = true
  297. }
  298. },
  299. //全选
  300. checkboxChanges(){
  301. this.goodsIds = []
  302. if(this.checkedz==false){//全选(把总复选框选中并把goodsid赋给数组)
  303. this.goodsList.map(item=>{
  304. item.checkeds = true
  305. this.goodsIds.push(item.goodsId)
  306. })
  307. console.log(this.goodsList)
  308. }else{//全不选
  309. this.goodsList.map(item=>{
  310. item.checkeds = false
  311. })
  312. }
  313. },
  314. //批量操作
  315. caozuos(url,datas,data){
  316. let that = this
  317. uni.showModal({
  318. title:'提示',
  319. content:'确认'+data+'已选中的商品?',
  320. complete:function(ret){
  321. if(ret.confirm){
  322. that.$Request.getA(url, datas).then(res => {
  323. if(res.code==0){
  324. uni.showToast({
  325. title:data+'成功'
  326. })
  327. that.checkedz=false
  328. that.goodsIds = []
  329. that.page = 1
  330. that.getGoodsList();
  331. }else{
  332. uni.showModal({
  333. title: '提示',
  334. content: res.msg,
  335. success: function (res) {
  336. if (res.confirm) {
  337. } else if (res.cancel) {
  338. }
  339. }
  340. });
  341. }
  342. })
  343. }
  344. }
  345. })
  346. },
  347. //选择的操作
  348. click(e) {
  349. let data = this.lists[e].text
  350. if(this.tabIndex==2){
  351. if(data == '批量下架'){
  352. data = '批量上架'
  353. }
  354. }
  355. switch (data) {
  356. case '批量下架':
  357. let datas = {
  358. goodsIds:this.goodsIds.join(','),
  359. status:1
  360. }
  361. this.caozuos('/admin/goods/updateBatchStatus',datas,data)
  362. break;
  363. case '修改库存':
  364. this.shows2 = true
  365. break;
  366. case '批量删除':
  367. let datas2 = {
  368. goodsIds:this.goodsIds.join(','),
  369. }
  370. this.caozuos('/admin/goods/deleteBatchIds',datas2,data)
  371. break;
  372. case '批量上架':
  373. let datas1 = {
  374. goodsIds:this.goodsIds.join(','),
  375. status:0
  376. }
  377. this.caozuos('/admin/goods/updateBatchStatus',datas1,data)
  378. break;
  379. default:
  380. break;
  381. }
  382. },
  383. // 选中某个复选框时,由checkbox时触发
  384. checkboxChange(e) {
  385. if(this.goodsIds.indexOf(e.goodsId)==-1){//如果没有选中则把goodsid增加到数组中
  386. this.goodsIds.push(e.goodsId)
  387. }else{//如果找到了则把goodsid删除
  388. this.goodsIds.splice(this.goodsIds.indexOf(e.goodsId),1)
  389. }
  390. if(this.goodsIds.length==this.goodsList.length){ //判断是否全部选中
  391. this.checkedz = true
  392. }else{
  393. this.checkedz = false
  394. }
  395. },
  396. //修改商品
  397. goUpdate(item) {
  398. uni.navigateTo({
  399. url: '/my/publish/goods?goodsId=' + item.goodsId
  400. })
  401. },
  402. goAdd() {
  403. uni.navigateTo({
  404. url: '/my/publish/goods'
  405. })
  406. },
  407. //搜索
  408. search() {
  409. this.getGoodsList()
  410. },
  411. bindindex(index) {
  412. console.log(index)
  413. uni.showLoading({
  414. title: '加载中......',
  415. icon: 'loading'
  416. })
  417. this.page = 1
  418. this.tabIndex = index
  419. this.getGoodsList()
  420. },
  421. getGoodsList() {
  422. let data = {
  423. page: this.page,
  424. limit: this.limit,
  425. goodsName: this.goodsName,
  426. // shopId: this.shopId,
  427. classifyId: this.classifyId,
  428. shopId: uni.getStorageSync('shopId'),
  429. status: this.tabIndex == 1 ? 2 : (this.tabIndex == 2 ? 1 : this.tabIndex)
  430. }
  431. this.$Request.getA("/admin/goodsShop/selectGoodsByShopId", data).then(res => {
  432. if (res.code == 0) {
  433. uni.hideLoading()
  434. if (res.data.list.length > 0) {
  435. for (var i in res.data.list) {
  436. if (res.data.list[i].status == 1) {
  437. res.data.list[i].checked = false
  438. } else {
  439. res.data.list[i].checked = true
  440. }
  441. }
  442. console.log('res.data.list', res.data.list)
  443. if (this.page == 1) {
  444. this.goodsList = res.data.list
  445. } else {
  446. this.goodsList = [...this.goodsList, ...res.data.list]
  447. }
  448. this.totalCount = res.data.totalCount
  449. } else {
  450. if (this.page == 1) {
  451. this.goodsList = []
  452. } else {
  453. this.goodsList = this.goodsList
  454. }
  455. }
  456. }
  457. uni.stopPullDownRefresh();
  458. uni.hideLoading()
  459. });
  460. },
  461. //删除商品
  462. goodupdete(e) {
  463. console.log(e)
  464. let that = this
  465. uni.showModal({
  466. title: '提示',
  467. content: '确定要删除当前商品吗?刪除后无法恢复',
  468. cancelText: "取消", // 取消按钮的文字
  469. confirmText: "确定", // 确认按钮文字
  470. showCancel: true, // 是否显示取消按钮,默认为 true
  471. confirmColor: '#f55850',
  472. cancelColor: '#39B54A',
  473. success: (res) => {
  474. if (res.confirm) {
  475. let data = {
  476. shopId: uni.getStorageSync('shopId'),
  477. goodsId: e.goodsId,
  478. }
  479. that.$Request.postA("/admin/goodsShop/deleteGoodsByShopId", data).then(res => {
  480. if (res.code == 0) {
  481. uni.showToast({
  482. title: "删除成功",
  483. icon: 'none'
  484. })
  485. that.page = 1
  486. that.getGoodsList();
  487. } else {
  488. uni.showModal({
  489. title: '提示',
  490. content: res.msg,
  491. success: function (res) {
  492. if (res.confirm) {
  493. } else if (res.cancel) {
  494. }
  495. }
  496. });
  497. }
  498. });
  499. } else {
  500. }
  501. }
  502. })
  503. },
  504. // 商品类型
  505. getClassifyList() {
  506. let data={
  507. shopId:this.shopId
  508. }
  509. this.$Request.getA("/admin/goods/selectAllClassify",data).then(res => {
  510. if (res.code == 0) {
  511. let data = [{
  512. classifyName: '全部',
  513. classifyId: ''
  514. }]
  515. this.list = [...data, ...res.data]
  516. this.classifyId = this.list[0].classifyId
  517. this.getGoodsList()
  518. }
  519. });
  520. },
  521. //库存弹框
  522. bindclose(index) {
  523. if (!this.typeperature) {
  524. uni.showToast({
  525. title: '请填写规格数量',
  526. icon: 'none',
  527. duration: 1000
  528. })
  529. return
  530. }
  531. let data = {
  532. shopId: uni.getStorageSync('shopId'),
  533. goodsId: this.goodsId,
  534. inventory: this.typeperature
  535. }
  536. this.$Request.postJson("/admin/goodsShop/updateGoodsByShopId", data).then(res => {
  537. if (res.code == 0) {
  538. this.shows = false
  539. this.typeperature = ''
  540. uni.showToast({
  541. title: '修改成功',
  542. icon: 'none'
  543. })
  544. this.getGoodsList()
  545. }
  546. });
  547. },
  548. //编辑库存
  549. deitor(e) {
  550. this.shows = true
  551. this.goodsId = e.goodsId
  552. },
  553. add(item) {
  554. let that = this
  555. let data = [{
  556. goodsId: item.goodsId,
  557. shopId: this.shopId
  558. }]
  559. this.$Request.postJsonA("/admin/goodsShop/addGoodsByShopId", data).then(res => {
  560. if (res.code == 0) {
  561. this.page = 1
  562. this.getGoodsList()
  563. uni.showToast({
  564. title: '添加成功',
  565. icon: 'none'
  566. })
  567. this.getGoodsList()
  568. }
  569. });
  570. },
  571. goDet(e) {
  572. uni.navigateTo({
  573. url: '/my/store/goodDetail?goodsId=' + e.goodsId + "&shopId=" + this.shopId + '&type=2'
  574. })
  575. },
  576. bindDetail() {
  577. uni.navigateTo({
  578. url: './goodDetail'
  579. })
  580. },
  581. bindTabs(index, e) {
  582. console.log(e)
  583. uni.showLoading({
  584. title: '加载中......',
  585. icon: 'loading'
  586. })
  587. this.counts = index
  588. this.classifyId = e.classifyId
  589. this.page = 1
  590. this.getGoodsList()
  591. },
  592. bindAddgood() {
  593. uni.navigateTo({
  594. url: './addgood'
  595. })
  596. },
  597. // 上下架商品
  598. changeKg(index, row) {
  599. console.log(row.status)
  600. var datas = {}
  601. datas.goodsIds = row.goodsId
  602. if (row.status == 0) {
  603. datas.status = 1
  604. }
  605. if (row.status == 1) {
  606. datas.status = 0
  607. }
  608. // datas.status = row.status
  609. // this.$Request.postJsonA("/admin/goods/update", datas).then(res => {
  610. this.$Request.getT("/admin/goods/updateBatchStatus", datas).then(res => {
  611. if (res.code == 0) {
  612. this.page = 1
  613. uni.showToast({
  614. title: '操作成功',
  615. icon: 'none'
  616. })
  617. this.getGoodsList()
  618. }
  619. });
  620. }
  621. },
  622. onReachBottom: function() {
  623. this.page = this.page + 1;
  624. this.getGoodsList();
  625. if (this.totalCount == this.goodsList.length) {
  626. uni.showToast({
  627. title: '已经到底了~',
  628. icon: 'none'
  629. })
  630. }
  631. },
  632. onPullDownRefresh: function() {
  633. this.page = 1;
  634. this.getGoodsList();
  635. },
  636. }
  637. </script>
  638. <style lang="scss" scoped>
  639. page {
  640. background: #EDF1F7;
  641. }
  642. .selectcz {
  643. width: 100%;
  644. background-color: #FFFFFF;
  645. position: fixed;
  646. bottom: 0upx;
  647. left: 0;
  648. right: 0;
  649. z-index: 9;
  650. }
  651. .tabse {
  652. width: 50rpx;
  653. height: 10rpx;
  654. background-color: #FCD202;
  655. position: absolute;
  656. bottom: 0;
  657. left: 45%;
  658. transform: translate(-100%, -100%);
  659. }
  660. .tabse1 {
  661. width: 50rpx;
  662. height: 10rpx;
  663. background-color: #FCD202;
  664. position: absolute;
  665. bottom: 0;
  666. left: 70%;
  667. transform: translate(-100%, -100%);
  668. }
  669. .tabse2 {
  670. width: 50rpx;
  671. height: 10rpx;
  672. background-color: #FCD202;
  673. position: absolute;
  674. bottom: 0;
  675. left: 95%;
  676. transform: translate(-100%, -100%);
  677. }
  678. .bg {
  679. background: #FFFFFF;
  680. }
  681. .boxs {
  682. // width: 150upx;
  683. height: 55upx;
  684. // border: 2upx solid #CCCCCC;
  685. border-radius: 28upx;
  686. text-align: center;
  687. line-height: 55upx;
  688. color: #999999;
  689. margin-right: 30rpx;
  690. display: inline-block;
  691. }
  692. .actives {
  693. // width: 150upx;
  694. height: 55upx;
  695. border: 2upx solid #FFCC00;
  696. border-radius: 28upx;
  697. text-align: center;
  698. line-height: 55upx;
  699. color: #000000;
  700. margin-right: 30rpx;
  701. }
  702. .btn {
  703. width: 120upx;
  704. height: 64upx;
  705. border: 2upx solid #999999;
  706. border-radius: 8upx;
  707. text-align: center;
  708. line-height: 64rpx;
  709. color: #000000;
  710. }
  711. .box {
  712. width: 131upx;
  713. height: 45rpx;
  714. background: #FFEAF0;
  715. border-radius: 4upx;
  716. text-align: center;
  717. line-height: 45rpx;
  718. font-size: 24upx;
  719. font-weight: 500;
  720. color: #FE215B;
  721. }
  722. .page-box {
  723. position: relative;
  724. // left: 0;
  725. height: 100vh;
  726. z-index: 0;
  727. top: -20px;
  728. }
  729. .centre {
  730. position: absolute;
  731. left: 0;
  732. top: 0;
  733. right: 0;
  734. bottom: 0;
  735. margin: auto;
  736. height: 400rpx;
  737. text-align: center;
  738. // padding: 200rpx auto;
  739. font-size: 32rpx;
  740. image {
  741. width: 387rpx;
  742. height: 341rpx;
  743. // margin-bottom: 20rpx;
  744. margin: 0 auto 20rpx;
  745. // border: 1px dotted #000000;
  746. }
  747. .tips {
  748. font-size: 32rpx;
  749. color: #2F3044;
  750. margin-top: 20rpx;
  751. font-weight: 700;
  752. }
  753. .btn {
  754. margin: 80rpx auto;
  755. width: 600rpx;
  756. border-radius: 32rpx;
  757. line-height: 90rpx;
  758. color: #ffffff;
  759. font-size: 34rpx;
  760. background: #5074FF;
  761. }
  762. }
  763. .boxIndex {
  764. height: 78upx;
  765. line-height: 78upx;
  766. }
  767. .tans {
  768. background: #fff;
  769. }
  770. .addguige {
  771. width: 38%;
  772. color: #ffffff;
  773. text-align: center;
  774. height: 88upx;
  775. line-height: 88upx;
  776. }
  777. .addguigezz{
  778. border-radius: 16upx 0 0 0;
  779. background-color: #999999;
  780. box-shadow: 0px 10upx 20upx 0px #999999;
  781. }
  782. .addguigezzs{
  783. border-radius: 0 16upx 0 0;
  784. background: #FCD202;
  785. box-shadow: 0px 10upx 20upx 0px #FCD202;
  786. }
  787. .addguiges {
  788. width: 90%;
  789. margin: 0 auto;
  790. background: #FCD202;
  791. box-shadow: 0px 10upx 20upx 0px #FFD9B3;
  792. border-radius: 16upx;
  793. text-align: center;
  794. height: 88upx;
  795. line-height: 88upx;
  796. /* position: fixed;
  797. bottom: 25upx;
  798. left: 0;
  799. right: 0; */
  800. }
  801. </style>