Browse Source

修改

master
liaoxinyu 1 month ago
parent
commit
c28155118a
  1. 9
      api/wallet.js
  2. 4
      i18n/lang/en.json
  3. 4
      i18n/lang/zh-TW.json
  4. 3
      pages.json
  5. 111
      pages/assets/userfeedback.vue
  6. 6
      pages/base/home.vue
  7. BIN
      static/img/pages7.png

9
api/wallet.js

@ -170,6 +170,15 @@ class Wallet {
static cancelWithdraw(data){
return Serve.post('/user/cancelWithdraw',data,{loading:true})
}
static advices(data){
return Serve.get('/user/advices',data)
}
static adviceDetail(data){
return Serve.get('/user/adviceDetail',data)
}
static addAdvice(data){
return Serve.post('/user/addAdvice',data,{loading:true})
}
}
export default Wallet;

4
i18n/lang/en.json

@ -139,7 +139,9 @@
"c31": "To ensure the security of your account, the system will initiate an identity verification process upon your password reset request. Please monitor your registered email closely, as we will begin verifying your identity shortly!",
"c32": "Please enter the original withdrawal password",
"c33": "Original Withdrawal Password",
"c34": "The original withdrawal password cannot be empty"
"c34": "The original withdrawal password cannot be empty",
"c35": "Contact Us",
"c36": "send"
},
"base": {
"a0": "Title",

4
i18n/lang/zh-TW.json

@ -139,7 +139,9 @@
"c31": "為確保您的帳戶安全,系統將在您提交重置請求後啟動身份核驗流程。請密切留意您的信箱,我們將開始檢驗您的身份!",
"c32": "請輸入原提款密碼",
"c33": "原提款密碼",
"c34": "原提款密碼不能為空"
"c34": "原提款密碼不能為空",
"c35": "聯繫我們",
"c36": "發送"
},
"base": {
"a0": "標題",

3
pages.json

@ -182,6 +182,9 @@
{
"path" : "pages/assets/draw1"
},
{
"path" : "pages/assets/userfeedback"
},
{
"path": "pages/service/index",
"style": {

111
pages/assets/userfeedback.vue

@ -0,0 +1,111 @@
<template>
<v-page>
<v-header :title="$t('common.c35')"></v-header>
<view style="background-color: #121212;height: 100%;">
<view class="scrollview">
<scroll-view scroll-y="true" style="height: 71vh;">
<view class="userfeedbox_flex">
<view v-for="(item,index) in list" :key="index" class="userfeedbox_list">
<view style="margin-bottom: 40rpx;" v-if="item.contents">
<view class="userfeedbox_email">{{ item.email }}</view>
<view style="word-break: break-all;width: 620rpx;">{{ item.contents }}</view>
</view>
<view class="userfeedbox_process_note" v-if="item.process_note">
<view style="font-size: 18px;font-weight: bold;color: #a1a1a1;">{{$t('common.service')}}</view>
<view>{{ item.process_note }}</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view style="margin: 0px 10px;">
<v-input v-model="text">
<template #right>
<view @click="onsend" class="sendview">{{$t('common.c36')}}</view>
</template>
</v-input>
</view>
</view>
</v-page>
</template>
<script>
import Wallet from "@/api/wallet";
export default {
data() {
return {
text:"",
list:[],
}
},
mounted(){
this.advices()
},
methods: {
advices(){
Wallet.advices({}).then(res => {
this.list = res.data;
});
},
onsend(){
Wallet.addAdvice({contents:this.text}).then(data => {
this.text = "";
this.advices();
})
}
}
}
</script>
<style scoped lang="less">
.sendview{
color: #000;
width: 50px;
height: 35px;
display: flex;
margin-left: 10px;
border-radius: 5px;
align-items: center;
justify-content: center;
background-image: linear-gradient(to right, #6d9ef9, #1f5df4);
}
.scrollview{
margin-top: 20px;
margin: 20px 10px;
padding: 20px 20px;
border-radius: 10px;
border: 1px solid #eee;
}
.viewtext{
max-width: 100%;
padding: 10rpx;
border-radius: 0px 5px 5px 0px;
box-sizing: border-box;
background-color: #1f5df4;
}
.userfeedbox_flex{
gap: 10px;
width: 100%;
display: flex;
flex-wrap: wrap;
}
.userfeedbox_list{
gap: 5px;
display: flex;
flex: 1 0 auto;
max-width: 100%;
flex-wrap: wrap;
border-bottom: 1px solid #515151;
}
.userfeedbox_email{
color: #a1a1a1;
font-size: 18px;
font-weight: bold;
}
.userfeedbox_process_note{
width: 620rpx;
padding-bottom: 20px;
word-break: break-all;
}
</style>

6
pages/base/home.vue

@ -757,10 +757,14 @@
<view class="color-light">{{ $t("base.c6") }}</view>
</v-link>
<!-- customer service -->
<v-link v-if="is_agency!==1&&isLogin" :to="isLogin?'/pages/oncs/onservice':'/pages/login/index'" tag="div" class="manage_text" style="position: relative;">
<!-- <v-link v-if="is_agency!==1&&isLogin" :to="isLogin?'/pages/oncs/onservice':'/pages/login/index'" tag="div" class="manage_text" style="position: relative;">
<img src="@/static/img/cs_w.svg">
<span class="circle-pulse1" v-if="newscount!==0">{{newscount>=100?'99+':newscount}}</span>
<view class="color-light">{{$t('common.service')}}</view>
</v-link> -->
<v-link :to="isLogin?'/pages/assets/userfeedback':'/pages/login/index'" tag="div" class="manage_text">
<img src="@/static/img/pages7.png">
<view class="color-light">{{ $t("common.c35") }}</view>
</v-link>
</view>
<view class="h-100"></view>

BIN
static/img/pages7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

Loading…
Cancel
Save