addgood.vue 21 KB

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