main
liudan 2 years ago
parent 6398692345
commit caebed7c78
  1. 6
      app.js
  2. 4
      page/begin/begin.js
  3. 2
      page/constitutionGrade/constitutionGrade.js
  4. 2
      page/record/record.js
  5. 2
      page/shetai/shetai.js
  6. 2
      page/shetai/shetai.wxml

@ -3,8 +3,8 @@ App({
//请不要修改 /addons/cms/wxapp.这部分,只允许修改域名部分 //请不要修改 /addons/cms/wxapp.这部分,只允许修改域名部分
//请注意小程序只支持https //请注意小程序只支持https
//apiUrl: 'https://demo.fastadmin.net/addons/cms/wxapp.', //apiUrl: 'https://demo.fastadmin.net/addons/cms/wxapp.',
apiUrl: 'https://mini.nanjingchuangyou.com/addons/cms/wxapp.', apiUrl: 'https://tzcs.njrenzhou.cn/addons/cms/wxapp.',
apiCommonUrl: 'https://mini.nanjingchuangyou.com/', apiCommonUrl: 'https://tzcs.njrenzhou.cn/',
si: 0, si: 0,
//小程序启动 //小程序启动
onLaunch: function() { onLaunch: function() {
@ -387,6 +387,6 @@ App({
indexTabList: [], indexTabList: [],
newsTabList: [], newsTabList: [],
productTabList: [], productTabList: [],
apiCommonUrl:'https://mini.nanjingchuangyou.com/' apiCommonUrl:'https://tzcs.njrenzhou.cn/'
} }
}) })

@ -9,7 +9,7 @@ Page({
*/ */
data: { data: {
total:0, total:0,
apiUrl: 'https://mini.nanjingchuangyou.com/addons/cms/wxapp.', apiUrl: 'https://tzcs.njrenzhou.cn/addons/cms/wxapp.',
}, },
/** /**
@ -251,6 +251,6 @@ Page({
indexTabList: [], indexTabList: [],
newsTabList: [], newsTabList: [],
productTabList: [], productTabList: [],
apiCommonUrl:'https://mini.nanjingchuangyou.com/' apiCommonUrl:'https://tzcs.njrenzhou.cn/'
} }
}) })

@ -57,7 +57,7 @@ Page({
}, },
addHandle(){ addHandle(){
wx.request({ wx.request({
url: 'https://mini.nanjingchuangyou.com/api/mini/viewUser', url: 'https://tzcs.njrenzhou.cn/api/mini/viewUser',
method:'POST', method:'POST',
header: { header: {
'content-type': 'application/x-www-form-urlencoded', 'content-type': 'application/x-www-form-urlencoded',

@ -69,7 +69,7 @@ Page({
}, },
getdata(){ getdata(){
wx.request({ wx.request({
url: 'https://mini.nanjingchuangyou.com/api/mini/viewList', url: 'https://tzcs.njrenzhou.cn/api/mini/viewList',
method:'POST', method:'POST',
header: { header: {
'content-type': 'application/x-www-form-urlencoded', 'content-type': 'application/x-www-form-urlencoded',

@ -19,7 +19,7 @@ Page({
let filePath = res.tempFilePaths[0] let filePath = res.tempFilePaths[0]
wx.uploadFile({ wx.uploadFile({
filePath: filePath, filePath: filePath,
url: 'https://mini.nanjingchuangyou.com/api/common/upload', url: 'https://tzcs.njrenzhou.cn/api/common/upload',
name: 'file', name: 'file',
timeout:5000, timeout:5000,
formData:{ formData:{

@ -6,7 +6,7 @@
<view class="picimg"> <view class="picimg">
<view class="shetaipiccontent"> <view class="shetaipiccontent">
<image src="../../assets/images/pic.png" mode="widthFix" class="shetaipic" wx:if="{{imgPath==''}}"></image> <image src="../../assets/images/pic.png" mode="widthFix" class="shetaipic" wx:if="{{imgPath==''}}"></image>
<image src="https://mini.nanjingchuangyou.com{{imgPath}}" mode="heightFix" wx:else></image> <image src="https://tzcs.njrenzhou.cn{{imgPath}}" mode="heightFix" wx:else></image>
</view> </view>
<view class="btngrounp"> <view class="btngrounp">
<view class="uploadbtn" bindtap="getimg">上传照片</view> <view class="uploadbtn" bindtap="getimg">上传照片</view>

Loading…
Cancel
Save