反馈修改-0801

master
Lee1203 2022-08-01 17:46:21 +08:00
parent 25663f95ee
commit 9a2f15819a
57 changed files with 516 additions and 654 deletions

View File

@ -700,7 +700,7 @@ page {background-color: #FFFFFF;}
position: fixed;
left: 0;
top: 50%;
z-index: 99;
z-index: 999;
transform: translateY(-50%);
}
.vip-box{
@ -1051,7 +1051,7 @@ page {background-color: #FFFFFF;}
background-image: linear-gradient(to right,#ff9547,#ff6f0c);
font-size: 72rpx;
line-height: 102rpx;
text-indent: 30rpx;
text-indent: 20rpx;
padding-top: 40rpx;
margin-right: 35rpx;
}

View File

@ -97,7 +97,7 @@
minNum:1,//
ifLoading:true,
page:1,
size:10,
size:100,
total:0,
delIds:'', //ids
};
@ -149,7 +149,6 @@
}),
},
mounted() {
this.listData = this.list;
this.getList();
@ -165,9 +164,6 @@
}
this.$requst.post('/api/order/shopping-cart',params).then(res=>{
if(res.code==0){
if(uni.getStorageSync('business_code')!==''){
this.vipPrice = true;
}
this.total = res.data.total;
console.log(res,'购物车列表')
if(this.page==1) this.listData = [];
@ -186,7 +182,7 @@
slide_x: 0,
price:item.sku.sku_price,
num:item.num,
ifcheck:this.skuId==item.sku_id ? true : false,
ifcheck:true,
ifExit:true,
ifShow:true,
}
@ -284,16 +280,7 @@
this.$requst.post('/api/order/shopping-cart-del',{ids:this.delIds.toString()}).then(res=>{
if(res.code==0){
this.$toolAll.tools.showToast('删除成功');
// this.getList();
if(this.listData.length){
this.listData.forEach((item,index)=>{
if(item.ifcheck){
this.listData.splice(index,1);
}
})
}
this.$store.commit('setNum', this.listData.length);
this.totalPrice();
this.getList();
}else{
this.$toolAll.tools.showToast(res.msg)
}

View File

@ -93,9 +93,11 @@
},
//
goCart(){
uni.navigateTo({
url:'/pages/cart/cart',
})
if(this.$toolAll.tools.judgeAuth()) {
uni.navigateTo({
url:'/pages/cart/cart',
})
}
}
}
}

View File

@ -1,5 +1,5 @@
<template>
<view class="pad-b150">
<view class="pad-x170">
<status-nav :ifReturn="true" navBarTitle="购物车" :marginBottom="0"></status-nav>
<view class="cart-content">
<cart-slide ref="cart" :skuId='skuId'></cart-slide>
@ -19,14 +19,14 @@
skuId:''
}
},
onReachBottom() {
this.$refs.cart.getList();
onLoad(op) {
if(op.skuId) this.skuId = op.skuId;
},
onShow() {
uni.removeStorageSync('buyList');
},
onLoad(op) {
if(op.skuId) this.skuId = op.skuId;
onReachBottom() {
// this.$refs.cart.getList();
},
methods: {

View File

@ -44,14 +44,17 @@
<view class="title">优惠选择</view>
<view class="section-list font30">
<view class="item flex" v-if="orderInfo.vip_level>0">
<label class="radio" @tap="chooseEv('vip')"><radio :checked="vipCheck" color="#febf00"/>会员折扣</label>
<label class="radio" @tap="chooseEv('vip')"><radio :checked="vipCheck" color="#febf00"/><text>会员折扣</text></label>
<view class="txt flex">
<view>{{orderInfo.membership_discount}}</view>
<view class="btn"></view>
</view>
</view>
<view class="item flex" @tap.stop="toCoupon">
<label class="radio" @tap.stop="chooseEv('coupon')"><radio :checked="couponCheck" color="#febf00"/>优惠券</label>
<label class="radio" @tap.stop="chooseEv('coupon')">
<radio :checked="couponCheck" color="#febf00" :disabled="couponList.length?false:true"/>
<text>优惠券</text>
</label>
<view class="txt flex">
<view class="color-red" v-if="couponList.length">{{'-'+ couponList[couponIndex].amount}}</view>
<view class="btn">
@ -66,7 +69,10 @@
<view class="title">积分抵扣</view>
<view class="section-list font30">
<view class="item flex">
<label class="radio" @tap="scoreCheck=!scoreCheck"><radio :checked="scoreCheck && orderInfo.available_score>0" color="#febf00"/>可用积分</label>
<label class="radio" @tap="scoreCheck=!scoreCheck">
<radio :checked="scoreCheck" color="#febf00" :disabled="orderInfo.available_score>0?false:true"/>
<text>可用积分</text>
</label>
<view class="txt flex">
<view class="color-66">{{orderInfo.available_score}}</view>
<view class="btn"></view>
@ -79,10 +85,13 @@
<view class="title">支付方式</view>
<view class="section-list font30">
<view class="item flex">
<label class="radio" @tap="wechatCheck=!wechatCheck"><radio :checked="wechatCheck" color="#febf00"/>微信支付</label>
<label class="radio"><radio :checked="wechatCheck" @tap="wechatCheck=!wechatCheck" color="#febf00"/>微信支付</label>
</view>
<view class="item flex">
<label class="radio" @tap="priceCheck=!priceCheck"><radio :checked="priceCheck" color="#febf00"/>余额支付</label>
<label class="radio" @tap="priceCheck=!priceCheck">
<radio :checked="priceCheck" color="#febf00" :disabled="orderInfo.available_balance>0?false:true" v-if="orderInfo.available_balance>0"/>
<text>余额支付</text>
</label>
<view class="txt flex">
<view class="color-66">{{orderInfo.available_balance}}</view>
<view class="btn"></view>
@ -108,7 +117,7 @@
<scroll-view scroll-y="true" class="coupon-scoll">
<view class="coupon-list pad-zy20 border-box">
<view class="coupon-item radius30 mar-s40 flex" v-for="(item,index) in couponList" :key="index" @tap="changeCoupon(index)">
<view class="price color-ff border-box"><text class="font30"></text>{{parseInt(item.amount)}}</view>
<view class="price color-ff border-box"><text class="font30"></text>{{item.amount.split(".")[0]}}<text class="font30">{{'.'+item.amount.split(".")[1]}}</text></view>
<view class="txt">
<view class="font36">{{item.name}}</view>
<view class="font24 color-8c mar-s10">{{parseInt(item.condition)}}{{parseInt(item.amount)}}</view>
@ -138,7 +147,7 @@
vipCheck: false, //
couponCheck:false, //
scoreCheck:false, //
wechatCheck:false, //
wechatCheck:true, //
priceCheck:false, //
isCoupon:false, //
flag:true,
@ -235,7 +244,7 @@
if(this.couponList.length){
this.isCoupon =true;
}else{
this.$toolAll.tools.showToast('还没有优惠券');
this.$toolAll.tools.showToast('暂无可用的优惠券');
}
},
@ -259,7 +268,7 @@
//
chooseEv(type){
if(type == 'vip'){
if(type == 'vip' && this.orderInfo.vip_level>0){
if(this.vipCheck){
this.vipCheck = false;
}else{
@ -268,7 +277,7 @@
}
this.computePrice();
}
if(type == 'coupon'){
if(type == 'coupon' && this.couponList.length){
if(this.couponCheck){
this.couponCheck = false;
}else{
@ -309,10 +318,13 @@
console.log(res,'支付返回')
if(res.data.need_wechat_pay == 1){
//
this.callPayMent(res.data.payment_params);
this.callPayMent(res.data.payment_params,res.data.id,res.data.coding);
}else{
this.$toolAll.tools.showToast('支付成功(*^▽^*)');
//
this.successEv(res.data.coding);
//
uni.removeStorageSync('addr_id');
//
uni.navigateTo({
url:`/pages/cart/finish?id=${res.data.id}`
})
@ -330,7 +342,7 @@
},
//
callPayMent(data){
callPayMent(data,id,coding){
//
wx.requestPayment({
'timeStamp': data.timeStamp,
@ -338,12 +350,15 @@
'package': data.package,
"signType": data.signType,
'paySign': data.sign,
'success': function (res) { //
'success': (res)=> { //
console.log('支付成功:',res);
this.$toolAll.tools.showToast('支付成功(*^▽^*)');
//
this.successEv(coding);
//
uni.removeStorageSync('addr_id');
//
uni.navigateTo({
url:`/pages/cart/finish?id=${res.data.id}`
url:`/pages/cart/finish?id=${id}`
})
},
'fail': function (res) { //
@ -351,6 +366,17 @@
}
})
},
//
successEv(coding){
this.$requst.post('/api/order/paid',{order_coding:coding}).then(res=>{
if(res.code==0) {
console.log(res,'成功状态')
}else{
this.$toolAll.tools.showToast(res.msg);
}
})
}
}
}
</script>

View File

@ -134,6 +134,9 @@
this.getCateEv();
},
onShow() {
//
getCartInfo();
this.playTimer = setTimeout(()=>{
this.isplay = true;
},2000)

View File

@ -111,6 +111,7 @@
city: ya.userInfo.city,//
gender: ya.userInfo.gender,//
language:ya.userInfo.language,//
invite_code:uni.getStorageSync('inviteCode')?uni.getStorageSync('inviteCode'):'',
is_active:1
}
this.$requst.post('/api/user/login',params).then(res => {

View File

@ -1,7 +1,5 @@
<template>
<view class="pad-x170" v-if="isLoading">
<!-- 滚动顶部 -->
<view class="scrool-top background-white" :style="{height:statusHeight+50+'px'}" v-if="scroolTop"></view>
<view class="my-top">
<view class="my-bg">
<image src="/static/img/my-bg.jpg" mode="widthFix"></image>
@ -23,15 +21,15 @@
</view>
</view>
<view class="my-money color-ff flex">
<view class="item">
<view class="item" @tap="goPage('/pagesA/integral/integral')">
<view class="font48">{{userInfo.score}}</view>
<text class="font24">我的积分</text>
</view>
<view class="item">
<view class="item" @tap="goPage('/pagesA/coupon/coupon')">
<view class="font48">{{userInfo.coupon_count}}</view>
<text class="font24">我的优惠券</text>
</view>
<view class="item">
<view class="item" @tap="goPage('/pagesA/recharge/recharge')">
<view class="font48">{{userInfo.balance}}</view>
<text class="font24">我的余额</text>
</view>
@ -85,23 +83,6 @@
</view>
</view>
</view>
<!-- 分销码 -->
<view class="vip-box-bg border-box" v-if="isShow">
<view class="vip-box radius20 background-white font30">
<view class="title">分销二维码</view>
<view class="vip-code flex" style="padding: 40rpx 0 20rpx;">
<image :src="codeImg" mode="widthFix"></image>
</view>
<view class="submit-btn font36 radius30 color-ff mar-s60 flex" style="background-color: #00b809;position: relative;" @tap="submitEv">
<image src="/static/icon/icon-wechat.png" mode="widthFix"></image>
<text>分享给朋友</text>
<button class="shear-btn" type="primary" open-type="share"></button>
</view>
<view class="close-btn" @tap="closeEv">
<image src="/static/icon/close-btn.png" mode="widthFix"></image>
</view>
</view>
</view>
<!-- 底部tab -->
<tabbar current="0" v-if="isLoading"></tabbar>
</view>
@ -109,7 +90,7 @@
<script>
import tabbar from '@/components/tabbar/tabbar.vue';
import {getCarInfo} from '@/jsFile/public-api.js';
import {getCartInfo} from '@/jsFile/public-api.js';
import {mapState} from 'vuex'//mapState
export default {
components:{
@ -139,7 +120,6 @@
{titele:'积分管理',imgSrc:'/static/icon/icon-my-05.png',iconWidth:32,iconHeight:30},
{titele:'分销管理',imgSrc:'/static/icon/icon-my-06.png',iconWidth:35,iconHeight:35},
{titele:'优惠券管理',imgSrc:'/static/icon/icon-my-07.png',iconWidth:38,iconHeight:27},
{titele:'我的分享码',imgSrc:'/static/icon/icon-my-08.png',iconWidth:34,iconHeight:40},
{titele:'免责声明',imgSrc:'/static/icon/icon-my-09.png',iconWidth:40,iconHeight:40}
],//
vip_level:0,//
@ -148,33 +128,24 @@
myPhone:'', //
flag:true,
vipCode:'', //
showObj:'012345678', //
showObj:'01234567', //
mobile:'', //
orderObj:'123', //
userInfo:'',//
isLoading:false,
shareFlag:true, //
isShow:false,
codeImg:'', //
}
},
onPageScroll(object){
if(object.scrollTop>50){
this.scroolTop = true;
}else{
this.scroolTop = false;
is_distributor:0, //
}
},
onHide() {
},
onShow() {
//
this.getUserInfo();
if(uni.getStorageSync('showVip')){
this.showVip = uni.getStorageSync('showVip');
}else{
uni.setStorageSync('showVip','true');
}
//
getCartInfo();
},
//
onShareAppMessage(res) {
@ -204,7 +175,6 @@
console.log(res,'用户信息')
if(res.code==0) {
this.userInfo = res.data;
uni.setStorageSync('business_id',res.data.business_id);
let newArr = res.data.order_count;
this.headPortrait = res.data.headimgurl;
this.nickName = res.data.nickname;
@ -213,13 +183,20 @@
this.businessCode = res.data.business_code;
this.vip_level = res.data.vip_level;
this.vip_info = res.data.vip_info;
this.is_distributor = res.data.is_distributor;
this.myOrder[0].num = newArr.all;
this.myOrder[1].num = newArr.waiting;
this.myOrder[2].num = newArr.paid;
this.myOrder[3].num = newArr.shipped;
this.myOrder[4].num = newArr.completed;
if(this.vip_level!==0){
this.showObj='02345678'
if(this.vip_level!==0 && this.is_distributor !== 0){
this.showObj='0234567'
}
if(this.vip_level!==0 && this.is_distributor == 0){
this.showObj='023467'
}
if(this.vip_level==0 && this.is_distributor !== 0){
this.showObj='0123546'
}
//
this.getCodeEv();
@ -270,8 +247,6 @@
url:`/pagesA/coupon/coupon`
})
}else if(index == 7){
this.isShow = true;
}else if(index == 8){
uni.navigateTo({
url:`/pagesB/disclaimers/disclaimers`
})
@ -356,12 +331,18 @@
return result;
},
//
goPage(url){
uni.navigateTo({
url:url
})
},
//
closeEv(){
this.isVip = false;
this.myName = '';
this.flag = true;
this.isShow = false;
},
//
@ -370,33 +351,6 @@
url:`/pagesA/order/order?tag=${this.myOrder[index].tag}&index=${index}`
})
},
//
saveImg(){
this.$toolAll.tools.saveImg(this.customerSrc);
},
//
shareImgEv(id){
this.$toolAll.tools.showToast('分享图生成中...','none',10000);
if(this.shareFlag){
this.shareFlag = false;
this.$requst.post('/api/spu/share-img',{spu_id:id}).then(res=>{
console.log(base64ToPath(res.data.poster),'分享图片')
base64ToPath(res.data.poster).then(path=>{
uni.hideToast();
this.$toolAll.tools.showToast('正在调起分享...');
wx.showShareImageMenu({
path: path,
success:(res=>{
this.shareFlag = true;
}),
fail:(err=>{
this.shareFlag = true;
})
})
})
})
} else {this.$toolAll.tools.showToast('请勿重复点击');}
},
}
}
</script>

View File

@ -8,7 +8,7 @@
<!-- 优惠券列表 -->
<view class="coupon-list pad-zy20 border-box">
<view class="coupon-item radius30 mar-s40 flex" :class="navIndex==2?'grey':''" v-for="(item,index) in couponList" :key="index">
<view class="price color-ff border-box"><text class="font30"></text>{{parseInt(item.amount)}}</view>
<view class="price color-ff border-box"><text class="font30"></text>{{item.amount.split(".")[0]}}<text class="font30">{{'.'+item.amount.split(".")[1]}}</text></view>
<view class="txt">
<view class="font36">{{item.name}}</view>
<view class="font24 color-8c mar-s10">{{parseInt(item.condition)}}{{parseInt(item.amount)}}</view>
@ -86,11 +86,13 @@
})
},
//
receiveEv(id){
receiveEv(id,index){
this.$requst.get('/api/user/get-coupon',{coupon_id:id}).then(res=>{
if(res.code == 0){
this.$toolAll.tools.showToast('领取成功');
this.couponList.splice(index,1)
}else{
this.$toolAll.tools.showToast(res.msg);
}
})
},

View File

@ -40,7 +40,7 @@
<!-- 记录列表 -->
<view class="record-list border-box">
<!-- 团队导航 -->
<view class="team-nav flex" v-if="navIndex==1">
<view class="team-nav mar-s30 flex" v-if="navIndex==1">
<view class="item" v-for="(item,index) in teamNav" :key="index" @tap="changeTeam(index)">
<view class="txt font30">{{item}}</view>
<view class="line mar-s15" :class="index==teamIndex?'background-orange':''"></view>
@ -83,10 +83,9 @@
<view class="vip-code flex">
<image :src="codeImg" mode="widthFix"></image>
</view>
<view class="submit-btn font36 radius30 color-ff mar-s60 flex" style="background-color: #00b809;position: relative;">
<view class="submit-btn font36 radius30 color-ff mar-s60 flex" @tap="shareImgEv" style="background-color: #00b809;position: relative;">
<image src="/static/icon/icon-wechat.png" mode="widthFix"></image>
<text>分享给朋友</text>
<button class="shear-btn" type="primary" open-type="share"></button>
</view>
<view class="close-btn" @tap="closeEv">
<image src="/static/icon/close-btn.png" mode="widthFix"></image>
@ -125,6 +124,7 @@
</template>
<script>
import { base64ToPath } from '@/jsFile/base64-src.js';
export default {
data() {
return {
@ -149,40 +149,16 @@
noMore:false,
flag:true,
isLoading:false,
shareFlag:true,
}
},
onLoad(op) {
// //
// this.getRebateEv();
// //
// this.getMyTeam();
// //
// this.getWithdrawal();
//
this.getCodeEv();
//
this.getRecordList();
},
//
onShareAppMessage(res) {
this.isShow = false;
if(res.from==='button'){//
return {
title:'分销二维码',
imageUrl:this.codeImg,
success: function (res) {
if(res.errMsg == 'shareAppMessage:ok'){
console.log("成功",res)
}
},
fail:function(res){
console.log("失败",res)
}
}
}
},
onReachBottom() {
if(!this.noMor){
this.page++;
@ -216,6 +192,41 @@
})
},
//
shareImgEv(id){
let that = this;
if(this.shareFlag){
this.shareFlag = false;
wx.downloadFile({
url: this.codeImg,
success: (res) => {
this.$toolAll.tools.showToast('正在调起分享...');
wx.showShareImageMenu({
path: res.tempFilePath
})
},
fail: (res)=> {
console.log(res)
if( res.errMsg.indexOf('deny')!=-1||res.errMsg.indexOf('denied')!=-1 ){
wx.showToast({
title: '保存相册失败,请设置权限!',
icon: 'none',
duration: 2000,
})
this.shareFlag = true;
}else{
wx.showToast({
title: '保存相册失败,请重试!',
icon: 'none',
duration: 2000,
});
this.shareFlag = true;
}
}
})
} else {this.$toolAll.tools.showToast('请勿重复点击');}
},
//
getRecordList(){
uni.showLoading({

View File

@ -2,9 +2,8 @@
<view v-if="isLoading">
<status-nav :ifReturn="true" navBarTitle="订单管理" :marginBottom="0"></status-nav>
<!-- 订单搜索 -->
<!-- 未调取数据 -->
<view class="order-search">
<input class="input font30 pad-zy40 color-66 radius20 border-box" type="text" placeholder="请输入订单编号" placeholder-style="color:#666666">
<input class="input font30 pad-zy40 color-66 radius20 border-box" v-model="order_coding" type="text" placeholder="请输入订单编号" confirm-type="search" @confirm="doSearch" placeholder-style="color:#666666">
</view>
<!-- 订单导航 -->
<view class="order-nav-bg mar-s30" :style="{top:newTop+'px'}">
@ -87,7 +86,8 @@
totalAll:-1,
page: 1,
size: 10,
tag: 'all'
tag: 'all',
order_coding:'', //
}
},
onLoad(op) {
@ -102,6 +102,7 @@
this.setTabList();
},
onShow() {
this.orderList=[];
this.getOrderList();
},
onReachBottom(e) {
@ -127,10 +128,19 @@
this.tag = tag;
this.orderList=[];
this.page = 1;
this.order_coding = '';
this.getOrderList();
//
this.setTabList();
},
//
doSearch(){
this.orderList = [];
this.activeIndex = 0;
this.tag = 'all'
//
this.getOrderList();
},
//
getOrderList(){
uni.showLoading({
@ -139,7 +149,8 @@
let params = {
page: this.page,
size: this.size,
tag: this.tag
tag: this.tag,
order_coding:this.order_coding,
}
this.$requst.get('/api/user/order',params).then(res=>{
console.log(res,'订单列表')
@ -153,7 +164,7 @@
price: item.price, //
status: item.status, //
status_text: item.status_text, //
skus: item.skus //
skus: item.skus ,//
}
newArr.push(obj);
})

View File

@ -153,7 +153,7 @@
'package': data.package,
"signType": data.signType,
'paySign': data.sign,
'success': function (res) { //
'success': (res)=> { //
console.log('支付成功:',res);
this.amountConfirm(data.coding);
},

View File

@ -50,9 +50,14 @@
}
},
onLoad(op) {
console.log(op,1212121212)
this.invite_code = op.invite_code;
this.invite_name = op.invite_name;
if(op.invite_code){
// invite_code
uni.setStorageSync('inviteCode',op.invite_code);
this.invite_code = op.invite_code;
}
if(op.invite_name){
this.invite_name = op.invite_name;
}
},
methods: {
//
@ -68,9 +73,12 @@
}
this.$requst.post('/api/user/distributor-apply',params).then(res=>{
if(res.code==0){
uni.reLaunch({
url:`/pages/index/index`
})
this.$toolAll.tools.showToast('恭喜您申请成功o(╥﹏╥)o');
setTimeout(()=>{
uni.reLaunch({
url:`/pages/index/index`
})
},1500)
} else {
this.$toolAll.tools.showToast(res.msg);
}

View File

@ -84,10 +84,15 @@
vip_level:0, //
isLoading: true,
shareImg:'', //
shareFlag:true,
}
},
onLoad(op) {
if(op !== ''){
if(op.invite_code){
// invite_code
uni.setStorageSync('inviteCode',op.invite_code);
}
if(op.id){
this.id = op.id;
//
this.getDetail(op.id);
@ -193,9 +198,8 @@
if(res.code==0) {
//
this.closeSpecs();
uni.navigateTo({
url:`/pages/cart/cart`
})
//
this.goCart();
} else {
this.$toolAll.tools.showToast(res.msg)
}
@ -210,9 +214,11 @@
},
//
goCart(){
uni.navigateTo({
url:'/pages/cart/cart',
})
if(this.$toolAll.tools.judgeAuth()) {
uni.navigateTo({
url:'/pages/cart/cart',
})
}
},
//
backEv(){

View File

@ -17,14 +17,14 @@
<view class="title">真实姓名</view>
<input class="msg" type="text" v-model="realName" disabled="true">
<view class="more">
<image src="/static/public/icon-my-more.png" mode="widthFix"></image>
<image src="/static/icon/icon-join.png" mode="widthFix"></image>
</view>
</view>
<view class="item flex" style="position: relative;">
<view class="title">联系电话</view>
<input class="msg" type="number" v-model="mobile" disabled="true">
<view class="more">
<image src="/static/public/icon-my-more.png" mode="widthFix"></image>
<image src="/static/icon/icon-join.png" mode="widthFix"></image>
</view>
<button class="get-phone-btn" open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber"></button>
</view>
@ -33,7 +33,7 @@
<view class="title">联系地址</view>
<input class="msg" type="text" v-model="area" disabled="true">
<view class="more">
<image src="/static/public/icon-my-more.png" mode="widthFix"></image>
<image src="/static/icon/icon-join.png" mode="widthFix"></image>
</view>
</view>
</picker>
@ -41,7 +41,7 @@
<view class="title">详细地址</view>
<input class="msg" type="text" v-model="address" disabled="true">
<view class="more">
<image src="/static/public/icon-my-more.png" mode="widthFix"></image>
<image src="/static/icon/icon-join.png" mode="widthFix"></image>
</view>
</view>
</view>
@ -49,7 +49,7 @@
<!-- 修改信息 -->
<view class="pull-bg" style="background-color: rgba(0,0,0,.3);" v-show="isOpen" @tap="closeEdit"></view>
<view class="vip-box-bg border-box" v-if="isOpen">
<view class="vip-box radius20 background-white font30">
<view class="vip-box radius20 background-white font30">
<view class="title">{{title}}</view>
<view class="vip-list">
<view class="vip-item mar-s20">
@ -125,14 +125,16 @@
if(type == 'real_name'){
this.title = '真实姓名';
this.subtitle = '真实姓名';
this.placeholder = this.realName;
this.placeholder = '请输入真实姓名';
this.msg = this.realName==''?'':this.realName;
this.isOpen = true;
this.field = 'real_name';
}
if(type == 'address'){
this.title = '详细地址';
this.subtitle = '详细地址';
this.placeholder = this.address;
this.placeholder = '请输入详细地址';
this.msg = this.address==''?'':this.address;
this.isOpen = true;
this.field = 'address';
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1010,7 +1010,7 @@ page {background-color: #FFFFFF;}
position: fixed;
left: 0;
top: 50%;
z-index: 99;
z-index: 999;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
@ -1350,7 +1350,7 @@ page {background-color: #FFFFFF;}
background-image: linear-gradient(to right,#ff9547,#ff6f0c);
font-size: 72rpx;
line-height: 102rpx;
text-indent: 30rpx;
text-indent: 20rpx;
padding-top: 40rpx;
margin-right: 35rpx;
}

View File

@ -1,176 +1 @@
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/nothing/pitera"],{
/***/ 163:
/*!**********************************************************!*\
!*** D://mall-laonong/components/nothing/pitera.vue ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pitera.vue?vue&type=template&id=7cce0254& */ 164);
/* harmony import */ var _pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pitera.vue?vue&type=script&lang=js& */ 166);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
var renderjs
/* normalize component */
var component = Object(_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["render"],
_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null,
false,
_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "components/nothing/pitera.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 164:
/*!*****************************************************************************************!*\
!*** D://mall-laonong/components/nothing/pitera.vue?vue&type=template&id=7cce0254& ***!
\*****************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pitera.vue?vue&type=template&id=7cce0254& */ 165);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
/***/ 165:
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D://mall-laonong/components/nothing/pitera.vue?vue&type=template&id=7cce0254& ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ 166:
/*!***********************************************************************************!*\
!*** D://mall-laonong/components/nothing/pitera.vue?vue&type=script&lang=js& ***!
\***********************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pitera.vue?vue&type=script&lang=js& */ 167);
/* harmony import */ var _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 167:
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D://mall-laonong/components/nothing/pitera.vue?vue&type=script&lang=js& ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
//
//
//
//
//
//
//
//
//
var _default =
{
name: "pitera",
props: {
// 内容
textStr: {
type: String,
default: '-- NO MORE --' },
// 字体颜色
textColor: {
type: String,
default: '#999999' },
// 字体大小
textFontSize: {
type: String,
default: '24rpx' },
// 是否加粗
ifBold: {
type: Boolean,
default: false },
// 是否居中
ifCenter: {
type: Boolean,
default: true },
// 内边距的值
paddingStr: {
type: String,
default: '20rpx' } },
data: function data() {
return {};
} };exports.default = _default;
/***/ })
}]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/nothing/pitera.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/nothing/pitera-create-component',
{
'components/nothing/pitera-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('1')['createComponent'](__webpack_require__(163))
})
},
[['components/nothing/pitera-create-component']]
]);
Component({})

View File

@ -213,7 +213,7 @@ var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 24);function
minNum: 1, //最小可输入数量
ifLoading: true,
page: 1,
size: 10,
size: 100,
total: 0,
delIds: '' //删除ids
};
@ -265,7 +265,6 @@ var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 24);function
mounted: function mounted() {
this.listData = this.list;
this.getList();
@ -281,9 +280,6 @@ var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 24);function
this.$requst.post('/api/order/shopping-cart', params).then(function (res) {
if (res.code == 0) {
if (uni.getStorageSync('business_code') !== '') {
_this.vipPrice = true;
}
_this.total = res.data.total;
console.log(res, '购物车列表');
if (_this.page == 1) _this.listData = [];
@ -302,7 +298,7 @@ var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 24);function
slide_x: 0,
price: item.sku.sku_price,
num: item.num,
ifcheck: _this.skuId == item.sku_id ? true : false,
ifcheck: true,
ifExit: true,
ifShow: true };
@ -400,16 +396,7 @@ var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 24);function
this.$requst.post('/api/order/shopping-cart-del', { ids: this.delIds.toString() }).then(function (res) {
if (res.code == 0) {
_this4.$toolAll.tools.showToast('删除成功');
// this.getList();
if (_this4.listData.length) {
_this4.listData.forEach(function (item, index) {
if (item.ifcheck) {
_this4.listData.splice(index, 1);
}
});
}
_this4.$store.commit('setNum', _this4.listData.length);
_this4.totalPrice();
_this4.getList();
} else {
_this4.$toolAll.tools.showToast(res.msg);
}

View File

@ -209,9 +209,11 @@ var _default = {
},
// 去购物车
goCart: function goCart() {
uni.navigateTo({
url: '/pages/cart/cart' });
if (this.$toolAll.tools.judgeAuth()) {
uni.navigateTo({
url: '/pages/cart/cart' });
}
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

View File

@ -174,14 +174,14 @@ __webpack_require__.r(__webpack_exports__);
skuId: '' };
},
onReachBottom: function onReachBottom() {
this.$refs.cart.getList();
onLoad: function onLoad(op) {
if (op.skuId) this.skuId = op.skuId;
},
onShow: function onShow() {
uni.removeStorageSync('buyList');
},
onLoad: function onLoad(op) {
if (op.skuId) this.skuId = op.skuId;
onReachBottom: function onReachBottom() {
// this.$refs.cart.getList();
},
methods: {} };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

View File

@ -1 +1 @@
<view class="pad-b150"><status-nav vue-id="1775f8c0-1" ifReturn="{{true}}" navBarTitle="购物车" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="cart-content"><cart-slide class="vue-ref" vue-id="1775f8c0-2" skuId="{{skuId}}" data-ref="cart" bind:__l="__l"></cart-slide></view></view>
<view class="pad-x170"><status-nav vue-id="1775f8c0-1" ifReturn="{{true}}" navBarTitle="购物车" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="cart-content"><cart-slide class="vue-ref" vue-id="1775f8c0-2" skuId="{{skuId}}" data-ref="cart" bind:__l="__l"></cart-slide></view></view>

View File

@ -124,14 +124,16 @@ var render = function() {
? _vm.__map(_vm.couponList, function(item, index) {
var $orig = _vm.__get_orig(item)
var m0 = parseInt(item.amount)
var m1 = parseInt(item.condition)
var m2 = parseInt(item.amount)
var g0 = item.amount.split(".")
var g1 = item.amount.split(".")
var m0 = parseInt(item.condition)
var m1 = parseInt(item.amount)
return {
$orig: $orig,
g0: g0,
g1: g1,
m0: m0,
m1: m1,
m2: m2
m1: m1
}
})
: null
@ -319,6 +321,15 @@ __webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
//
//
//
//
//
//
var _default =
{
data: function data() {
@ -331,7 +342,7 @@ var _default =
vipCheck: false, //会员折扣
couponCheck: false, // 优惠选择
scoreCheck: false, //积分抵扣
wechatCheck: false, //微信支付
wechatCheck: true, //微信支付
priceCheck: false, //余额支付
isCoupon: false, //优惠券弹窗
flag: true,
@ -428,7 +439,7 @@ var _default =
if (this.couponList.length) {
this.isCoupon = true;
} else {
this.$toolAll.tools.showToast('还没有优惠券');
this.$toolAll.tools.showToast('暂无可用的优惠券');
}
},
@ -452,7 +463,7 @@ var _default =
// 选择按钮
chooseEv: function chooseEv(type) {
if (type == 'vip') {
if (type == 'vip' && this.orderInfo.vip_level > 0) {
if (this.vipCheck) {
this.vipCheck = false;
} else {
@ -461,7 +472,7 @@ var _default =
}
this.computePrice();
}
if (type == 'coupon') {
if (type == 'coupon' && this.couponList.length) {
if (this.couponCheck) {
this.couponCheck = false;
} else {
@ -502,10 +513,13 @@ var _default =
console.log(res, '支付返回');
if (res.data.need_wechat_pay == 1) {
// 调用微信支付
_this3.callPayMent(res.data.payment_params);
_this3.callPayMent(res.data.payment_params, res.data.id, res.data.coding);
} else {
_this3.$toolAll.tools.showToast('支付成功(*^▽^*)');
// 成功状态
_this3.successEv(res.data.coding);
// 清除缓存
uni.removeStorageSync('addr_id');
// 页面跳转
uni.navigateTo({
url: "/pages/cart/finish?id=".concat(res.data.id) });
@ -523,7 +537,7 @@ var _default =
},
// 调用微信支付
callPayMent: function callPayMent(data) {
callPayMent: function callPayMent(data, id, coding) {var _this4 = this;
//调起支付
wx.requestPayment({
'timeStamp': data.timeStamp,
@ -533,16 +547,30 @@ var _default =
'paySign': data.sign,
'success': function success(res) {// 接口调用成功的回调函数
console.log('支付成功:', res);
this.$toolAll.tools.showToast('支付成功(*^▽^*)');
// 成功状态
_this4.successEv(coding);
// 清除缓存
uni.removeStorageSync('addr_id');
// 页面跳转
uni.navigateTo({
url: "/pages/cart/finish?id=".concat(res.data.id) });
url: "/pages/cart/finish?id=".concat(id) });
},
'fail': function fail(res) {// 接口调用失败的回调函数
console.log('支付失败:' + JSON.stringify(res));
} });
},
// 成功状态
successEv: function successEv(coding) {var _this5 = this;
this.$requst.post('/api/order/paid', { order_coding: coding }).then(function (res) {
if (res.code == 0) {
console.log(res, '成功状态');
} else {
_this5.$toolAll.tools.showToast(res.msg);
}
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

File diff suppressed because one or more lines are too long

View File

@ -289,6 +289,9 @@ var _default = {
this.getCateEv();
},
onShow: function onShow() {var _this = this;
// 刷新购物车信息
(0, _publicApi.getCartInfo)();
this.playTimer = setTimeout(function () {
_this.isplay = true;
}, 2000);

View File

@ -243,6 +243,7 @@ var _default =
city: ya.userInfo.city, //用户所在城市
gender: ya.userInfo.gender, //用户性别
language: ya.userInfo.language, //语言
invite_code: uni.getStorageSync('inviteCode') ? uni.getStorageSync('inviteCode') : '',
is_active: 1 };
this.$requst.post('/api/user/login', params).then(function (res) {

View File

@ -258,25 +258,6 @@ __webpack_require__.r(__webpack_exports__);
@ -327,7 +308,6 @@ var _default = {
{ titele: '积分管理', imgSrc: '/static/icon/icon-my-05.png', iconWidth: 32, iconHeight: 30 },
{ titele: '分销管理', imgSrc: '/static/icon/icon-my-06.png', iconWidth: 35, iconHeight: 35 },
{ titele: '优惠券管理', imgSrc: '/static/icon/icon-my-07.png', iconWidth: 38, iconHeight: 27 },
{ titele: '我的分享码', imgSrc: '/static/icon/icon-my-08.png', iconWidth: 34, iconHeight: 40 },
{ titele: '免责声明', imgSrc: '/static/icon/icon-my-09.png', iconWidth: 40, iconHeight: 40 }],
//列表数据
vip_level: 0, // 是否会员
@ -336,33 +316,24 @@ var _default = {
myPhone: '', //电话
flag: true,
vipCode: '', //会员码
showObj: '012345678', //显示列表
showObj: '01234567', //显示列表
mobile: '', //联系方式
orderObj: '123', //订单显示
userInfo: '', //用户信息
isLoading: false,
shareFlag: true, //是否可分享
isShow: false,
codeImg: '' //分销码
codeImg: '', //分销码
is_distributor: 0 //是否经销商
};
},
onPageScroll: function onPageScroll(object) {
if (object.scrollTop > 50) {
this.scroolTop = true;
} else {
this.scroolTop = false;
}
},
onHide: function onHide() {
},
onShow: function onShow() {
// 获取用户信息
this.getUserInfo();
if (uni.getStorageSync('showVip')) {
this.showVip = uni.getStorageSync('showVip');
} else {
uni.setStorageSync('showVip', 'true');
}
// 刷新购物车信息
(0, _publicApi.getCartInfo)();
},
// 分享到微信
onShareAppMessage: function onShareAppMessage(res) {
@ -392,7 +363,6 @@ var _default = {
console.log(res, '用户信息');
if (res.code == 0) {
_this.userInfo = res.data;
uni.setStorageSync('business_id', res.data.business_id);
var newArr = res.data.order_count;
_this.headPortrait = res.data.headimgurl;
_this.nickName = res.data.nickname;
@ -401,13 +371,20 @@ var _default = {
_this.businessCode = res.data.business_code;
_this.vip_level = res.data.vip_level;
_this.vip_info = res.data.vip_info;
_this.is_distributor = res.data.is_distributor;
_this.myOrder[0].num = newArr.all;
_this.myOrder[1].num = newArr.waiting;
_this.myOrder[2].num = newArr.paid;
_this.myOrder[3].num = newArr.shipped;
_this.myOrder[4].num = newArr.completed;
if (_this.vip_level !== 0) {
_this.showObj = '02345678';
if (_this.vip_level !== 0 && _this.is_distributor !== 0) {
_this.showObj = '0234567';
}
if (_this.vip_level !== 0 && _this.is_distributor == 0) {
_this.showObj = '023467';
}
if (_this.vip_level == 0 && _this.is_distributor !== 0) {
_this.showObj = '0123546';
}
// 获取分销码
_this.getCodeEv();
@ -458,8 +435,6 @@ var _default = {
url: "/pagesA/coupon/coupon" });
} else if (index == 7) {
this.isShow = true;
} else if (index == 8) {
uni.navigateTo({
url: "/pagesB/disclaimers/disclaimers" });
@ -544,12 +519,18 @@ var _default = {
return result;
},
// 去对应页面
goPage: function goPage(url) {
uni.navigateTo({
url: url });
},
//关闭会员申请
closeEv: function closeEv() {
this.isVip = false;
this.myName = '';
this.flag = true;
this.isShow = false;
},
// 跳转订单管理
@ -557,33 +538,6 @@ var _default = {
uni.navigateTo({
url: "/pagesA/order/order?tag=".concat(this.myOrder[index].tag, "&index=").concat(index) });
},
// 保存二维码
saveImg: function saveImg() {
this.$toolAll.tools.saveImg(this.customerSrc);
},
// 分享到微信
shareImgEv: function shareImgEv(id) {var _this6 = this;
this.$toolAll.tools.showToast('分享图生成中...', 'none', 10000);
if (this.shareFlag) {
this.shareFlag = false;
this.$requst.post('/api/spu/share-img', { spu_id: id }).then(function (res) {
console.log(base64ToPath(res.data.poster), '分享图片');
base64ToPath(res.data.poster).then(function (path) {
uni.hideToast();
_this6.$toolAll.tools.showToast('正在调起分享...');
wx.showShareImageMenu({
path: path,
success: function success(res) {
_this6.shareFlag = true;
},
fail: function fail(err) {
_this6.shareFlag = true;
} });
});
});
} else {this.$toolAll.tools.showToast('请勿重复点击');}
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

File diff suppressed because one or more lines are too long

View File

@ -124,14 +124,16 @@ var render = function() {
? _vm.__map(_vm.couponList, function(item, index) {
var $orig = _vm.__get_orig(item)
var m0 = parseInt(item.amount)
var m1 = parseInt(item.condition)
var m2 = parseInt(item.amount)
var g0 = item.amount.split(".")
var g1 = item.amount.split(".")
var m0 = parseInt(item.condition)
var m1 = parseInt(item.amount)
return {
$orig: $orig,
g0: g0,
g1: g1,
m0: m0,
m1: m1,
m2: m2
m1: m1
}
})
: null
@ -264,11 +266,13 @@ var _default =
},
// 领取优惠券
receiveEv: function receiveEv(id) {var _this2 = this;
receiveEv: function receiveEv(id, index) {var _this2 = this;
this.$requst.get('/api/user/get-coupon', { coupon_id: id }).then(function (res) {
if (res.code == 0) {
_this2.$toolAll.tools.showToast('领取成功');
_this2.couponList.splice(index, 1);
} else {
_this2.$toolAll.tools.showToast(res.msg);
}
});
},

View File

@ -1 +1 @@
<block wx:if="{{isLoading}}"><view><status-nav vue-id="6ac317bb-1" ifReturn="{{true}}" navBarTitle="优惠券" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="record-nav border-box flex" style="background-color:#f5f5f5;padding:40rpx 20rpx;margin:0;"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeNav',[index]]]]]}}" class="{{['item','color-8c','radius20','border-box',index==navIndex?'cur':'']}}" bindtap="__e">{{item.title}}</view></block></view><view class="coupon-list pad-zy20 border-box"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['coupon-item','radius30','mar-s40','flex',navIndex==2?'grey':'']}}"><view class="price color-ff border-box"><text class="font30">¥</text>{{item.m0}}</view><view class="txt"><view class="font36">{{item.$orig.name}}</view><view class="font24 color-8c mar-s10">{{"满"+item.m1+"减"+item.m2}}</view><view class="font24 color-8c mar-s10">{{item.$orig.begin_at+"至"+item.$orig.end_at}}</view></view><block wx:if="{{navIndex==0}}"><view data-event-opts="{{[['tap',[['useEv',['$event']]]]]}}" class="btn mar-zy20 color-ff font24" bindtap="__e">使用</view></block><block wx:if="{{navIndex==1}}"><view data-event-opts="{{[['tap',[['receiveEv',['$0',index],[[['couponList','',index,'id']]]]]]]}}" class="btn mar-zy20 color-ff font24" bindtap="__e">领取</view></block></view></block></view><block wx:if="{{noMore}}"><view class="no-more font24" style="margin-top:20rpx;"><text>—— 到底啦 ——</text></view></block></view></block>
<block wx:if="{{isLoading}}"><view><status-nav vue-id="6ac317bb-1" ifReturn="{{true}}" navBarTitle="优惠券" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="record-nav border-box flex" style="background-color:#f5f5f5;padding:40rpx 20rpx;margin:0;"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeNav',[index]]]]]}}" class="{{['item','color-8c','radius20','border-box',index==navIndex?'cur':'']}}" bindtap="__e">{{item.title}}</view></block></view><view class="coupon-list pad-zy20 border-box"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['coupon-item','radius30','mar-s40','flex',navIndex==2?'grey':'']}}"><view class="price color-ff border-box"><text class="font30">¥</text>{{item.g0[0]}}<text class="font30">{{'.'+item.g1[1]}}</text></view><view class="txt"><view class="font36">{{item.$orig.name}}</view><view class="font24 color-8c mar-s10">{{"满"+item.m0+"减"+item.m1}}</view><view class="font24 color-8c mar-s10">{{item.$orig.begin_at+"至"+item.$orig.end_at}}</view></view><block wx:if="{{navIndex==0}}"><view data-event-opts="{{[['tap',[['useEv',['$event']]]]]}}" class="btn mar-zy20 color-ff font24" bindtap="__e">使用</view></block><block wx:if="{{navIndex==1}}"><view data-event-opts="{{[['tap',[['receiveEv',['$0',index],[[['couponList','',index,'id']]]]]]]}}" class="btn mar-zy20 color-ff font24" bindtap="__e">领取</view></block></view></block></view><block wx:if="{{noMore}}"><view class="no-more font24" style="margin-top:20rpx;"><text>—— 到底啦 ——</text></view></block></view></block>

View File

@ -153,7 +153,133 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
var _base64Src = __webpack_require__(/*! @/jsFile/base64-src.js */ 160); //
//
//
//
@ -278,12 +404,7 @@ __webpack_require__.r(__webpack_exports__);
//
//
//
//
var _default =
{
data: function data() {
return {
isShow: false, //分销码弹窗
var _default = { data: function data() {return { isShow: false, //分销码弹窗
withdrawal: false, //提现弹窗
navList: ['返利记录', '我的团队', '提现记录'], //导航数据
navIndex: 0, //导航当前
@ -299,137 +420,27 @@ var _default =
bank_account: '', //卡号
deposit_bank: '', //银行
myPrice: '', //提现金额
page: 1,
size: 10,
noMore: false,
flag: true,
isLoading: false };
},
onLoad: function onLoad(op) {
// // 调用返利记录列表
// this.getRebateEv();
// // 调用我的团队列表
// this.getMyTeam();
// // 调用获取提现记录列表
// this.getWithdrawal();
// 获取分销码
this.getCodeEv();
// 获取列表信息
this.getRecordList();
},
// 分享到微信
onShareAppMessage: function onShareAppMessage(res) {
this.isShow = false;
if (res.from === 'button') {//分享按钮
return {
title: '分销二维码',
imageUrl: this.codeImg,
success: function success(res) {
if (res.errMsg == 'shareAppMessage:ok') {
console.log("成功", res);
}
},
fail: function fail(res) {
console.log("失败", res);
} };
}
},
onReachBottom: function onReachBottom() {
if (!this.noMor) {
this.page++;
// 获取列表信息
this.getRecordList();
}
},
onShow: function onShow() {
this.getUserInfo();
},
methods: {
// 获取个人信息
getUserInfo: function getUserInfo() {var _this = this;
this.$requst.post('/api/user/info').then(function (res) {
if (res.code == 0) {
console.log(res, '用户信息');
_this.commission = res.data.commission;
_this.cumulative_income = _this.$toolAll.tools.addXiaoShu(res.data.cumulative_income);
_this.cumulative_withdrawal = _this.$toolAll.tools.addXiaoShu(res.data.cumulative_withdrawal);
_this.my_team = res.data.my_team;
}
});
},
// 获取分销码
getCodeEv: function getCodeEv() {var _this2 = this;
this.$requst.post('/api/user/my-distribution-code').then(function (res) {
if (res.code == 0) {
console.log(res, '分销码');
_this2.codeImg = _this2.$hostHttp + res.data.qr;
}
});
},
// 获取列表信息
getRecordList: function getRecordList() {var _this3 = this;
uni.showLoading({
title: '加载中' });
if (this.navIndex == 0) {
var params = {
page: this.page,
size: this.size,
type: 'commission' };
this.$requst.post('/api/user/data-log-list', params).then(function (res) {
if (res.code == 0) {
console.log(res, '返利记录');
var recordArr = [];
res.data.forEach(function (item) {
var obj = {
id: item.id,
name: item.subAccount == null ? '' : item.subAccount.nickname,
cover: item.subAccount == null ? '' : item.subAccount.headimgurl,
created_at: item.created_at,
title: item.name,
price: _this3.$toolAll.tools.addXiaoShu(item.num) };
recordArr.push(obj);
});
if (recordArr.length == 0) {
_this3.noMor = true;
}
_this3.recordList = _this3.recordList.concat(recordArr);
}
});
}
if (this.navIndex == 1) {
if (this.teamIndex == 0) {
var _params = {
page: this.page,
size: this.size,
is_distributor: 1 };
this.$requst.post('/api/user/team-list', _params).then(function (res) {
if (res.code == 0) {
console.log(res, '经销商团队');
var recordArr = [];
res.data.forEach(function (item) {
var obj = {
page: 1, size: 10, noMore: false, flag: true, isLoading: false, shareFlag: true };}, onLoad: function onLoad(op) {// 获取分销码
this.getCodeEv(); // 获取列表信息
this.getRecordList();}, onReachBottom: function onReachBottom() {if (!this.noMor) {this.page++; // 获取列表信息
this.getRecordList();}}, onShow: function onShow() {this.getUserInfo();}, methods: { // 获取个人信息
getUserInfo: function getUserInfo() {var _this = this;this.$requst.post('/api/user/info').then(function (res) {if (res.code == 0) {console.log(res, '用户信息');_this.commission = res.data.commission;_this.cumulative_income = _this.$toolAll.tools.addXiaoShu(res.data.cumulative_income);_this.cumulative_withdrawal = _this.$toolAll.tools.addXiaoShu(res.data.cumulative_withdrawal);_this.my_team = res.data.my_team;}});}, // 获取分销码
getCodeEv: function getCodeEv() {var _this2 = this;this.$requst.post('/api/user/my-distribution-code').then(function (res) {if (res.code == 0) {console.log(res, '分销码');_this2.codeImg = _this2.$hostHttp + res.data.qr;}});}, // 分享到微信
shareImgEv: function shareImgEv(id) {var _this3 = this;var that = this;if (this.shareFlag) {this.shareFlag = false;wx.downloadFile({ url: this.codeImg, success: function success(res) {_this3.$toolAll.tools.showToast('正在调起分享...');wx.showShareImageMenu({ path: res.tempFilePath });}, fail: function fail(res) {console.log(res);if (res.errMsg.indexOf('deny') != -1 || res.errMsg.indexOf('denied') != -1) {wx.showToast({ title: '保存相册失败,请设置权限!', icon: 'none', duration: 2000 });_this3.shareFlag = true;} else {wx.showToast({ title: '保存相册失败,请重试!', icon: 'none', duration: 2000 });_this3.shareFlag = true;}} });} else {this.$toolAll.tools.showToast('请勿重复点击');}}, // 获取列表信息
getRecordList: function getRecordList() {var _this4 = this;uni.showLoading({ title: '加载中' });if (this.navIndex == 0) {var params = { page: this.page, size: this.size, type: 'commission' };this.$requst.post('/api/user/data-log-list', params).then(function (res) {if (res.code == 0) {console.log(res, '返利记录');var recordArr = [];res.data.forEach(function (item) {var obj = { id: item.id, name: item.subAccount == null ? '' : item.subAccount.nickname, cover: item.subAccount == null ? '' : item.subAccount.headimgurl, created_at: item.created_at, title: item.name, price: _this4.$toolAll.tools.addXiaoShu(item.num) };recordArr.push(obj);});if (recordArr.length == 0) {_this4.noMor = true;}_this4.recordList = _this4.recordList.concat(recordArr);}});}if (this.navIndex == 1) {if (this.teamIndex == 0) {var _params = { page: this.page, size: this.size, is_distributor: 1 };this.$requst.post('/api/user/team-list', _params).then(function (res) {if (res.code == 0) {console.log(res, '经销商团队');var recordArr = [];res.data.forEach(function (item) {var obj = {
id: item.id,
name: item.nickname,
cover: item.headimgurl,
created_at: item.created_at,
title: '累计返利',
price: _this3.$toolAll.tools.addXiaoShu(item.contribution) };
price: _this4.$toolAll.tools.addXiaoShu(item.contribution) };
recordArr.push(obj);
});
if (recordArr.length == 0) {
_this3.noMor = true;
_this4.noMor = true;
}
_this3.recordList = _this3.recordList.concat(recordArr);
_this4.recordList = _this4.recordList.concat(recordArr);
}
});
} else {
@ -449,14 +460,14 @@ var _default =
cover: item.headimgurl,
created_at: item.created_at,
title: '累计返利',
price: _this3.$toolAll.tools.addXiaoShu(item.contribution) };
price: _this4.$toolAll.tools.addXiaoShu(item.contribution) };
recordArr.push(obj);
});
if (recordArr.length == 0) {
_this3.noMor = true;
_this4.noMor = true;
}
_this3.recordList = _this3.recordList.concat(recordArr);
_this4.recordList = _this4.recordList.concat(recordArr);
}
});
}
@ -474,7 +485,7 @@ var _default =
res.data.forEach(function (item) {
var obj = {
id: item.id,
name: _this3.$toolAll.tools.addXiaoShu(item.number),
name: _this4.$toolAll.tools.addXiaoShu(item.number),
cover: '',
created_at: item.created_at,
title: item.status,
@ -483,9 +494,9 @@ var _default =
recordArr.push(obj);
});
if (recordArr.length == 0) {
_this3.noMor = true;
_this4.noMor = true;
}
_this3.recordList = _this3.recordList.concat(recordArr);
_this4.recordList = _this4.recordList.concat(recordArr);
}
});
}
@ -499,19 +510,19 @@ var _default =
this.isShow = true;
},
// 打开提现
openWithdrawal: function openWithdrawal() {var _this4 = this;
openWithdrawal: function openWithdrawal() {var _this5 = this;
this.$requst.post('/api/user/get-deposit-bank-info').then(function (res) {
if (res.code == 0) {
console.log(res, '提现账户信息');
_this4.real_name = res.data.real_name;
_this4.bank_account = res.data.bank_account;
_this4.deposit_bank = res.data.deposit_bank;
_this4.withdrawal = true;
_this5.real_name = res.data.real_name;
_this5.bank_account = res.data.bank_account;
_this5.deposit_bank = res.data.deposit_bank;
_this5.withdrawal = true;
}
});
},
// 发起提现
submitEv: function submitEv() {var _this5 = this;
submitEv: function submitEv() {var _this6 = this;
if (this.checkEmpty() && this.flag) {
var params = {
commission: this.myPrice,
@ -522,13 +533,13 @@ var _default =
this.$requst.post('/api/user/commission-withdrawal', params).then(function (res) {
if (res.code == 0) {
console.log(res, '提现成功');
_this5.withdrawal = false;
_this5.getUserInfo();
_this6.withdrawal = false;
_this6.getUserInfo();
} else {
_this5.$toolAll.tools.showToast(res.msg);
_this6.$toolAll.tools.showToast(res.msg);
}
setTimeout(function () {
_this5.flag = true;
_this6.flag = true;
}, 2000);
});
}

File diff suppressed because one or more lines are too long

View File

@ -215,7 +215,6 @@ __webpack_require__.r(__webpack_exports__);
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 24);
@ -282,19 +281,31 @@ var _vuex = __webpack_require__(/*! vuex */ 13); //
//
//
//
//
//引入mapState
var _default = { data: function data() {return { newTop: uni.getSystemInfoSync().statusBarHeight + 50, orderNav: [{ title: '全部', tag: 'all' }, { title: '待付款', tag: 'waiting' }, { title: '已下单', tag: 'paid' }, { title: '已发货', tag: 'shipped' }, { title: '已完成', tag: 'completed' }], activeIndex: 0, scrollLeft: 0, tabsScrollLeft: 0, navWidth: '', //导航宽度
orderList: [], flag: true, isLoading: false, total: 0, totalAll: -1, page: 1, size: 10, tag: 'all' };}, onLoad: function onLoad(op) {if (op.tag !== '') {this.tag = op.tag;}if (op.index !== '') {this.activeIndex = op.index;}this.navWidth = this.orderNav.length * 150 - 20 + 'rpx'; // 分类切换效果
this.setTabList();}, onShow: function onShow() {this.getOrderList();}, onReachBottom: function onReachBottom(e) {if (this.orderList.length < this.total) {this.page++;this.getOrderList();}}, // 分享到微信
orderList: [], flag: true, isLoading: false, total: 0, totalAll: -1, page: 1, size: 10, tag: 'all', order_coding: '' //订单号
};}, onLoad: function onLoad(op) {if (op.tag !== '') {this.tag = op.tag;}if (op.index !== '') {this.activeIndex = op.index;}this.navWidth = this.orderNav.length * 150 - 20 + 'rpx'; // 分类切换效果
this.setTabList();}, onShow: function onShow() {this.orderList = [];this.getOrderList();}, onReachBottom: function onReachBottom(e) {if (this.orderList.length < this.total) {this.page++;this.getOrderList();}}, // 分享到微信
onShareAppMessage: function onShareAppMessage() {}, // 分享到朋友圈
onShareTimeline: function onShareTimeline(res) {}, methods: { // 导航切换
changeNav: function changeNav(index, tag) {this.total = 0;this.totalAll = -1;this.activeIndex = index;this.tag = tag;this.orderList = [];this.page = 1;this.getOrderList(); // 分类切换效果
this.setTabList();}, // 获取订单列表
getOrderList: function getOrderList() {var _this = this;uni.showLoading({ title: '加载中' });var params = {
changeNav: function changeNav(index, tag) {this.total = 0;this.totalAll = -1;this.activeIndex = index;this.tag = tag;this.orderList = [];this.page = 1;this.order_coding = '';this.getOrderList(); // 分类切换效果
this.setTabList();}, // 搜索订单
doSearch: function doSearch() {this.orderList = [];
this.activeIndex = 0;
this.tag = 'all';
// 获取订单列表
this.getOrderList();
},
// 获取订单列表
getOrderList: function getOrderList() {var _this = this;
uni.showLoading({
title: '加载中' });
var params = {
page: this.page,
size: this.size,
tag: this.tag };
tag: this.tag,
order_coding: this.order_coding };
this.$requst.get('/api/user/order', params).then(function (res) {
console.log(res, '订单列表');

View File

@ -1 +1 @@
<block wx:if="{{isLoading}}"><view class="data-v-0d5a9fc9"><status-nav vue-id="c40c4b46-1" ifReturn="{{true}}" navBarTitle="订单管理" marginBottom="{{0}}" class="data-v-0d5a9fc9" bind:__l="__l"></status-nav><view class="order-search data-v-0d5a9fc9"><input class="input font30 pad-zy40 color-66 radius20 border-box data-v-0d5a9fc9" type="text" placeholder="请输入订单编号" placeholder-style="color:#666666"/></view><view class="order-nav-bg mar-s30 data-v-0d5a9fc9" style="{{'top:'+(newTop+'px')+';'}}"><scroll-view scroll-x="true" scroll-left="{{tabsScrollLeft}}" data-event-opts="{{[['scroll',[['scroll',['$event']]]]]}}" bindscroll="__e" class="data-v-0d5a9fc9"><view class="order-nav flex data-v-0d5a9fc9" style="{{'width:'+(navWidth)+';'}}" id="tab_list"><block wx:for="{{orderNav}}" wx:for-item="item" wx:for-index="index"><view class="{{['item','font30','color-8c','radius20','data-v-0d5a9fc9',activeIndex==index?'cur':'']}}" id="tab_item" data-event-opts="{{[['tap',[['changeNav',[index,'$0'],[[['orderNav','',index,'tag']]]]]]]}}" bindtap="__e">{{item.title}}</view></block></view></scroll-view></view><view class="order-list data-v-0d5a9fc9"><block wx:for="{{orderList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['orderList','',index,'id']]]]]]]}}" class="order-item data-v-0d5a9fc9" catchtap="__e"><view class="order-code flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"订单号:"+item.coding}}</text><block wx:if="{{item.status=='waiting'}}"><text class="status color-red data-v-0d5a9fc9">{{item.status_text}}</text></block><block wx:if="{{item.status=='paid'||item.status=='shipped'}}"><text class="status data-v-0d5a9fc9" style="color:#02d20b;">{{item.status_text}}</text></block><block wx:if="{{item.status=='completed'||item.status=='closed'}}"><text class="status color-99 data-v-0d5a9fc9">{{item.status_text}}</text></block></view><view class="item-bg data-v-0d5a9fc9"><block wx:for="{{item.skus}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="item flex data-v-0d5a9fc9"><view class="img data-v-0d5a9fc9"><image src="{{item1.spu_cover}}" mode="widthFix" class="data-v-0d5a9fc9"></image></view><view class="txt data-v-0d5a9fc9"><view class="title clips1 data-v-0d5a9fc9">{{item1.spu_name}}</view><view class="specs clips2 data-v-0d5a9fc9">{{"规格:"+item1.sku_name}}</view><view class="price flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"¥"+item1.price}}</text><view class="data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">x</text>{{item1.num}}</view></view></view></view></block></view><view class="total-price flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"合计:¥"+item.price}}</text><block wx:if="{{item.status=='waiting'}}"><view class="btns flex data-v-0d5a9fc9"><view data-event-opts="{{[['tap',[['cancleEv',['$0'],[[['orderList','',index,'coding']]]]]]]}}" class="btn border-box data-v-0d5a9fc9" catchtap="__e">取消订单</view><view data-event-opts="{{[['tap',[['payEv',['$0'],[[['orderList','',index,'coding']]]]]]]}}" class="btn btn-01 border-box data-v-0d5a9fc9" catchtap="__e">立即支付</view></view></block><block wx:if="{{item.status=='paid'}}"><view class="btns flex data-v-0d5a9fc9"><view data-event-opts="{{[['tap',[['cancleEv',['$0'],[[['orderList','',index,'coding']]]]]]]}}" class="btn border-box data-v-0d5a9fc9" catchtap="__e">取消订单</view></view></block><block wx:if="{{item.status=='shipped'}}"><view class="btns flex data-v-0d5a9fc9"><view data-event-opts="{{[['tap',[['affirmEv',['$0'],[[['orderList','',index,'id']]]]]]]}}" class="btn btn-02 border-box background-orange data-v-0d5a9fc9" catchtap="__e">确认收货</view></view></block><block wx:if="{{item.status=='completed'||item.status=='closed'}}"><view class="btns flex data-v-0d5a9fc9"><view data-event-opts="{{[['tap',[['buyAgain',[index]]]]]}}" class="btn border-box data-v-0d5a9fc9" catchtap="__e">再次购买</view></view></block></view></view></block></view><block wx:if="{{total!==0&&totalAll==total}}"><view class="no-more font24 data-v-0d5a9fc9" style="margin:0;padding:25rpx 0;"><text class="data-v-0d5a9fc9">—— 到底啦 ——</text></view></block><block wx:if="{{total==0&&totalAll==total}}"><nothing-page vue-id="c40c4b46-2" content="还没有相关订单哟(*^▽^*)" class="data-v-0d5a9fc9" bind:__l="__l"></nothing-page></block></view></block>
<block wx:if="{{isLoading}}"><view class="data-v-0d5a9fc9"><status-nav vue-id="c40c4b46-1" ifReturn="{{true}}" navBarTitle="订单管理" marginBottom="{{0}}" class="data-v-0d5a9fc9" bind:__l="__l"></status-nav><view class="order-search data-v-0d5a9fc9"><input class="input font30 pad-zy40 color-66 radius20 border-box data-v-0d5a9fc9" type="text" placeholder="请输入订单编号" confirm-type="search" placeholder-style="color:#666666" data-event-opts="{{[['confirm',[['doSearch',['$event']]]],['input',[['__set_model',['','order_coding','$event',[]]]]]]}}" value="{{order_coding}}" bindconfirm="__e" bindinput="__e"/></view><view class="order-nav-bg mar-s30 data-v-0d5a9fc9" style="{{'top:'+(newTop+'px')+';'}}"><scroll-view scroll-x="true" scroll-left="{{tabsScrollLeft}}" data-event-opts="{{[['scroll',[['scroll',['$event']]]]]}}" bindscroll="__e" class="data-v-0d5a9fc9"><view class="order-nav flex data-v-0d5a9fc9" style="{{'width:'+(navWidth)+';'}}" id="tab_list"><block wx:for="{{orderNav}}" wx:for-item="item" wx:for-index="index"><view class="{{['item','font30','color-8c','radius20','data-v-0d5a9fc9',activeIndex==index?'cur':'']}}" id="tab_item" data-event-opts="{{[['tap',[['changeNav',[index,'$0'],[[['orderNav','',index,'tag']]]]]]]}}" bindtap="__e">{{item.title}}</view></block></view></scroll-view></view><view class="order-list data-v-0d5a9fc9"><block wx:for="{{orderList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['orderList','',index,'id']]]]]]]}}" class="order-item data-v-0d5a9fc9" catchtap="__e"><view class="order-code flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"订单号:"+item.coding}}</text><block wx:if="{{item.status=='waiting'}}"><text class="status color-red data-v-0d5a9fc9">{{item.status_text}}</text></block><block wx:if="{{item.status=='paid'||item.status=='shipped'}}"><text class="status data-v-0d5a9fc9" style="color:#02d20b;">{{item.status_text}}</text></block><block wx:if="{{item.status=='completed'||item.status=='closed'}}"><text class="status color-99 data-v-0d5a9fc9">{{item.status_text}}</text></block></view><view class="item-bg data-v-0d5a9fc9"><block wx:for="{{item.skus}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="item flex data-v-0d5a9fc9"><view class="img data-v-0d5a9fc9"><image src="{{item1.spu_cover}}" mode="widthFix" class="data-v-0d5a9fc9"></image></view><view class="txt data-v-0d5a9fc9"><view class="title clips1 data-v-0d5a9fc9">{{item1.spu_name}}</view><view class="specs clips2 data-v-0d5a9fc9">{{"规格:"+item1.sku_name}}</view><view class="price flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"¥"+item1.price}}</text><view class="data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">x</text>{{item1.num}}</view></view></view></view></block></view><view class="total-price flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"合计:¥"+item.price}}</text><block wx:if="{{item.status=='waiting'}}"><view class="btns flex data-v-0d5a9fc9"><view data-event-opts="{{[['tap',[['cancleEv',['$0'],[[['orderList','',index,'coding']]]]]]]}}" class="btn border-box data-v-0d5a9fc9" catchtap="__e">取消订单</view><view data-event-opts="{{[['tap',[['payEv',['$0'],[[['orderList','',index,'coding']]]]]]]}}" class="btn btn-01 border-box data-v-0d5a9fc9" catchtap="__e">立即支付</view></view></block><block wx:if="{{item.status=='paid'}}"><view class="btns flex data-v-0d5a9fc9"><view data-event-opts="{{[['tap',[['cancleEv',['$0'],[[['orderList','',index,'coding']]]]]]]}}" class="btn border-box data-v-0d5a9fc9" catchtap="__e">取消订单</view></view></block><block wx:if="{{item.status=='shipped'}}"><view class="btns flex data-v-0d5a9fc9"><view data-event-opts="{{[['tap',[['affirmEv',['$0'],[[['orderList','',index,'id']]]]]]]}}" class="btn btn-02 border-box background-orange data-v-0d5a9fc9" catchtap="__e">确认收货</view></view></block><block wx:if="{{item.status=='completed'||item.status=='closed'}}"><view class="btns flex data-v-0d5a9fc9"><view data-event-opts="{{[['tap',[['buyAgain',[index]]]]]}}" class="btn border-box data-v-0d5a9fc9" catchtap="__e">再次购买</view></view></block></view></view></block></view><block wx:if="{{total!==0&&totalAll==total}}"><view class="no-more font24 data-v-0d5a9fc9" style="margin:0;padding:25rpx 0;"><text class="data-v-0d5a9fc9">—— 到底啦 ——</text></view></block><block wx:if="{{total==0&&totalAll==total}}"><nothing-page vue-id="c40c4b46-2" content="还没有相关订单哟(*^▽^*)" class="data-v-0d5a9fc9" bind:__l="__l"></nothing-page></block></view></block>

View File

@ -333,7 +333,7 @@ var _default =
},
// 调用微信支付
callPayMent: function callPayMent(data) {
callPayMent: function callPayMent(data) {var _this5 = this;
//调起支付
wx.requestPayment({
'timeStamp': data.timeStamp,
@ -343,7 +343,7 @@ var _default =
'paySign': data.sign,
'success': function success(res) {// 接口调用成功的回调函数
console.log('支付成功:', res);
this.amountConfirm(data.coding);
_this5.amountConfirm(data.coding);
},
'fail': function fail(res) {// 接口调用失败的回调函数
console.log('支付失败:' + JSON.stringify(res));
@ -352,20 +352,20 @@ var _default =
},
// 确认充值
amountConfirm: function amountConfirm(coding) {var _this5 = this;
amountConfirm: function amountConfirm(coding) {var _this6 = this;
this.$requst.post('/api/recharge/paid', { order_coding: coding }).then(function (res) {
if (res.code == 0) {
console.log(res, '充值成功');
_this5.$toolAll.tools.showToast('充值成功');
_this6.$toolAll.tools.showToast('充值成功');
// 重新获取用户信息
_this5.getUserInfo();
_this6.getUserInfo();
setTimeout(function () {
_this5.flag = true;
_this6.flag = true;
}, 1200);
} else {
_this5.$toolAll.tools.showToast(res.msg);
_this6.$toolAll.tools.showToast(res.msg);
setTimeout(function () {
_this5.flag = true;
_this6.flag = true;
}, 1200);
}
});

View File

@ -225,8 +225,16 @@ var _vuex = __webpack_require__(/*! vuex */ 13); //
//
//
//引入mapState
var _default = { data: function data() {return { disclaimersHeight: "calc(100vh - ".concat(uni.getSystemInfoSync().statusBarHeight + 50, "px)"), disclaimers: '', invite_code: '', invite_name: '', real_name: '', phone: '', deposit_bank: '', bank_account: '', flag: true };}, onLoad: function onLoad(op) {console.log(op, 1212121212);this.invite_code = op.invite_code;this.invite_name = op.invite_name;}, methods: { // 提交申请
submitEv: function submitEv() {var _this = this;if (this.checkEmpty() && this.flag) {var params = { invite_code: this.invite_code, invite_name: this.invite_name, real_name: this.real_name, phone: this.phone, deposit_bank: this.deposit_bank, bank_account: this.bank_account };this.$requst.post('/api/user/distributor-apply', params).then(function (res) {if (res.code == 0) {uni.reLaunch({ url: "/pages/index/index" });} else {
var _default = { data: function data() {return { disclaimersHeight: "calc(100vh - ".concat(uni.getSystemInfoSync().statusBarHeight + 50, "px)"), disclaimers: '', invite_code: '', invite_name: '', real_name: '', phone: '', deposit_bank: '', bank_account: '', flag: true };}, onLoad: function onLoad(op) {if (op.invite_code) {// 缓存invite_code
uni.setStorageSync('inviteCode', op.invite_code);this.invite_code = op.invite_code;}if (op.invite_name) {this.invite_name = op.invite_name;}}, methods: { // 提交申请
submitEv: function submitEv() {var _this = this;if (this.checkEmpty() && this.flag) {var params = { invite_code: this.invite_code, invite_name: this.invite_name, real_name: this.real_name, phone: this.phone, deposit_bank: this.deposit_bank, bank_account: this.bank_account };this.$requst.post('/api/user/distributor-apply', params).then(function (res) {if (res.code == 0) {
_this.$toolAll.tools.showToast('恭喜您申请成功o(╥﹏╥)o');
setTimeout(function () {
uni.reLaunch({
url: "/pages/index/index" });
}, 1500);
} else {
_this.$toolAll.tools.showToast(res.msg);
}
setTimeout(function () {

View File

@ -159,11 +159,16 @@ var _default = {
id: 0, //商品id
vip_level: 0, // 是否会员
isLoading: true,
shareImg: '' // 分享图片
};
shareImg: '', // 分享图片
shareFlag: true };
},
onLoad: function onLoad(op) {
if (op !== '') {
if (op.invite_code) {
// 缓存invite_code
uni.setStorageSync('inviteCode', op.invite_code);
}
if (op.id) {
this.id = op.id;
// 查询商品详情
this.getDetail(op.id);
@ -269,9 +274,8 @@ var _default = {
if (res.code == 0) {
// 关闭弹窗
_this4.closeSpecs();
uni.navigateTo({
url: "/pages/cart/cart" });
// 去购物车
_this4.goCart();
} else {
_this4.$toolAll.tools.showToast(res.msg);
}
@ -286,9 +290,11 @@ var _default = {
},
// 去购物车
goCart: function goCart() {
uni.navigateTo({
url: '/pages/cart/cart' });
if (this.$toolAll.tools.judgeAuth()) {
uni.navigateTo({
url: '/pages/cart/cart' });
}
},
// 返回
backEv: function backEv() {

View File

@ -280,14 +280,16 @@ var _default =
if (type == 'real_name') {
this.title = '真实姓名';
this.subtitle = '真实姓名';
this.placeholder = this.realName;
this.placeholder = '请输入真实姓名';
this.msg = this.realName == '' ? '' : this.realName;
this.isOpen = true;
this.field = 'real_name';
}
if (type == 'address') {
this.title = '详细地址';
this.subtitle = '详细地址';
this.placeholder = this.address;
this.placeholder = '请输入详细地址';
this.msg = this.address == '' ? '' : this.address;
this.isOpen = true;
this.field = 'address';
}

View File

@ -1 +1 @@
<block wx:if="{{isLoading}}"><view><status-nav vue-id="54360644-1" ifReturn="{{true}}" navBarTitle="个人中心" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="ucenter-bg border-box" style="{{'min-height:'+(windoHeight-statusHeight-50+'px')+';'}}"><view class="ucenter"><view class="item item-first flex"><view class="title">头像</view><view class="img"><image src="{{headImgUrl}}" mode="widthFix"></image></view></view><view class="item flex"><view class="title">昵称</view><view class="msg">{{nickName}}</view></view><view data-event-opts="{{[['tap',[['openEdit',['real_name']]]]]}}" class="item flex" bindtap="__e"><view class="title">真实姓名</view><input class="msg" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','realName','$event',[]]]]]]}}" value="{{realName}}" bindinput="__e"/><view class="more"><image src="/static/public/icon-my-more.png" mode="widthFix"></image></view></view><view class="item flex" style="position:relative;"><view class="title">联系电话</view><input class="msg" type="number" disabled="true" data-event-opts="{{[['input',[['__set_model',['','mobile','$event',[]]]]]]}}" value="{{mobile}}" bindinput="__e"/><view class="more"><image src="/static/public/icon-my-more.png" mode="widthFix"></image></view><button class="get-phone-btn" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['onGetPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e"></button></view><picker mode="region" data-event-opts="{{[['change',[['change',['$event']]]]]}}" bindchange="__e"><view class="item flex"><view class="title">联系地址</view><input class="msg" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','area','$event',[]]]]]]}}" value="{{area}}" bindinput="__e"/><view class="more"><image src="/static/public/icon-my-more.png" mode="widthFix"></image></view></view></picker><view data-event-opts="{{[['tap',[['openEdit',['address']]]]]}}" class="item flex" bindtap="__e"><view class="title">详细地址</view><input class="msg" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','address','$event',[]]]]]]}}" value="{{address}}" bindinput="__e"/><view class="more"><image src="/static/public/icon-my-more.png" mode="widthFix"></image></view></view></view></view><view data-event-opts="{{[['tap',[['closeEdit',['$event']]]]]}}" hidden="{{!(isOpen)}}" class="pull-bg" style="background-color:rgba(0,0,0,.3);" bindtap="__e"></view><block wx:if="{{isOpen}}"><view class="vip-box-bg border-box"><view class="vip-box radius20 background-white font30"><view class="title">{{title}}</view><view class="vip-list"><view class="vip-item mar-s20"><view class="tips color-99">{{subtitle}}</view><input class="input" type="text" placeholder="{{placeholder}}" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','msg','$event',[]]]]]]}}" value="{{msg}}" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['submitEdit',['$event']]]]]}}" class="submit-btn font36 background-orange radius30 mar-s60 flex" bindtap="__e">提交修改</view><view data-event-opts="{{[['tap',[['closeEdit',['$event']]]]]}}" class="close-btn" bindtap="__e"><image src="/static/icon/close-btn.png" mode="widthFix"></image></view></view></view></block></view></block>
<block wx:if="{{isLoading}}"><view><status-nav vue-id="54360644-1" ifReturn="{{true}}" navBarTitle="个人中心" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="ucenter-bg border-box" style="{{'min-height:'+(windoHeight-statusHeight-50+'px')+';'}}"><view class="ucenter"><view class="item item-first flex"><view class="title">头像</view><view class="img"><image src="{{headImgUrl}}" mode="widthFix"></image></view></view><view class="item flex"><view class="title">昵称</view><view class="msg">{{nickName}}</view></view><view data-event-opts="{{[['tap',[['openEdit',['real_name']]]]]}}" class="item flex" bindtap="__e"><view class="title">真实姓名</view><input class="msg" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','realName','$event',[]]]]]]}}" value="{{realName}}" bindinput="__e"/><view class="more"><image src="/static/icon/icon-join.png" mode="widthFix"></image></view></view><view class="item flex" style="position:relative;"><view class="title">联系电话</view><input class="msg" type="number" disabled="true" data-event-opts="{{[['input',[['__set_model',['','mobile','$event',[]]]]]]}}" value="{{mobile}}" bindinput="__e"/><view class="more"><image src="/static/icon/icon-join.png" mode="widthFix"></image></view><button class="get-phone-btn" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['onGetPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e"></button></view><picker mode="region" data-event-opts="{{[['change',[['change',['$event']]]]]}}" bindchange="__e"><view class="item flex"><view class="title">联系地址</view><input class="msg" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','area','$event',[]]]]]]}}" value="{{area}}" bindinput="__e"/><view class="more"><image src="/static/icon/icon-join.png" mode="widthFix"></image></view></view></picker><view data-event-opts="{{[['tap',[['openEdit',['address']]]]]}}" class="item flex" bindtap="__e"><view class="title">详细地址</view><input class="msg" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','address','$event',[]]]]]]}}" value="{{address}}" bindinput="__e"/><view class="more"><image src="/static/icon/icon-join.png" mode="widthFix"></image></view></view></view></view><view data-event-opts="{{[['tap',[['closeEdit',['$event']]]]]}}" hidden="{{!(isOpen)}}" class="pull-bg" style="background-color:rgba(0,0,0,.3);" bindtap="__e"></view><block wx:if="{{isOpen}}"><view class="vip-box-bg border-box"><view class="vip-box radius20 background-white font30"><view class="title">{{title}}</view><view class="vip-list"><view class="vip-item mar-s20"><view class="tips color-99">{{subtitle}}</view><input class="input" type="text" placeholder="{{placeholder}}" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','msg','$event',[]]]]]]}}" value="{{msg}}" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['submitEdit',['$event']]]]]}}" class="submit-btn font36 background-orange radius30 mar-s60 flex" bindtap="__e">提交修改</view><view data-event-opts="{{[['tap',[['closeEdit',['$event']]]]]}}" class="close-btn" bindtap="__e"><image src="/static/icon/close-btn.png" mode="widthFix"></image></view></view></view></block></view></block>

View File

@ -9,6 +9,13 @@
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pagesB/distributor/distributor",
"query": "invite_code=4e4b5fbbbb602b6d35bea8460aa8f8e5&invite_name=Lee",
"launchMode": "default",
"scene": null
}
]
}