移出冗余
This commit is contained in:
1
App.vue
1
App.vue
@@ -52,7 +52,6 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err)
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
icon : 'none'
|
icon : 'none'
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ const evaluationsQuestion = (evaluation_id, page) => {
|
|||||||
* @Date: 2022-01-13 16:06:26
|
* @Date: 2022-01-13 16:06:26
|
||||||
*/
|
*/
|
||||||
const evaluationsAnswers = (data) => {
|
const evaluationsAnswers = (data) => {
|
||||||
console.log(data)
|
|
||||||
return request({
|
return request({
|
||||||
url: `evaluations/${data.id}/answers`,
|
url: `evaluations/${data.id}/answers`,
|
||||||
data: data,
|
data: data,
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
import { request } from '../index'
|
import { request } from '../index'
|
||||||
|
|
||||||
const wxPAY = (orderNo) => {
|
const wxPAY = (orderNo) => {
|
||||||
console.log(orderNo)
|
|
||||||
return request({
|
return request({
|
||||||
url: 'mall/pay/' + orderNo + '/wechat',
|
url: 'mall/pay/' + orderNo + '/wechat',
|
||||||
data: {
|
data: {
|
||||||
@@ -18,7 +17,6 @@ const wxPAY = (orderNo) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const alPAY = (orderNo) => {
|
const alPAY = (orderNo) => {
|
||||||
console.log(orderNo)
|
|
||||||
return request({
|
return request({
|
||||||
url: 'mall/pay/' + orderNo + '/alipay',
|
url: 'mall/pay/' + orderNo + '/alipay',
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
@@ -257,7 +257,6 @@ export default {
|
|||||||
if (!this.inputValue.length || this.inputValue.includes("."))
|
if (!this.inputValue.length || this.inputValue.includes("."))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
console.log(data);
|
|
||||||
this.inputValue.push(data);
|
this.inputValue.push(data);
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
@@ -303,7 +302,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 跳转到食品详情
|
// 跳转到食品详情
|
||||||
tabGoodsInfo(e) {
|
tabGoodsInfo(e) {
|
||||||
console.log("父组件监听到了子组件的商品详情页面", e);
|
|
||||||
this.$emit("tabGoodsInfo", { title: e[0].name, id: e[0].food_id });
|
this.$emit("tabGoodsInfo", { title: e[0].name, id: e[0].food_id });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ export default {
|
|||||||
if (!this.inputValue.length || this.inputValue.includes("."))
|
if (!this.inputValue.length || this.inputValue.includes("."))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
console.log(data);
|
|
||||||
this.inputValue.push(data);
|
this.inputValue.push(data);
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
|
|||||||
@@ -110,9 +110,6 @@
|
|||||||
methods:{
|
methods:{
|
||||||
confirm(e){
|
confirm(e){
|
||||||
this.show = false
|
this.show = false
|
||||||
|
|
||||||
console.log(e.value)
|
|
||||||
|
|
||||||
this.value = e.value
|
this.value = e.value
|
||||||
},
|
},
|
||||||
changePicker(e){
|
changePicker(e){
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onInfo(val){
|
onInfo(val){
|
||||||
console.log(val)
|
|
||||||
if(this.edit){
|
if(this.edit){
|
||||||
this.$Router.push({
|
this.$Router.push({
|
||||||
name : 'AddressEdit',
|
name : 'AddressEdit',
|
||||||
|
|||||||
@@ -474,13 +474,11 @@ export default {
|
|||||||
// 目标 ------------点击 1上一页 2 下一页
|
// 目标 ------------点击 1上一页 2 下一页
|
||||||
targetClick(type) {
|
targetClick(type) {
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
console.log(1);
|
|
||||||
this.percentplan1 = 66.66;
|
this.percentplan1 = 66.66;
|
||||||
this.heightWeightShow = true; // 打开体重身高页面
|
this.heightWeightShow = true; // 打开体重身高页面
|
||||||
this.targetShow = false; // 关闭目标页面 减重 塑性 增肌
|
this.targetShow = false; // 关闭目标页面 减重 塑性 增肌
|
||||||
this.percentplan2 = 0;
|
this.percentplan2 = 0;
|
||||||
} else {
|
} else {
|
||||||
console.log(this.activedTarget);
|
|
||||||
if (this.activedTarget === "") {
|
if (this.activedTarget === "") {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "请选择目标",
|
title: "请选择目标",
|
||||||
@@ -500,12 +498,10 @@ export default {
|
|||||||
// 目标 体重的 --------- 1上一页 2 下一页
|
// 目标 体重的 --------- 1上一页 2 下一页
|
||||||
targetWeightClick(type) {
|
targetWeightClick(type) {
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
console.log(1);
|
|
||||||
this.percentplan2 = 0;
|
this.percentplan2 = 0;
|
||||||
this.targetShow = true; // 打开目标页面 减重 塑性 增肌
|
this.targetShow = true; // 打开目标页面 减重 塑性 增肌
|
||||||
this.targetWeightShow = false; // 打开体重身高页面
|
this.targetWeightShow = false; // 打开体重身高页面
|
||||||
} else {
|
} else {
|
||||||
console.log(2);
|
|
||||||
this.percentplan2 = 100;
|
this.percentplan2 = 100;
|
||||||
this.targetWeightShow = false; // 隐藏目标体重页面
|
this.targetWeightShow = false; // 隐藏目标体重页面
|
||||||
this.behaviorShow = true; // 打开行为习惯页面
|
this.behaviorShow = true; // 打开行为习惯页面
|
||||||
@@ -514,7 +510,6 @@ export default {
|
|||||||
// 目标 运动量--------- 1上一页 2 下一页
|
// 目标 运动量--------- 1上一页 2 下一页
|
||||||
targetBehaviorClick(type) {
|
targetBehaviorClick(type) {
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
console.log(1);
|
|
||||||
this.percentplan2 = 50;
|
this.percentplan2 = 50;
|
||||||
this.targetWeightShow = true; // 目标体重页面展示
|
this.targetWeightShow = true; // 目标体重页面展示
|
||||||
this.behaviorShow = false; // 关闭运动量选择页面
|
this.behaviorShow = false; // 关闭运动量选择页面
|
||||||
@@ -535,7 +530,6 @@ export default {
|
|||||||
exercise: this.activedbehaviarTarget, // 运动量
|
exercise: this.activedbehaviarTarget, // 运动量
|
||||||
days: 1,
|
days: 1,
|
||||||
};
|
};
|
||||||
console.log(params);
|
|
||||||
recordsHealth(params).then((res) => {
|
recordsHealth(params).then((res) => {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
type: "success",
|
type: "success",
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
logistic(this.$Route.query.orderNo).then(res =>{
|
logistic(this.$Route.query.orderNo).then(res =>{
|
||||||
console.log(res)
|
|
||||||
this.info = {
|
this.info = {
|
||||||
logo : res.orderExpress.logistic_cover,
|
logo : res.orderExpress.logistic_cover,
|
||||||
no : res.orderExpress.express_no,
|
no : res.orderExpress.express_no,
|
||||||
|
|||||||
@@ -68,8 +68,6 @@
|
|||||||
provider: payType,
|
provider: payType,
|
||||||
orderInfo,
|
orderInfo,
|
||||||
success: payRes => {
|
success: payRes => {
|
||||||
console.log(payRes)
|
|
||||||
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '支付成功',
|
title: '支付成功',
|
||||||
content: '订单已支付,我们将尽快为您安排发货,可在订单管理查询订单动态',
|
content: '订单已支付,我们将尽快为您安排发货,可在订单管理查询订单动态',
|
||||||
|
|||||||
@@ -107,14 +107,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 监听子组件的新增方法
|
// 监听子组件的新增方法
|
||||||
addGoods(e) {
|
addGoods(e) {
|
||||||
console.log('父组件监听到了子组件的新增方法', e);
|
|
||||||
this.addShow = true;
|
this.addShow = true;
|
||||||
this.selectGoods = [e];
|
this.selectGoods = [e];
|
||||||
},
|
},
|
||||||
// 监听子组件的新增方法
|
|
||||||
tabGoodsInfo(e) {
|
|
||||||
console.log('父组件监听到了子组件的商品详情页面', e);
|
|
||||||
},
|
|
||||||
// 点击搜索左侧按钮
|
// 点击搜索左侧按钮
|
||||||
searchCustom(e) {
|
searchCustom(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
@@ -135,7 +130,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 跳转到食品详情
|
// 跳转到食品详情
|
||||||
tabGoodsInfo(e) {
|
tabGoodsInfo(e) {
|
||||||
console.log(e);
|
|
||||||
this.$Router.push({
|
this.$Router.push({
|
||||||
name: 'rankingDetails',
|
name: 'rankingDetails',
|
||||||
params: e
|
params: e
|
||||||
|
|||||||
@@ -207,7 +207,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 选择了加餐跳转
|
// 选择了加餐跳转
|
||||||
selectClick(e) {
|
selectClick(e) {
|
||||||
console.log(e);
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/record/addFoods?type=${e.type}`,
|
url: `/pages/record/addFoods?type=${e.type}`,
|
||||||
});
|
});
|
||||||
@@ -215,7 +214,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 编辑食品
|
// 编辑食品
|
||||||
editGoods(e) {
|
editGoods(e) {
|
||||||
console.log("父组件监听到了子组件的商品详情页面", e);
|
|
||||||
this.selectGoods = [e];
|
this.selectGoods = [e];
|
||||||
this.addShow = true;
|
this.addShow = true;
|
||||||
},
|
},
|
||||||
@@ -225,7 +223,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 监听点击键盘触发返回值新增食品
|
// 监听点击键盘触发返回值新增食品
|
||||||
confirmHandle(value) {
|
confirmHandle(value) {
|
||||||
console.log(value);
|
|
||||||
// 新添加食物
|
// 新添加食物
|
||||||
let data = {
|
let data = {
|
||||||
ser: 1,
|
ser: 1,
|
||||||
@@ -233,7 +230,6 @@ export default {
|
|||||||
food_id: this.selectGoods[0].food_id,
|
food_id: this.selectGoods[0].food_id,
|
||||||
intake_id: this.selectGoods[0].intake_id,
|
intake_id: this.selectGoods[0].intake_id,
|
||||||
};
|
};
|
||||||
console.log(data);
|
|
||||||
this.editHealthFoods(data);
|
this.editHealthFoods(data);
|
||||||
},
|
},
|
||||||
// 添加食物
|
// 添加食物
|
||||||
@@ -253,7 +249,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 跳转到食品详情
|
// 跳转到食品详情
|
||||||
tabGoodsInfo(e) {
|
tabGoodsInfo(e) {
|
||||||
console.log(e);
|
|
||||||
this.$Router.push({
|
this.$Router.push({
|
||||||
name: "rankingDetails",
|
name: "rankingDetails",
|
||||||
params: e,
|
params: e,
|
||||||
|
|||||||
@@ -142,7 +142,6 @@ export default {
|
|||||||
//获取体重首页接口
|
//获取体重首页接口
|
||||||
getWeights() {
|
getWeights() {
|
||||||
weights(this.page).then((res) => {
|
weights(this.page).then((res) => {
|
||||||
console.log(res);
|
|
||||||
this.lists = this.lists.concat(res.lists.data);
|
this.lists = this.lists.concat(res.lists.data);
|
||||||
this.has_more = res.lists.page.has_more;
|
this.has_more = res.lists.page.has_more;
|
||||||
this.weightInfo = res.weight;
|
this.weightInfo = res.weight;
|
||||||
|
|||||||
Reference in New Issue
Block a user