Browse Source

修改

master
前端-胡立永 7 months ago
parent
commit
32931990a2
11 changed files with 54 additions and 15 deletions
  1. +1
    -1
      App.vue
  2. +1
    -1
      locale/ar.js
  3. +1
    -1
      locale/en.js
  4. +1
    -1
      locale/es.js
  5. +1
    -1
      locale/fr.js
  6. +1
    -1
      locale/ru.js
  7. +10
    -3
      pages/home/home.vue
  8. +5
    -1
      pages/order/order.vue
  9. +26
    -4
      pages/starting/starting.vue
  10. +1
    -1
      store/index.js
  11. +6
    -0
      utils/shop.js

+ 1
- 1
App.vue View File

@ -22,7 +22,7 @@
uni.$resMessage = this.$t('message')
},
onShow: function() {
// this.$store.commit('getUnit')
this.$store.commit('getUnit')
},
onHide: function() {}
}


+ 1
- 1
locale/ar.js View File

@ -47,7 +47,7 @@ export default {
"29": "تم إنشاء الطلب بنجاح",
"30": "تم إيقاف المعاملات للمستخدم. يرجى الاتصال بخدمة العملاء",
"31": "لديك طلب غير مدفوع",
"32": "المهمة اكتملت. يرجى الاتصال بخدمة العملاء",
"32": "تجاوز الحد المسموح به",
"33": "بما أن الأموال كبيرة وتتجاوز مبلغ السحب للعادين، يرجى النظر في ترقية مستوى الاشتراك الخاص بك!",
"34": "قم بتسجيل الدخول اليوم",
"35": "نجاح التسجيل الدخول",


+ 1
- 1
locale/en.js View File

@ -47,7 +47,7 @@ export default {
"29": "Order created successfully",
"30": "User transactions have been disabled. Please contact customer service",
"31": "You have an unpaid order",
"32": "Mission complete. Contact customer service",
"32": "Exceed order limit",
"33": "Since your funds are large and exceed the withdrawal amount of ordinary users, please consider upgrading your VIP level!",
"34": "Sign in today",
"35": "Sign in successfully",


+ 1
- 1
locale/es.js View File

@ -47,7 +47,7 @@ export default {
"29": "Orden creada exitosamente",
"30": "Las transacciones de usuario han sido deshabilitadas. Por favor, contacte el servicio de atención al cliente",
"31": "Tiene una orden sin pagar",
"32": "Misión completa. Contacte el servicio de atención al cliente",
"32": "Exceder el límite de la orden",
"33": "¡Debido a sus grandes fondos, superando el monto de retiro de los usuarios comunes, ¡ considere actualizar su nivel vip!",
"34": "Se ha firmado hoy",
"35": "Registro exitoso",


+ 1
- 1
locale/fr.js View File

@ -47,7 +47,7 @@ export default {
"29": "Commande créée avec succès",
"30": "Les transactions de l'utilisateur ont été désactivées. Veuillez contacter le service client",
"31": "Vous avez une commande non payée",
"32": "Mission accomplie. Contacter le service client",
"32": "Dépasser la limite de commande",
"33": "Votre capital est élevé et dépasse le montant de retrait des utilisateurs ordinaires, veuillez envisager de mettre à niveau votre niveau VIP!",
"34": "Connectez-vous aujourd'hui",
"35": "Connexion réussie",


+ 1
- 1
locale/ru.js View File

@ -47,7 +47,7 @@ export default {
"29": "Заказ создан успешно",
"30": "Пользовательские транзакции были запрещены. Пожалуйста, свяжитесь с клиентской службой",
"31": "У вас есть неоплаченный заказ",
"32": "Задание выполнено. Связаться с гостевой службой",
"32": "Превышение лимита заказа",
"33": "Поскольку ваши средства больше, чем сумма снятия денег обычными пользователями, рассмотрите возможность обновления вашего VIP - уровня!",
"34": "Войти сегодня",
"35": "Войти успешно",


+ 10
- 3
pages/home/home.vue View File

@ -8,7 +8,8 @@
<!-- <image src="@/static/home/menu.png" mode="aspectFit"></image> -->
</view>
<view class="logo">
TikTok Shop
<!-- TikTok Shop -->
olx Shop
</view>
<view class="sign">
<image @click="showLanguage = true" src="../../static/home/language.png" mode="widthFix"></image>
@ -34,9 +35,11 @@
<view>{{ $t('page.home.aboutUs') }}</view>
</view>
<view class="about-us">
<view class="about-us"
:style="{'background-image' : `url(${aboutImage})`}">
<view class="about-content">
<view class="title">{{ $t('page.home.tiktokShop') }}</view>
<view class="title">olx Shop</view>
<!-- <view class="title">{{ $t('page.home.tiktokShop') }}</view> -->
<view class="desc">{{ $t('page.home.company') }}</view>
<view class="click">{{ $t('page.home.introduction') }}</view>
</view>
@ -83,6 +86,7 @@
swiperDotIndex: 0, //index
shopList : [], //
scrollList : [], //
aboutImage : '',
}
},
onShow() {
@ -101,6 +105,9 @@
this.request('shopPage').then(res => {
this.shopList = res.result.records
})
this.request('getImageIndex').then(res => {
this.aboutImage = res.result.title
})
},
//


+ 5
- 1
pages/order/order.vue View File

@ -73,6 +73,9 @@
</view>
<view class="buttom">
<!-- <view class="btn">
{{ $t('page.order.Submit_New') }}
</view> -->
<view class="btn"
v-if="item.state == 0"
@click="order = item;show = true">
@ -309,9 +312,10 @@
.buttom {
display: flex;
justify-content: flex-end;
.btn {
padding: 10rpx 20rpx;
margin: 0 20rpx;
font-size: 26rpx;
font-weight: 500;
background-color: #f33;


+ 26
- 4
pages/starting/starting.vue View File

@ -2,7 +2,7 @@
<view class="starting bx">
<view class="bg">
<image src="@/static/starting/banner.png" mode="widthFix"></image>
<image :src="appScroll || '@/static/starting/banner.png'" mode="widthFix"></image>
</view>
<view class="user-info">
@ -62,18 +62,32 @@
components : { sTabbar , prizeDraw },
data() {
return {
userInfo : {}
userInfo : {},
appScroll : ''
}
},
onShow(){
this.getUserInfo()
this.getAppScroll()
},
methods: {
//
submit(){
this.request('createOrder').then(res => {
this.$refs.prizeDraw.toggle(res.result)
let self = this
self.request('getRandomImage').then(a => {
if(a.code == 200){
self.request('createOrder', {}, {
image : a.result.iamge,
}).then(res => {
if(res.code == 200){
res.result.image = a.result.iamge
self.$refs.prizeDraw.toggle(res.result)
}
})
}
})
},
//
@ -85,6 +99,14 @@
})
},
getAppScroll() {
this.request('getAppScroll').then(res => {
if (res.code == 200) {
this.appScroll = res.result.title || res.result[0].title
}
})
},
//
orderPay(id){
this.request('pay',{},{ id }).then(res => {


+ 1
- 1
store/index.js View File

@ -12,7 +12,7 @@ const store = new Vuex.Store({
},
mutations: {
getUnit(){
request('getUnit').theen(res => {
request('getUnit').then(res => {
if(res.code == 200){
console.log(res);
}


+ 6
- 0
utils/shop.js View File

@ -73,4 +73,10 @@ export default {
getImage : { url : '/index/getImage' , method : 'GET' },
//获取Unit
getUnit : { url : '/index/getUnit' , method : 'GET' },
//获取Unit
getImageIndex : { url : '/index/getImageIndex' , method : 'GET' },
//获取Unit
getAppScroll : { url : '/index/getAppScroll' , method : 'GET' },
//获取Unit
getRandomImage : { url : '/index/getRandomImage' , method : 'GET' },
}

Loading…
Cancel
Save