| | |
| | | </view>
|
| | | </view>
|
| | | <view class="" style="min-height: calc(100vh - 260rpx);">
|
| | | <no-data v-if="!list||list.length==0" style="width: 100%;"></no-data>
|
| | | <no-data v-if="!list||list.length===0" style="width: 100%;"></no-data>
|
| | | <view v-else>
|
| | | <!-- 查询条件 -->
|
| | | <view class="component-filter-container">
|
| | |
| | | data() {
|
| | | return {
|
| | | query: {
|
| | | name:'',
|
| | | category: '',
|
| | | zoneId: '',
|
| | | levelStr: '',
|
| | |
| | | console.log('options', options)
|
| | | this.query.category = options.categoryId || ''
|
| | | this.query.zoneId = options.zoneId || ''
|
| | | this.query.name = options.name || ''
|
| | | this.listApi = '/api/customer/flower/list'
|
| | | this.getList('post')
|
| | | this.$http.request('get', '/api/code/value', {
|
| | |
| | | if (!this.currentInfo.id) {
|
| | | await this.$message.confirm('请前往登录')
|
| | | uni.navigateTo({
|
| | | url: '//pages/user/supplier-user'
|
| | | url: '/pages/user/supplier-user'
|
| | | })
|
| | | return
|
| | | }
|
| | |
| | | return
|
| | | }
|
| | | this.$message.showLoading()
|
| | | const {code} = await http.request('post', '/api/api/customer/flower/cart/change-num', {
|
| | | const {code} = await http.request('post', '/api/customer/flower/cart/change-num', {
|
| | | data: {
|
| | | id: item.id,
|
| | | num: addnum
|
| | |
| | | if (code === 0) {
|
| | | item.shopnum += addnum
|
| | | }
|
| | | // if (item.shopnum) {
|
| | | // item.shopnum += 1
|
| | | // } else {
|
| | | // item.shopnum = 1
|
| | | // }
|
| | | // this.shoptotal += 1
|
| | | this.$forceUpdate()
|
| | | },
|
| | | }
|