diff --git a/api/product.js b/api/product.js
index 8140b48..ee62028 100644
--- a/api/product.js
+++ b/api/product.js
@@ -9,6 +9,17 @@
// +----------------------------------------------------------------------
import request from "@/utils/request.js";
+
+/**
+ * 商户类型列表
+ */
+export const intentionList = (data) => request.get('intention/detail', data)
+
+/**
+ * 商户类型申请
+ */
+export const shopTypeChange = (data) => request.post('intention/change', data)
+
/**
* 获取商品详情
*/
@@ -328,5 +339,4 @@ export function intention(data) {
*/
export function intentionbus(data) {
return request.post(`intention/business`, data);
-}
-
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index f4f5ac0..3a2a70e 100644
--- a/pages.json
+++ b/pages.json
@@ -1459,8 +1459,14 @@
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
- },
- {
+ }, {
+ "path": "shop_type_change/list",
+ "style": {
+ "navigationBarTitleText": "申请记录",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ }, {
"path": "addGood/addGood",
"style": {
"navigationBarTitleText": "商品设置",
diff --git a/pages/admin/orderList/index.vue b/pages/admin/orderList/index.vue
index 12f1385..a018b6e 100644
--- a/pages/admin/orderList/index.vue
+++ b/pages/admin/orderList/index.vue
@@ -50,7 +50,8 @@
-
+
@@ -96,12 +97,12 @@
- 云商品
+ 云商品
{{ item.activity_type == 1 ? '秒杀' : item.activity_type == 2 ? '预售' : item.activity_type == 3 ? '助力' : item.activity_type == 4 ? '拼团' : item.activity_type == 10 ? '套餐' :'' }}
-
- 订单号:{{ item.order_sn }}
- 下单时间:{{ item.create_time }}
+
+ 订单号:{{ item.order_sn }}
+ 下单时间:{{ item.create_time }}
{{item.refunding==1 ? '退款中' : item.refunding==2 ? '部分退款' : '全部退款'}}
@@ -120,9 +121,10 @@
{{ val.cart_info.productAttr.sku }}
-
- 商品条码: {{ val.cart_info.productAttr.product.bar_code }}
-
+
+ 商品条码: {{ val.cart_info.productAttr.product.bar_code }}
+
@@ -174,10 +176,12 @@
一键改价
订单备注
- 去发货
- 去发货
+
-
+
+
+
+
+ 送货人姓名
+
+
+
+
+
+ 送货人电话
+
+
+
+
+
+
+ 备注
+
+
+
+
+
+
+ 取消
+ 确认
+
-
-
-
+
+
+
@@ -260,7 +294,7 @@
},
data() {
return {
- showBar: false,
+ showBar: false,
current: "",
change: false,
refundMark: false,
@@ -271,7 +305,7 @@
status: 1,
search_info: '',
product_type: '',
- pay_time: null,
+ pay_time: null,
},
list: [],
loaded: false,
@@ -293,17 +327,17 @@
that.init();
}
},
-
+
},
onLoad(option) {
this.where.product_type = uni.getStorageSync("PRODUCT_TYPE") ?? ""
this.where.status = option.types
this.current = "";
this.merId = option.merId;
- if(option.pay_time){
- this.where.pay_time = option.pay_time;
- }
-
+ if (option.pay_time) {
+ this.where.pay_time = option.pay_time;
+ }
+
this.getIndex();
},
methods: {
@@ -312,13 +346,13 @@
this.popUpShow = false
},
- showBarCode(val){
- this.showBar = true
- this.$refs['code'].init({
- name: val.store_name,
- code: val.bar_code
- });
- },
+ showBarCode(val) {
+ this.showBar = true
+ this.$refs['code'].init({
+ name: val.store_name,
+ code: val.bar_code
+ });
+ },
//同意先货后款订单
tongyi(id, number) {
let data = {
@@ -342,14 +376,14 @@
},
handleSearch() {
this.loaded = false;
- this.where.page = 1;
- this.list = [];
+ this.where.page = 1;
+ this.list = [];
this.getIndex();
},
// 获取数据
getIndex() {
-
-
+
+
let that = this;
// console.log(that.merId)
if (that.loading || that.loaded) return;
@@ -402,12 +436,12 @@
if (val != 'verify') {
if (this.where.status != val) {
this.where.status = val;
- this.where.search_info=''
+ this.where.search_info = ''
delete this.where.is_verify;
this.init();
}
} else {
- this.where.search_info=''
+ this.where.search_info = ''
this.where.is_verify = 1;
delete this.where.status;
this.init();
@@ -477,6 +511,7 @@
}
})
},
+
//收件码
toPostagequ(item) {
this.popUpShow = true
@@ -486,7 +521,12 @@
this.payCodeUrl = res.data.qrcode
}
})
+
+
+
+
},
+
toPostage(item) {
let that = this;
if (item.refunding != 0) {
@@ -575,7 +615,7 @@
uni.navigateTo({
url: `/pages/admin/orderDetail/index?id=${item.order_id}&mer_id=${item.mer_id}`
})
-
+
},
toRefundDetail(item) {
uni.navigateTo({
@@ -590,6 +630,63 @@
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 893aabb..10a1c13 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -617,6 +617,10 @@
name: '收付明细',
type: 22,
image: require('@/static/images/index14.png')
+ }, {
+ name: '商户类型',
+ type: 23,
+ image: require('@/static/images/index14.png')
},
@@ -695,6 +699,10 @@
name: '收付明细',
type: 22,
image: require('@/static/images/index14.png')
+ }, {
+ name: '商户类型',
+ type: 23,
+ image: require('@/static/images/index14.png')
},
// {
// name: '全部',
@@ -741,6 +749,10 @@
name: '收付明细',
type: 22,
image: require('@/static/images/index14.png')
+ }, {
+ name: '商户类型',
+ type: 23,
+ image: require('@/static/images/index14.png')
},
{
name: '扫码付款',
@@ -1534,6 +1546,14 @@
url: '/pages/payment/payment_detail?mer_id=' + this.userInfoData.service.mer_id
})
break;
+
+ case 23:
+ if (this.userInfoData.mer_info.mer_settlement_agree_status == 0) Toast('暂无权限');
+ else uni.navigateTo({
+ url: '/pages/product/shop_type_change/index?mer_id=' + this.userInfoData
+ .service.mer_id
+ })
+ break;
case 17:
if (this.userInfoData.mer_info.mer_settlement_agree_status == 0) Toast('暂无权限');
else uni.navigateTo({
diff --git a/pages/payment/qrcode.vue b/pages/payment/qrcode.vue
index d3e1554..cd3a35f 100644
--- a/pages/payment/qrcode.vue
+++ b/pages/payment/qrcode.vue
@@ -44,7 +44,17 @@
qrcode({
mer_id: merid
}).then(res => {
- this.img = res.data.url;
+ if (!res.data.count || res.data.count == 0) {
+ this.$util.Tips({
+ title: "您还没有添加商品,请添加!"
+ }, () => {
+ uni.redirectTo({
+ url: "/pages/product/addGood/addGood?mer_id=" + merid
+ })
+ })
+ } else {
+ this.img = res.data.url;
+ }
})
},
@@ -112,12 +122,10 @@
}
.v-qrcode {
- position: absolute;
- top: 400rpx;
- left: 50%;
- transform: translateX(-50%);
width: 650rpx;
height: 650rpx;
+ margin-top: 100rpx;
+ margin: 100rpx auto 0;
background-color: #fff;
display: flex;
justify-content: center;
@@ -131,16 +139,12 @@
}
.v-btn {
- position: absolute;
- top: 1080rpx;
- left: 50%;
- transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
width: 690rpx;
height: 100rpx;
- margin: 0 auto;
+ margin: 70rpx auto 0;
text {
font-weight: 400;
diff --git a/pages/product/basicSet.vue b/pages/product/basicSet.vue
index 9bfcced..de670ae 100644
--- a/pages/product/basicSet.vue
+++ b/pages/product/basicSet.vue
@@ -80,13 +80,6 @@
建议尺寸:710*134px或710*460px(请根据平台要求选择尺寸,此图如未上传默认展示店铺背景图)
-
-
- 商户类型变更
-
- 类型变更
-
-
@@ -100,8 +93,7 @@
到店自提
- 商家配送
+ 商家配送
@@ -482,16 +474,6 @@
});
},
- // 商户类型变更
- changeType() {
- uni.navigateTo({
- url: "/pages/product/shop_type_change/index",
- fail(err) {
- console.log(err);
- }
- })
- },
-
seleckImage(i) {
let that = this;
that.$util.uploadImageOne('upload/image', function(res) {
diff --git a/pages/product/shop_type_change/index.vue b/pages/product/shop_type_change/index.vue
index 9d021b4..8462196 100644
--- a/pages/product/shop_type_change/index.vue
+++ b/pages/product/shop_type_change/index.vue
@@ -10,17 +10,22 @@
+
+ 申请记录
+
+
+
点击选择变更的商户类型
-
-
+
+
\ No newline at end of file
diff --git a/pages/product/shop_type_change/progress.vue b/pages/product/shop_type_change/progress.vue
index 0705067..e8b463c 100644
--- a/pages/product/shop_type_change/progress.vue
+++ b/pages/product/shop_type_change/progress.vue
@@ -124,7 +124,7 @@
.shop_type {
.shop_type-head {
background-color: #40AE36;
- margin-bottom: 70rpx;
+ margin-bottom: 40rpx;
.shop-type-navbar {
display: flex;
diff --git a/pages/store/home/index.vue b/pages/store/home/index.vue
index 96e6f1b..37f673c 100644
--- a/pages/store/home/index.vue
+++ b/pages/store/home/index.vue
@@ -1,11 +1,9 @@
-
-
@@ -1081,7 +1079,7 @@
this.isLihaiYun === 'Lihai' ? this.tabs = this.tabs4 : this.tabs = this.tabs3
} else {
this.tabs = this.tabs5
- this.type=7
+ this.type = 7
}
this.tab(this.type)
// #ifdef H5
diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue
index 20bb395..770fe43 100644
--- a/pages/users/order_confirm/index.vue
+++ b/pages/users/order_confirm/index.vue
@@ -8,10 +8,10 @@
{{addressInfo.phone}}
-
[默认]{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.street || ''}}
- {{typeof(addressInfo.brigade)=='string'?addressInfo.brigade:addressInfo.brigade.name }}{{addressInfo.detail}}
+ {{typeof(addressInfo.brigade)=='string'?addressInfo.brigade:addressInfo.brigade.name }}{{addressInfo.detail}}
配送方式
-
+
@@ -429,7 +429,7 @@
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
- // | Author: CRMEB Team
+ // | Author: CRMEB Team
// +----------------------------------------------------------------------
let app = getApp();
import {
@@ -1028,10 +1028,10 @@
takes: that.take,
use_coupon: that.subCoupon,
use_integral: that.use_integral,
- // source: 0
+ // source: 0
}).then(res => {
// 默认选中
- that.product_type=res.data.order_type
+ that.product_type = res.data.order_type
that.is_take = false
res.data.order.forEach(el => {
if (el.order.isTake == 1) that.is_take = true
@@ -1084,9 +1084,10 @@
that.order_key = res.data.key
that.cartArr[4].title =
`结算周期:${res.data.order[0].settle_cycle}天 日利率:${res.data.order[0].interest_rate}%`
-
- // 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)) {
+
+ // 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)) {
this.cartArr[4].payStatus = 1
} else {
this.cartArr[4].payStatus = 0
@@ -1104,7 +1105,7 @@
})
uni.hideLoading();
}).catch(err => {
- console.log('err', err);
+ console.log('err', err);
return this.$util.Tips({
title: err
}, {
@@ -1121,7 +1122,7 @@
if (that.addressId) {
getAddressDetail(that.addressId).then(res => {
res.data.is_default = parseInt(res.data.is_default);
-
+
that.addressInfo = res.data || {};
that.addressId = res.data.address_id || 0;
that.address.addressId = res.data.address_id || 0;
@@ -1129,12 +1130,12 @@
real_name: res.data.real_name,
phone: res.data.phone
}
-
+
this.$nextTick(() => {
this.getConfirm(that.addressId);
})
})
-
+
} else {
getAddressList().then(res => {
that.addressInfo = res.data.list.length > 0 ? res.data.list[0] : {};
@@ -1155,7 +1156,7 @@
let that = this;
let active = e;
that.active = active;
- // console.log(this.active);
+ // console.log(this.active);
that.animated = true;
that.payType = that.cartArr[active].value;
if (that.payType == 'weixin') {
@@ -1191,14 +1192,14 @@
that.address.address = true;
// that.pagesUrl = '/pages/users/user_address/index?cartId=' + this.cartId + '&pinkId=' + this
// .pinkId + '&couponId=' + this.couponId;
- that.pagesUrl = '/pages/users/user_address_list/index'
+ that.pagesUrl = '/pages/users/user_address_list/index'
} else {
// uni.navigateTo({
// url: `/pages/users/user_address/index?cartId=${this.cartId}`,
// });
- uni.navigateTo({
- url: `pages/users/user_address_list/index`,
- });
+ uni.navigateTo({
+ url: `pages/users/user_address_list/index`,
+ });
}
},
/**
@@ -1308,7 +1309,7 @@
});
},
fail: (e) => {
- console.log(e,'111111111')
+ console.log(e, '111111111')
// 暂不跳转
let url = '/pages/order_pay_status/index?order_id=' + orderId +
'&msg=取消支付' + '&product_type=' + that.product_type;
@@ -1320,7 +1321,7 @@
});
},
complete: (res) => {
- uni.hideLoading();
+ uni.hideLoading();
// 暂不跳转
// let url = '/pages/order_pay_status/index?order_id=' + orderId +
// '&msg=取消支付' + '&product_type=' + that.product_type;
@@ -1634,6 +1635,10 @@
// return
// }
+
+ //支付密码 balance 余额支付
+
+
uni.showLoading({
title: '订单支付中',
mask: true
@@ -2124,7 +2129,7 @@
bottom: 0;
left: 0;
z-index: 30;
-
+
.footer_count {
font-size: 28rpx;
@@ -2161,7 +2166,7 @@
border-radius: 50rpx;
text-align: center;
line-height: 70rpx;
- flex-shrink: 0;
+ flex-shrink: 0;
&.disabled {
background-color: #cccccc;
diff --git a/pages/users/user_info/index.vue b/pages/users/user_info/index.vue
index 961ba2f..365c231 100644
--- a/pages/users/user_info/index.vue
+++ b/pages/users/user_info/index.vue
@@ -1,599 +1,621 @@
-
-
-
-
+
+
+ 当前版本
+
+
+
+
+
+
+
+ 退出登录
+
+
+
+ 退出登录
+
+
+
+
+
+
\ No newline at end of file