Commit 70955046 authored by 罗超's avatar 罗超

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

parents 59c91087 e68a26c9
......@@ -82,7 +82,11 @@
},
{
"path": "cash/cash"
},
{
"path": "level/level"
}
]
},
{
......
......@@ -84,7 +84,7 @@
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多优惠券了",
nomore: "没有更多了",
},
}
},
......@@ -136,6 +136,8 @@
},
change(index){
this.msg.AuditStatus = index;
this.msg.pageIndex=1;
this.g=[]
this.init()
},
lower(e) {
......
......@@ -112,7 +112,7 @@ export default {
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多优惠券了",
nomore: "没有更多了",
},
};
},
......
......@@ -86,7 +86,7 @@ export default {
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多优惠券了",
nomore: "没有更多了",
},
};
},
......
......@@ -99,7 +99,7 @@
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多优惠券了",
nomore: "没有更多了",
},
}
},
......
......@@ -171,7 +171,7 @@
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多足迹了",
nomore: "没有更多了",
},
}
},
......
......@@ -42,48 +42,48 @@
<view class="orderList">
<view class="listBox" v-for="(item, index) in g" :key="index">
<view class="listBox_t">
<Text>订单号:{{ item.order_no }}</Text>
<Text style="color: gray;">{{ item.status_text }}</Text>
<Text>订单号:{{ item.OrderNo }}</Text>
<Text style="color: gray;">{{ item.OrderStatusName }}</Text>
</view>
<view class="listBox_c">
<template v-if="item.detail.length == 1">
<template v-if="item.DetailList.length == 1">
<view
v-for="(cx, ci) in item.detail"
v-for="(cx, ci) in item.DetailList"
:key="ci"
class="box_bottom"
@click="redirectToDetail(item.id)"
@click="redirectToDetail(item.OrderId)"
>
<image
:src="cx.goods_info.pic_url"
:src="cx.CoverImagePath"
style="width: 80px; height: 80px; border-radius: 2px;"
mode="aspectFill"
/>
<view style="margin-left: 15px; flex: 1;">
<Text class="topic_cont_text">{{
cx.goods_info.name
cx.GoodsName
}}</Text>
</view>
<view style="margin-left: 15px;">
<text style="font-size: 10px;"></text>
<text style="font-size: 17px;">{{
item.total_price.toString().split(".")[0]
cx.Final_Price.toString().split(".")[0]
}}</text>
<text style="font-size: 11px;"
>.{{
item.total_price.toString().split(".")[1] || "00"
cx.Final_Price.toString().split(".")[1] || "00"
}}</text
>
</view>
</view>
</template>
<template v-else>
<view class="goodboxmore" @click="redirectToDetail(item.id)">
<view class="goodboxmore" @click="redirectToDetail(item.OrderId)">
<view class="good-list">
<view style="white-space: nowrap;">
<image
v-for="(y, yi) in item.detail"
v-for="(y, yi) in item.DetailList"
:key="yi"
:src="y.goods_info.pic_url"
:src="y.CoverImagePath"
mode="aspectFill"
class="item"
/>
......@@ -93,15 +93,15 @@
<view>
<text style="font-size: 10px;"></text>
<text style="font-size: 17px;">{{
item.total_price.toString().split(".")[0]
item.Income.toString().split(".")[0]
}}</text>
<text style="font-size: 11px;"
>.{{
item.total_price.toString().split(".")[1] || "00"
item.Income.toString().split(".")[1] || "00"
}}</text
>
</view>
<view class="text">{{ item.detail.length }}</view>
<view class="text">{{ item.DetailList.length }}</view>
</view>
</view>
</template>
......@@ -114,7 +114,7 @@
:custom-style="customStyle"
v-on:click.stop="cancel(item, index)"
v-if="
item.status_text == '待付款' || item.status_text == '待发货'
item.OrderStatusName == '未付款' || item.OrderStatusName == '待发货'
"
>取消订单</u-button
>
......@@ -123,30 +123,31 @@
size="medium"
:custom-style="customStyle"
@click.stop="cancel(item, index)"
v-if="item.status_text == '待发货'"
v-if="item.OrderStatusName == '待发货'"
>申请退货</u-button
> -->
<u-button
shape="circle"
size="medium"
:custom-style="customStyle"
v-if="item.status_text == '待评价'"
v-if="item.OrderStatusName == '待评价'"
>评价晒单</u-button
>
<u-button
shape="circle"
size="medium"
:custom-style="themCustomStyle"
v-if="item.status_text == '待付款'"
v-on:click.stop="payment(item)"
v-if="item.OrderStatusName == '未付款'"
>立即支付</u-button
>
<u-button
shape="circle"
size="medium"
:custom-style="
item.status_text == '待收货' ? customStyle : themCustomStyle
item.OrderStatusName == '待收货' ? customStyle : themCustomStyle
"
v-if="item.status_text != '待付款'"
v-if="item.OrderStatusName != '未付款'"
@click.stop="buy(item)"
>再次购买</u-button
>
......@@ -154,14 +155,14 @@
shape="circle"
size="medium"
:custom-style="customStyle"
v-if="item.status_text == '待收货'"
v-if="item.OrderStatusName == '待收货'"
>查看物流</u-button
>
<u-button
shape="circle"
size="medium"
:custom-style="customStyle"
v-if="item.status_text == '待收货'"
v-if="item.OrderStatusName == '待收货'"
@click="shouhuoHandler(item.id)"
>确认收货</u-button
>
......@@ -169,21 +170,17 @@
</view>
</view>
</view>
<!-- <u-divider
contentPosition="center"
v-if="isover"
<u-loadmore
:status="status"
:load-text="loadText"
:font-size="24"
:margin-top="20"
:margin-bottom="20"
bg-color="#f3f4f6"
>没有更多订单了</u-divider
> -->
/>
</scroll-view>
</view>
<!-- 加载中 -->
<view class="loading" v-if="loading">
<u-loading mode="flower" size="48">></u-loading>
<Text style="color: #fff; margin-top: 10rpx;">加载中...</Text>
</view>
<!-- 取消提示 -->
<u-modal
v-model="showModal"
......@@ -192,7 +189,8 @@
:show-title="false"
@confirm="confirm"
:border-radius="20"
></u-modal>
>
</u-modal>
<u-modal
v-model="showReviceModal"
content="是否确认收货?"
......@@ -208,16 +206,28 @@
@close="closeGoodListHandler"
></good-list>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'goback'></auth>
<payCom v-if="payBtn" :payInfo="payInfo" @closePay="closePay"></payCom>
<u-popup v-model="payExit" mode="center" :mask-close-able="false">
<view style="background:#fff;width:500rpx">
<view style="padding:10px 0 0 10px">提交失败</view>
<view style="text-align:center;padding-bottom:40rpx">
<view style="margin:80rpx 0">支付取消</view>
<span @click="exitPay" style="padding:10rpx 50rpx;color:#fff;background:#19be6b;border-radius: 12px;">确定</span>
</view>
</view>
</u-popup>
</view>
</template>
<script>
import payCom from '@/components/pay/pay';
import goodList from "@/components/goods/order-good-list2";
import auth from "../../../components/auth/index.vue";
export default {
components: {
goodList,
auth
auth,
payCom
},
data() {
return {
......@@ -226,17 +236,18 @@ export default {
list: [],
mainColor: "",
contentHeight: 0,
page: 1,
payBtn:false,
payExit:false,
page_count: 1,
g: [],
loading: false,
showModal: false,
item: "",
index: 0,
goodData: [],
showGoodList: false,
showReviceModal: false,
isover: false,
showAuth:false,
u: {},
customStyle: {
......@@ -247,7 +258,6 @@ export default {
marginLeft: "20px",
padding: "0 30rpx",
},
template_message: [],
msg:{
pageIndex:1,
pageSize:15,
......@@ -259,6 +269,23 @@ export default {
OrderStatus:0,
OrderNo:'',
},
Cancelmsg:{
OrderId:0,
Type:1,
Remark:'',
},
payInfo: {
OpenId: '',
OrderId: '',
OrderPayType: 1,
GoodsName: ''
},
status: "loadmore",
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多了",
},
};
},
created() {
......@@ -294,14 +321,14 @@ export default {
};
this.showAuth = true;
}else{
this.loading = true;
this.init();
this.getOrderStatus();
}
},
methods: {
getOrderStatus() {
this.payInfo.OpenId=uni.getStorageSync('mall_UserInfo').OpenId;
this.request2(
{
url: '/api/order/GetOrderStatusEnumList',
......@@ -317,7 +344,8 @@ export default {
Id:0,
}
this.list.unshift(obj)
console.log("this.list",this.list)
this.msg.OrderStatus=this.list[this.current].Id;
this.init();
}
}
);
......@@ -359,81 +387,78 @@ export default {
this.msg.OrderStatus=this.list[index].Id;
this.msg.pageIndex = 1;
this.g = [];
this.loading = true;
this.init();
},
init() {
this.isover = false;
let h = this.apiheader();
uni.showLoading({
title: '加载中'
});
this.request2(
{
url: '/api/AppletOrder/GetAppletGoodsMyOrderPageList',
data: this.msg
},
res => {
uni.hideNavigationBarLoading();
uni.hideLoading();
if(res.resultCode==1){
this.loading = false;
this.g = this.g.concat(res.data.pageData);
this.page_count = res.data.page_count;
this.page_count = res.data.pageCount;
if (this.page_count == 1) {
this.isover = true;
this.status = "nomore";
}
}
}
);
// this.request(
// {
// url: "",
// header: h,
// data: {
// r: "api/order/list",
// status: this.current,
// page: this.page,
// },
// },
// (res) => {
// this.loading = false;
// this.g = this.g.concat(res.data.list);
// this.template_message = res.data.template_message;
// this.page_count = res.data.pagination.page_count;
// if (this.page_count == 1) {
// this.isover = true;
// }
// }
// );
},
lower(e) {
if (this.msg.pageIndex < this.page_count) {
this.msg.pageIndex++;
this.status = "loading";
this.init();
} else {
this.isover = true;
this.status = "nomore";
}
},
cancel(e, index) {
this.showModal = true;
this.index = index;
this.item = e;
this.Cancelmsg.OrderId = e.OrderId;
this.Cancelmsg.Type = e.OrderStatus==1?1:2;
},
payment(e){
this.payInfo.OrderId = e.OrderId;
this.payInfo.GoodsName = e.DetailList[0].GoodsName;
this.payInfo.PaymentWay = e.PaymentWay;
this.payInfo.total_price = e.Income;
this.payBtn=true
},
exitPay() {
this.payExit = false;
},
closePay() {
this.payBtn = false;
this.payExit = true;
},
confirm() {
confirm() { //取消订单
this.showModal = false;
let h = this.apiheader();
// h['content-type']='application/x-www-form-urlencoded'
this.request(
this.request2(
{
url: "",
// method: "POST",
header: h,
data: {
r: "api/order/cancel",
id: this.item.id,
},
url: '/api/AppletOrder/CancelAppletGoodsOrderInfo',
data: this.Cancelmsg
},
(res) => {
this.$refs.uToast.show({ title: res.msg });
//this.g.splice(this.index, 1);
uni.showToast({
title:res.message,
icon:'none'
})
this.g.splice(this.index, 1);
}
);
},
......@@ -447,48 +472,33 @@ export default {
this.showGoodList = true;
},
buy(y) {
let forms = {
list: [],
address_id: 0,
};
let ShoppingCartIdList=[];
let forms = {};
let good = {
mch_id: y.mch_id,
goods_list: [],
distance: 0,
remark: "",
order_form: [],
use_integral: 0,
user_coupon_id: 0,
// MallId: y.MallId,
DetailList: [],
Use_Integral: 0,
User_Coupon_Id: 0,
DeliveryMethod:0,
AddressId:0,
};
y.detail.forEach((x) => {
if (x.checked) {
y.DetailList.forEach((x) => {
ShoppingCartIdList.push(x.Id)
let g = {
id: x.goods_id,
num: x.num,
cart_id: 0,
goods_attr_id: 0,
attr: [],
GoodsId: x.GoodsId,
Number: x.Number,
SpecificationSort: x.SpecificationSort,
};
x.goods_info.attr_list.forEach((x) => {
g.attr.push({
attr_id: x.attr_id,
attr_group_id: x.attr_group_id,
});
});
good.goods_list.push(g);
}
good.DetailList.push(g);
});
forms.list.push(good);
forms=good;
uni.navigateTo({
url:
"/pages/order-submit/order-submit?formData=" +
encodeURIComponent(JSON.stringify(forms)),
url: '/pages/order-submit/order-submit?formData=' + encodeURIComponent(JSON.stringify(forms))+'&IsFormShoppingCart=2&ShoppingCartIdList='+JSON.stringify(ShoppingCartIdList)
});
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
this.showAuth = false;
this.loading = true;
this.init();
this.getOrderStatus();
},
......@@ -560,22 +570,7 @@ export default {
border-radius: 25rpx;
line-height: 50rpx;
}
.orderindexStyle .loading {
width: 200rpx;
height: 200rpx;
background: #000000;
opacity: 0.7;
border-radius: 10rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: fixed;
left: 50%;
top: 30%;
margin-left: -100rpx;
z-index: 999;
}
.listBox_c .goodboxmore {
margin-bottom: 20px;
display: flex;
......
......@@ -22,7 +22,7 @@
<view class="title" v-if="scrollTop > 50">订单详情</view>
</view>
<view class="status" :style="[headStyle]">
<view class="status-title">{{ orders.status_text }}</view>
<view class="status-title">{{ orders.OrderStatusName }}</view>
<view class="sub-title">
<u-icon
style="display: inline-block; vertical-align: middle;"
......@@ -41,37 +41,37 @@
<view class="content">
<view class="concat">
<text style="font-weight: 700; margin-right: 20px;">{{
orders.name
orders.Consignee
}}</text>
<text>{{ orders.mobile }}</text>
<text>{{ orders.Mobile }}</text>
</view>
<view class="address">{{ orders.address }}</view>
<view class="address">{{ orders.DistrictAddress }}{{orders.ShoppingAddress}}</view>
</view>
</view>
<view class="block goods">
<view class="item" v-for="(x, i) in orders.detail" :key="i">
<view class="item" v-for="(x, i) in orders.DetailList" :key="i">
<view style="display: flex;">
<image
:src="x.goods_info.pic_url"
:src="x.CoverImagePath"
class="img"
@click="redirectGoods(x.goods_id)"
@click="redirectGoods(x.GoodsId)"
mode="aspectFill"
/>
<view class="good-info">
<view class="good-name" @click="redirectGoods(x.goods_id)">{{
x.goods_info.name
x.GoodsName
}}</view>
<view class="good-attr">
<text>数量:{{ x.num }}</text>
<text>数量:{{ x.Number }}</text>
<text
v-for="(y, yi) in x.goods_info.attr_list"
v-for="(y, yi) in x.SpecificationList"
:key="yi"
style="margin-right: 5px;"
>
{{ y.attr_group_name }}{{ y.attr_name }}
{{y}}
</text>
</view>
<view class="good-price">{{ x.total_original_price }}</view>
<view class="good-price">{{ x.Final_Price }}</view>
</view>
</view>
<template v-for="(e, ei) in orders.detailExpress">
......@@ -130,54 +130,52 @@
<view class="order-info-item">
<view class="field">
<view class="label">订单编号:</view>
<view class="content">{{ orders.order_no }}</view>
<view class="content">{{ orders.OrderNo }}</view>
</view>
<view class="field">
<view class="label">下单时间:</view>
<view class="content">{{ orders.created_at }}</view>
<view class="content">{{ orders.CreateDate }}</view>
</view>
</view>
<view class="order-info-item">
<view class="field">
<view class="label">支付方式:</view>
<view class="content">{{ orders.pay_type_text }}</view>
<view class="content">{{ orders.PaymentWayName }}</view>
</view>
<view class="field">
<!-- <view class="field">
<view class="label">支付时间:</view>
<view class="content">{{ orders.pay_time }}</view>
</view> -->
</view>
</view>
<!-- <view class="order-info-item" v-if="orders.detailExpress[0].">
<view class="order-info-item" >
<view class="field">
<view class="label">配送方式:</view>
<view class="content">{{
orders.detailExpress[0].express_content
}}</view>
<view class="content">{{orders.DeliveryMethodName}}</view>
</view>
</view>
</view> -->
</view>
<view class="block">
<view class="order-info-item">
<view class="field">
<view class="label">商品总额</view>
<view class="content right">¥{{ orders.total_goods_price }}</view>
<view class="content right">¥{{ orders.PreferPrice }}</view>
</view>
<view class="field">
<view class="label">运费</view>
<view class="content right">+¥{{ orders.express_price }}</view>
<view class="content right">+¥{{ orders.FreightMoney }}</view>
</view>
<view class="field">
<view class="label">优惠</view>
<view class="content right"
>-¥{{ orders.coupon_discount_price }}</view
>-¥{{ orders.CouponMoney }}</view
>
</view>
<view class="field">
<!-- <view class="field">
<view class="label">积分抵扣</view>
<view class="content right"
>-¥{{ orders.integral_deduction_price }}</view
>
</view>
</view> -->
<view class="field">
<view class="label">&nbsp;</view>
<view class="content right">
......@@ -188,10 +186,11 @@
></text
>
<text style="font-size: 17px;" :style="{ color: mc }">{{
orders.total_pay_price.split(".")[0]
orders.Income.toString().split(".")[0]
}}</text>
<text style="font-size: 12px;" :style="{ color: mc }"
>.{{ orders.total_pay_price.split(".")[1] || "00" }}</text
>.{{ orders.Income.toString().split(".")[1] || "00" }}</text
>
</view>
</view>
......@@ -340,8 +339,10 @@ export default {
this.headStyle.paddingTop = nav.top + "px";
this.contentStyle.paddingTop = nav.top + 44 + "px";
let p = getCurrentPages();
console.log(p)
if (p.length > 1) {
this.prevPage = p[p.length - 2].rou;
this.prevPage = p[p.length - 2].route;
console.log(p[p.length - 2].route)
}
this.themCustomStyle.background = this.mc;
this.init();
......@@ -424,20 +425,16 @@ export default {
this.showAfter = false;
},
init() {
let h = this.apiheader();
this.request(
this.request2(
{
url: "",
header: h,
data: {
r: "api/order/detail",
id: this.id,
},
url: '/api/AppletOrder/GetAppletMyOrderInfo',
data: {OrderId:this.id}
},
(res) => {
this.orders = res.data.detail;
this.orders = res.data;
this.loading = false;
this.initRecommend(this.orders.detail[0].goods_id);
// this.initRecommend(this.orders.detail[0].goods_id);
}
);
},
......@@ -472,6 +469,7 @@ export default {
});
},
redirectPrev() {
console.log('返回')
if (this.prevPage != "") {
uni.navigateBack({
delta: 1,
......@@ -624,7 +622,9 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
color: gray;
flex: 1;
display: flex;
flex-direction: column;
}
.orderdetail .goods .item .good-info .good-price {
font-size: 16px;
......
......@@ -100,7 +100,7 @@
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多优惠券了",
nomore: "没有更多了",
},
}
},
......@@ -154,6 +154,8 @@
},
change(index){
this.msg.DistrbutionOrderSelectStatus = index;
this.msg.pageIndex=1;
this.g=[]
this.init()
},
isdetail(index){
......
......@@ -82,7 +82,7 @@
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多优惠券了",
nomore: "没有更多了",
},
}
......@@ -135,6 +135,8 @@
change(index){
this.current = index
this.msg.GradeId = index+1;
this.msg.pageIndex=1;
this.g=[]
this.init()
},
lower(e) {
......
......@@ -16,7 +16,7 @@
<view class="tixian">
<view style='display: flex;flex-direction: row;align-items: center;'>
<Text :style="{'color':mainColor,'font-size':'18px'}">¥</Text>
<input class="uni-input" v-model="txmoney" placeholder="请输入提现金额" style="font-size: 16px;margin-left: 5px;"/>
<input class="uni-input" v-model="msg.AppliedMoney" placeholder="请输入提现金额" style="font-size: 16px;margin-left: 5px;"/>
</view>
<Text @click='allmoney'>全部</Text>
</view>
......@@ -27,7 +27,35 @@
<Text>{{txmode}}</Text>
<u-icon name="arrow" color='#9F9F9F'></u-icon>
</view>
</view>
<view class='inputbox' v-if='txmode!="" && (msg.WithdrawalWay==2 || msg.WithdrawalWay==3 || msg.WithdrawalWay==4)'>
<view class="inputItem">
<!-- <Text v-if='msg.WithdrawalWay==1'>账户名称</Text> -->
<Text v-if='msg.WithdrawalWay==2'>微信名称</Text>
<Text v-if='msg.WithdrawalWay==3'>支付宝名称</Text>
<Text v-if='msg.WithdrawalWay==4'>账户名称</Text>
<!-- <Text v-if='msg.WithdrawalWay==5'>账户名称</Text> -->
<input class="uni-input inputM" v-model="msg.AccountName" />
</view>
<view class="inputItem">
<!-- <Text v-if='msg.WithdrawalWay==1'>账户名称</Text> -->
<Text v-if='msg.WithdrawalWay==2'>微信账号</Text>
<Text v-if='msg.WithdrawalWay==3'>支付宝账号</Text>
<Text v-if='msg.WithdrawalWay==4'>账户号</Text>
<!-- <Text v-if='msg.WithdrawalWay==5'>账户名称</Text> -->
<input class="uni-input inputM" v-model="msg.AccountNumber" />
</view>
<view class="inputItem" v-if="msg.WithdrawalWay==4">
<Text>银行名称</Text>
<input class="uni-input inputM" v-model="msg.BankName" />
</view>
</view>
<View class='getapply' :style="{background:mainColor}" @click='getapply'>
<Text>提交申请</Text>
</View>
......@@ -91,7 +119,7 @@
secondary:'',
cash:{},
money:0,
txmoney:'',
txmode:'',
show:false,
show2:false,
......@@ -105,8 +133,13 @@
],
value:'',
msg:{
AppliedMoney:0,
AppliedMoney:'',
Fee:0,
RemitMoney:0,
WithdrawalWay:'',
AccountName:'',
AccountNumber:'',
BankName:'',
}
}
......@@ -138,8 +171,6 @@
methods: {
init(){
uni.showNavigationBarLoading();
let h = this.apiheader();
this.request2(
{
url: '/api/AppletUser/GetUserDistrbutorWithdrawDepositBalance',
......@@ -159,16 +190,21 @@
);
},
allmoney(){
this.txmoney = Number(this.cash.CommissionWithdrawal)
this.msg.AppliedMoney = Number(this.cash.CommissionWithdrawal)
},
radioChange(item){
this.txmode = item.Name;
this.msg.WithdrawalWay = item.Id;
this.msg.AccountName = '';
this.msg.AccountNumber = '';
this.msg.BankName = '';
this.show=false
},
getapply(){
// TODO 接口暂无
if(this.txmoney==''){
if(this.msg.AppliedMoney==''){
uni.showToast({
title: "请输入提现金额",
......@@ -183,6 +219,54 @@
});
return false
}
if(this.msg.WithdrawalWay==2|| this.msg.WithdrawalWay==3 || this.msg.WithdrawalWay==4){
if(this.msg.AccountName==''){
uni.showToast({
title: "账户名称不能为空",
icon: "none"
});
return false
}
if(this.msg.AccountNumber==''){
uni.showToast({
title: "账户号不能为空",
icon: "none"
});
return false
}
if(this.msg.BankName=='' && this.msg.WithdrawalWay==4){
uni.showToast({
title: "银行名称不能为空",
icon: "none"
});
return false
}
}
if(this.msg.AppliedMoney<this.cash.MinimumWithdrawalLimit){
uni.showToast({
title: "提现金额大于等于"+this.cash.MinimumWithdrawalLimit,
icon: "none"
});
return false
}
this.msg.Fee = this.cash.Fee;
uni.showNavigationBarLoading();
this.request2(
{
url: '/api/AppletUser/SetUserDistrbutorWithdrawDeposit',
data: this.msg
},
(res) => {
uni.hideNavigationBarLoading()
uni.showToast({
title: res.message,
icon: "none"
});
this.init()
}
);
}
}
}
......@@ -276,4 +360,26 @@
justify-content: space-between;
border-top:1px solid #f5f5f5
}
.cashStyle .inputbox{
width: 100%;
background: #fff;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 10px;
padding:0 15px ;
}
.cashStyle .inputItem{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
align-items: center;
padding: 15px 0;
border-bottom: 1px solid #f5f5f5;
}
.cashStyle .inputM{
text-align: right;
}
</style>
......@@ -14,6 +14,13 @@
<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>
<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>
</view> -->
</view>
<view style="width: 100%;height: 100%;" v-if="sharestatus.Status==3">
<view class="sharebox_top" :style="{background:mainColor}">
<view class="sharebox_top_t">
......@@ -205,6 +212,20 @@
uni.navigateTo({
url: "/pages/share/add/add",
});
}else if(this.sharestatus.Status==1 && (this.sharestatus.ApplyFor==3 || this.sharestatus.ApplyFor==4)){
this.request2(
{
url: '/api/AppletUser/SetUserApplyForBeDistrbutor',
data: {
Name:'',
Mobile:'',
}
},
(res) => {
this.init()
}
);
}
},
......
<template>
<view :style="{'height':contentHeight}">
<image :src="level_bg" v-if="level=='' " style="width: 100%;height: 100%;">
<view :style="{'height':contentHeight}" class="levelStyle">
<image :src="level_bg" 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'>
<Text>{{level.GradeInfo.UpGradeConditionName}}</Text>
<view style="display: flex;flex-direction: row;align-items: center;" @click="show=true">
<Text style='font-size: 14px;color:#c8c9cc ;'>等级说明</Text>
<u-icon name="arrow" color='#c8c9cc'></u-icon>
</view>
</view>
<view class="level_b">
<!-- TODO接口暂无 -->
<Text>立即升级</Text>
</view>
</view>
<u-popup v-model="show"
mode="center"
length="80%"
</image>
<view v-if="level!=''">
<!-- TODO暂不知道升级内容 -->
>
<view class="popup">
<view class="popup_t">
<Text>等级说明</Text>
</view>
<view class="popup_c">
<Text>{{level.GradeInfo.GradeExplain}}</Text>
</view>
<view class="popup_t" style="border-top: 1px solid #f5f5f5;" @click="show=false">
<Text>我知道了</Text>
</view>
</view>
</u-popup>
</view>
</template>
......@@ -15,10 +42,12 @@
return {
pageTitle: "升级条件",
contentHeight:0,
show:false,
mainColor:'',
secondary:'',
level:'',
level_bg:'',
level_bg2:'',
}
},
created(){
......@@ -36,6 +65,9 @@
this.level_bg = wx.getStorageSync("basedata")
? wx.getStorageSync("basedata").__wxapp_img.share.no_level_bg
: '';
this.level_bg2 = wx.getStorageSync("basedata")
? wx.getStorageSync("basedata").__wxapp_img.share.sharebg
: '';
pages.forEach((x) => {
if (x.value == u) {
this.pageTitle = x.new_name ? x.new_name : x.name;
......@@ -50,19 +82,15 @@
uni.showNavigationBarLoading();
let h = this.apiheader();
this.request(
this.request2(
{
url: "",
header:h,
data: {
r: "api/share/level",
},
url: '/api/AppletUser/GetUserDistrbutorUpgradeConditions',
data: {}
},
(res) => {
uni.hideNavigationBarLoading()
this.level = res.data.list
this.level = res.data
}
);
},
......@@ -71,5 +99,66 @@
</script>
<style>
.levelStyle .imgbg{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.levelStyle .leveltop{
font-size: 26px;
color: #fff;
margin-top: 50px;
}
.levelStyle .levelc{
width: 94%;
height:70px ;
border-radius: 8px;
background: #fff;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 0 15px;
margin-top:50px ;
}
.levelStyle .popup{
width: 100%;
height: 285px;
background: #fff;
display: flex;
flex-direction: column;
align-items: center;
border-radius: 8px;
overflow: hidden;
justify-content: space-between;
}
.levelStyle .popup_c{
width: 94%;
height: 160px;
padding: 10px;
border-radius: 5px;
border: 1px solid #f5f5f5;
}
.levelStyle .popup_t{
width: 100%;
height:50px ;
display: flex;
align-items: center;
justify-content: center;
}
.levelStyle .level_b{
width: 70%;
height: 50px;
border-radius: 25px;
display: flex;
align-items: center;
justify-content: center;
background: #F8DBAF;
color: #825E4F;
font-size: 18px;
margin-top: 40px;
font-weight: 500;
}
</style>
......@@ -90,7 +90,7 @@ export default {
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多优惠券了",
nomore: "没有更多了",
},
};
},
......
......@@ -144,7 +144,7 @@ export default {
this.bottommargin = c - 2 + 'px';
this.listbottom = c - 2 + 50 + 'px';
this.contentHeight = this.$utils.calcContentHeight(c);
console.log(wx.getStorageSync('basedata'))
let u = '/' + currentPages[currentPages.length - 1].route;
let pages = wx.getStorageSync('basedata') ? wx.getStorageSync('basedata').bar_title : [];
// pages.forEach(x => {
......
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