| | |
| | | |
| | | <scroll-view scroll-y class="page-scroll"> |
| | | <view class="page-content"> |
| | | <view v-if="activeMode === 'local'" class="service-point-card cell-card" @click="openStorePopup"> |
| | | <view v-if="activeMode === 'local'" class="service-point-card cell-card" @click="openStorePopup0"> |
| | | <view class="cell-left with-icon"> |
| | | <image class="cell-icon" src="/static/icon/ic_store@2x.png" mode="widthFix"></image> |
| | | <view class="store-cell-copy"> |
| | |
| | | }) |
| | | try { |
| | | const uploadResults = await this.uploadFiles(tempFilePaths, maxCount) |
| | | const addrs = uploadResults.map(item => item.imgaddr) |
| | | const fullPaths = uploadResults.map(item => item.url || item.path || item) |
| | | this.uploadedImages = [...this.uploadedImages, ...fullPaths.map(url => ({ url }))] |
| | | this.form.goodsImages = [...this.form.goodsImages, ...fullPaths] |
| | | this.form.goodsImages = [...this.form.goodsImages, ...addrs] |
| | | uni.hideLoading() |
| | | uni.showToast({ |
| | | title: '上传成功', |
| | |
| | | this.tempSelectedStoreId = null |
| | | this.showStorePopup = true |
| | | }, |
| | | openStorePopup0() { |
| | | this.storePopupType = 'send0' |
| | | this.tempSelectedStoreId = null |
| | | this.showStorePopup = true |
| | | }, |
| | | confirmStore() { |
| | | |
| | | console.log("=========================") |
| | | const selected = this.storeList.find(item => item.active) |
| | | console.log(selected) |
| | | if (this.storePopupType === 'send') { |
| | | this.sendStore = selected |
| | | } else if (this.storePopupType === 'receive') { |
| | |
| | | orderParams.fromShopId = this.sendStore.id |
| | | if (this.receiveStore) { |
| | | orderParams.toType = 0 |
| | | orderParams.toShopId = this.receiveStore.id |
| | | orderParams.takeShopId = this.receiveStore.id |
| | | orderParams.takeLat = this.receiveStore.latitude |
| | | orderParams.takeLgt = this.receiveStore.longitude |
| | | orderParams.takeLocation = this.receiveStore.address |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | image { |
| | | flex-shrink: 0; |
| | | width: 24rpx; |
| | | height: 24rpx; |
| | | margin-right: 4rpx; |