diff --git a/app.json b/app.json index e6ce114..4007d30 100644 --- a/app.json +++ b/app.json @@ -184,7 +184,8 @@ "pages/user/userPrivacy/index", "pages/user/personalInfo/index", "pages/info/luggageInfo/index", - "pages/order/WineSceneOrder/index" + "pages/order/WineSceneOrder/index", + "pages/user/suggest/suggest" ], "subpackages": [ { diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 778d17d..a8b12df 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -174,7 +174,7 @@ - + @@ -407,7 +407,7 @@ 电子社保卡 - + 景区舒适度 @@ -682,7 +682,7 @@ - + diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 3e7a495..34cd243 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -1195,4 +1195,4 @@ page { height: 166rpx; flex-shrink: 0; margin-left: -20rpx; -} \ No newline at end of file +} diff --git a/pages/map/index.wxml b/pages/map/index.wxml index 99daf15..58ef64d 100644 --- a/pages/map/index.wxml +++ b/pages/map/index.wxml @@ -322,7 +322,7 @@ 电子社保卡 - + 景区舒适度 diff --git a/pages/user/suggest/suggest.js b/pages/user/suggest/suggest.js new file mode 100644 index 0000000..d445941 --- /dev/null +++ b/pages/user/suggest/suggest.js @@ -0,0 +1,146 @@ +// pages/user/address/add/index.js +import util from "../../../utils/util.js" +import user from "../../../utils/https/user.js" +import commonApi from "../../../utils/https/common" +let app = getApp() +Page({ + + /** + * 页面的初始数据 + */ + data: { + + formData:{ + username: "", + mobile: null, + content:"" + }, + + safeBottom:app.globalData.safeBottom, + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + // 输入监听 不是双向绑定啊 绝望 + nameInput:function(e){ + var formData = this.data.formData; + formData.username = e.detail.value; + this.setData({ + formData: formData + }) + }, + telInput:function(e){ + var formData = this.data.formData; + formData.mobile = e.detail.value; + this.setData({ + formData: formData + }) + }, + contentInput:function(e){ + var formData = this.data.formData; + formData.content = e.detail.value; + this.setData({ + formData: formData + }) + }, + + // 保存 + save:function(){ + if (!(this.data.formData.username||'').trim()){ + wx.showToast({ + title: '请输入姓名!', + icon:"none" + }) + return false; + } + if (!this.data.formData.mobile) { + wx.showToast({ + title: '请输入手机号码!', + icon: "none" + }) + return false; + } + if (!util.isTel(this.data.formData.mobile)) { + wx.showToast({ + title: '请输入正确的手机号码!', + icon: "none" + }) + return false; + } + + if (!(this.data.formData.content||'').trim()) { + wx.showToast({ + title: '请输入反馈内容!', + icon: "none" + }) + return false; + } + let data = this.data.formData; + + commonApi.user_post("Suggest/add", data).then(res => { + if(res.code==1){ + + let data = { + username: "", + mobile: null, + content:"" + } + + this.setData({formData: data}) + + wx.showToast({ + title: '提交成功', + icon:"none", + }) + } + }) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + } +}) \ No newline at end of file diff --git a/pages/user/suggest/suggest.json b/pages/user/suggest/suggest.json new file mode 100644 index 0000000..b4c6fd2 --- /dev/null +++ b/pages/user/suggest/suggest.json @@ -0,0 +1,5 @@ +{ + "usingComponents": { + "title-header": "/pages/component/TitleHeader" + } + } \ No newline at end of file diff --git a/pages/user/suggest/suggest.wxml b/pages/user/suggest/suggest.wxml new file mode 100644 index 0000000..29a54e9 --- /dev/null +++ b/pages/user/suggest/suggest.wxml @@ -0,0 +1,32 @@ + + + + + + + 姓名: + + + + 手机号: + + + + + 反馈内容: + + + + + {{formData.content.length}}/500 + + + + + + + 提交 + + + + \ No newline at end of file diff --git a/pages/user/suggest/suggest.wxss b/pages/user/suggest/suggest.wxss new file mode 100644 index 0000000..21bc86b --- /dev/null +++ b/pages/user/suggest/suggest.wxss @@ -0,0 +1,85 @@ +/* pages/user/address/add/index.wxss */ +page { + background: white; + height: 100%; + } + .input-box { + background: white; + padding: 0 20rpx; + font-size: 28rpx; + margin: 0; + } + .input-item { + display: flex; + align-items: center; + height: 106rpx; + justify-content: space-between; + border-bottom: 1rpx solid #EEE; + } + .input-label { + width: 140rpx; + } + .input-item .weui-input { + flex: 1; + } + .select-card { + display: flex; + align-items: center; + line-height: 90rpx; + } + .select-card .iconfont { + line-height: 90rpx; + } + .btn { + margin: 0 20rpx; + margin-top: 100rpx; + width: 700rpx; + margin-bottom: 30rpx; + line-height: 72rpx; + border-radius: 35rpx; + text-align: center; + color: white; + font-size: 36rpx; + background: #0B898E; + } + .icon-xia { + margin-left: 10rpx; + color: #999; + font-size: 28rpx; + } + .textarea-container{ + width: 100%; + height: 243rpx; + background: #F7F7F7; + border-radius: 13rpx 13rpx 13rpx 13rpx; + margin: 0 auto; + padding: 20rpx; + box-sizing: border-box; + position: relative; + padding-bottom: 50rpx; + } + .textarea-container textarea{ + width: 100%; + height: 100%; + overflow-y: auto; + } + + .container-view{ + display: flex; + justify-content: space-between; + flex-direction: column; + height: 100%; + } + .textarea-tip{ + position: absolute; + right: 22rpx; + bottom: 13rpx; + + font-family: PingFangSC, PingFang SC; + font-weight: 400; + font-size: 24rpx; + color: #999999; + + text-align: left; + + } \ No newline at end of file diff --git a/pages/user/user.wxml b/pages/user/user.wxml index 37be7b7..595065a 100644 --- a/pages/user/user.wxml +++ b/pages/user/user.wxml @@ -110,6 +110,9 @@ 用户协议 + + 投诉建议 + 隐私政策 @@ -120,6 +123,11 @@ 第三方共享信息清单 + + + 主办方:苏州市文旅融合发展中心 + 备案号:苏ICP备19064944号-3X@君到苏州 + diff --git a/pages/user/user.wxss b/pages/user/user.wxss index 34d22ba..a9aec25 100644 --- a/pages/user/user.wxss +++ b/pages/user/user.wxss @@ -222,4 +222,15 @@ margin-top: 10rpx; border: none; } + .bottom-intro{ + width: 100%; + padding: 75rpx; + font-family: PingFang-SC, PingFang-SC; + font-weight: 500; + font-size: 25rpx; + color: #999999; + line-height: 40rpx; + text-align: center; + box-sizing: border-box; + } \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json index 0ddceb1..615b7db 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -6,6 +6,13 @@ "condition": { "miniprogram": { "list": [ + { + "name": "pages/user/suggest/suggest", + "pathName": "pages/user/suggest/suggest", + "query": "", + "launchMode": "default", + "scene": null + }, { "name": "pages/info/postProductInfo/index", "pathName": "pages/info/postProductInfo/index", diff --git a/subPackages/index/index.wxml b/subPackages/index/index.wxml index 59e3171..13ecfd3 100644 --- a/subPackages/index/index.wxml +++ b/subPackages/index/index.wxml @@ -187,7 +187,7 @@ + data-url="https://wlsjzx.zdhxwl.cn/kt_h5/index.html#/morecopy" class="jqssd" > @@ -446,7 +446,7 @@ 安全服务 + data-url="https://wlsjzx.zdhxwl.cn/kt_h5/index.html#/morecopy" class="pbservice-item ggfw" style="margin-right: 32.33rpx;"> diff --git a/subPackages/indexs/index.wxml b/subPackages/indexs/index.wxml index 4af909c..b046453 100644 --- a/subPackages/indexs/index.wxml +++ b/subPackages/indexs/index.wxml @@ -74,7 +74,7 @@ + data-url="https://wlsjzx.zdhxwl.cn/kt_h5/index.html#/morecopy" class="gfyj" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/gfyj.png" mode=""/> @@ -153,7 +153,7 @@ 安全服务 + data-url="https://wlsjzx.zdhxwl.cn/kt_h5/index.html#/morecopy" class="pbservice-item ggfw" style="margin-right: 32.33rpx;"> 高峰预警