master
张少康 2 years ago
parent 81d3c30d62
commit fd0e00e300

@ -44,7 +44,7 @@ App({
serviceInfo: {}, // 客服电话
version: null,
loginKey:'',
appId:'wxd7aba642f7fd77fd'
appId:'wxb0c590fd696b79be'
},
// "permission": {
// "scope.userLocation": {

@ -9,7 +9,7 @@
</block>
<view wx:if="{{isSure}}" class="display-flex btnBox" hover-class="none" hover-stop-propagation="false">
<view class="weui-btn_primary fw500 mr16" bindtap='cancelChoice' aria-role="button">取消</view>
<view class="weui-btn_primary fw500 ysd-basebg-color" hover-class="thover" bindtap='changeUserImgsrc' style='border:1px solid #ff4400' aria-role="button">确定</view>
<view class="weui-btn_primary fw500 ysd-basebg-color" hover-class="thover" bindtap='changeUserImgsrc' style='border:1px solid var(--color-ysd)' aria-role="button">确定</view>
</view>
<!-- bindtap='chooseImage' -->
<button wx:else open-type="chooseAvatar" style='' bindchooseavatar='choiceAvatar' class="change weui-btn_primary fw500 mt32" aria-role="button">更换头像</button>

@ -18,7 +18,7 @@
<i class="iconfont icon-nv3 f12" style="color:#fb8585;line-height:20px" wx:if="{{userInfo.user.sex == 2}}"></i>
<i class="iconfont icon-nan3 f12" style="color:#10aeff;line-height:20px" wx:if="{{userInfo.user.sex == 1}}"></i>
</view>
<view>{{userInfo.user.tel}}</view>
<view>{{userInfo.user.tel || '-'}}</view>
</view>
</view>
<view hover-class="thover">
@ -208,18 +208,17 @@
</navigator>
<navigator class="mb32" hover-class style="margin-bottom:80px;" target url="{{isLogin? './setting/index': '/pages/login/index'}}">
<!-- <navigator class="mb32" hover-class style="margin-bottom:80px;" target url="{{isLogin? './setting/index': '/pages/login/index'}}">
<view class="br_8 tc" hover-class="none" style="background-color:#fff" hover-stop-propagation="false">
<view class="setting" hover-class="thover" style="margin-top: 32px;">
<view style="flex: 1;justify-content: center;font-size: 16px;">
<!-- <image class src="/assets/images/sz.svg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image> -->
<view class="iconfont icon-shangjiahoutai mr6" style="width:22px;height:22px" hover-class="none" hover-stop-propagation="false"></view>
<view class="fwb">商家后台</view>
</view>
<view></view>
</view>
</view>
</navigator>
</navigator> -->
<!-- <view class="login" wx:if="{{!isLogin}}">
<navigator class="" target="" url="../login/index" hover-class="none" open-type="navigate">

@ -1,76 +1,133 @@
// pages/opinion/index.js
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
textVal: "",
loading: false,
success: false,
},
goList(){
wx.navigateTo({
url: '../opinionList/index',
})
/**
* 页面的初始数据
*/
data: {
textVal: "",
loading: false,
subLoad: false,
success: false,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面加载
*/
onLoad (options) { },
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady () { },
/**
* 生命周期函数--监听页面显示
*/
onShow () { },
/**
* 意见提交事件
*
*
*/
submit () {
const that = this;
if (that.data.subLoad) return
that.data.subLoad = true
console.log(that.data.textVal)
that.setData({
success: true,
loading: false,
subLoad:false
});
// if (that.data.textVal.trim() != '') {
// console.log(312313123);
// that.setData({
// loading: true,
// });
// wx.request({
// url: app.globalData.ip + "/daotian/feedback/add",
// method: 'post',
// header: app.globalData.headers,
// data: {
// content: that.data.textVal
// },
// success: function (res) {
// console.log(res);
// if (res.data.status == 200) {
// that.setData({
// success: true,
// });
// } else {
// wx.showToast({
// title: res.data.msg,
// icon: 'none'
// })
// }
// that.setData({
// loading: false,
// });
// that.data.subLoad = false
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
/**
* 意见提交事件
*
*
*/
submit() {
const that = this;
that.setData({
loading: true,
});
setTimeout(() => {
that.setData({
loading: false,
success: true,
});
}, 2000);
},
goback() {
wx.navigateBack({
delta: 1,
});
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
// },
// fail: function (res) {
// that.setData({
// loading: false,
// });
// },
// });
// } else {
// wx.showToast({
// title: '请输入内容再提交',
// icon: 'none'
// })
// }
},
getVal (e) {
console.log(e);
this.setData({
textVal: e.detail.value
})
console.log(this.data.textVal);
},
goback () {
wx.navigateBack({
delta: 1,
});
},
goList () {
wx.navigateTo({
url: "/pages/opinionList/index",
});
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide () { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload () { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh () { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom () { },
/**
* 用户点击右上角分享
*/
onShareAppMessage() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage () { },
});

@ -1,16 +1,16 @@
<view class="container">
<view class="submit" wx:if="{{!success}}" hover-class="none" hover-stop-propagation="false">
<textarea class="bgf textarea br8 f14" value="{{textVal}}" maxlength="140" placeholder="我们想听听您的心声,您的描述信息越全,问题越可能有效解决。" placeholder-class="f14 cccc" bindinput bindfocus bindblur bindconfirm></textarea>
<button class="normalBtn loginOut f16" bindtap="submit" style="margin-top:90px" loading="{{loading}}">提交</button>
<view class="tac mt16" style="color:#576B95" hover-class="thover" bindtap="goList" hover-stop-propagation="false">查看记录</view>
<view class="submit" wx:if="{{!success}}" hover-class="none" hover-stop-propagation="false">
<textarea class="bgf textarea br8 f14" value="{{textVal}}" bindinput="getVal" maxlength="140" placeholder="我们想听到您的心声..." placeholder-class="f14 cccc" bindfocus bindconfirm></textarea>
<button class="normalBtn loginOut f16" hover-class="thover" bindtap="submit" style="margin-top:90px" loading="{{loading}}">提交</button>
<!-- <view class="tac mt16 f14" style="color:#576B95" bindtap="goList" hover-class="thover" hover-stop-propagation="false">查看记录</view> -->
</view>
<view class="success" wx:else hover-class="none" hover-stop-propagation="false">
<view class="tc" style="padding-top: 100px;">
<icon class="iconfont icon-tijiaochenggong lh1" style="color:#07c160;font-size:70px"></icon>
<view class="successText mt20 f22 fw500 lh1">已提交</view>
<view class="f14 c9 mt16" hover-class="none" hover-stop-propagation="false">感谢您的宝贵意见,我们会第一时间处理哈~</view>
<button class="normalBtn loginOut f16" bindtap="goback" style="margin-top:50px" loading="{{loading}}">返回</button>
<view class="tac mt16" style="color:#576B95" hover-class="thover" bindtap="goList" hover-stop-propagation="false">查看记录</view>
<button class="normalBtn loginOut f16" hover-class="thover" bindtap="goback" style="margin-top:50px" loading="{{loading}}">返回</button>
<!-- <view class="tac mt16 f14" style="color:#576B95" bindtap="goList" hover-class="thover" hover-stop-propagation="false">查看记录</view> -->
</view>
</view>
</view>

@ -11,7 +11,7 @@
<view class="f12 tc c045 display-flex" style="align-items:center;margin-top:16px;margin-left: 24px;" wx:if="{{!user.idcardImgBack}}">
<!-- <switch checked="{{switch1Checked}}" class="dib" color="#0dcc91" style="transform:scale(.5)" bindchange="switch1Change" /> -->
<radio-group class="dib">
<radio checked="{{switch1Checked}}" catchtap="switch1Change" value="0" class="dib" color="#f40" style="transform:scale(.7)" />
<radio checked="{{switch1Checked}}" catchtap="switch1Change" value="0" class="dib" color="var(--color-ysd)" style="transform:scale(.7)" />
</radio-group>
我已阅读并同意
<navigator url="../serviceTerm/index" class="aLink">《用户服务协议》</navigator>

@ -1,7 +1,7 @@
{
"setting": {
"compileHotReLoad": true,
"urlCheck": true
"urlCheck": false
},
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "yicai",

Loading…
Cancel
Save