feat: 意见反馈

This commit is contained in:
duanshuwen
2025-10-18 17:09:52 +08:00
parent 4b066626cf
commit 8b4926eb2b
9 changed files with 61 additions and 111 deletions

View File

@@ -1,5 +1,5 @@
{ {
"appid": "wx0be424e1d22065a9", "appid": "wx5e79df5996572539",
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "3.8.10", "libVersion": "3.8.10",
"packOptions": { "packOptions": {

View File

@@ -1,50 +1,55 @@
<template> <template>
<view class="create-service-order"> <view class="create-service-order">
<view class="create-service-wrapper"> <view
<view class="order-header"> class="w-full bg-white border-box border-ff overflow-hidden rounded-20"
<text>反馈意见</text> >
</view> <image
<view class="order-content"> class="order-header w-full"
<view class="detail-item"> src="https://oss.nianxx.cn/mp/static/version_101/home/feedback_1.png"
<text class="detail-label">联系电话</text> mode="aspectFill"
/>
<view class="order-content border-box p-12">
<view
class="bg-F5F7FA border-box flex flex-items-center p-12 rounded-10 font-size-14 color-171717 mb-12"
>
<text class="font-500 line-height-22 mr-20">联系电话</text>
<input <input
v-if="!isCallSuccess" v-if="!isCallSuccess"
class="detail-input"
placeholder="请填写联系电话" placeholder="请填写联系电话"
v-model="contactPhone" v-model="contactPhone"
/> />
<text v-else class="detail-value">{{ contactPhone }}</text> <text v-else class="detail-value">{{ contactPhone }}</text>
</view> </view>
<view class="detail-item"> <view
<text class="detail-label">意见内容</text> class="bg-F5F7FA border-box p-12 rounded-10 font-size-14 font-500 color-171717 mb-12"
>
<view class="font-500 line-height-22 mb-12">意见内容</view>
<textarea <textarea
v-if="!isCallSuccess" v-if="!isCallSuccess"
class="detail-textarea"
placeholder="请输入反馈意见" placeholder="请输入反馈意见"
maxlength="100"
v-model="contactText" v-model="contactText"
/> />
<text v-else class="detail-value">{{ contactText }}</text> <text v-else class="detail-value">{{ contactText }}</text>
</view> </view>
<button <view
v-if="!isCallSuccess" v-if="!isCallSuccess"
class="order-button submit-button" class="btn rounded-50 color-white bg-button flex flex-items-center flex-justify-center"
@click="handleCall" @click="handleCall"
> >
立即提交 立即提交
</button> </view>
<button v-else class="order-button look-button" @click="viewWorkOrder">
查看意见
</button>
</view> </view>
</view>
<view class="footer-help"> <view
<image src="./images/icon_volume.png" class="help-icon"></image> class="footer-help flex flex-items-center flex-justify-center mb-12"
<text class="help-text"> >
{{ appName }}收到您的意见将第一时间为您处理! <image class="help-icon mr-4" src="./images/icon_volume.png" />
</text> <text class="font-size-12 font-500 color-FA7319">
{{ appName }}收到您的意见将第一时间为您处理!
</text>
</view>
</view> </view>
</view> </view>
</template> </template>

View File

@@ -1,95 +1,16 @@
.create-service-wrapper {
padding: 6px 0 12px;
}
.order-header { .order-header {
font-size: $uni-font-size-base; height: 48px;
font-weight: 500;
margin-bottom: 10px;
color: $uni-text-color;
} }
.order-content { .order-content {
width: 100%; width: 335px;
box-sizing: border-box;
background-color: #fff;
padding: 12px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.detail-item {
display: flex;
align-items: start;
margin-bottom: 12px;
font-size: $uni-font-size-base;
color: $uni-text-color;
}
.detail-label {
width: 70px;
white-space: nowrap;
}
.detail-value {
font-size: $uni-font-size-base;
color: $uni-text-color;
}
.detail-textarea {
width: 100%;
font-size: $uni-font-size-base;
color: $uni-text-color;
border-radius: 4px;
border: 1px solid #ddd;
padding: 8px;
}
.detail-input {
border: none;
outline: none;
width: 100%;
font-size: $uni-font-size-base;
color: $uni-text-color;
border-bottom: 1px solid #ddd;
padding-left: 8px;
}
.order-button {
width: 300px;
height: 42px;
color: #fff;
font-size: $uni-font-size-base;
font-weight: 600;
border-radius: 21px;
margin-top: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.submit-button {
background: linear-gradient(179deg, #00a6ff 0%, #0256ff 100%);
}
.look-button {
background: linear-gradient(90deg, #0256ff, #00a6ff);
}
.footer-help {
margin-bottom: 12px;
display: flex;
align-items: center;
font-size: $uni-font-size-base;
color: #ed6a0c;
} }
.help-icon { .help-icon {
width: 16px; width: 16px;
height: 14px; height: 16px;
margin-right: 5px;
} }
.help-text { .btn {
margin-right: 5px; height: 44px;
} }

View File

@@ -40,7 +40,7 @@ const processConfigs = (configs) => {
export const CLIENT_CONFIGS = processConfigs(rawConfigs); export const CLIENT_CONFIGS = processConfigs(rawConfigs);
// 获取当前用户端配置 // 获取当前用户端配置
export const getCurrentConfig = () => CLIENT_CONFIGS.tianmu; export const getCurrentConfig = () => CLIENT_CONFIGS.zhinian;
export const clientId = getCurrentConfig().clientId; export const clientId = getCurrentConfig().clientId;
export const appId = getCurrentConfig().appId; export const appId = getCurrentConfig().appId;

View File

@@ -60,7 +60,7 @@
wx23f86d809ae80259 wx23f86d809ae80259
*/ */
"mp-weixin": { "mp-weixin": {
"appid": "wx0be424e1d22065a9", "appid": "wx5e79df5996572539",
"setting": { "setting": {
"urlCheck": false "urlCheck": false
}, },

View File

@@ -15,6 +15,10 @@
background-color: #e5e8ee; background-color: #e5e8ee;
} }
.bg-F5F7FA {
background-color: #f5f7fa;
}
.bg-liner { .bg-liner {
background: linear-gradient(205deg, #8ae3fc 0%, rgba(138, 227, 252, 0) 20%), background: linear-gradient(205deg, #8ae3fc 0%, rgba(138, 227, 252, 0) 20%),
linear-gradient(155deg, #fef7e1 0%, rgba(254, 247, 225, 0) 20%), linear-gradient(155deg, #fef7e1 0%, rgba(254, 247, 225, 0) 20%),
@@ -25,3 +29,7 @@
), ),
linear-gradient(180deg, rgba(238, 248, 255, 0) 0%, #eef8ff 50%), #eef8ff; linear-gradient(180deg, rgba(238, 248, 255, 0) 0%, #eef8ff 50%), #eef8ff;
} }
.bg-button {
background: linear-gradient(90deg, #2d91ff 0%, #4de4ff 100%);
}

View File

@@ -6,3 +6,11 @@
.border-bottom { .border-bottom {
border-bottom: 1px solid #e5e8ee; border-bottom: 1px solid #e5e8ee;
} }
.border-ff {
border: 1px solid #fff;
}
.border-none {
border: none;
}

View File

@@ -51,3 +51,7 @@
.color-21B466 { .color-21B466 {
color: #21b466; color: #21b466;
} }
.color-FA7319 {
color: #fa7319;
}

View File

@@ -70,3 +70,7 @@
.ml-20 { .ml-20 {
margin-left: 20px; margin-left: 20px;
} }
.mr-20 {
margin-right: 20px;
}