guigeitem.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <template>
  2. <view class="container" style="padding-bottom: 60rpx;">
  3. <view v-for="(item,index) in guigeAttrList">
  4. <view class="main">
  5. <view class="order-des">
  6. <view class="title">名称</view>
  7. <view class="textarea-wrap">
  8. <input type="text" v-model="item.detailJson" disabled class="input" />
  9. </view>
  10. </view>
  11. <view class="order-des">
  12. <view class="title">原价</view>
  13. <view class="textarea-wrap">
  14. <input type="digit" v-model="item.skuOriginalPrice" class="input" placeholder="请输入商品原价" />
  15. </view>
  16. </view>
  17. <view class="order-des">
  18. <view class="title">售价</view>
  19. <view class="textarea-wrap">
  20. <input type="digit" v-model="item.skuPrice" class="input" placeholder="请输入商品价格" />
  21. </view>
  22. </view>
  23. <!-- <view class="order-des">
  24. <view class="title">库存</view>
  25. <view class="textarea-wrap">
  26. <input type="number" v-model="item.stock" class="input" placeholder="请输入商品库存" />
  27. </view>
  28. </view> -->
  29. </view>
  30. </view>
  31. <view class="save_btn" @tap="addSave">保存</view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. guigeAttrList: [],
  39. }
  40. },
  41. onLoad() {
  42. this.guigeAttrList = this.$queue.getData('guigeSelectItemList');
  43. },
  44. methods: {
  45. addSave() {
  46. this.$queue.setData('guigeSelectItemList', this.guigeAttrList);
  47. uni.navigateBack();
  48. }
  49. }
  50. }
  51. </script>
  52. <style lang="scss">
  53. page {
  54. width: 100%;
  55. }
  56. .save_btn {
  57. margin: 50upx;
  58. width: 650upx;
  59. height: 88upx;
  60. text-align: center;
  61. line-height: 88upx;
  62. background: #FCD202;
  63. border-radius: 16upx;
  64. color: #333333;
  65. }
  66. .container {
  67. width: 100%;
  68. padding-bottom: calc(98upx + env(safe-area-inset-bottom));
  69. padding-bottom: calc(98upx + constant(safe-area-inset-bottom));
  70. .main {
  71. padding: 20upx 20upx 20upx;
  72. .order-des {
  73. padding: 30upx;
  74. // border-radius: 20upx;
  75. background-color: #fff;
  76. // margin-bottom: 20upx;
  77. position: relative;
  78. .title {
  79. font-size: 30upx;
  80. font-weight: bold;
  81. color: #333333;
  82. line-height: 32upx;
  83. padding-bottom: 20upx;
  84. }
  85. .textarea-wrap {
  86. padding-top: 20upx;
  87. width: 100%;
  88. border-bottom: 1upx solid #E6E6E6;
  89. .textarea {
  90. width: 100%;
  91. font-size: 28upx;
  92. line-height: 35upx;
  93. color: #333;
  94. }
  95. }
  96. .textarea-counter {
  97. text-align: right;
  98. font-size: 28upx;
  99. font-weight: 500;
  100. color: #999999;
  101. margin-top: 10upx;
  102. }
  103. }
  104. .order-list {
  105. margin-top: 20upx;
  106. padding: 0 30upx;
  107. border-radius: 20upx;
  108. background-color: #fff;
  109. .order-list-item {
  110. width: 100%;
  111. height: 110upx;
  112. border-bottom: 1upx solid #E6E6E6;
  113. display: flex;
  114. align-items: center;
  115. justify-content: space-between;
  116. .tit {
  117. font-size: 34upx;
  118. font-weight: 500;
  119. color: #333333;
  120. }
  121. .right {
  122. font-size: 34upx;
  123. font-weight: 500;
  124. color: #666;
  125. display: flex;
  126. align-items: center;
  127. .input {
  128. flex: 1;
  129. display: flex;
  130. align-items: center;
  131. text-align: right;
  132. padding-right: 10upx;
  133. }
  134. }
  135. }
  136. .order-list-item:last-child {
  137. border-bottom: 0;
  138. }
  139. }
  140. }
  141. .btns {
  142. button {
  143. // width: 80%;
  144. margin: 22upx;
  145. color: #fff;
  146. border: none;
  147. border-radius: 10upx;
  148. }
  149. .qr {
  150. background: #FF4701;
  151. }
  152. }
  153. .footer {
  154. width: 100%;
  155. height: calc(98upx + env(safe-area-inset-bottom));
  156. height: calc(98upx + constant(safe-area-inset-bottom));
  157. padding-bottom: env(safe-area-inset-bottom);
  158. /*兼容IOS>11.2*/
  159. padding-bottom: constant(safe-area-inset-bottom);
  160. /*兼容IOS<11.2*/
  161. background: #FFFFFF;
  162. position: fixed;
  163. bottom: 0;
  164. padding: 0 30upx;
  165. z-index: 10;
  166. display: flex;
  167. align-items: center;
  168. justify-content: space-between;
  169. .payinfo {
  170. font-size: 32upx;
  171. font-weight: bold;
  172. color: #333333;
  173. text {
  174. color: #FF3737;
  175. }
  176. }
  177. .tui-button-primar {
  178. width: 300upx;
  179. height: 78upx;
  180. line-height: 78upx;
  181. background: #FF332F;
  182. border-radius: 10upx;
  183. margin: 0;
  184. }
  185. }
  186. .dragImg {
  187. position: absolute;
  188. left: 266rpx;
  189. top: 88rpx;
  190. height: 99%;
  191. width: 50%;
  192. .area-con {
  193. width: 186rpx !important;
  194. }
  195. image {
  196. width: 186rpx !important;
  197. height: 186rpx !important;
  198. }
  199. }
  200. }
  201. </style>