| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <template>
- <view class="commodity">
- <search></search>
- <scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="lower">
- <view class="li" v-for="(item,index) in list" :key="index">
- <view class="h2_box">
- <view class="h2_left">
- <h2>欧阳娜娜</h2>
- </view>
- <img src="@/static/images/moreHorizontal@2x.png" alt="" @click="activeId = item.id">
- </view>
- <p>角色权限:管理者</p>
- <p>手机号码:15902021122</p>
- <view class="footer">
- <view>启动状态:<text class="status" :class="index % 2 === 0 ?'status_close' :'status_open'">关闭</text>
- </view>
- <view>所属店铺:<text class="status">燕塘分店</text></view>
- </view>
- <u-transition :show="item.id == activeId">
- <moreShow @moreShowActive="moreShowActive"></moreShow>
- </u-transition>
- </view>
- <view style="height:110rpx;"></view>
- </scroll-view>
- <view class="footer_btn">
- 添加店员
- </view>
- </view>
- </template>
- <script>
- import moreShow from "@/pagesA/components/more_show/index.vue"
- import search from "@/pagesA/components/search/index.vue"
- export default {
- components: {
- search,
- moreShow
- },
- data() {
- return {
- list: [{
- id: 1
- }, {
- id: 2
- }, {
- id: 3
- }, {
- id: 4
- }, {
- id: 5
- }, {
- id: 6
- }, {
- id: 7
- }],
- scrollTop: 0,
- activeId: 0, //当前展开ID
- };
- },
- methods: {
- moreShowActive(int) {
- console.log(this.activeId, int)
- this.activeId = 0 //完成操作置空
- },
- //触底
- lower: function(e) {
- console.log(e)
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .strikeBalance {
- background-color: #f7f7f7;
- }
- .footer_btn {
- height: 104rpx;
- text-align: center;
- position: fixed;
- bottom: 0rpx;
- left: 32rpx;
- right: 32rpx;
- line-height: 104rpx;
- border-radius: 24rpx;
- background-color: #363c4f;
- font-size: 32rpx;
- font-weight: bold;
- color: #FFFFFF;
- }
- .scroll-Y {
- background-color: #fff;
- height: calc(100vh - 100rpx);
- .li {
- border-bottom: 2rpx solid #e9e9e9;
- padding: 40rpx 32rpx 30rpx;
- position: relative;
- .h2_box {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 24rpx;
- img {
- width: 40rpx;
- height: 40rpx;
- }
- .h2_left {
- display: flex;
- align-items: center;
- &>h2 {
- font-size: 32rpx;
- font-weight: 500;
- color: #222222;
- }
- }
- }
- p {
- font-size: 24rpx;
- font-weight: 400;
- color: #767A80;
- padding-bottom: 12rpx;
- }
- .footer {
- margin-top: 20rpx;
- display: flex;
- align-items: center;
-
- &>view {
- flex: 1;
- flex-shrink: 0;
- margin-right: 20rpx;
- background: #F9F9F9;
- border-radius: 8rpx;
- padding: 20rpx;
- font-size: 24rpx;
- font-weight: 400;
- color: #767A80;
- &>.status {
- font-size: 28rpx;
- color: #333333;
- }
- &>.status_open {
- color: #27AE60;
- }
- &>.status_close {
- color: #EB5757;
- }
- }
- }
- }
- }
- </style>
|