| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <template>
- <view class="container" style="padding-bottom: 60rpx;">
- <view v-for="(item,index) in guigeAttrList">
- <view class="main">
- <view class="order-des">
- <view class="title">名称</view>
- <view class="textarea-wrap">
- <input type="text" v-model="item.detailJson" disabled class="input" />
- </view>
- </view>
- <view class="order-des">
- <view class="title">原价</view>
- <view class="textarea-wrap">
- <input type="digit" v-model="item.skuOriginalPrice" class="input" placeholder="请输入商品原价" />
- </view>
- </view>
- <view class="order-des">
- <view class="title">售价</view>
- <view class="textarea-wrap">
- <input type="digit" v-model="item.skuPrice" class="input" placeholder="请输入商品价格" />
- </view>
- </view>
- <!-- <view class="order-des">
- <view class="title">库存</view>
- <view class="textarea-wrap">
- <input type="number" v-model="item.stock" class="input" placeholder="请输入商品库存" />
- </view>
- </view> -->
- </view>
- </view>
- <view class="save_btn" @tap="addSave">保存</view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- guigeAttrList: [],
- }
- },
- onLoad() {
- this.guigeAttrList = this.$queue.getData('guigeSelectItemList');
- },
- methods: {
- addSave() {
- this.$queue.setData('guigeSelectItemList', this.guigeAttrList);
- uni.navigateBack();
- }
- }
- }
- </script>
- <style lang="scss">
- page {
- width: 100%;
- }
- .save_btn {
- margin: 50upx;
- width: 650upx;
- height: 88upx;
- text-align: center;
- line-height: 88upx;
- background: #FCD202;
- border-radius: 16upx;
- color: #333333;
- }
- .container {
- width: 100%;
- padding-bottom: calc(98upx + env(safe-area-inset-bottom));
- padding-bottom: calc(98upx + constant(safe-area-inset-bottom));
- .main {
- padding: 20upx 20upx 20upx;
- .order-des {
- padding: 30upx;
- // border-radius: 20upx;
- background-color: #fff;
- // margin-bottom: 20upx;
- position: relative;
- .title {
- font-size: 30upx;
- font-weight: bold;
- color: #333333;
- line-height: 32upx;
- padding-bottom: 20upx;
- }
- .textarea-wrap {
- padding-top: 20upx;
- width: 100%;
- border-bottom: 1upx solid #E6E6E6;
- .textarea {
- width: 100%;
- font-size: 28upx;
- line-height: 35upx;
- color: #333;
- }
- }
- .textarea-counter {
- text-align: right;
- font-size: 28upx;
- font-weight: 500;
- color: #999999;
- margin-top: 10upx;
- }
- }
- .order-list {
- margin-top: 20upx;
- padding: 0 30upx;
- border-radius: 20upx;
- background-color: #fff;
- .order-list-item {
- width: 100%;
- height: 110upx;
- border-bottom: 1upx solid #E6E6E6;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .tit {
- font-size: 34upx;
- font-weight: 500;
- color: #333333;
- }
- .right {
- font-size: 34upx;
- font-weight: 500;
- color: #666;
- display: flex;
- align-items: center;
- .input {
- flex: 1;
- display: flex;
- align-items: center;
- text-align: right;
- padding-right: 10upx;
- }
- }
- }
- .order-list-item:last-child {
- border-bottom: 0;
- }
- }
- }
- .btns {
- button {
- // width: 80%;
- margin: 22upx;
- color: #fff;
- border: none;
- border-radius: 10upx;
- }
- .qr {
- background: #FF4701;
- }
- }
- .footer {
- width: 100%;
- height: calc(98upx + env(safe-area-inset-bottom));
- height: calc(98upx + constant(safe-area-inset-bottom));
- padding-bottom: env(safe-area-inset-bottom);
- /*兼容IOS>11.2*/
- padding-bottom: constant(safe-area-inset-bottom);
- /*兼容IOS<11.2*/
- background: #FFFFFF;
- position: fixed;
- bottom: 0;
- padding: 0 30upx;
- z-index: 10;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .payinfo {
- font-size: 32upx;
- font-weight: bold;
- color: #333333;
- text {
- color: #FF3737;
- }
- }
- .tui-button-primar {
- width: 300upx;
- height: 78upx;
- line-height: 78upx;
- background: #FF332F;
- border-radius: 10upx;
- margin: 0;
- }
- }
- .dragImg {
- position: absolute;
- left: 266rpx;
- top: 88rpx;
- height: 99%;
- width: 50%;
- .area-con {
- width: 186rpx !important;
- }
- image {
- width: 186rpx !important;
- height: 186rpx !important;
- }
- }
- }
- </style>
|