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