Browse Source

feat: 接口对接;

pull/2/head
fox 2 months ago
parent
commit
490a5f84e0
2 changed files with 13 additions and 7 deletions
  1. +6
    -3
      pages/index/center.vue
  2. +7
    -4
      pages_order/mine/cooperation.vue

+ 6
- 3
pages/index/center.vue View File

@ -2,7 +2,7 @@
<view class="page">
<view class="flex flex-column header">
<view class="user">
<view class="flex flex-column user">
<image class="user-avatar" :src="userInfo.headImage" mode="aspectFill"></image>
<view class="user-name">{{ userInfo.nickName }}</view>
</view>
@ -86,7 +86,7 @@
</view>
<view class="card fun-common">
<view v-if="userInfo.is_merchants" class="fun-header">
<view v-if="isMerchants" class="fun-header">
<cardTitle>常用功能</cardTitle>
</view>
<view class="fun-content fun-common-content">
@ -126,7 +126,7 @@
</view>
</view>
<view v-if="userInfo.is_merchants" class="card fun-merchant">
<view v-if="isMerchants" class="card fun-merchant">
<view class="fun-header">
<cardTitle>商家功能</cardTitle>
</view>
@ -168,6 +168,9 @@
computed: {
...mapGetters(['role']),
...mapState(['userInfo', 'riceInfo']),
isMerchants() {
return this.userInfo.isMerchants === '1'
},
},
data() {
return {


+ 7
- 4
pages_order/mine/cooperation.vue View File

@ -204,6 +204,7 @@ export default {
id,
status,
status_dictText,
remark,
image,
shop,
name,
@ -227,7 +228,7 @@ export default {
this.id = id
this.status = status
this.statusDesc = status_dictText
this.statusDesc = status == '2' ? `${status_dictText}${remark}` : status_dictText
} catch (err) {
@ -239,13 +240,15 @@ export default {
}
try {
const { status, status_dictText } = await this.$fetch('queryShopById', { id: this.id })
const { status, status_dictText, remark } = await this.$fetch('queryShopById', { id: this.id })
this.status = status
this.statusDesc = status_dictText
this.statusDesc = status == '2' ? `${status_dictText}${remark}` : status_dictText
} catch (err) {
console.log('--err', err)
}
uni.stopPullDownRefresh();
},
async onSubmit() {
try {


Loading…
Cancel
Save