Kaynağa Gözat

优化pc端

wbspool 4 yıl önce
ebeveyn
işleme
b0f7a9c599

+ 16 - 1
src/common/locales/en.js

@@ -97,7 +97,7 @@ export default {
   '当前为付费资源,需登录后再阅读':"Currently, it is a paid resource, which needs to be read after login",
   登录成功:"Login success",
   隐私说明:"Privacy instructions",
-  支付说明:"Payment instructions",
+  支付说明:"Payment instructions ",
   联系方式:"Contact information",
   联系电话:"Contact number",
   邮箱:"Email",
@@ -108,4 +108,19 @@ export default {
   请输入关键字:'Please place the keyword',
   当前会员有效期至:'Expiry date of current member ',
   续费:'Renewal',
+  购买说明:'Instructions',
+  产品详情:'Product details',
+  有货:'in stock',
+  件:'piece',
+  价格:'Price',
+  立即购买:'Buy Now',
+  购买人信息:'Buyer information',
+  收货人:'Consignee',
+  收货电话:'Receiving phone',
+  收货地址:'Receiving address',
+  商品信息:'Product info',
+  单价:'Price',
+  小计:'Subtotal',
+  提交订单:'Submit order',
+  购买成功:'Buy success',
 };

+ 15 - 0
src/common/locales/zh-TW.js

@@ -108,6 +108,21 @@ export default {
   请输入关键字:'請輸入關鍵字',
   当前会员有效期至:'當前會員有效期至',
   续费:'續費',
+  购买说明:'購買說明',
+  产品详情:'產品詳情',
+  有货:'有貨',
+  件:'件',
+  价格:'價格',
+  立即购买:'立即購買',
+  购买人信息:'購買人信息',
+  收货人:'收貨人',
+  收货电话:'收貨電話',
+  收货地址:'收貨地址',
+  商品信息:'商品信息',
+  单价:'單價',
+  小计:'小計',
+  提交订单:'提交訂單',
+  购买成功:'購買成功',
 
 
 };

+ 0 - 1
src/h5/pages/home/_components/home-tags.vue

@@ -15,7 +15,6 @@
 export default {
 
   created() {
-      alert("ok");
   }
 
 };

+ 1 - 1
src/pc/components/layout-basic/layout-basic.vue

@@ -9,7 +9,7 @@
       <div class="w-1200px flex flex-col mx-auto">
         <div class="h-1px bg-white w-full mt-32px"></div>
         <div class="flex justify-between mt-30px">
-          <img src="/imgs/Linkedin.png" class="w-139px" />
+          <img src="/imgs/linkedin.png" class="w-139px" />
           <img src="/imgs/youtube.png" class="w-153px" />
           <img src="/imgs/twitter.png" class="w-127px" />
           <img src="/imgs/facebook.png" class="w-148px" />

+ 1 - 1
src/pc/main.js

@@ -28,7 +28,7 @@ const messages = {
   "en": en,
 };
 const i18n = new VueI18n({
-  locale: "en", // set locale
+  locale: "zh-TW", // set locale
   messages, // set locale messages
 });
 

+ 9 - 9
src/pc/pages/product/order-detail.vue

@@ -25,11 +25,11 @@
           <div
             class="order-header h-52px flex items-center text-[#686868] text-size-14px"
           >
-            <div class="w-100px text-center">产品图</div>
-            <div class="w-300px text-center">产品名称</div>
-            <div class="flex-1 text-center">单价</div>
-            <div class="flex-1 text-center">数量</div>
-            <div class="flex-1 text-center">小计</div>
+            <div class="w-100px text-center">{{ $t("产品图") }}</div>
+            <div class="w-300px text-center">{{ $t("产品名")}}</div>
+            <div class="flex-1 text-center">{{ $t("单价")}}</div>
+            <div class="flex-1 text-center">{{ $t("数量")}}</div>
+            <div class="flex-1 text-center">{{ $t("小计")}}</div>
           </div>
           <ui-devider class="bg-[#B8B8B8]"></ui-devider>
           <div  class="order-body flex mt-30px items-center relative">
@@ -61,7 +61,7 @@
           <div v-if="form.address" class="text-size-16px text-primary mb-20px">
             {{ $t("收货地址") }}:{{form.address}}
           </div>
-          <el-button @click="handleSubmit" class="!text-white !w-200px !h-40px !bg-primary" round>提交订单</el-button>
+          <el-button @click="handleSubmit" class="!text-white !w-200px !h-40px !bg-primary" round>{{this.$t('提交订单')}}</el-button>
         </div>
       </div>
     </div>
@@ -84,9 +84,9 @@ export default {
     async handleSubmit(){
       let resp = await this.$http.post(this.$api.mzUser.createProductOrder,this.$qs.stringify(this.form))
       if(resp.data.status === 200){
-        await this.$confirm('请在弹出的窗口完成付款操作?', '提示', {
-          confirmButtonText: '已完成付款',
-          cancelButtonText: '取消',
+        await this.$confirm(this.$t('请在弹出的窗口完成付款操作?'), this.$t('提示'), {
+          confirmButtonText: this.$t('已完成付款'),
+          cancelButtonText: this.$t('取消'),
           type: 'warning'
         })
         resp = await this.$http.post(this.$api.mzUser.confirmProductOrder,this.$qs.stringify({orderCode:resp.data.data.productOrder.code}))

+ 5 - 5
src/pc/pages/product/product-detail.vue

@@ -13,9 +13,9 @@
           </div>
           <div class="flex items-start mb-42px">
             <div
-              class="font-normal text-[#686868] text-size-14px leading-20px w-70px whitespace-nowrap"
+              class="font-normal text-[#686868] text-size-14px leading-20px  whitespace-nowrap"
             >
-              购买说明:
+              {{$t('购买说明')}}:
             </div>
             <div class="font-normal text-size-14px leading-20px">
               {{product.buyDesc}}
@@ -25,7 +25,7 @@
             <div
               class="font-normal text-[#686868] text-size-14px leading-20px w-70px whitespace-nowrap"
             >
-              价格:
+              {{$t('价格')}}:
             </div>
             <div class="text-primary text-size-36px font-light">¥{{product.price.toFixed(2)}}</div>
           </div>
@@ -33,7 +33,7 @@
             <div
               class="font-normal text-[#686868] text-size-14px leading-20px w-70px whitespace-nowrap"
             >
-              数量:
+              {{$t('数量')}}:
             </div>
             <div>
               <el-input-number min="1" v-model="num"></el-input-number>
@@ -51,7 +51,7 @@
         </div>
       </div>
       <ui-devider></ui-devider>
-      <div class="text-size-24px mt-36px mb-34px">产品详情</div>
+      <div class="text-size-24px mt-36px mb-34px">{{$t('产品详情')}}</div>
       <div class="product-intro" v-html="product.detail"></div>
     </div>
     <div class="w-320px">

+ 1 - 1
src/pc/router/index.ts

@@ -33,7 +33,7 @@ export const routes: RouteConfig[] = [
   {
     path: "/",
     name: "root",
-    redirect:'/login',
+    redirect:'/home',
     // NOTE: you can also apply meta information
     // meta: {authRequired: false }
     component: BasicLayout,

+ 1 - 0
update.sh

@@ -0,0 +1 @@
+scp -r /Users/marco/Repertory/magazine-mobile/magazine/dist/*  mzy@34.81.100.100:/home/mzy/environment/fastboot-docker/nginx/html/apdmagazine

+ 1 - 0
update_h5.sh

@@ -0,0 +1 @@
+scp -r /Users/marco/Repertory/magazine-mobile/magazine/dist/*  mzy@34.81.100.100:/home/mzy/environment/fastboot-docker/nginx/html/apdmagazine_h5

+ 1 - 1
vite.config.h5.ts

@@ -21,7 +21,7 @@ const config = defineConfig(({ command, mode, ssrBuild }) => {
       port: 3333,
       proxy: {
         '/api': {
-          target: 'http://127.0.0.1:9011/', //测试服务器的
+          target: 'http://www.apdmagazine.com/', //测试服务器的
           changeOrigin: true,
           ws: true,
           pathRewrite: {