替换url
This commit is contained in:
parent
cb95d1ead1
commit
8286dbfa58
@ -2,7 +2,7 @@ var md5 = require("../static/js/md5.min.js")
|
||||
const install = (Vue, vm) => {
|
||||
// 此为自定义配置参数,具体参数见上方说明
|
||||
Vue.prototype.$u.http.setConfig({
|
||||
baseUrl: 'https://dmmall.sdbairui.com/api',
|
||||
baseUrl: 'http://mall.dmygkeji.com/api',
|
||||
loadingText: '努力加载中~',
|
||||
loadingTime: 800,
|
||||
originalData: true
|
||||
|
@ -132,7 +132,7 @@
|
||||
// 关注
|
||||
following(id) {
|
||||
uni.request({
|
||||
url: "https://dmmall.sdbairui.com/api/member/attentionMember",
|
||||
url: "http://mall.dmygkeji.com/api/member/attentionMember",
|
||||
method: "POST",
|
||||
data: {
|
||||
member_id: id
|
||||
@ -161,7 +161,7 @@
|
||||
likeType(id) {
|
||||
// console.log(id);
|
||||
uni.request({
|
||||
url: "https://dmmall.sdbairui.com/api/article/articleLike",
|
||||
url: "http://mall.dmygkeji.com/api/article/articleLike",
|
||||
method: "POST",
|
||||
data: {
|
||||
article_id: id
|
||||
@ -192,7 +192,7 @@
|
||||
// 收藏
|
||||
collecting(id) {
|
||||
uni.request({
|
||||
url: "https://dmmall.sdbairui.com/api/article/articleCollect",
|
||||
url: "http://mall.dmygkeji.com/api/article/articleCollect",
|
||||
method: "POST",
|
||||
data: {
|
||||
article_id: id
|
||||
|
@ -133,7 +133,7 @@
|
||||
|
||||
<script>
|
||||
import userinfo from "../components/userinfo/index" // 点赞组件
|
||||
const temp_url = "https://dmmall.sdbairui.com/api/";
|
||||
const temp_url = "http://mall.dmygkeji.com/api/";
|
||||
export default {
|
||||
components: {
|
||||
userinfo
|
||||
|
@ -14,7 +14,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
src: 'https://dmmall.sdbairui.com/uploads/home/avatar/avatar_19.jpg',
|
||||
src: 'http://mall.dmygkeji.com/uploads/home/avatar/avatar_19.jpg',
|
||||
userList: [],
|
||||
}
|
||||
},
|
||||
|
@ -125,7 +125,7 @@
|
||||
const token = uni.getStorageSync('token');
|
||||
let that = this
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
|
||||
data:{
|
||||
userId: 1
|
||||
},
|
||||
|
@ -370,7 +370,7 @@ export default {
|
||||
const token = uni.getStorageSync('token');
|
||||
console.log(token,that.id)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/goodsShelves",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/goodsShelves",
|
||||
data:{
|
||||
live_id:that.id
|
||||
},
|
||||
@ -385,7 +385,7 @@ export default {
|
||||
})
|
||||
setInterval(function(){
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/goodsShelves",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/goodsShelves",
|
||||
data:{
|
||||
live_id:that.id
|
||||
},
|
||||
@ -403,7 +403,7 @@ export default {
|
||||
|
||||
},10 * 1000)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/livingUserInfo",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/livingUserInfo",
|
||||
data:{
|
||||
live_id:that.id
|
||||
},
|
||||
@ -501,7 +501,7 @@ export default {
|
||||
let that = this
|
||||
console.log(token)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/member/attentionMember",
|
||||
url:"http://mall.dmygkeji.com/api/member/attentionMember",
|
||||
data:{
|
||||
member_id:that.info.user_id
|
||||
},
|
||||
@ -512,7 +512,7 @@ export default {
|
||||
success(res){
|
||||
console.log(res)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/livingUserInfo",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/livingUserInfo",
|
||||
data:{
|
||||
live_id:that.id
|
||||
},
|
||||
|
@ -108,7 +108,7 @@ IMService.prototype.initialContacts = function (friendList) {
|
||||
const token = uni.getStorageSync('token');
|
||||
console.log(token)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
|
||||
data:{
|
||||
userId:i[0],
|
||||
markup:1
|
||||
@ -289,7 +289,7 @@ IMService.prototype.initialIMListeners = function () {
|
||||
const token = uni.getStorageSync('token');
|
||||
console.log(token)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
|
||||
data:{
|
||||
userId:message.senderId,
|
||||
markup:1
|
||||
@ -532,7 +532,7 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
|
||||
const token = uni.getStorageSync('token');
|
||||
console.log(token)
|
||||
uni.request({
|
||||
url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
|
||||
url:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
|
||||
data:{
|
||||
userId:friendId,
|
||||
markup:1
|
||||
|
Loading…
Reference in New Issue
Block a user