替换域名 #241
@ -2,7 +2,7 @@ var md5 = require("../static/js/md5.min.js")
 | 
			
		||||
const install = (Vue, vm) => {
 | 
			
		||||
	// 此为自定义配置参数,具体参数见上方说明
 | 
			
		||||
	Vue.prototype.$u.http.setConfig({
 | 
			
		||||
		baseUrl: 'http://mall.dmygkeji.com/api',
 | 
			
		||||
		baseUrl: 'https://mall.dmygkeji.com/api',
 | 
			
		||||
		loadingText: '努力加载中~',
 | 
			
		||||
		loadingTime: 800,
 | 
			
		||||
        originalData: true
 | 
			
		||||
 | 
			
		||||
@ -134,7 +134,7 @@
 | 
			
		||||
            // 关注
 | 
			
		||||
            following(id) {
 | 
			
		||||
                uni.request({
 | 
			
		||||
                    url: "http://mall.dmygkeji.com/api/member/attentionMember",
 | 
			
		||||
                    url: "https://mall.dmygkeji.com/api/member/attentionMember",
 | 
			
		||||
                    method: "POST",
 | 
			
		||||
                    data: {
 | 
			
		||||
                        member_id: id
 | 
			
		||||
@ -163,7 +163,7 @@
 | 
			
		||||
            likeType(id) {
 | 
			
		||||
                // console.log(id);
 | 
			
		||||
                uni.request({
 | 
			
		||||
                    url: "http://mall.dmygkeji.com/api/article/articleLike",
 | 
			
		||||
                    url: "https://mall.dmygkeji.com/api/article/articleLike",
 | 
			
		||||
                    method: "POST",
 | 
			
		||||
                    data: {
 | 
			
		||||
                        article_id: id
 | 
			
		||||
@ -194,7 +194,7 @@
 | 
			
		||||
            // 收藏
 | 
			
		||||
            collecting(id) {
 | 
			
		||||
                uni.request({
 | 
			
		||||
                    url: "http://mall.dmygkeji.com/api/article/articleCollect",
 | 
			
		||||
                    url: "https://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 = "http://mall.dmygkeji.com/api/";
 | 
			
		||||
    const temp_url = "https://mall.dmygkeji.com/api/";
 | 
			
		||||
    export default {
 | 
			
		||||
        components: {
 | 
			
		||||
            userinfo
 | 
			
		||||
 | 
			
		||||
@ -14,7 +14,7 @@
 | 
			
		||||
export default {
 | 
			
		||||
	data() {
 | 
			
		||||
		return {
 | 
			
		||||
			src: 'http://mall.dmygkeji.com/uploads/home/avatar/avatar_19.jpg',
 | 
			
		||||
			src: 'https://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:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
 | 
			
		||||
						url:"https://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:"http://mall.dmygkeji.com/api/Specialci/goodsShelves",
 | 
			
		||||
      url:"https://mall.dmygkeji.com/api/Specialci/goodsShelves",
 | 
			
		||||
      data:{
 | 
			
		||||
        live_id:that.id
 | 
			
		||||
      },
 | 
			
		||||
@ -385,7 +385,7 @@ export default {
 | 
			
		||||
    })
 | 
			
		||||
    setInterval(function(){
 | 
			
		||||
       uni.request({
 | 
			
		||||
          url:"http://mall.dmygkeji.com/api/Specialci/goodsShelves",
 | 
			
		||||
          url:"https://mall.dmygkeji.com/api/Specialci/goodsShelves",
 | 
			
		||||
          data:{
 | 
			
		||||
            live_id:that.id
 | 
			
		||||
          },
 | 
			
		||||
@ -403,7 +403,7 @@ export default {
 | 
			
		||||
 | 
			
		||||
    },10 * 1000)
 | 
			
		||||
    uni.request({
 | 
			
		||||
      url:"http://mall.dmygkeji.com/api/Specialci/livingUserInfo",
 | 
			
		||||
      url:"https://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:"http://mall.dmygkeji.com/api/member/attentionMember",
 | 
			
		||||
        url:"https://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:"http://mall.dmygkeji.com/api/Specialci/livingUserInfo",
 | 
			
		||||
            url:"https://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:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
 | 
			
		||||
            url:"https://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:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
 | 
			
		||||
                    url:"https://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:"http://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
 | 
			
		||||
            url:"https://mall.dmygkeji.com/api/Specialci/getAtwillUserInfo",
 | 
			
		||||
            data:{
 | 
			
		||||
                userId:friendId,
 | 
			
		||||
                markup:1
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user