main
syt 7 months ago
parent 86cc94d842
commit 3afa009e9c
  1. 6
      components/goods-sku-popup/index.vue
  2. 2
      components/goods-sku-popup/number-box/index.vue
  3. 7
      pages.json
  4. 6
      pages/activity/intimate.vue
  5. 8
      pages/activity/newGoods.vue
  6. 2
      pages/activity/newPeople.vue
  7. 9
      pages/goods/detail.vue
  8. 3
      pages/goods/list.vue
  9. 7
      pages/index/index.vue
  10. 4
      pages/invite/index.vue
  11. 9
      pages/login/index.vue
  12. 449
      pages/news/caigou/notice.vue
  13. 2
      pages/news/consult/about.vue
  14. 1
      pages/news/consult/storeEdit.vue
  15. 4
      pages/news/recycling/confirm.vue
  16. 4
      pages/news/recycling/orderList.vue
  17. 45
      pages/news/user/withdrawal.vue
  18. 8
      pages/news1/feedback.vue
  19. 6
      pages/news1/wallet.vue
  20. 2
      pages/news3/shopOrder.vue
  21. 5
      pages/news3/shopOrderDetails.vue
  22. 3
      pages/order/detail.vue
  23. 47
      pages/order/index.vue
  24. 2
      pages/search/index.vue
  25. 2
      pages/user/index.vue
  26. 3
      pages/user/vip/goods.vue

@ -19,7 +19,7 @@
<text class="sign">¥</text>
<text class="price" :class="priceCom.length > 16 ? 'price2' : ''">{{ priceCom }}</text>
</view>
<!-- <view class="inventory" v-if="!hideStock">{{ stockText }}{{ stockCom }}</view> -->
<view class="inventory" v-if="!hideStock">{{ stockText }}{{ stockCom }}</view>
<view class="inventory"></view>
<view class="choose" v-show="isManyCom">
<text v-if="!selectArr.every(val => val == '')">已选{{ selectArr.join(' ') }}</text>
@ -45,7 +45,7 @@
<view class="number-box-view" v-if="!userInfo.user_type || userInfo.user_type != 40">
<view style="flex: 1;">数量</view>
<view style="flex: 4;text-align: right;">
<number-box v-model="selectNum" :min="minBuyNum || 1" max="99999999999"
<number-box v-model="selectNum" :min="minBuyNum || 1" :max="maxBuyNumCom"
:step="stepBuyNum || 1" :step-strictly="stepStrictly" :positive-integer="true"
@change="numChange" />
</view>
@ -1015,6 +1015,7 @@
maxStock = max;
}
}
console.log("getMaxStock",maxStock)
return maxStock;
},
numChange(e) {
@ -1041,6 +1042,7 @@
if (max > maxStock) {
max = maxStock;
}
console.log("maxBuyNumCom",maxStock,that.maxBuyNum)
return max;
},
//

@ -157,7 +157,7 @@ export default {
// disabledfalsedisabledInputtrue
disabledInput: {
type: Boolean,
default: false
default: true
},
//
cursorSpacing: {

@ -405,13 +405,6 @@
"enablePullDownRefresh": false
}
},
{
"path": "caigou/notice",
"style": {
"navigationBarTitleText": "权益中心",
"enablePullDownRefresh": false
}
},
{
"path": "caigou/notice1",
"style": {

@ -126,10 +126,10 @@
a.server_price = Number(a.server_price);
a.line_price = Number(a.line_price)
})
this.list1 = data.list
this.total = data.total
this.isShow = data.total == 0 ? true : false
}
this.list1 = data.list
this.total = data.total
this.isShow = data.total == 0 ? true : false
}
},
openPage(index, a) {

@ -63,7 +63,8 @@
background: 'url(' + img + ') center top no-repeat',
backgroundSize: '100% auto',
},
},
page: 1,
backgroundImg: '',
list: [],
content: '',
@ -95,7 +96,7 @@
getBrandList() {
const app = this;
let pamars = {
page: 1,
page: app.page,
is_brand: '',
is_new: 1,
categoryId: '',
@ -104,7 +105,8 @@
}
Api.brandList(pamars)
.then(result => {
app.list = result.data.data
app.list = result.data.data
app.total = result.data.total
})
.finally(() => app.isLoading = false)
},

@ -270,7 +270,7 @@
z-index: 2;
text {
font-size: 52rpx;
font-size: 40rpx;
}
}

@ -50,18 +50,18 @@
</view>
</view>
</view>
<view class="pro" v-if="isLogin">
<view class="pro">
<view class="proMem">
<text v-if="userInfo.user_type==20">Plus</text>
<text v-if="userInfo.user_type==30">分销</text>
PRO会员
<view>会员</view>
</view>
<view class="proInfo">
开通<text v-if="userInfo.user_type==20">Plus</text>
<text v-if="userInfo.user_type==30">分销</text>会员预计再省<text style="color: #FF1D1D;">30</text>
</view>
<view class="proBtn" @click="goMember()">
立即开通
{{(userInfo.user_type==20 || userInfo.user_type == 30)?'立即续费':'立即开通'}}
</view>
</view>
<view class="goodsDetail">
@ -1002,7 +1002,7 @@
return;
}
uni.navigateTo({
url: '/pages/member/index'
url: '/pages/member/index?type='+(this.userInfo.user_type != 30?'hy':'fx')
})
},
toFuwu() {
@ -1384,6 +1384,7 @@
width: 142rpx;
font-size: 28rpx;
font-weight: 500;
text-align: center;
color: #966542;
margin-left: 18rpx;
padding-right: 24rpx;

@ -746,6 +746,9 @@
-webkit-line-clamp: 2;
height: 90rpx;
line-height: 45rpx;
text{
display: block;
}
}
.shenBox {

@ -117,7 +117,7 @@
<view class="more" @click="goJump('/pages/user/vip/goods')">查看更多<u-icon
style="margin-left:10rpx;" name="arrow-right"></u-icon>
</view>
<view class="dapaiContent" @click="goBigGoods" v-if="dapaiList.length>0">
<view class="dapaiContent" v-if="dapaiList.length>0">
<template v-for="(item,index) in dapaiList" :key="index">
<view class="dapaiItem" v-if="index <= 9"
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
@ -853,7 +853,7 @@
} else {
this.seckillCutDownTime = 0
}
if (result.data.goodsList && result.data.goodsList.data.length > 0) {
if (result.data.goodsList && result.data.goodsList.data && result.data.goodsList.data.length > 0) {
seckillList = result.data.goodsList.data;
for (var i = 0; i < seckillList.length; i++) {
seckillList[i].original_price = Number(seckillList[i].original_price)
@ -950,6 +950,9 @@
// url: '/pages/goods/detail?goodsId=' + this.bannerList[index].redirect_url
// })
// } else {
if(!this.bannerList[index].redirect_url){
return ;
}
uni.navigateTo({
url: '/pages/activity/newsshop?activeid=' + this.bannerList[index].redirect_url + '&type=1'
})

@ -318,7 +318,7 @@
})
} else if (index == 2) {
uni.navigateTo({
url: "/pages/news/user/withdrawal?balance=" + this.userInfo.pay_money
url: "/pages/news/user/withdrawal?balance=" + this.userInfo.balance
})
} else if (index == 3) {
this.InviteUserPoster();
@ -335,7 +335,7 @@
<style lang="scss" scoped>
.invite {
background: url(https://www.royaum.com.cn/static/news/invite-bg.png?t=2) center top no-repeat;
background: url(https://www.royaum.com.cn/static/news/invite-bg.png?t=2) center -40px no-repeat;
background-size: 100% auto;
position: relative;
overflow: hidden;

@ -57,7 +57,8 @@ import * as UserApi from "@/api/user";
import * as CaptchaApi from "@/api/captcha";
import mpWeiXinMobile from "./components/mp-weixin-mobile.vue";
import store from "@/store";
import { isEmpty } from "@/utils/util";
import { isEmpty } from "@/utils/util";
import { getSceneData } from '@/core/app'
export default {
components: {
mpWeiXinMobile,
@ -80,7 +81,11 @@ export default {
};
},
onLoad(o) {
this.refereeId = o.refereeId;
//
const scene = getSceneData(o)
// ID
const refereeId = scene.refereeId ? scene.refereeId : scene.uid
this.refereeId = refereeId
},
methods: {
toTextPage(n) {

@ -1,449 +0,0 @@
<template>
<view class="notice">
<view class="notice-navbar">
<u-navbar title="权益礼包" :border-bottom="false" :background="background1"></u-navbar>
</view>
<view class="notice-bd">
<view class="a">
<view class="title">认证商家专享权益包</view>
<view class="desc">开通享8大权益</view>
<view class="list">
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-01.png"></image>
订货优惠券
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-02.png"></image>
专享活动
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-03.png"></image>
专享券
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-04.png"></image>
直采价
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-05.png"></image>
线报
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-06.png"></image>
快速发货
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-07.png"></image>
专属客服
</view>
</view>
</view>
<view class="b">
<view class="title">服务权益</view>
<view class="list">
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-08.png"></image>
<view class="info">
<view class="name">订货优惠券</view>
<view class="desc">平台针对所有认证成功的采购商定期或不定期发放订货优惠券以及新人优惠券</view>
</view>
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-09.png"></image>
<view class="info">
<view class="name">专享活动/专享券</view>
<view class="desc">平台针对采购量大的采购商推出专享活动或发放专享券采购量大的采购商有权参与可获得专享优惠</view>
</view>
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-10.png"></image>
<view class="info">
<view class="name">直采价</view>
<view class="desc">平台将不断对接更多品类的供应链资源让平台上每一位采购商获取更多跨界的产品直采资源</view>
</view>
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-11.png"></image>
<view class="info">
<view class="name">线报</view>
<view class="desc">平台将每天在广场推出每日线报方便采购商获取最新前沿的商品渠道行情助力采购商零售批发双线齐发</view>
</view>
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-12.png"></image>
<view class="info">
<view class="name">专属客服</view>
<view class="desc">每天09:00-21:00(周一至周六)在线实时解答订货疑虑提供各种采购指导及售后处理</view>
</view>
</view>
<view class="item">
<image src="https://wholesaler.royaum.com.cn/static/caigou/icon-m-13.png"></image>
<view class="info">
<view class="name">认证服务费</view>
<view class="desc">采购商如果在支付认证服务费后10日内如未在本平台产生任何订单(包括退款订单)支持认证服务费退费申请平台将在2个工作日内给您退回认证服务费</view>
</view>
</view>
</view>
</view>
<view class="pay-bd" v-if="orcInfo.isToWrite">
<view class="title">选择支付方式</view>
<view class="item" v-for="(a,i) in paymentMethods" @click="tabItem1(i)">
<image v-if="tabIndex == i" src="https://wholesaler.royaum.com.cn/static/invoice/select-on.png"></image>
<image v-else src="https://wholesaler.royaum.com.cn/static/invoice/select.png"></image>
{{a.method == 'wechat'?'微信支付':'余额支付'}}<text v-if="a.method == 'balance'">余额{{personal.balance}}</text>
</view>
</view>
</view>
<view class="notice-fd">
<view class="btn" v-if="orcInfo.isToWrite" @click="openPage()">( ¥{{info.price}}/ <text>¥{{info.year}}/ </text> ) 去支付</view>
<view class="btn" v-else @click="openPage1()">立即提交</view>
</view>
<addShuiyin />
</view>
</template>
<script>
import { Wechat } from '@/core/payment'
import * as newFunApi from '@/api/newFun'
export default {
data() {
return {
background1: {
background: "url(https://wholesaler.royaum.com.cn/static/caigou/bg@2x.png) center top no-repeat",
backgroundSize: '100% auto',
},
info: {},
orcInfo: {},
paymentMethods: {},
personal: {},
isClick: true,
tabIndex: 0,
};
},
onReady() {
this.orcInfo = uni.getStorageSync("orcInfo");
this.wholesalerPrice();
},
methods: {
tabItem1(i){
this.tabIndex = i
},
//
async wholesalerPrice() {
const { status, data, message } = await newFunApi.wholesalerPrice({client:'MP-WEIXIN'});
if (status == 200) {
this.info = data.info
this.paymentMethods = data.paymentMethods
this.personal = data.personal
}
},
//
async toWechatPay() {
const that = this;
const {status, data } = await newFunApi.wholesalerSubmit({
method: 'wechat',
client: "MP-WEIXIN",
username: this.orcInfo.username,
mobile: this.orcInfo.mobile,
mobile_code: this.orcInfo.mobile_code,
card_front_img_id: this.orcInfo.card_front_img_id,
card_back_img_id: this.orcInfo.card_back_img_id,
license_img_id: this.orcInfo.license_img_id,
card_no: this.orcInfo.card_no,
door_img_id: this.orcInfo.door_img_id,
province_id: this.orcInfo.province_id,
company_name: this.orcInfo.company_name,
city_id: this.orcInfo.city_id,
credit_code: this.orcInfo.credit_code,
business: this.orcInfo.business,
avatar_id: this.orcInfo.avatar_id,
})
if(status == 200) {
Wechat.payment(data.payment)
.then((result) => {
console.log(22,result)
uni.showToast({
title: "支付成功"
})
this.isClick = true;
setTimeout(()=>{
uni.removeStorageSync("orcInfo");
uni.redirectTo({
url: "/pages/news/caigou/notice5"
})
},1000)
})
.catch(err => {
uni.showToast({
title: "支付失败"
})
this.isClick = true;
})
}
},
//
async toPay() {
const that = this;
const {status, message} = await newFunApi.wholesalerSubmit({
method: 'balance',
client: "MP-WEIXIN",
username: this.orcInfo.username,
mobile: this.orcInfo.mobile,
mobile_code: this.orcInfo.mobile_code,
card_front_img_id: this.orcInfo.card_front_img_id,
card_back_img_id: this.orcInfo.card_back_img_id,
license_img_id: this.orcInfo.license_img_id,
card_no: this.orcInfo.card_no,
door_img_id: this.orcInfo.door_img_id,
province_id: this.orcInfo.province_id,
company_name: this.orcInfo.company_name,
city_id: this.orcInfo.city_id,
credit_code: this.orcInfo.credit_code,
business: this.orcInfo.business,
avatar_id: this.orcInfo.avatar_id,
})
if(status == 200) {
uni.showToast({
title: "支付成功"
})
this.isClick = true;
setTimeout(()=>{
uni.removeStorageSync("orcInfo");
uni.redirectTo({
url: "/pages/news/caigou/notice5"
})
},1000)
}else{
this.isClick = true;
uni.showToast({
icon: "none",
title: message
})
}
},
openPage() {
if(this.isClick == false){
return;
}
this.isClick = false;
if(this.paymentMethods[this.tabIndex].method == "balance"){
if(Number(this.info.price) <= Number(this.personal.balance)){
this.toPay()
}else{
this.isClick = true;
uni.showToast({
icon: "none",
title: "余额不足,请选择其他支付方式"
})
}
}else if(this.paymentMethods[this.tabIndex].method == "wechat"){
this.toWechatPay();
}
},
async openPage1() {
if(this.isClick == false){
return;
}
this.isClick = false;
const that = this;
const {status, message} = await newFunApi.wholesalerEditApply({
client: "MP-WEIXIN",
username: this.orcInfo.username,
mobile: this.orcInfo.mobile,
mobile_code: this.orcInfo.mobile_code,
card_front_img_id: this.orcInfo.card_front_img_id,
card_back_img_id: this.orcInfo.card_back_img_id,
license_img_id: this.orcInfo.license_img_id,
card_no: this.orcInfo.card_no,
door_img_id: this.orcInfo.door_img_id,
province_id: this.orcInfo.province_id,
company_name: this.orcInfo.company_name,
city_id: this.orcInfo.city_id,
credit_code: this.orcInfo.credit_code,
business: this.orcInfo.business,
avatar_id: this.orcInfo.avatar_id,
})
if(status == 200) {
uni.showToast({
title: "提交成功"
})
this.isClick = true;
setTimeout(()=>{
uni.removeStorageSync("orcInfo");
uni.redirectTo({
url: "/pages/news/caigou/notice5"
})
},1000)
}else{
this.isClick = true;
uni.showToast({
icon: "none",
title: message
})
}
}
},
}
</script>
<style lang="scss" scoped>
.notice{
min-height: 100vh;
background: url(https://wholesaler.royaum.com.cn/static/caigou/bg@2x.png) center top no-repeat;
background-size: 100% auto;
padding-bottom: 150rpx;
&-bd{
width: 700rpx;
margin: 0 auto;
text-align: justify;
border-radius: 10rpx;
box-sizing: border-box;
padding: 0 20rpx;
box-sizing: border-box;
background-color: #fff;
margin: 0 auto;
margin-top: 20rpx;
.title{
padding: 30rpx 0;
font-size: 30rpx;
}
.item{
padding: 20rpx 0;
display: flex;
align-items: center;
font-size: 28rpx;
color: #212121;
image{
width: 30rpx;
height: 30rpx;
margin-right: 20rpx;
}
text{
margin-left: 20rpx;
color: #666;
}
}
.a{
width: 702rpx;
min-height: 454rpx;
background: #FFFFFF;
border-radius: 20rpx;
border: 1px solid #FFC8D7;
margin: 15rpx auto;
padding: 10rpx 20rpx 30rpx;
box-sizing: border-box;
text-align: center;
.title{
font-weight: 400;
font-size: 36rpx;
padding: 20rpx 0;
color: #222222;
}
.desc{
font-size: 24rpx;
color: #999999;
}
.list{
overflow: hidden;
.item{
width: 25%;
text-align: center;
float: left;
margin-top: 25rpx;
font-size: 24rpx;
color: #333333;
display: block;
image{
width: 90rpx;
height: 90rpx;
display: block;
margin: 0 auto 15rpx;
}
}
}
}
.b{
padding: 60rpx 0 20rpx;
.title{
font-size: 30rpx;
color: #222222;
position: relative;
&::after{
content: "";
width: 8rpx;
height: 30rpx;
border-radius: 10rpx;
background-color: #F34A40;
position: absolute;
left: -25rpx;
top: 4rpx;
z-index: 2;
}
}
.list{
.item{
padding: 30rpx 0 0;
overflow: hidden;
display: flex;
align-items: flex-start;
image{
width: 82rpx;
height: 82rpx;
margin-right: 20rpx;
}
.info{
padding-bottom: 30rpx;
border-bottom: 1px solid #E9E9E9;
max-width: 500rpx;
.name{
font-size: 28rpx;
color: #F34A40;
}
.desc{
font-size: 24rpx;
color: #666666;
line-height: 36rpx;
margin-top: 15rpx;
}
}
}
}
}
}
&-fd{
height: 140rpx;
width: 100%;
position: fixed;
left: 0;
bottom: 0;
z-index: 22;
background-color: #FFFFFF;
display: flex;
justify-content: center;
align-items: center;
.btn{
width: 662rpx;
height: 90rpx;
line-height: 90rpx;
background: #F34A40;
border-radius: 90rpx;
text-align: center;
font-size: 32rpx;
color: #FFFFFF;
&-on{
background-color: #ccc;
}
text{
text-decoration: line-through;
font-size: 24rpx;
}
}
}
}
</style>

@ -38,7 +38,7 @@
userInfo: {}
}
},
onLoad() {
onShow() {
this.cityInfo = uni.getStorageSync("cityInfo");
this.userInfo = uni.getStorageSync("userInfo");
},

@ -148,6 +148,7 @@ export default {
url: res.data.logo_image
}]
this.image_id = res.data.group_share_img_id
this.logo_image_id = res.data.logo_image_id
}
})
.finally()

@ -44,7 +44,7 @@
<image class="pic" :src="info.server_image"></image>
<view class="info">
<view class="tel">{{info.server_name}}</view>
<view class="price">¥<text>{{info.line_price}}</text></view>
<view class="price">¥<text>{{info.server_price}}</text></view>
</view>
<view class="num">
x1
@ -196,7 +196,7 @@
methods: {
tabMItem(a, i) {
this.couponIndex = i
this.coupon_id = (a ? a.coupon_id : "")
this.coupon_id = (a ? a.user_coupon_id : "")
this.isShow = false;
this.getServerCheckOrder(1)
},

@ -237,11 +237,11 @@ export default {
/**
* 获取列表
*/
async getList() {
async getList(type) {
let {status, message, data} = await newFunApi.serverOrderInfoStatus({});
if(status == 200){
this.classList = data.list
this.getOrderList();
this.getOrderList(type);
}
},
/**

@ -140,7 +140,8 @@
duty_no: '',
source: 1
},
balance: ''
balance: '',
isClick: true
};
},
onLoad(op) {
@ -168,6 +169,14 @@
})
return
}
if (that.obj.money == 0) {
uni.showToast({
title: '提现金额不能为0',
icon: 'none',
duration: 2000
})
return
}
if (!that.obj.bank_name) {
uni.showToast({
title: '请输入开户行姓名',
@ -230,29 +239,35 @@
getCode() {
//
const that = this
if(that.isClick == false){
return ;
}
if (!that.validatePhoneNumber(that.obj.bank_phone)) {
uni.showToast({
icon: "none",
title: '请输入正确的手机号'
})
return
}
that.showCountDown = !that.showCountDown
that.countDownFun = setInterval(() => {
if (that.countdown >= 1) {
that.countdown = that.countdown - 1
} else {
that.showCountDown = false
that.countdown = 60
clearInterval(that.countDownFun)
}
}, 1000)
that.isClick = false
CaptchaApi.sendSmsCaptcha({
form: {
mobile: that.obj.bank_phone
}
mobile: that.obj.bank_phone
}).then(res => {
if (res.status == 200) {
that.showCountDown = !that.showCountDown
that.countDownFun = setInterval(() => {
if (that.countdown >= 1) {
that.countdown = that.countdown - 1
that.isClick = false
} else {
that.showCountDown = false
that.countdown = 60
clearInterval(that.countDownFun)
that.isClick = true
}
}, 1000)
uni.showToast({
title: res.message
})

@ -316,7 +316,9 @@ export default {
.then(res => {
that.$toast(res.message)
that.shop_id = ''
that.form = that.$options.data().form
that.form = that.$options.data().form
that.image_id = ""
that.finishImageList = []
})
.catch(reject)
})
@ -327,7 +329,9 @@ export default {
*/
onOrderTab(type) {
this.OrderType = type;
this.pageNum = 1
this.pageNum = 1
this.image_id = ""
this.finishImageList = []
this.feedBackList = []
if (type != 0) {
this.getFeedBack(type)

@ -29,7 +29,7 @@
<u-icon name="arrow-right" color="#909090" size="22"></u-icon>
</view>
<view class="num">
¥ {{infor.balance?Number(infor.balance):infor.balance}}
¥ {{infor.withdrawal_money?Number(infor.withdrawal_money):infor.withdrawal_money}}
</view>
</view>
<view class="handleBtn" @click="cashOut">
@ -42,7 +42,7 @@
<text>不可提现</text>
</view>
<view class="num">
¥ {{infor.expend_money?Number(infor.expend_money):infor.expend_money}}
¥ {{infor.freeze_money?Number(infor.freeze_money):infor.freeze_money}}
</view>
</view>
<view class="recordBtn" @click="cashOutList">
@ -242,7 +242,7 @@
cashOut() {
//
uni.navigateTo({
url: '/pages/news/user/withdrawal?balance=' + this.infor.pay_money
url: '/pages/news/user/withdrawal?balance=' + this.infor.withdrawal_money
})
},
cashOutList() {

@ -686,7 +686,7 @@
.priceName {
margin-left: 40upx;
flex: 1;
.title {
display: -webkit-box;
-webkit-line-clamp: 2;

@ -285,7 +285,10 @@
},
onLoad(option) {
this.order_id = JSON.parse(option.item).order_id
this.getOrderDetail(this.order_id)
},
onShow() {
this.getOrderDetail(this.order_id)
},
methods: {
//

@ -440,7 +440,7 @@
onShareAppMessage(res) {
return {
title: this.Store.storeInfo.store_name,
path: "/pages/order/detail?orderId=" + this.orderId, //
path: "/pages/index/index", //
imageUrl: this.Store.storeInfo.image_url,
success: function(res) {
//
@ -537,6 +537,7 @@
}
app.order = result.data.order
app.isLoading = false
app.menushow = false
})
// :
canReset && uni.$emit('syncRefresh', true, true)

@ -21,7 +21,7 @@
@change="onChangeTab" /> -->
<!-- 订单列表 -->
<view class="order-list">
<view class="item" v-for="(item,index) in list" v-if="list.length>0">
<view class="item" v-for="(item,index) in list" :key="index" v-if="list.length>0">
<view class="hd">
<view class="a">
<image class="icon" v-if="item.storeInfo && item.storeInfo.image_url"
@ -259,22 +259,21 @@
this.getOrderList();
}
},
methods: {
methods: {
handleOk() {
},
meKone() {
this.cdDia = false
},
confirm() {
//
this.list = []
app.getOrderList()
app.getOrderList(1)
},
changeMenu(index) {
this.list.forEach((item, ind) => {
if (ind == index) {
item.menushow = item.menushow == false ? true : false
} else {
item.menushow = false;
}
this.list.forEach((item, ind) => {
item.menushow = !item.menushow;
});
},
toggleImage() {
@ -307,7 +306,7 @@
});
if (status == 200) {
uni.hideLoading();
this.list = this.list.concat(data.list.data)
this.list = this.arrayUnique(this.list.concat(data.list.data),'order_id')
this.total = data.list.total
}
},
@ -320,7 +319,8 @@
//
onChangeTab(item, index) {
const app = this
app.list = []
app.list = []
app.pageNum = 1
//
app.current = index
if (index == 6) {
@ -345,8 +345,10 @@
.then(result => {
//
app.$toast(result.message)
//
app.onRefreshList()
//
app.list = []
app.pageNum = 1
app.getOrderList()
})
}
}
@ -367,7 +369,9 @@
//
app.$toast(result.message)
//
app.onRefreshList()
app.list = []
app.pageNum = 1
app.getOrderList()
})
}
}
@ -393,7 +397,9 @@
//
app.$success(result.message)
//
app.onRefreshList()
app.list = []
app.pageNum = 1
app.getOrderList()
})
}
}
@ -440,7 +446,16 @@
containsLetterMix(str, mix) {
return new RegExp(mix.split('').join('\\w*')).test(str)
},
//
//
arrayUnique(arr, name) {
    var hash = {};
    return arr.reduce(function (item, next) {
        hash[next[name]]
            ? ""
            : (hash[next[name]] = true && item.push(next));
        return item;
    }, []);
},
//
onLogistics(orderId, item) {
if (item.delivery) {

@ -140,7 +140,7 @@
}).then(res => {
if (res.data.length == 0) {
this.page = 1;
this.$toast('暂无其他搜索发现')
// this.$toast('')
} else {
this.page++;
this.searchFindList = res.data;

@ -6,7 +6,7 @@
<view class="section_1">
<view class="box_1">
<image :src="$picUrl+'/static/default-logo.png'" v-if="!isLogin || !userInfo.avatar_url" class="image_2"
@click="goLogin()"></image>
@click="goJump('/pages/news1/setting')"></image>
<image :src="userInfo.avatar_url" @click="goJump('/pages/news1/setting')" v-else class="image_2">
</image>
<view class="group_1">

@ -174,11 +174,12 @@
}, []);
},
tabItem(index, item) {
console.log(index)
this.tabIndex = index;
this.page = 1;
this.list = [];
this.$refs.uWaterfall1.clear();
this.category_id = index==-1?'':item.category_id
this.category_id = (index==-1? this.categoryList[this.tabIndex1].category_id:item.category_id)
this.getBrandList(this.category_id)
},
tabItem1(item, index) {

Loading…
Cancel
Save