| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <template>
- <view>
- <agency-list :list="[detail]" boxWidth="100vw" />
- <view class="head">
- <view>
- 门店信息
- </view>
- <view>
- 共<text class="total">{{ total }}</text>个
- </view>
- </view>
- <My_listbox ref="List" @getlist="getList" bottomHeight="30">
- <store-list ref="storeList" :list="list" @onClick="onClick" />
- </My_listbox>
- </view>
- </template>
- <script>
- import agencyList from "../team/modules/agencyList"
- import storeList from "../team/modules/storeList"
- export default {
- components: { agencyList, storeList },
- data() {
- return {
- detail: {},
- total: 0,
- list: [],
- "content": {
- "where": {
- "condition": "",
- "storetype": "",
- "status": "审核"
- }
- }
- }
- },
- onLoad(options) {
- this.detail = JSON.parse(options.data);
- this.content.sys_enterpriseid = this.detail.sys_enterpriseid;
- this.getList();
- uni.setNavigationBarTitle({
- title: options.title || '团队信息'
- });
- },
- methods: {
- getList(init = false) {
- if (this.paging(this.content, init)) return;
- this.$Http.basic({
- "id": "20240410095602",
- content: this.content
- }).then(res => {
- console.log("经销商门店列表", res)
- this.$refs.List.RefreshToComplete()
- if (this.cutoff(res.msg)) return;
- this.uninitialized = false;
- this.$refs.List.setHeight()
- res.data = this.$refs.storeList.handleList(res.data)
- this.total = res.total;
- this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data);
- this.content = this.$refs.List.paging(this.content, res)
- })
- },
- onClick(item) {
- // this.onInsert();
- uni.navigateTo({
- url: '/store/center/detail?id=' + item.sa_storeid,
- });
- },
- /* onInsert() {
- this.$Http.uploadStoreList = function () {
- if (this.content.pageNumber && this.content.pageNumber >= 2) {
- let content = this.paging(this.content, true, true)
- this.$Http.basic({
- "id": "20240410095602",
- content
- }).then(res => {
- console.log("更新门店列表", res)
- if (this.cutoff(res.msg)) return;
- this.$refs.List.setHeight()
- this.list = this.$refs.storeList.handleList(res.data);
- this.$refs.List.paging(content, res, true)
- })
- }
- }.bind(this)
- }, */
- },
- }
- </script>
- <style lang="scss" scoped>
- .head {
- display: flex;
- justify-content: space-between;
- width: 100vw;
- height: 27px;
- padding: 10px;
- padding-top: 0;
- font-family: Source Han Sans SC, Source Han Sans SC;
- font-size: 12px;
- color: #666666;
- box-sizing: border-box;
- .total {
- padding: 0 5px;
- }
- }
- </style>
|