Browse Source

修改ico、接口地址

master
liaoxinyu 2 weeks ago
parent
commit
7ffd46d45e
  1. 10
      api/wallet.js
  2. 8
      app.js
  3. 6
      i18n/lang/en.json
  4. 6
      i18n/lang/zh-TW.json
  5. 2
      main.html
  6. 3
      pages.json
  7. 117
      pages/assets/userfeedback.vue
  8. 14
      pages/base/home.vue
  9. BIN
      static/bsoc.ico
  10. BIN
      static/img/information.png
  11. BIN
      static/xrorbit.ico

10
api/wallet.js

@ -170,6 +170,16 @@ 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;

8
app.js

@ -3,12 +3,12 @@ let config = {};
if (process.env.NODE_ENV == 'production'||true) { //生产环境
config = {
// ajax地址
baseUrl: 'https://ffd.xrorbitsss.com',
baseUrl: 'https://djks.xrorbitsss.com',
// 图片地址 (暂时无用)
imgUrl: 'https://ffd.xrorbitsss.com/storage',
imgUrl: 'https://djks.xrorbitsss.com/storage',
// socket地址
socketUrl: 'wss://ffd.xrorbitsss.com/ws1',
socketUrl1: 'wss://ffd.xrorbitsss.com/ws2',
socketUrl: 'wss://djks.xrorbitsss.com/ws1',
socketUrl1: 'wss://djks.xrorbitsss.com/ws2',
// pc端地址
pcUrl:'https://www.xrorbit.com',
// app名称

6
i18n/lang/en.json

@ -75,7 +75,8 @@
"c13": "Withdrawal password",
"c14": "Please fill in the withdrawal password",
"c15": "Reset withdrawal password",
"rejection":"Reason for rejection"
"rejection":"Reason for rejection",
"c16": "Send"
},
"base": {
"a0": "Title",
@ -127,7 +128,8 @@
"e6": "Miner Level",
"e7": "Miner",
"h1": "Bill",
"h2": "name"
"h2": "name",
"h3": "Contact Us"
},
"accountSettings": {
"a0": "Account Settings",

6
i18n/lang/zh-TW.json

@ -74,7 +74,8 @@
"c13": "提款密碼",
"c14": "請填写提款密碼",
"c15": "重置提款密碼",
"rejection":"拒絕理由"
"rejection":"拒絕理由",
"c16": "發送"
},
"base": {
"a0": "標題",
@ -126,7 +127,8 @@
"e6": "礦工等級",
"e7": "礦工",
"h1": "賬單",
"h2": "名稱"
"h2": "名稱",
"h3": "聯繫我們"
},
"accountSettings": {
"a0": "賬號設置",

2
main.html

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="google" content="notranslate">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="icon" href="/static/bsoc.ico">
<link rel="icon" href="/static/xrorbit.ico">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>

3
pages.json

@ -179,6 +179,9 @@
{
"path" : "pages/oncs/onservice"
},
{
"path" : "pages/assets/userfeedback"
},
{
"path": "pages/service/index",
"style": {

117
pages/assets/userfeedback.vue

@ -0,0 +1,117 @@
<template>
<v-page>
<v-header :title="$t('base.h3')"></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.c16')}}</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;
}
::v-deep uni-input{
background-color: #242424;
height: 40px;
padding: 0px 10px;
border-radius: 5px;
}
</style>

14
pages/base/home.vue

@ -858,6 +858,16 @@
</view>
<van-icon name="arrow" class="fn-18" />
</v-link>
<v-link :to="isLogin?'/pages/assets/userfeedback':'/pages/login/index'" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center">
<img src="@/static/img/information.png" alt="" class="h-20 m-r-xs" />
<span class="color-light">{{ $t("base.h3") }}</span>
</view>
<van-icon name="arrow" class="fn-18" />
</v-link>
<v-link to="/pages/accountSettings/accountSettings" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center">
@ -866,7 +876,7 @@
</view>
<van-icon name="arrow" class="fn-18" />
</v-link>
<v-link v-if="is_agency!==1&&isLogin" :to="isLogin?'/pages/oncs/onservice':'/pages/login/index'" tag="div"
<!-- <v-link v-if="is_agency!==1&&isLogin" :to="isLogin?'/pages/oncs/onservice':'/pages/login/index'" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between" style="position: relative;">
<view class="d-flex align-center">
<img src="@/static/img/cs_w.png" alt="" class="h-20 m-r-xs" />
@ -874,7 +884,7 @@
<span class="color-light">{{ $t("common.service") }}</span>
</view>
<van-icon name="arrow" class="fn-18" />
</v-link>
</v-link> -->
<!-- <view class="per-bot p-y-md p-x-sm d-flex align-center">
<img :src="$localImgUrl('Page6.png')" alt="" class="h-20 m-r-xs" />
<span class="color-light">

BIN
static/bsoc.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
static/img/information.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 B

BIN
static/xrorbit.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Loading…
Cancel
Save