- 微信扫一扫 -
QQ:181814630
电话:15116362044
演示角色 | 演示地址 | 账号 | 密码 |
---|---|---|---|
后台PC端 | 点击进入 | dsshop | 123456 |
用户PC端 | 点击进入 | buyer | 123456 |
手机端 | 点击进入 | buyer | 123456 |
安卓APP下载地址 | http://www.csdeshang.com/document/dsshop/dsshop_uniapp_android.apk |
用户端
用户手机端安卓APP
(使用浏览器打开)
演示角色 | 演示地址 | 账号 | 密码 |
---|---|---|---|
后台PC端 | 点击进入 | dso2o | 123456 |
用户PC端 | 点击进入 | buyer | 123456 |
卖家PC端 | 点击进入 | buyer | 123456 |
服务机构PC端 | 点击进入 | 后台添加 | |
用户手机端 | 点击进入 | buyer | 123456 |
商家手机端 | 点击进入 | buyer | 123456 |
配送员 | 点击进入 | 测试配送员 | 123456 |
服务机构手机端 | 点击进入 | test1 | 123456 |
安卓APP下载地址 | http://www.csdeshang.com/document/dso2o/dso2o_uniapp_android.apk |
用户端
商家端
配送员管理端
服务机构端
用户端安卓APP
(使用浏览器打开)
商家端安卓APP
(使用浏览器打开)
配送员管理安卓APP
(使用浏览器打开)
服务机构安卓APP
(使用浏览器打开)
演示角色 | 演示地址 | 账号 | 密码 |
---|---|---|---|
后台PC端 | 点击进入 | dsmall | 123456 |
用户PC端 | 点击进入 | buyer | 123456 |
商家PC端 | 点击进入 | buyer | 123456 |
用户手机端 | 点击进入 | buyer | 123456 |
商家手机端 | 点击进入 | buyer | 123456 |
门店手机端 | 点击进入 | seller | 123456 |
安卓APP下载地址 | http://www.csdeshang.com/document/dsmall/dsmall_uniapp_android.apk |
用户端
商家端
门店端
用户安卓APP(使用浏览器打开)
商家安卓APP(使用浏览器打开)
门店安卓APP(使用浏览器打开)
使用谷歌浏览器, 右键谷歌浏览器 -》属性-》目标。在目标 后面新增--disable-web-security --user-data-dir如下图:(注意空格)
添加好了后 关闭浏览器 重新打开 如果出现下图则说明成功
将API_HOST的值改成API接口地址 如果你的程序是locallhost 则就是http://localhost/public/api 如果选择API接口为服务器地址则就是:https://dsmall.csdeshang.com/api
给module.exports新增一项:
baseUrl: '/', devServer: { proxy: { '/api': { target: 【你的网址】,//例http://dsmall.csdeshang.com changeOrigin: true, ws: true, } } }
注:假设pc程序放在D:/WWW/git/DSMall目录
需要注意不要和原来的配置冲突,例如宝塔环境中有引用php的配置,将会和location ~ \.php(.*)$ {冲突,此时需要注释此引用语句,并复制此php配置内容,再加上跨域内容就行了
server {
listen 80;
server_name www.dsmall.com ;
root "D:/WWW/git/DSMall/public";
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'http://h5.dsmall.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'X-DS-KEY,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
if ($request_method = 'POST') {
add_header 'Access-Control-Allow-Origin' 'http://h5.dsmall.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'X-DS-KEY,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
add_header 'Access-Control-Allow-Credentials' 'true';
}
if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' 'http://h5.dsmall.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'X-DS-KEY,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
add_header 'Access-Control-Allow-Credentials' 'true';
}
index index.html index.htm index.php;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=/$1 last;
}
#autoindex on;
}
location ~ \.php(.*)$ {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'http://h5.dsmall.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'X-DS-KEY,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
if ($request_method = 'POST') {
add_header 'Access-Control-Allow-Origin' 'http://h5.dsmall.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'X-DS-KEY,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
add_header 'Access-Control-Allow-Credentials' 'true';
}
if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' 'http://h5.dsmall.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'X-DS-KEY,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
add_header 'Access-Control-Allow-Credentials' 'true';
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
DocumentRoot "D:\WWW\git\DSMall\public"
ServerName www.dsmall.com
ServerAlias
Header set Access-Control-Allow-Origin "http://h5.dsmall.com"
Header add Access-Control-Allow-Methods "GET, POST, OPTIONS"
Header add Access-Control-Allow-Headers "X-DS-KEY,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"
Header add Access-Control-Allow-Credentials "true"
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
在D:\WWW\git\DSMall\public下新增web.config