Browse Source

修改bug

master
前端-胡立永 9 months ago
parent
commit
39aa302f34
10 changed files with 50 additions and 20 deletions
  1. +5
    -5
      components/changeLanguage/changeLanguage.vue
  2. +22
    -5
      config.js
  3. +1
    -1
      locale/en.js
  4. +14
    -4
      pages/purse/purse.vue
  5. +1
    -0
      pages/starting/starting.vue
  6. +1
    -1
      pages/withdraw/withdraw.vue
  7. BIN
      static/center/5.png
  8. BIN
      static/home/bg1.jpg
  9. +1
    -1
      store/index.js
  10. +5
    -3
      utils/shop.js

+ 5
- 5
components/changeLanguage/changeLanguage.vue View File

@ -19,23 +19,23 @@
return { return {
languageList: [ languageList: [
{ {
name:'English',
name:'English',//
key : "en" key : "en"
}, },
{ {
name : 'Arabic',
name : 'العربية',//
key : "ar" key : "ar"
}, },
{ {
name : 'French',
name : 'français',//
key : 'fr' key : 'fr'
}, },
{ {
name : 'Spanish',
name : 'español',//西
key : 'es' key : 'es'
}, },
{ {
name : 'Russian',
name : 'Русский язык',//
key : 'ru' key : 'ru'
} }
], ],


+ 22
- 5
config.js View File

@ -6,17 +6,16 @@ import uView from '@/uni_modules/uview-ui'
Vue.use(uView) Vue.use(uView)
// 当前环境 // 当前环境
const type = 'dev'
const type = 'prod'
// 环境配置 // 环境配置
const config = { const config = {
dev : { dev : {
// baseUrl : 'https://school-admin.xzaiyp.top',
baseUrl : 'https://uav-api.xzaiyp.top/uav-api',
baseUrl : 'http://h5.xzaiyp.top/uav-api',
}, },
prod : { prod : {
baseUrl : 'https://school-admin.xzaiyp.top/school-api',
baseUrl : 'https://uav-api.xzaiyp.top/uav-api',
} }
} }
@ -36,7 +35,25 @@ const defaultConfig = {
//桶的名字 //桶的名字
bucket: 'zhuoqiu-image', bucket: 'zhuoqiu-image',
endpoint:'oss-cn-guangzhou.aliyuncs.com', endpoint:'oss-cn-guangzhou.aliyuncs.com',
}
},
// url : 'https://dianpin-img.xzaiyp.top/',
// config : {
// //桶的地址
// region: 'oss-cn-guangzhou',
// //id
// accessKeyId:'LTAI5tMan18fjJPUtr3Aim2W',
// //密钥
// accessKeySecret:'lhALqqgYijc115wY8c1KfTYkbSnq5I',
// //桶的名字
// bucket: 'mangoimageapplet',
// endpoint:'oss-cn-shenzhen.aliyuncs.com',
// },
// oss:
// accessKey: LTAI5tMan18fjJPUtr3Aim2W
// secretKey: lhALqqgYijc115wY8c1KfTYkbSnq5I
// endpoint: oss-cn-shenzhen.aliyuncs.com
// bucketName: mangoimageapplet
// staticDomain: https://dianpin-img.xzaiyp.top
}, },
} }


+ 1
- 1
locale/en.js View File

@ -109,7 +109,7 @@ export default {
"withdrawal-account": "Withdrawal account", "withdrawal-account": "Withdrawal account",
"min-withdrawal": "Minimum withdrawal amount 1", "min-withdrawal": "Minimum withdrawal amount 1",
"payment-password": "Payment password", "payment-password": "Payment password",
"payment_passwrod-placeholder": "Please enter payment password",
"payment_password-placeholder": "Please enter payment password",
"confirm": "Confirm", "confirm": "Confirm",
"creditLimit" : "The minimum withdrawal should be greater than 0", "creditLimit" : "The minimum withdrawal should be greater than 0",
"insufficientBalance" : "The withdrawal amount is greater than the account balance" "insufficientBalance" : "The withdrawal amount is greater than the account balance"


+ 14
- 4
pages/purse/purse.vue View File

@ -14,8 +14,8 @@
<view class="purse-input content"> <view class="purse-input content">
<view class="title">{{ $t('page.purse.recharge-address') }}</view> <view class="title">{{ $t('page.purse.recharge-address') }}</view>
<view class="text">{{ userInfo.moneyAddress }}</view>
<view @click="copy(userInfo.moneyAddress)" class="btn">{{ $t('page.purse.copy') }}</view>
<view class="text">{{ addressInfo[$store.state.key[$i18n.locale]] }}</view>
<view @click="copy(addressInfo[$store.state.key[$i18n.locale]])" class="btn">{{ $t('page.purse.copy') }}</view>
</view> </view>
<view class="purse-input content"> <view class="purse-input content">
@ -79,12 +79,14 @@
}, },
serverList : [], serverList : [],
showService : false, showService : false,
userInfo : {}
userInfo : {},
addressInfo : {}
} }
}, },
onShow() { onShow() {
this.getUserInfo() this.getUserInfo()
this.forgetPass() this.forgetPass()
this.getPayUrl()
}, },
methods: { methods: {
// leftClick() { // leftClick() {
@ -99,6 +101,14 @@
// } // }
// }, // },
getPayUrl(){
this.request('getPayUrl').then(res => {
if(res.code == 200){
this.addressInfo = res.result
}
})
},
uploadImage(){ uploadImage(){
let self = this let self = this
this.$Oss.ossUploadImage({ this.$Oss.ossUploadImage({
@ -197,7 +207,7 @@
background-size: 100%; background-size: 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
background: #f6f6f6; background: #f6f6f6;
padding-bottom: 150rpx;
padding-bottom: 300px;
.content { .content {
width: 96%; width: 96%;


+ 1
- 0
pages/starting/starting.vue View File

@ -127,6 +127,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.starting { .starting {
height: 100vh; height: 100vh;
padding-bottom: 300px;
.bg { .bg {
border-bottom-left-radius: 60% 60rpx; border-bottom-left-radius: 60% 60rpx;


+ 1
- 1
pages/withdraw/withdraw.vue View File

@ -31,7 +31,7 @@
</view> </view>
<view class="box content"> <view class="box content">
<view class="title info">{{ $t('page.withdraw.payment-password') }}</view> <view class="title info">{{ $t('page.withdraw.payment-password') }}</view>
<input v-model="form.payPass" type="number" :placeholder="$t('page.withdraw.payment_passwrod-placeholder')"/>
<input v-model="form.payPass" type="number" :placeholder="$t('page.withdraw.payment_password-placeholder')"/>
</view> </view>
<!-- <view class="withdraw-amount content"> <!-- <view class="withdraw-amount content">


BIN
static/center/5.png View File

Before After
Width: 177  |  Height: 176  |  Size: 10 KiB Width: 177  |  Height: 176  |  Size: 10 KiB

BIN
static/home/bg1.jpg View File

Before After
Width: 800  |  Height: 400  |  Size: 88 KiB Width: 800  |  Height: 400  |  Size: 117 KiB

+ 1
- 1
store/index.js View File

@ -16,7 +16,7 @@ const store = new Vuex.Store({
'es' : 'keySpanish', //西班牙 'es' : 'keySpanish', //西班牙
'fr' : 'keyF', //法语 'fr' : 'keyF', //法语
'ru' : 'keyE' //俄语 'ru' : 'keyE' //俄语
}
},
}, },
mutations: { mutations: {
getUnit(state){ getUnit(state){


+ 5
- 3
utils/shop.js View File

@ -73,10 +73,12 @@ export default {
getImage : { url : '/index/getImage' , method : 'GET' }, getImage : { url : '/index/getImage' , method : 'GET' },
//获取Unit //获取Unit
getUnit : { url : '/index/getUnit' , method : 'GET' }, getUnit : { url : '/index/getUnit' , method : 'GET' },
//获取Unit
//获取首页中间的banner
getImageIndex : { url : '/index/getImageIndex' , method : 'GET' }, getImageIndex : { url : '/index/getImageIndex' , method : 'GET' },
//获取Unit
//获取活动背景图
getAppScroll : { url : '/index/getAppScroll' , method : 'GET' }, getAppScroll : { url : '/index/getAppScroll' , method : 'GET' },
//获取Unit
//新版本-获取商品随机图片
getRandomImage : { url : '/index/getRandomImage' , method : 'GET' }, getRandomImage : { url : '/index/getRandomImage' , method : 'GET' },
//获取平台充值地址
getPayUrl : { url : '/index/getPayUrl' , method : 'GET' },
} }

Loading…
Cancel
Save