完善接口
This commit is contained in:
@ -29,6 +29,7 @@ export interface ITeaSpecialistDetailsFields {
|
|||||||
fare_price: number
|
fare_price: number
|
||||||
collect: number
|
collect: number
|
||||||
up_status: number
|
up_status: number
|
||||||
|
textarea: Array<any>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -77,8 +77,6 @@
|
|||||||
</mescroll-body>
|
</mescroll-body>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,8 @@
|
|||||||
price: 0,
|
price: 0,
|
||||||
fare_price: 0,
|
fare_price: 0,
|
||||||
collect: 0,
|
collect: 0,
|
||||||
up_status: 0
|
up_status: 0,
|
||||||
|
textarea: []
|
||||||
})
|
})
|
||||||
|
|
||||||
// 支付方式
|
// 支付方式
|
||||||
|
|||||||
@ -170,9 +170,9 @@
|
|||||||
|
|
||||||
<view class="content-tab">
|
<view class="content-tab">
|
||||||
<wd-tabs v-model="tab">
|
<wd-tabs v-model="tab">
|
||||||
<block v-for="item in tabList" :key="item">
|
<block v-for="(item, index) in tabList" :key="index">
|
||||||
<wd-tab :title="item.name">
|
<wd-tab :title="item.title">
|
||||||
<view class="content">内容{{ item}}</view>
|
<view class="content mx-30rpx mt-44rpx">{{ item.content }}</view>
|
||||||
</wd-tab>
|
</wd-tab>
|
||||||
</block>
|
</block>
|
||||||
</wd-tabs>
|
</wd-tabs>
|
||||||
@ -296,12 +296,9 @@
|
|||||||
const OSS = inject('OSS')
|
const OSS = inject('OSS')
|
||||||
|
|
||||||
// tab
|
// tab
|
||||||
const tab = ref<number>(0)
|
const tab = ref<number>(1)
|
||||||
const tabList = ref<Array<{type: number, name: string}>>([
|
const tabList = ref<Array<{id: number, status: number, content: string, title: string}>>([
|
||||||
{type: 1, name: '费用说明'},
|
{id: 0, status: 0, content: '', title: ''},
|
||||||
{type: 2, name: '项目介绍'},
|
|
||||||
{type: 3, name: '禁忌说明'},
|
|
||||||
{type: 4, name: '下单须知'},
|
|
||||||
])
|
])
|
||||||
|
|
||||||
// 用户信息
|
// 用户信息
|
||||||
@ -323,7 +320,8 @@
|
|||||||
price: 0,
|
price: 0,
|
||||||
fare_price: 0,
|
fare_price: 0,
|
||||||
collect: 0,
|
collect: 0,
|
||||||
up_status: 0
|
up_status: 0,
|
||||||
|
textarea: []
|
||||||
})
|
})
|
||||||
const latitude = ref<number>(0) // 纬度
|
const latitude = ref<number>(0) // 纬度
|
||||||
const longitude = ref<number>(0) // 经度
|
const longitude = ref<number>(0) // 经度
|
||||||
@ -371,6 +369,8 @@
|
|||||||
// 将返回的数据合并到 reactive 对象中
|
// 将返回的数据合并到 reactive 对象中
|
||||||
Object.assign(info, res.teamaster || {})
|
Object.assign(info, res.teamaster || {})
|
||||||
rate.value = info.star
|
rate.value = info.star
|
||||||
|
tabList.value = info.textarea
|
||||||
|
console.log("🚀 ~ tabList:", res)
|
||||||
|
|
||||||
// 茶艺师是否上线
|
// 茶艺师是否上线
|
||||||
// if (info.up_status == 0) {
|
// if (info.up_status == 0) {
|
||||||
|
|||||||
@ -420,7 +420,8 @@
|
|||||||
price: 0,
|
price: 0,
|
||||||
fare_price: 0,
|
fare_price: 0,
|
||||||
collect: 0,
|
collect: 0,
|
||||||
up_status: 0
|
up_status: 0,
|
||||||
|
textarea: []
|
||||||
})
|
})
|
||||||
const is90 = ref<boolean>(false)
|
const is90 = ref<boolean>(false)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user