Browse Source

change image url

yb 10 tháng trước cách đây
mục cha
commit
6a7bd41dba

+ 1 - 0
src/store/modules/dict.ts

@@ -41,6 +41,7 @@ export const useDictStore = defineStore('dict', {
   actions: {
   actions: {
     async setDictMap() {
     async setDictMap() {
       const dictMap = wsCache.get(CACHE_KEY.DICT_CACHE)
       const dictMap = wsCache.get(CACHE_KEY.DICT_CACHE)
+      console.log("🚀 ~ setDictMap ~ dictMap:", dictMap)
       if (dictMap) {
       if (dictMap) {
         this.dictMap = dictMap
         this.dictMap = dictMap
         this.isSetDict = true
         this.isSetDict = true

+ 1 - 1
src/views/mall/cashier/index.vue

@@ -49,7 +49,7 @@
                 <div class="tab">
                 <div class="tab">
                   <div class="cart-list"  v-if="cartList.length > 0">
                   <div class="cart-list"  v-if="cartList.length > 0">
                     <div class="cart-item" v-for="(cart,idx) in cartList" :key="idx">
                     <div class="cart-item" v-for="(cart,idx) in cartList" :key="idx">
-                      <img class="image" :src="cart.image"/>
+                      <img class="image" :src="convertImageUrl(cart.image)"/>
                       <div class="info">
                       <div class="info">
                         <div class="name">{{cart.storeName}}</div>
                         <div class="name">{{cart.storeName}}</div>
                         <div class="spec">
                         <div class="spec">

+ 8 - 8
src/views/system/user/UserForm.vue

@@ -29,7 +29,7 @@
       <el-row>
       <el-row>
         <el-col :span="12">
         <el-col :span="12">
           <el-form-item :label="t('system.phoneNumber')" prop="mobile">
           <el-form-item :label="t('system.phoneNumber')" prop="mobile">
-            <el-input v-model="formData.mobile" maxlength="11" :placeholder="t('system.pleaseEnterPhoneNumber')" />
+            <el-input v-model="formData.mobile" maxlength="20" :placeholder="t('system.pleaseEnterPhoneNumber')" />
           </el-form-item>
           </el-form-item>
         </el-col>
         </el-col>
         <el-col :span="12">
         <el-col :span="12">
@@ -138,13 +138,13 @@ const formRules = reactive<FormRules>({
       trigger: ['blur', 'change']
       trigger: ['blur', 'change']
     }
     }
   ],
   ],
-  mobile: [
-    {
-      pattern: /^(?:(?:\+|00)86)?1(?:3[\d]|4[5-79]|5[0-35-9]|6[5-7]|7[0-8]|8[\d]|9[189])\d{8}$/,
-      message: t('system.pleaseEnterTheCorrectPhoneNumber'),
-      trigger: 'blur'
-    }
-  ]
+  // mobile: [
+  //   {
+  //     pattern: /^(?:(?:\+|00)81)0?(?:70|80|90)\d{9}$/,
+  //     message: t('system.pleaseEnterTheCorrectPhoneNumber'),
+  //     trigger: 'blur'
+  //   }
+  // ]
 })
 })
 const formRef = ref() // 表单 Ref
 const formRef = ref() // 表单 Ref
 const deptList = ref<Tree[]>([]) // 树形结构
 const deptList = ref<Tree[]>([]) // 树形结构