Commit d2b59d07 authored by 黄媛媛's avatar 黄媛媛

Merge branch 'master' of http://gitlab.oytour.com/viitto/mallapp

parents 1486ce1a d45ef3f0
......@@ -24,18 +24,16 @@ export default {
this.basedata = uni.getStorageSync("basedata");
this.formatTabbar();
} else {
this.request(
this.request2(
{
url: "",
data: {
r: "api/index/config",
},
url: '/api/Mall/GetHome',
data: {
},
},
(res) => {
uni.setStorageSync("basedata", res.data);
this.basedata = res.data;
this.formatTabbar();
//this.pageTitle = res.data.mall.name;
}
);
}
......
......@@ -20,12 +20,12 @@
<view class="content" v-for="(x, i) in comments" :key="i">
<view class="u-box">
<view class="user">
<u-avatar :src="x.avatar" :size="50"></u-avatar>
<text style="margin-left: 10px;">{{ x.nickname }}</text>
<u-avatar :src="x.UserPhotoPath" :size="50"></u-avatar>
<text style="margin-left: 10px;">{{ x.UserName }}</text>
</view>
<view class="timer">{{ x.time }}</view>
<view class="timer">{{ x.CreateDate }}</view>
</view>
<view class="ucontent">{{ x.content }}</view>
<view class="ucontent">{{ x.Content }}</view>
<view class="imagebox" v-for="(y, yi) in x.formatPic" :key="yi">
<view
class="item"
......@@ -90,6 +90,12 @@ export default {
loading: "努力加载中",
nomore: "没有更多评论了",
},
msg:{
pageIndex:1,
pageSize:20,
GoodsId:0,
CommentGrade:0
}
};
},
onLoad(option) {
......@@ -140,28 +146,27 @@ export default {
this.isover = false;
this.loading = true;
this.showLoading = this.page != 1;
this.request(
this.msg.GoodsId=this.id;
this.request2(
{
url: "",
data: {
r: "api/goods/comments-list",
goods_id: this.id,
page: this.page,
status: this.commentCount.length>0?this.commentCount[this.current].index:0,
},
url: "/api/AppletOrder/GetAppletGoodsCommentPageList",
data: this.msg,
},
(res) => {
this.comments = res.data.comments;
this.comments = res.data.pageData;
this.comments.forEach((x) => {
x.formatPic = this.formatPic(x.pic_url);
x.formatPic = this.formatPic(x.CommentImgList);
});
//TODO 缺陷待处理
this.commentCount = res.data.comment_count;
// this.commentCount = res.data.comment_count;
this.commentCount = res.data.pageData;
this.pageCount = Math.ceil(
parseFloat(this.commentCount[0].count) / 10.0
// parseFloat(this.commentCount[0].count) / 10.0
parseFloat(res.data.count) / 10.0
);
this.commentCount.forEach((x) => {
x.name = x.name + "(" + x.count + ")";
x.name = x.UserName + "(" + x.Content + ")";
});
this.showLoading = true;
if (this.pageCount == 1) {
......
......@@ -139,17 +139,17 @@
<view
class="sku-box u-skeleton-rect"
v-if="comments.comments.length == 0 && setting.is_comment == '1'"
v-if="comments.length == 0 && setting.is_comment == '1'"
>
<view class="label">暂无评论信息</view>
</view>
<view class="comment" v-if="comments.comments.length > 0">
<view class="comment" v-if="comments.length > 0">
<view class="chead">
<u-section
:bold="false"
:sub-color="secondary"
:show-split="false"
:title="`商品评价(${comments.comments.length})`"
:title="`商品评价(${comments.length})`"
sub-title="查看更多"
@click="clickCommentHandler"
font-size="24"
......@@ -159,16 +159,16 @@
<view class="u-box">
<view class="user">
<u-avatar
:src="comments.comments[0].avatar"
:src="comments[0].UserPhotoPath"
:size="50"
></u-avatar>
<text style="margin-left: 10px;">{{
comments.comments[0].nickname
comments[0].UserName
}}</text>
</view>
<view class="timer">{{ comments.comments[0].time }}</view>
<view class="timer">{{ comments[0].CreateDate }}</view>
</view>
<view class="ucontent">{{ comments.comments[0].content }}</view>
<view class="ucontent">{{ comments[0].Content }}</view>
</view>
</view>
<u-divider :margin-top="20" :margin-bottom="20" bg-color="transparent"
......@@ -219,7 +219,7 @@
v-if="!isExsitGoods"
></u-empty>
<share
:good-id="id"
:id="id"
v-if="showShare"
:good-name="g.name"
:images="g.pic_url"
......@@ -258,7 +258,13 @@ export default {
prevPage: "",
//自定义接手传递
opTionObj: {},
showShare:false
showShare:false,
msg:{
pageIndex:1,
pageSize:20,
GoodsId:0,
CommentGrade:0
}
};
},
components: {
......@@ -269,7 +275,6 @@ export default {
share,
},
onLoad(option) {
console.log(option, "optionnnn");
this.opTionObj = option;
this.id = option.GoodsId ? option.GoodsId : 29; //40887 59512 46942
this.init();
......@@ -333,7 +338,6 @@ export default {
this.skuimage.push(x.pic_url);
}
});
console.log(this.skuimage);
var richtext = this.g.detail;
richtext = richtext.replace(
/<img/g,
......@@ -372,18 +376,16 @@ export default {
});
},
initComments() {
this.request(
this.msg.GoodsId=this.id;
console.log(this.msg,'msg');
this.request2(
{
url: "",
data: {
r: "api/goods/comments-list",
goods_id: this.id,
page: 1,
status: 0,
},
url: "/api/AppletOrder/GetAppletGoodsCommentPageList",
data: this.msg,
},
(res) => {
this.comments = res.data;
console.log(res,'pinglun');
this.comments = res.data.pageData;
// this.initRecommend();
}
);
......@@ -398,6 +400,7 @@ export default {
},
(res) => {
this.recommend = res.data.List;
console.log(this.recommend,'recommeds');
}
);
},
......
......@@ -36,25 +36,25 @@
<view
style="margin-top: 40rpx;"
class="block"
v-if="d.ReOrderStatusName=='已换货'"
v-if="d.ReOrderStatus=='3'"
>
<view class="good-title">换货物流</view>
<view class="good-title">{{d.Type==1?'退货物流':'换货物流'}} </view>
<view class="filed">
<view class="key">快递公司</view>
<view class="val">
{{ d.TExpressList[0].ExpressName }}
{{d.Type==1? d.TExpressList[0].ExpressName: d.HExpressList[0].ExpressName }}
</view>
</view>
<view class="filed">
<view class="key">快递单号</view>
<view class="val">
{{ d.TExpressList[0].ExpressNumber }}
{{d.Type==1? d.TExpressList[0].ExpressNumber: d.HExpressList[0].ExpressNumber }}
</view>
</view>
<view class="filed">
<view class="key">商家留言</view>
<view class="key">快递类型</view>
<view class="val" style="color:#c0392b">
{{ d.merchant_remark }}
{{d.Type==1? (d.TExpressList[0].Type==1?'快递':"其他") : (d.HExpressList[0].Type==1?'快递':"其他") }}
</view>
</view>
</view>
......@@ -81,7 +81,7 @@
>{{ d.OrderInfo.Number }}</text
>
</view>
</view>
</view>
</view>
<view class="customer">
<button
......@@ -140,19 +140,19 @@
</view>
<view class="filed">
<view class="key">收件地址</view>
<view class="val">{{ d.refundAddress.address }}</view>
<view class="val">{{RecipientInfo.DistrictAddress }}{{RecipientInfo.Address}}</view>
</view>
<view class="filed">
<view class="key">收件人</view>
<view class="val">{{ d.refundAddress.name }}</view>
<view class="val">{{ RecipientInfo.Name }}</view>
</view>
<view class="filed">
<view class="key">联系电话</view>
<view class="val">{{ d.refundAddress.mobile }}</view>
<view class="val">{{ RecipientInfo.Mobile }}</view>
</view>
<view class="filed">
<view class="key">快递备注</view>
<view class="val">{{ d.refundAddress.remark }}</view>
<view class="val">{{ RecipientInfo.Remarks }}</view>
</view>
</template>
</view>
......@@ -176,7 +176,7 @@
v-model="showExpress"
:default-selector="[0]"
:range="expressList"
range-key="name"
range-key="Name"
:safe-area-inset-bottom="true"
@confirm="chosenExpressHandler"
></u-picker>
......@@ -283,6 +283,7 @@ export default {
submitStatus: false,
expressList: [],
showExpress: false,
RecipientInfo:{},
forms: {
ReOrderId:-1,
ExpressId: -1,
......@@ -333,29 +334,21 @@ export default {
tmplIds: that.d.template_message_list,
complete(res) {
let msg = "";
if (that.forms.ExpressId == -1) {
msg = "请选择快递公司";
} else if (that.forms.ExpressNumber == "") {
msg = "请输入快递单号";
}
if (msg == "") {
let h = that.apiheader();
h["content-type"] = "application/x-www-form-urlencoded";
that.request(
that.request2(
{
url: "",
header: h,
data: {
r: "api/order/refund-send",
id: that.id,
express: that.forms.expressName,
customer_name: "",
express_no: that.forms.ExpressNumber,
},
method: "POST",
url: '/api/AppletOrder/SetAppletOrderSendGoods',
data: that.forms
},
(res) => {
if (res.code == 0) {
if (res.resultCode == 1) {
that.$refs.uTips.show({
title: "已提交快递信息,请等待商家签收",
type: "success",
......@@ -364,7 +357,7 @@ export default {
that.init();
} else {
that.$refs.uTips.show({
title: res.msg,
title: res.message,
type: "error",
duration: "2300",
});
......@@ -387,8 +380,9 @@ export default {
this.showExpress = true;
},
chosenExpressHandler(i) {
this.forms.ExpressId = this.expressList[i[0]].id;
this.forms.expressName = this.expressList[i[0]].name;
this.forms.ExpressId = this.expressList[i].ID;
this.forms.expressName = this.expressList[i].Name;
},
previewImage(i, images) {
uni.previewImage({
......@@ -426,17 +420,33 @@ export default {
this.loading = false;
this.currentStatus = this.d.ReOrderStatus - 1;
this.getExpressInfo()
// if (this.d.ReOrderStatusName == 1) {
// this.currentStatus += 1;
// } else if (this.d.ReOrderStatusName == "待退款" || this.d.status_text == "已换货") {
// this.currentStatus += 2;
// } else if (this.d.status_text == "已退款") {
// this.currentStatus += 3;
// }
this.forms.ReOrderId = res.data.ReOrderId
if(res.data.ReOrderStatus==2){
this.init2()
this.getExpressInfo();
}
}
);
},
init2(){
this.request2(
{
url: '/api/AppletOrder/GetAppletOrderBuyerToDeliverInfo',
data: {
ReOrderId:this.id
}
},
(res) => {
this.RecipientInfo = res.data.RecipientInfo;
}
);
},
getExpressInfo(){
this.request2(
{
......
......@@ -141,8 +141,7 @@ export default {
fontSize: "13px",
width: "100%",
},
action:
"https://wx.weibaoge.cn/web/index.php?_mall_id=1285&r=api/attachment/upload",
action:this.host2+'/api/File/UploadTencent',
};
},
onLoad(option) {
......
......@@ -8,14 +8,14 @@
</view>
</view>
<view v-if="sharestatus.Status==2" style="width: 100%;display: flex;flex-direction: column;align-items: center;">
<image :src="bg_img" style="width: 100%;height: 165px;"></image>
<image src="../../../static/images/icon/img-share-status.png" style="width: 100%;height: 165px;"></image>
<Text style='margin-top: 70px;'>谢谢您的支持,请等待审核</Text>
<view style="display: flex;align-items: center;justify-content: center;margin-top: 60rpx;">
<u-button shape="circle" type="error" size="medium" @click='goshoping'>去商城逛逛</u-button>
</view>
</view>
<view v-if="sharestatus.Status==4" style="width: 100%;display: flex;flex-direction: column;align-items: center;">
<image :src="bg_img" style="width: 100%;height: 165px;"></image>
<image src="../../../static/images/icon/img-share-status.png" style="width: 100%;height: 165px;"></image>
<Text style='margin-top: 70px;'>{{sharestatus.Msg}}</Text>
<!-- <view style="display: flex;align-items: center;justify-content: center;margin-top: 60rpx;">
<u-button shape="circle" type="error" size="medium" @click='goshoping'>去商城逛逛</u-button>
......
<template>
<view :style="{'height':contentHeight}" class="levelStyle">
<image :src="level_bg" v-if="level=='' " style="width: 100%;height: 100%;"></image>
<image src="../../../static/images/icon/no-level-bg.png" v-if="level=='' " style="width: 100%;height: 100%;"></image>
<view :style="{ 'background-image': 'url(' + level_bg2 + ')', backgroundSize: '100%' }" v-if='level_bg2!="" ' class="imgbg">
<Text class='leveltop'>满足以下条件即可升级</Text>
<view class='levelc'>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment