This commit is contained in:
DESKTOP-GMUNQ1B\k 2024-03-21 11:20:37 +08:00
parent 6a2a0778b4
commit 0a4bfff2df
6 changed files with 211 additions and 99 deletions

View File

@ -9,8 +9,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from "@/utils/request.js"; import request from "@/utils/request.js";
/** /**
* 获取商品详情 * 商户类型列表
*/
export const intentionList = (data) => request.get('intention/detail', data)
/**
* 商户类型申请
*/ */
export const shopTypeChange = (data) => request.post('intention/change', data) export const shopTypeChange = (data) => request.post('intention/change', data)

View File

@ -50,7 +50,8 @@
<view v-if="val.product" class="goods acea-row row-between-wrapper"> <view v-if="val.product" class="goods acea-row row-between-wrapper">
<view class="picTxt acea-row row-between-wrapper"> <view class="picTxt acea-row row-between-wrapper">
<view class="pictrue"> <view class="pictrue">
<image :src="val.product.cart_info.productAttr.image||val.product.cart_info.product.image" /> <image
:src="val.product.cart_info.productAttr.image||val.product.cart_info.product.image" />
</view> </view>
<view class="text acea-row row-between row-column"> <view class="text acea-row row-between row-column">
<view class="info line1 refund-info"> <view class="info line1 refund-info">
@ -100,8 +101,8 @@
<text v-else-if="item.activity_type != 0" class="activity_type"> <text v-else-if="item.activity_type != 0" class="activity_type">
{{ item.activity_type == 1 ? '秒杀' : item.activity_type == 2 ? '预售' : item.activity_type == 3 ? '助力' : item.activity_type == 4 ? '拼团' : item.activity_type == 10 ? '套餐' :'' }} {{ item.activity_type == 1 ? '秒杀' : item.activity_type == 2 ? '预售' : item.activity_type == 3 ? '助力' : item.activity_type == 4 ? '拼团' : item.activity_type == 10 ? '套餐' :'' }}
</text> </text>
订单号{{ item.order_sn }} 订单号{{ item.order_sn }}
<text class="time">下单时间{{ item.create_time }}</text> <text class="time">下单时间{{ item.create_time }}</text>
<text class="order-status" <text class="order-status"
v-if="item.refunding != 0 && where.status != 1">{{item.refunding==1 ? '退款中' : item.refunding==2 ? '部分退款' : '全部退款'}}</text> v-if="item.refunding != 0 && where.status != 1">{{item.refunding==1 ? '退款中' : item.refunding==2 ? '部分退款' : '全部退款'}}</text>
</view> </view>
@ -120,9 +121,10 @@
<view class="attr" v-if="val.cart_info.productAttr.sku"> <view class="attr" v-if="val.cart_info.productAttr.sku">
{{ val.cart_info.productAttr.sku }} {{ val.cart_info.productAttr.sku }}
</view> </view>
<view class="attr" @click.stop="showBarCode(val.cart_info.productAttr.product)" v-if="val.cart_info.productAttr.product&&val.cart_info.productAttr.product.bar_code"> <view class="attr" @click.stop="showBarCode(val.cart_info.productAttr.product)"
商品条码: {{ val.cart_info.productAttr.product.bar_code }} v-if="val.cart_info.productAttr.product&&val.cart_info.productAttr.product.bar_code">
</view> 商品条码: {{ val.cart_info.productAttr.product.bar_code }}
</view>
</view> </view>
</view> </view>
<view class="money"> <view class="money">
@ -174,10 +176,12 @@
一键改价 一键改价
</view> </view>
<view class="bnt" @click="modify(item, 1)">订单备注</view> <view class="bnt" @click="modify(item, 1)">订单备注</view>
<view class="bnt bnt_color" v-if="where.status == 2 && item.order_type == 0&&(item.activity_type==98||item.activity_type==99)" <view class="bnt bnt_color"
v-if="where.status == 2 && item.order_type == 0&&(item.activity_type==98||item.activity_type==99)"
@click="toPostage(item)">去发货 @click="toPostage(item)">去发货
</view> </view>
<view class="bnt bnt_color" v-if="where.status == 2 && item.order_type == 0&& item.order_type !=1 &&item.activity_type==0" <view class="bnt bnt_color"
v-if="where.status == 2 && item.order_type == 0&& item.order_type !=1 &&item.activity_type==0"
@click="toPostagequ(item)">去发货 @click="toPostagequ(item)">去发货
</view> </view>
<view class="bnt bnt_color" <view class="bnt bnt_color"
@ -209,18 +213,48 @@
</view> </view>
<view class="mask" @touchmove.prevent v-show="refundMark === true"></view> <view class="mask" @touchmove.prevent v-show="refundMark === true"></view>
</view> </view>
<u-popup :show="popUpShow" mode="center" :closeOnClickOverlay="true" round="12" @close="popUpClose"> <u-popup :show="popUpShow" mode="center" :closeOnClickOverlay="true" round="12" @close="popUpClose">
<view style="text-align: center;margin-top: 30rpx;"> <!-- <view style="text-align: center;margin-top: 30rpx;">
请把二维码展示给取货人员 请把二维码展示给取货人员
</view> </view>
<view style="padding: 28.07rpx;"> <view style="padding: 28.07rpx;">
<image :src="payCodeUrl" style="width:400rpx;height: 400rpx;"></image> <image :src="payCodeUrl" style="width:400rpx;height: 400rpx;"></image>
</view> -->
<view class="form">
<view class="form-item">
<view class="form-item-label">送货人姓名</view>
<view class="form-item-val">
<u-input placeholder="请输入送货人姓名" placeholderStyle="color:#999;font-size:26rpx;"
border="surround"></u-input>
</view>
</view>
<view class="form-item">
<view class="form-item-label">送货人电话</view>
<view class="form-item-val">
<u-input placeholder="请输入送货人电话" placeholderStyle="color:#999;font-size:26rpx;"
border="surround"></u-input>
</view>
</view>
<view class="form-item">
<view class="form-item-label">备注</view>
<view class="form-item-val">
<u-input placeholder="请输入备注" placeholderStyle="color:#999;font-size:26rpx;"></u-input>
</view>
</view>
<view class="form-btn">
<view class="form-btn-cancel" @click="popUpShow = false">取消</view>
<view class="form-btn-confirm">确认</view>
</view>
</view> </view>
</u-popup> </u-popup>
<view class="bar-code" v-show="showBar" @click="showBar=false"> <view class="bar-code" v-show="showBar" @click="showBar=false">
<barcode ref="code"></barcode> <barcode ref="code"></barcode>
</view> </view>
</view> </view>
</template> </template>
@ -260,7 +294,7 @@
}, },
data() { data() {
return { return {
showBar: false, showBar: false,
current: "", current: "",
change: false, change: false,
refundMark: false, refundMark: false,
@ -271,7 +305,7 @@
status: 1, status: 1,
search_info: '', search_info: '',
product_type: '', product_type: '',
pay_time: null, pay_time: null,
}, },
list: [], list: [],
loaded: false, loaded: false,
@ -300,9 +334,9 @@
this.where.status = option.types this.where.status = option.types
this.current = ""; this.current = "";
this.merId = option.merId; this.merId = option.merId;
if(option.pay_time){ if (option.pay_time) {
this.where.pay_time = option.pay_time; this.where.pay_time = option.pay_time;
} }
this.getIndex(); this.getIndex();
}, },
@ -312,13 +346,13 @@
this.popUpShow = false this.popUpShow = false
}, },
showBarCode(val){ showBarCode(val) {
this.showBar = true this.showBar = true
this.$refs['code'].init({ this.$refs['code'].init({
name: val.store_name, name: val.store_name,
code: val.bar_code code: val.bar_code
}); });
}, },
// //
tongyi(id, number) { tongyi(id, number) {
let data = { let data = {
@ -342,8 +376,8 @@
}, },
handleSearch() { handleSearch() {
this.loaded = false; this.loaded = false;
this.where.page = 1; this.where.page = 1;
this.list = []; this.list = [];
this.getIndex(); this.getIndex();
}, },
// //
@ -402,12 +436,12 @@
if (val != 'verify') { if (val != 'verify') {
if (this.where.status != val) { if (this.where.status != val) {
this.where.status = val; this.where.status = val;
this.where.search_info='' this.where.search_info = ''
delete this.where.is_verify; delete this.where.is_verify;
this.init(); this.init();
} }
} else { } else {
this.where.search_info='' this.where.search_info = ''
this.where.is_verify = 1; this.where.is_verify = 1;
delete this.where.status; delete this.where.status;
this.init(); this.init();
@ -477,6 +511,7 @@
} }
}) })
}, },
// //
toPostagequ(item) { toPostagequ(item) {
this.popUpShow = true this.popUpShow = true
@ -486,7 +521,12 @@
this.payCodeUrl = res.data.qrcode this.payCodeUrl = res.data.qrcode
} }
}) })
}, },
toPostage(item) { toPostage(item) {
let that = this; let that = this;
if (item.refunding != 0) { if (item.refunding != 0) {
@ -590,6 +630,63 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.form {
padding: 40rpx 60rpx;
.form-item {
display: flex;
align-items: center;
.form-item-label {
width: 140rpx;
font-size: 28rpx;
color: #333;
font-weight: bold;
margin-right: 20rpx;
}
.form-item-val {
flex: 1;
}
}
.form-btn {
display: flex;
justify-content: center;
margin-top: 50rpx;
.form-btn-cancel {
width: 83px;
height: 60rpx;
line-height: 60rpx;
border-radius: 30rpx;
text-align: center;
color: #2291F8;
border: 2rpx solid #2291F8;
margin-right: 40rpx;
}
.form-btn-confirm {
width: 83px;
height: 60rpx;
line-height: 60rpx;
background: linear-gradient(90deg, #2291F8 0%, #1CD1DC 100%);
border-radius: 30rpx;
text-align: center;
color: #fff;
font-size: 28rpx;
}
.form-btn-cancel:active {
background: rgba(209, 220, 255, .3);
}
.form-btn-confirm:active {
opacity: .8;
}
}
}
.pos-order-list .top-header { .pos-order-list .top-header {
position: fixed; position: fixed;
top: 0; top: 0;
@ -1017,25 +1114,27 @@
flex: 1; flex: 1;
} }
} }
.bar-code{
position: fixed; .bar-code {
top: 0; position: fixed;
left: 0; top: 0;
z-index: 999999; left: 0;
width: 100vw; z-index: 999999;
height: 100vh; width: 100vw;
background-color: rgba(0,0,0,0.2); height: 100vh;
display: flex; background-color: rgba(0, 0, 0, 0.2);
align-items: center; display: flex;
justify-content: center; align-items: center;
} justify-content: center;
.cloud-tag{ }
font-size: 20rpx;
padding: 2rpx 5rpx; .cloud-tag {
font-weight: 400; font-size: 20rpx;
background-color: #ff4c3c; padding: 2rpx 5rpx;
border-radius: 8rpx; font-weight: 400;
margin-right: 6rpx; background-color: #ff4c3c;
color: #fff; border-radius: 8rpx;
} margin-right: 6rpx;
color: #fff;
}
</style> </style>

View File

@ -80,13 +80,6 @@
<view>建议尺寸:710*134px或710*460px(请根据平台要求选择尺寸此图如未上传默认展示店铺背景图)</view> <view>建议尺寸:710*134px或710*460px(请根据平台要求选择尺寸此图如未上传默认展示店铺背景图)</view>
</view> </view>
</view> </view>
<view class="street_bg">
<view class="text flex_a_c"> <i class="iconfont icon-xinghao"></i> 商户类型变更</view>
<view class="street_img flex_a_c" @click="changeType">
类型变更
</view>
</view>
</view> </view>
<view class="basice_item"> <view class="basice_item">
@ -100,8 +93,7 @@
<checkbox-group name="" @change="checkboxChange"> <checkbox-group name="" @change="checkboxChange">
<checkbox disabled :checked="isZiti" :value="check.ziti" /><text <checkbox disabled :checked="isZiti" :value="check.ziti" /><text
class="text ziti">到店自提</text> class="text ziti">到店自提</text>
<checkbox :checked="isKuaidi" :value="check.kuaidi" /><text <checkbox :checked="isKuaidi" :value="check.kuaidi" /><text class="text">商家配送</text>
class="text">商家配送</text>
</checkbox-group> </checkbox-group>
</view> </view>
</view> </view>
@ -482,16 +474,6 @@
}); });
}, },
//
changeType() {
uni.navigateTo({
url: "/pages/product/shop_type_change/index",
fail(err) {
console.log(err);
}
})
},
seleckImage(i) { seleckImage(i) {
let that = this; let that = this;
that.$util.uploadImageOne('upload/image', function(res) { that.$util.uploadImageOne('upload/image', function(res) {

View File

@ -90,9 +90,12 @@
title: res.message title: res.message
}, () => { }, () => {
uni.navigateTo({ uni.navigateTo({
url: "/pages/product/shop_type_change/progress", url: "/pages/product/shop_type_change/list",
fail(err) { fail(err) {
console.log(err); console.log(err);
},
success(res) {
} }
}) })
}) })

View File

@ -45,12 +45,29 @@
</template> </template>
<script> <script>
import {
intentionList
} from "@/api/product.js";
export default { export default {
data() {
return {
list: []
}
},
onLoad() {
this.getData();
},
methods: { methods: {
hanldeTo() { hanldeTo() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/product/shop_type_change/progress" url: "/pages/product/shop_type_change/progress"
}) })
},
getData() {
intentionList().then(res => {
this.list = res.data;
})
} }
} }
} }

View File

@ -8,10 +8,10 @@
<text class='phone'>{{addressInfo.phone}}</text> <text class='phone'>{{addressInfo.phone}}</text>
</view> </view>
<view> <view>
<text class='default t-color' <text class='default t-color'
v-if="addressInfo.is_default">[默认]</text>{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.street || ''}} v-if="addressInfo.is_default">[默认]</text>{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.street || ''}}
<text v-if='addressInfo.brigade'>{{typeof(addressInfo.brigade)=='string'?addressInfo.brigade:addressInfo.brigade.name }}{{addressInfo.detail}}</text> <text
v-if='addressInfo.brigade'>{{typeof(addressInfo.brigade)=='string'?addressInfo.brigade:addressInfo.brigade.name }}{{addressInfo.detail}}</text>
</view> </view>
</view> </view>
<navigator v-else :url="'/pages/users/user_address/index?cartId='+cartId" hover-class="none" <navigator v-else :url="'/pages/users/user_address/index?cartId='+cartId" hover-class="none"
@ -1028,10 +1028,10 @@
takes: that.take, takes: that.take,
use_coupon: that.subCoupon, use_coupon: that.subCoupon,
use_integral: that.use_integral, use_integral: that.use_integral,
// source: 0 // source: 0
}).then(res => { }).then(res => {
// //
that.product_type=res.data.order_type that.product_type = res.data.order_type
that.is_take = false that.is_take = false
res.data.order.forEach(el => { res.data.order.forEach(el => {
if (el.order.isTake == 1) that.is_take = true if (el.order.isTake == 1) that.is_take = true
@ -1085,8 +1085,9 @@
that.cartArr[4].title = that.cartArr[4].title =
`结算周期:${res.data.order[0].settle_cycle}天 日利率:${res.data.order[0].interest_rate}%` `结算周期:${res.data.order[0].settle_cycle}天 日利率:${res.data.order[0].interest_rate}%`
// console.log(res.data); // console.log(res.data);
if (res.data.order[0].credit_buy == 1 && (this.type_id == 12||this.type_id == 10||this.type_id == 17) && (res.data.order_type==99||res.data.order_type==98)) { if (res.data.order[0].credit_buy == 1 && (this.type_id == 12 || this.type_id == 10 || this
.type_id == 17) && (res.data.order_type == 99 || res.data.order_type == 98)) {
this.cartArr[4].payStatus = 1 this.cartArr[4].payStatus = 1
} else { } else {
this.cartArr[4].payStatus = 0 this.cartArr[4].payStatus = 0
@ -1104,7 +1105,7 @@
}) })
uni.hideLoading(); uni.hideLoading();
}).catch(err => { }).catch(err => {
console.log('err', err); console.log('err', err);
return this.$util.Tips({ return this.$util.Tips({
title: err title: err
}, { }, {
@ -1155,7 +1156,7 @@
let that = this; let that = this;
let active = e; let active = e;
that.active = active; that.active = active;
// console.log(this.active); // console.log(this.active);
that.animated = true; that.animated = true;
that.payType = that.cartArr[active].value; that.payType = that.cartArr[active].value;
if (that.payType == 'weixin') { if (that.payType == 'weixin') {
@ -1191,14 +1192,14 @@
that.address.address = true; that.address.address = true;
// that.pagesUrl = '/pages/users/user_address/index?cartId=' + this.cartId + '&pinkId=' + this // that.pagesUrl = '/pages/users/user_address/index?cartId=' + this.cartId + '&pinkId=' + this
// .pinkId + '&couponId=' + this.couponId; // .pinkId + '&couponId=' + this.couponId;
that.pagesUrl = '/pages/users/user_address_list/index' that.pagesUrl = '/pages/users/user_address_list/index'
} else { } else {
// uni.navigateTo({ // uni.navigateTo({
// url: `/pages/users/user_address/index?cartId=${this.cartId}`, // url: `/pages/users/user_address/index?cartId=${this.cartId}`,
// }); // });
uni.navigateTo({ uni.navigateTo({
url: `pages/users/user_address_list/index`, url: `pages/users/user_address_list/index`,
}); });
} }
}, },
/** /**
@ -1308,7 +1309,7 @@
}); });
}, },
fail: (e) => { fail: (e) => {
console.log(e,'111111111') console.log(e, '111111111')
// //
let url = '/pages/order_pay_status/index?order_id=' + orderId + let url = '/pages/order_pay_status/index?order_id=' + orderId +
'&msg=取消支付' + '&product_type=' + that.product_type; '&msg=取消支付' + '&product_type=' + that.product_type;
@ -1320,7 +1321,7 @@
}); });
}, },
complete: (res) => { complete: (res) => {
uni.hideLoading(); uni.hideLoading();
// //
// let url = '/pages/order_pay_status/index?order_id=' + orderId + // let url = '/pages/order_pay_status/index?order_id=' + orderId +
// '&msg=' + '&product_type=' + that.product_type; // '&msg=' + '&product_type=' + that.product_type;
@ -1634,6 +1635,10 @@
// return // return
// } // }
// balance
uni.showLoading({ uni.showLoading({
title: '订单支付中', title: '订单支付中',
mask: true mask: true
@ -2161,7 +2166,7 @@
border-radius: 50rpx; border-radius: 50rpx;
text-align: center; text-align: center;
line-height: 70rpx; line-height: 70rpx;
flex-shrink: 0; flex-shrink: 0;
&.disabled { &.disabled {
background-color: #cccccc; background-color: #cccccc;