master
xy 1 year ago
parent cb40f60692
commit 949e9b2c56

@ -6,9 +6,9 @@
<image
mode="aspectFit"
show-menu-by-longpress
src="~@/static/qrcode.png"
:src="qrcode"
></image>
<view class="customer-service__body--text2">卓老师15006200900</view>
<view class="customer-service__body--text2">{{ name }}<text style="font-size: 28rpx;">{{ phone }}</text></view>
</view>
</view>
</template>
@ -16,8 +16,36 @@
<script>
export default {
data() {
return {};
}
return {
info: {}
};
},
methods: {
async getData() {
try {
const res = await this.$u.api.parameterShow({
number: 'customer_service'
})
this.info = res
} catch (err) {
console.error(err)
}
}
},
computed: {
name() {
return this.info.detail?.find(i => i.value === 'name')?.remark || ' '
},
phone() {
return this.info.detail?.find(i => i.value === 'phone')?.remark || ' '
},
qrcode() {
return this.info.detail?.find(i => i.value === 'qrcode')?.remark || ' '
}
},
created() {
this.getData()
},
}
</script>
@ -51,7 +79,7 @@ export default {
padding-top: 50rpx;
}
& > image {
width: 390rpx;
width: 400rpx;
height: 440rpx;
margin-top: 34rpx;
}

Loading…
Cancel
Save