|
@@ -10,7 +10,7 @@ Page({
|
|
frameStyle: { useTop: true, name: '信息管理', leftArrow: true, useBar: false },
|
|
frameStyle: { useTop: true, name: '信息管理', leftArrow: true, useBar: false },
|
|
// 主体高度
|
|
// 主体高度
|
|
infoHeight: '',
|
|
infoHeight: '',
|
|
- userInfo: { id: '00038494480001', user_id: '00038494480001', name: '法外狂徒张三', phone: '1239999999' },
|
|
|
|
|
|
+ userInfo: {},
|
|
// 上架的商品
|
|
// 上架的商品
|
|
marketList: [],
|
|
marketList: [],
|
|
// 类型
|
|
// 类型
|
|
@@ -119,7 +119,7 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
- this.setData({ 'receiveForm.receive_user_name': this.data.userInfo.name, 'receiveForm.receive_user_id': this.data.userInfo.user_id, 'receiveForm.receive_user_phone': this.data.userInfo.phone, })
|
|
|
|
|
|
+
|
|
//验证规则函数
|
|
//验证规则函数
|
|
this.initValidate();
|
|
this.initValidate();
|
|
this.watchLogin();
|
|
this.watchLogin();
|
|
@@ -136,7 +136,10 @@ Page({
|
|
{ id: '005', name: '慢羊羊', money: '26', type_name: '羊肉', type_id: '555', brief: '一份', mech_id: '000000001', mech_name: '羊村' },
|
|
{ id: '005', name: '慢羊羊', money: '26', type_name: '羊肉', type_id: '555', brief: '一份', mech_id: '000000001', mech_name: '羊村' },
|
|
{ id: '006', name: '暖羊羊', money: '27', type_name: '羊肉', type_id: '666', brief: '一份', mech_id: '000000001', mech_name: '羊村' }
|
|
{ id: '006', name: '暖羊羊', money: '27', type_name: '羊肉', type_id: '666', brief: '一份', mech_id: '000000001', mech_name: '羊村' }
|
|
]
|
|
]
|
|
|
|
+ let info = { id: '00038494480001', user_id: '00038494480001', name: '法外狂徒张三', phone: '1239999999' };
|
|
this.setData({ marketList: data })
|
|
this.setData({ marketList: data })
|
|
|
|
+ this.setData({ userInfo: info })
|
|
|
|
+ this.setData({ 'receiveForm.receive_user_name': info.name, 'receiveForm.receive_user_id': info.user_id, 'receiveForm.receive_user_phone': info.phone, })
|
|
// wx.getStorage({
|
|
// wx.getStorage({
|
|
// key: 'user',
|
|
// key: 'user',
|
|
// success: res => {
|
|
// success: res => {
|