| | |
| | | <template> |
| | | <view class="content"> |
| | | <view class="uni-page-modal-3018"> |
| | | <view class="v-area" v-for="(classattr,index) in classAttrList"> |
| | | <div class="class_attr_title" style="display: none;"> |
| | | <div class="title_line"></div> |
| | |
| | | </div> |
| | | |
| | | </view> |
| | | <button type="default" @tap="cancel" class="btn_cancel">{{translateSys('cancel')}}</button> |
| | | |
| | | <view class="v-bottom"><button type="default" @tap="cancel" |
| | | class="btn_cancel">{{translateSys('cancel')}}</button> |
| | | <button type="default" @tap="sava" class="btn_add">{{title}}</button> |
| | | </view> |
| | | <!-- 普通弹窗 top bottom center left right --> |
| | | <view> |
| | | <uni-popup class="view-popup" ref="popup" background-color="#fff" @change="popupChange"> |
| | |
| | | popupParam: {}, |
| | | } |
| | | }, |
| | | mounted() { |
| | | console.log("3018 mounted"); |
| | | }, |
| | | onLoad(options) { |
| | | // console.log(options); |
| | | console.log("3018", options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | |
| | | } |
| | | if (!param.Edit_dlg.Name) { |
| | | uni.showModal({ |
| | | title: this.translateSys('tip') |
| | | ", |
| | | title: this.translateSys('tip'), |
| | | content: this.translate('function_not_edit_dlg'), |
| | | showCancel: false, |
| | | confirmText: this.translateSys('cancel') |
| | |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | req.push(this.formatAttr(ar)) |
| | | |
| | | } |
| | | } |
| | | var info = { |
| | |
| | | }, |
| | | add() { |
| | | uni.showLoading({ |
| | | title: this.translateSys("loading") |
| | | title: this.translateSys("loading"), |
| | | mask: true |
| | | }); |
| | | var req = []; |
| | |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | <style lang="less"> |
| | | .uni-page-modal-3018 { |
| | | display: flex; |
| | | height: calc(100vh - 30rpx); |
| | | width: 720rpx; |
| | | flex-direction: column !important; |
| | | padding: 15rpx; |
| | | |
| | | .v-area { |
| | | width: 100%; |
| | | flex-direction: column !important; |
| | | } |
| | | |
| | | .v-bottom { |
| | | display: block; |
| | | width: calc(100% - 30rpx); |
| | | padding: 10rpx 15rpx 20rpx 15rpx; |
| | | } |
| | | |
| | | .class_attr_title { |
| | | font-size: 44rpx; |
| | | padding-bottom: 22rpx; |
| | |
| | | /* float: right; */ |
| | | display: inline-block; |
| | | } |
| | | </style> |
| | | <style> |
| | | |
| | | |
| | | .touch-item { |
| | | background-color: #F8F9FC; |
| | | display: flex; |
| | |
| | | -webkit-transform: translateX(0); |
| | | transform: translateX(0); |
| | | } |
| | | } |
| | | </style> |