81 lines
4.1 KiB
Plaintext
81 lines
4.1 KiB
Plaintext
<template>
|
|
<view class="admin-page-container">
|
|
<view class="page-header">
|
|
<view class="breadcrumb">
|
|
<text class="bc-item">设置</text>
|
|
<text class="bc-sep">/</text>
|
|
<text class="bc-item">接口配置</text>
|
|
<text class="bc-sep">/</text>
|
|
<text class="bc-item active">物流查询</text>
|
|
</view>
|
|
</view>
|
|
<view class="content-card">
|
|
<view class="tabs-header">
|
|
<view class="tab-item active"><text class="tab-text">物流配置</text></view>
|
|
</view>
|
|
<view class="form-section">
|
|
<view class="form-content">
|
|
<view class="form-row">
|
|
<view class="form-label"><text class="star">*</text>物流查询服务:</view>
|
|
<view class="form-input-box">
|
|
<radio-group class="form-radio-group" @change="onServiceChange">
|
|
<label class="radio-label"><radio value="kuaidi100" checked color="#2d8cf0" /><text class="radio-text">快递100</text></label>
|
|
<label class="radio-label"><radio value="onepass" color="#2d8cf0" /><text class="radio-text">一号通</text></label>
|
|
</radio-group>
|
|
</view>
|
|
</view>
|
|
<view class="form-row">
|
|
<view class="form-label"><text class="star">*</text>Customer:</view>
|
|
<view class="form-input-box">
|
|
<input class="form-input" v-model="form.customer" placeholder="请输入Customer" />
|
|
<text class="form-tips">快递100分配给贵司的Customer</text>
|
|
</view>
|
|
</view>
|
|
<view class="form-row">
|
|
<view class="form-label"><text class="star">*</text>Key:</view>
|
|
<view class="form-input-box">
|
|
<input class="form-input" v-model="form.key" type="password" placeholder="请输入Key" />
|
|
<text class="form-tips">快递100分配给贵司的Key</text>
|
|
</view>
|
|
</view>
|
|
<view class="form-actions">
|
|
<button class="submit-btn" type="primary" @click="handleSubmit">保存</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script setup lang="uts">
|
|
import { ref, reactive } from 'vue'
|
|
const form = reactive({ customer: 'C123456789', key: 'K123456789', service: 'kuaidi100' })
|
|
const onServiceChange = (e : any) => { form.service = e.detail.value }
|
|
const handleSubmit = () => { uni.showToast({ title: '保存成功' }) }
|
|
</script>
|
|
<style scoped>
|
|
.admin-page-container { min-height: 100vh; background-color: #f5f7f9; padding: 20px; }
|
|
.breadcrumb { display: flex; flex-direction: row; align-items: center; margin-bottom: 20px; }
|
|
.bc-item { font-size: 14px; color: #999; }
|
|
.bc-item.active { color: #333; }
|
|
.bc-sep { margin: 0 8px; color: #ccc; }
|
|
.content-card { background-color: #fff; border-radius: 4px; overflow: hidden; }
|
|
.tabs-header { display: flex; flex-direction: row; border-bottom: 1px solid #f0f0f0; padding: 0 20px; }
|
|
.tab-item { padding: 15px 20px; border-bottom: 2px solid transparent; }
|
|
.tab-text { font-size: 14px; color: #666; }
|
|
.tab-item.active { border-bottom-color: #2d8cf0; }
|
|
.tab-item.active .tab-text { color: #2d8cf0; font-weight: bold; }
|
|
.form-section { padding: 40px 20px; }
|
|
.form-content { max-width: 800px; }
|
|
.form-row { display: flex; flex-direction: row; margin-bottom: 24px; }
|
|
.form-label { width: 140px; font-size: 14px; color: #606266; text-align: right; margin-right: 20px; padding-top: 8px; }
|
|
.star { color: #ff4d4f; margin-right: 4px; }
|
|
.form-input-box { flex: 1; }
|
|
.form-input { width: 100%; max-width: 400px; border: 1px solid #dcdfe6; border-radius: 4px; height: 36px; padding: 0 12px; font-size: 14px; }
|
|
.form-tips { display: block; font-size: 12px; color: #999; margin-top: 8px; }
|
|
.form-radio-group { display: flex; flex-direction: row; align-items: center; height: 36px; }
|
|
.radio-label { display: flex; flex-direction: row; align-items: center; margin-right: 20px; }
|
|
.radio-text { font-size: 14px; margin-left: 8px; }
|
|
.form-actions { margin-top: 40px; padding-left: 160px; }
|
|
.submit-btn { width: 80px; height: 36px; background-color: #2d8cf0; color: #fff; border-radius: 4px; font-size: 14px; line-height: 36px; text-align: center; border: none; }
|
|
</style>
|