提交 b4f2902f 编写于 作者: Skyeye云's avatar Skyeye云

添加小程序导出基础文件

上级 0f0a1fa1
//app.js
App({
onLaunch: function () {
// 展示本地存储能力
var logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
// 登录
wx.login({
success: function (res) {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
}
})
// 获取用户信息
wx.getSetting({
success: function (res) {
if (res.authSetting['scope.userInfo']) {
// 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
wx.getUserInfo({
success: function (res) {
// 可以将 res 发送给后台解码出 unionId
this.globalData.userInfo = res.userInfo
// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
// 所以此处加入 callback 以防止这种情况
if (this.userInfoReadyCallback) {
this.userInfoReadyCallback(res)
}
}
})
}
}
})
},
globalData: {
userInfo: null
},
stringToJson: function (data) {
return JSON.parse(data);
},
isNull: function(data){
if (data == null || data == "" || data == "undefined"){
return true;
}else{
return false;
}
},
data: {
servsers: "http://218.28.192.34:10001/",
imgServerIp: "http://47.94.148.186:30110/",
APPMAPKEY:"HUPBZ-SNCWQ-A6M5W-GEIJM-SF4PQ-M4BOX",
// APP_ID: "wx4dcee834cc6446dd",
// APP_SECRET: "7165088c1f7312c9fda45670d63bd878",
APP_ID: "wx5bef16e15f8499e9",
APP_SECRET: "c9fbc0d1c91c103594fdba46601307e2",
}
})
\ No newline at end of file
{
"pages": [
"pages/propaganda/propaganda",
"pages/index/index",
"pages/complaints/complaints",
"pages/mycomplaints/mycomplaints",
"pages/writemessage/writemessage",
"pages/othermore/index",
"pages/thismap/thismap",
"pages/propagandadatails/propagandadatails",
"pages/mycomplaintsdatails/propagandadatails"
],
"window": {
"backgroundTextStyle": "dark",
"navigationBarBackgroundColor": "#1296db",
"navigationBarTitleText": "检察投诉举报",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": true
},
"tabBar": {
"color": "#ffffff",
"selectedColor": "#e6e6e6",
"borderStyle": "white",
"backgroundColor": "#1296db",
"list": [
{
"selectedIconPath": "images/th.png",
"iconPath": "images/thNo.png",
"pagePath": "pages/propaganda/propaganda",
"text": "宣传"
},
{
"selectedIconPath": "images/main.png",
"iconPath": "images/mainNo.png",
"pagePath": "pages/index/index",
"text": "投诉举报"
},
{
"selectedIconPath": "images/my.png",
"iconPath": "images/myNo.png",
"pagePath": "pages/mycomplaints/mycomplaints",
"text": "我的投诉"
}
]
}
}
\ No newline at end of file
/**
* 全局样式表
* 使用@import语句可以导入外联样式表,@import后跟需要导入的外联样式表的相对路径,用;表示语句结束
* 如果需要增加额外的WXSS样式表, 直接import即可, 但需注意引用顺序
*/
@import 'components/wux.wxss';
@import 'assets/styles/weui.wxss';
@import 'assets/styles/skyvow.wxss';
/**app.wxss**/
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
}
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
<label class="layui-form-label">路径</label> <label class="layui-form-label">路径</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" id="filePath" name="filePath" placeholder="请输入路径" class="layui-input" maxlength="50"/> <input type="text" id="filePath" name="filePath" placeholder="请输入路径" class="layui-input" maxlength="50"/>
<div class="layui-form-mid layui-word-aux">
小程序导出路径为:page/路径/文件名.文件类型(文件类型:js、json、wxml、wxss)<br>
H5页面导出路径为:html/路径/文件名.html;对应JS导出路径为:js/路径/文件名.js
</div>
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
<label class="layui-form-label">路径</label> <label class="layui-form-label">路径</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" id="filePath" name="filePath" placeholder="请输入路径" class="layui-input" maxlength="50" value="{{filePath}}"/> <input type="text" id="filePath" name="filePath" placeholder="请输入路径" class="layui-input" maxlength="50" value="{{filePath}}"/>
<div class="layui-form-mid layui-word-aux">
小程序导出路径为:page/路径/文件名.文件类型(文件类型:js、json、wxml、wxss)<br>
H5页面导出路径为:html/路径/文件名.html;对应JS导出路径为:js/路径/文件名.js
</div>
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册