Browse Source

增加图片、图片路径定义

master
zq 1 month ago
parent
commit
fdfa02ccf8
  1. 2
      components/common/popUpCommon.vue
  2. 11
      main.js
  3. 5
      pages/coinsDetail/index.vue
  4. 4
      pages/home/index.vue
  5. 1
      static/images/icon-popup-close.svg

2
components/common/popUpCommon.vue

@ -28,7 +28,7 @@
data() {
return {
show:false,
cssUrl:this.cssUrl,
cssUrl:this.cssUrl1,
};
},
methods:{

11
main.js

@ -154,16 +154,18 @@ try{
const NODE_ENV = 'development';
// const NODE_ENV = 'production';
Vue.prototype.cssUrl1 = '/static/images/'
if(Vue.prototype.provider == Vue.prototype.provider_weixin){
if (NODE_ENV == "development") {
Vue.prototype.request_domain = 'http://coin.checkcopy.com/';
Vue.prototype.cssUrl = '/static/images/'
// Vue.prototype.request_domain = 'http://jasonyizherenxin.checkcopy.com/';
} else {
Vue.prototype.request_domain = 'https://api.yizherenxin.cn/';
}
// 暂时注释
// Vue.prototype.cssUrl = Vue.prototype.request_domain + '/images/frontend/user/';
Vue.prototype.cssUrl = Vue.prototype.request_domain + '/images/frontend/user/';
}else{
if(NODE_ENV == 'development'){
Vue.prototype.request_domain = "http://jasonyizherenxin.checkcopy.com/";
@ -282,7 +284,7 @@ function req(url, data={}, method = 'POST', header={}) {
const currentPage = pages[pages.length - 1];
let pageUrl = '/'+currentPage.route;
if(data.xcx_scource == Vue.prototype.USER_SOURCE_WX_H5){
this.$nav.navToPath('/pages/index/index')
this.$nav.navToPath('/pages/home/index')
}else{
}
return;
@ -290,7 +292,7 @@ function req(url, data={}, method = 'POST', header={}) {
if (rs.confirm && rdata.code!=CODE_LOGIN_EXIPRE && rdata.msg && rdata.msg.indexOf('用户信息不存在') > -1) {
removeLogin();
navToPath('/pages/index/index')
navToPath('/pages/home/index')
return;
}
}
@ -336,7 +338,6 @@ function xcx_login(url, eqdata={}, method = 'POST') {
pdata.code = res.code;
var doctor_id = uni.getStorageSync('doctor_id');
pdata.state = 'user-'+doctor_id;
debugger
req('/api/login', pdata).then(data=>{
var udata = data
console.log(data,'===2222');

5
pages/coinsDetail/index.vue

@ -1,6 +1,6 @@
<template>
<view class="coinsDetail-wrap">
<view style="margin-top: 20rpx;">
<view :class="{'top':id}">
<VisitorInfo :visitorInfo="detailItem"/>
</view>
@ -70,5 +70,8 @@ export default {
.list-wrap {
padding: 0 18rpx 20rpx 18rpx;;
}
.top{
margin-top: 20rpx;
}
}
</style>

4
pages/home/index.vue

@ -82,7 +82,7 @@ export default {
},
data() {
return {
cssUrl: this.cssUrl,
cssUrl: this.cssUrl1,
status: '1',
bedWaitList: [],
titleType: {
@ -405,7 +405,7 @@ export default {
display: flex;
.bed-wait-name {
font-size: 30rpx;
font-size: 32rpx;
color: #000000;
margin-right: 24rpx;
font-weight: 500;

1
static/images/icon-popup-close.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="40" height="40" viewBox="0 0 40 40"><g><g style="opacity:0;"><path d="M0 0C0 0 0 0 0 0L40 0C40 0 40 0 40 0L40 40C40 40 40 40 40 40L0 40C0 40 0 40 0 40Z" fill="#969696" fill-opacity="1"/></g><g><path d="M29.3392125,31.16795438232422C29.6141125,31.45885438232422,29.9970125,31.62315438232422,30.3972125,31.62195438232422C30.7982125,31.61545438232422,31.1807125,31.45255438232422,31.4632125,31.16795438232422C31.7525125,30.89205438232422,31.9162125,30.509754382324218,31.9162125,30.10995438232422C31.9162125,29.71025438232422,31.7525125,29.32785438232422,31.4632125,29.05195438232422L22.4166125,20.00535438232422L31.4649125,10.956054382324218C31.8429125,10.57807438232422,31.9906125,10.027144382324218,31.8522125,9.510804382324219C31.7138125,8.99446438232422,31.3105125,8.591156382324218,30.7942125,8.45280398232422C30.2779125,8.314451082324219,29.7269125,8.462071882324219,29.3489125,8.84005838232422L20.3015125,17.89022438232422L11.2512625,8.83999938232422C10.6669425,8.255130382324218,9.719122500000001,8.25468238232422,9.1342575,8.838999382324218C8.5493885,9.423314382324218,8.5489405,10.371134382324218,9.1332575,10.956004382324219L18.1834525,20.008854382324216L9.1429595,29.05205438232422C8.7197426,29.484054382324217,8.5946115,30.12655438232422,8.8248195,30.68575438232422C9.0550275,31.24505438232422,9.5962915,31.613254382324218,10.2009625,31.62205438232422C10.5997825,31.62215438232422,10.9810125,31.457854382324218,11.2549625,31.168054382324218L20.2980125,22.124054382324218L29.3392125,31.16795438232422Z" fill-rule="evenodd" fill="#969696" fill-opacity="1"/></g></g></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

Loading…
Cancel
Save