| | |
| | | <meta name="viewport" content="width=device-width,initial-scale=1.0"> |
| | | <link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
| | | <link rel="stylesheet" href="./fonts/iconfont.css"> |
| | | <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> |
| | | <title>sass</title> |
| | | <style> |
| | | </style> |
| | |
| | | // 获取验证码 |
| | | export const getVerifyCode = (data) => { |
| | | return request({ |
| | | url: "/saas/api-i/saasIndex/sendVerifyCode", |
| | | url: "/cloud/api-i/saasIndex/sendVerifyCode", |
| | | method: "post", |
| | | data, |
| | | }); |
| | |
| | | export const getMenuPermission = () => { |
| | | return request({ |
| | | url: "/saas/api-u/user/menuPermissions ", |
| | | |
| | | method: "get", |
| | | }); |
| | | }; |
| | |
| | | sessionStorage.getItem("loginedInfo") && |
| | | JSON.parse(sessionStorage.getItem("loginedInfo")).access_token; |
| | | return request({ |
| | | url: "/saas/api-u/users/current", |
| | | url: "/cloud/api-u/users/current", |
| | | method: "get", |
| | | headers: { |
| | | "Content-Type": "application/x-www-form-urlencoded", |
| | |
| | | // 重置密码 |
| | | export const forgetPwd = (query) => { |
| | | return request({ |
| | | url: "/saas/api-u/user/forgetPwd", |
| | | url: "/cloud/api-u/user/forgetPwd", |
| | | method: "post", |
| | | data: qs.stringify(query), |
| | | }); |
| | |
| | | // 注册 |
| | | export const register = (query) => { |
| | | return request({ |
| | | url: "/saas/api-u/user/register", |
| | | url: "/cloud/api-u/user/register", |
| | | method: "post", |
| | | data: query, |
| | | }); |
| | |
| | | // 获取字典 |
| | | export const getDic = (query) => { |
| | | return request({ |
| | | url: "/saas/api-u/dic/findDicByType", |
| | | url: "/cloud/api-u/dic/findDicByType", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | |
| | | // 获取行政区域 |
| | | export const getAreas = (query) => { |
| | | return request({ |
| | | url: "/saas/api-u/area/findAreaByParentId", |
| | | url: "/cloud/api-u/area/findAreaByParentId", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | |
| | | // 完善用户信息 |
| | | export const entireUserInfo = (query) => { |
| | | return request({ |
| | | url: "/saas/api-u/user/entireUserInfo", |
| | | url: "/cloud/api-u/user/entireUserInfo", |
| | | method: "post", |
| | | data: query, |
| | | }); |
New file |
| | |
| | | <template> |
| | | <img :src="url" alt="" /> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | props: { |
| | | src: {}, |
| | | }, |
| | | computed: { |
| | | url() { |
| | | if (this.src.indexOf("http://apps.smartai.com/httpImage/") === -1) { |
| | | return "httpImage" + this.src; |
| | | } else { |
| | | return this.src; |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | |
| | | |
| | | import VueAwesomeSwiper from "vue-awesome-swiper"; |
| | | import ToggleButton from 'vue-js-toggle-button'; |
| | | import ImageShow from './scripts/component.js' |
| | | |
| | | import "swiper/dist/css/swiper.css"; |
| | | |
| | |
| | | Vue.use(VueWindow); |
| | | Vue.use(VueAwesomeSwiper as any); |
| | | Vue.use(ToggleButton) |
| | | Vue.use(ImageShow) |
| | | |
| | | |
| | | |
New file |
| | |
| | | // 引入组件 |
| | | import ImageShow from "@/components/subComponents/ImageShow.vue"; |
| | | // 创建个空对象 |
| | | // 设置安装方法 |
| | | ImageShow.install = function(Vue) { |
| | | Vue.component("ImageShow", ImageShow); |
| | | }; |
| | | // 导出对象 |
| | | export default ImageShow; |
| | |
| | | v-for="(item, index) in commendData" |
| | | :key="index" |
| | | > |
| | | <img :src="'/httpImage/' + item.logoUrl" alt="" /> |
| | | <ImageShow :src="item.logoUrl"> </ImageShow> |
| | | <div class="title">{{ item.productName }}</div> |
| | | <div class="des limitRow2">{{ item.description }}</div> |
| | | <price :priceNew="item.priceBase ? item.priceBase : 0"></price> |