diff --git a/api/address.js b/api/address.js
index c646854..976740c 100644
--- a/api/address.js
+++ b/api/address.js
@@ -50,4 +50,8 @@ export const remove = (addressId) => {
// 收货地址智能解析
export const analysis = (content) => {
return request.get(api.analysis, { content })
+}
+// 省市区
+export const province = (param) => {
+ return request.get('region/tree', param)
}
\ No newline at end of file
diff --git a/pages/invoice/index.vue b/pages/invoice/index.vue
index 2654252..123c5fc 100644
--- a/pages/invoice/index.vue
+++ b/pages/invoice/index.vue
@@ -29,7 +29,6 @@
+添加发票抬头
- 暂无相关信息
diff --git a/pages/news/goods/batchdel.vue b/pages/news/goods/batchdel.vue
index f204f48..e75eae0 100644
--- a/pages/news/goods/batchdel.vue
+++ b/pages/news/goods/batchdel.vue
@@ -116,7 +116,15 @@
}
-
diff --git a/pages/news/goods/classify.vue b/pages/news/goods/classify.vue
index 5407be0..1df0bfa 100644
--- a/pages/news/goods/classify.vue
+++ b/pages/news/goods/classify.vue
@@ -1,205 +1,291 @@
-
+
- 分类名称
-
- 请选择分类名称
+ 商品名称*
+
+
- 商品分类
-
- 顶级分类
+ 商品分类*
+
+
+ {{form.goods_class}}
-
+
分类照片*
-
+
-
+
上传图片
- 1/8
-
- 状态
-
+
+
+ 状态
+
+
+
+
+
+
用户端是否显示
-
- 排序*
- 1
+
+ 排序*
+
+
+
- 确认
+ 确认
-
-
-
-
-
-
diff --git a/pages/news/goods/list.vue b/pages/news/goods/list.vue
index 971d073..6dfb14c 100644
--- a/pages/news/goods/list.vue
+++ b/pages/news/goods/list.vue
@@ -1,11 +1,10 @@
-
+
-
-
-
-
+
+
+
@@ -31,32 +30,32 @@
商品状态:{{i.status==10?'上架':i.status==20?'下架':'未知'}}
-
-
-
-
+
+
+
+
-
-
diff --git a/pages/news/goods/oneGrounding.vue b/pages/news/goods/oneGrounding.vue
index 007c888..f6616e9 100644
--- a/pages/news/goods/oneGrounding.vue
+++ b/pages/news/goods/oneGrounding.vue
@@ -1,29 +1,33 @@
-
+
-
-
- 一键获取
-
+
商品名称*
- 元
+ 元
商品分类
- 请选择商品分类
+ 请选择商品分类
+
- 商品照片*最多上传100张
+ 商品照片*
+ 最多上传100张
+
-
+
-
+
上传图片
@@ -31,12 +35,17 @@
- 商品详情*
+ 商品详情*
+
+
+
+
-
+
-
+
上传图片
@@ -46,20 +55,23 @@
商品素材*
-
+
-
+
上传图片
-
+
- 多规格
+ 多规格
+
最多添加3个商品规格组,生成SKU数量不能超出50个
@@ -67,264 +79,480 @@
商品价格*
- 元
+ 元
商品原价
- 元
+ 元
商品库存*
- 件
+ 件
商品重量*
- kg
+ kg
配送方式*
-
- 请选择配送方式
+
+
+
+ {{from.delivery_name?from.delivery_name:'请选择配送方式'}}
+
+
运费模版*
-
- 全国包邮(除偏远地区)
+
+
+
+ {{from.template_name?from.template_name:'请选择运费模版'}}
+
+
销售状态*
-
+
- 确认
+ 确认
-
+
- 新增分类
+
+ 新增分类
+
商品分类
- 数码
- 食品
- 服饰鞋包
- 家居百货
- 美妆/个户
- 家居百货
- 美妆/个户
- 食品
- 服饰鞋包
- 家居百货
- 美妆/个户
+
+ 数码
+
+
+ 食品
+
+
+ 服饰鞋包
+
+
+ 家居百货
+
+
+ 美妆/个户
+
+
+ 家居百货
+
+
+ 美妆/个户
+
+
+ 食品
+
+
+ 服饰鞋包
+
+
+ 家居百货
+
+
+ 美妆/个户
+
- 水产肉类/新鲜水果
-
-
-
-
- 配送方式
-
-
- 物流
+
+ 水产肉类/新鲜水果
+
-
- 运费模板
-
-
- 物流
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/news/park/addressEdit.vue b/pages/news/park/addressEdit.vue
index b4ed740..8f41c60 100644
--- a/pages/news/park/addressEdit.vue
+++ b/pages/news/park/addressEdit.vue
@@ -16,9 +16,12 @@
所属城市
-
- {{cityInfo.province}}{{cityInfo.city}}{{cityInfo.area}}
+
+
+ {{cityInfo?cityInfo.province+cityInfo.city+cityInfo.area:'请选择省市区'}}
+
+
@@ -32,8 +35,8 @@
设为默认收货地址
-
+
+
@@ -49,8 +52,6 @@
data() {
return {
type: 'add',
- array: [],
- index: 0,
checked: false,
value: "",
cityInfo: {
@@ -67,12 +68,15 @@
},
addressDetail: null,
addressId: '',
+ multiIndex: [0, 0, 0],
+ multiArray: [],
+ multiData: []
};
},
onLoad(optios) {
+ console.log(JSON.parse(optios.addressDetail))
if (optios.addressDetail) {
this.type = 'edit'
-
this.addressDetail = JSON.parse(optios.addressDetail);
this.addressId = this.addressDetail.address_id
this.cityInfo.province = this.addressDetail.region.province;
@@ -92,21 +96,62 @@
}];
this.form.detail = this.addressDetail.detail;
}
+ this.getProvinceAll()
},
methods: {
+ async getProvinceAll() {
+ let {
+ status,
+ message,
+ data
+ } = await AddressApi.province();
+ if (status == 200) {
+ this.multiData = data.list;
+ var multiIndex = this.multiIndex;
+ this.multiArray = [
+ this.multiData,
+ this.multiData[0].children,
+ this.multiData[0].children[0].children
+ ]
+ }
+ },
+ // 获取多列的索引
+ multiChange: function(e) {
+ // console.log(e);
+ var _this = this;
+ var multiIndex = e.detail.value;
+ console.log(multiIndex);
+ this.multiIndex = multiIndex;
+
+ },
+
+ // 选择列
+ columnChange: function(e) {
+ // console.log(e);
+ var _this = this;
+ var multiData = _this.multiData;
+ var multiIndex = _this.multiIndex;
+ var columnIndex = e.detail.column;
+ var columnValue = e.detail.value;
+ multiIndex[columnIndex] = columnValue;
+ this.multiArray = [
+ multiData,
+ multiData[multiIndex[0]].children,
+ multiData[multiIndex[0]].children[multiIndex[1]].children,]
+ },
bindCityChange(e) {
this.cityInfo.province = e.detail.value[0];
this.cityInfo.city = e.detail.value[1];
this.cityInfo.area = e.detail.value[2];
- this.form.region = e.detail.code;
+ this.form.region = e.detail.id;
this.form.region = [{
- value: e.detail.code[0],
+ value: e.detail.id[0],
label: e.detail.value[0]
}, {
- value: e.detail.code[1],
+ value: e.detail.id[1],
label: e.detail.value[1]
}, {
- value: e.detail.code[2],
+ value: e.detail.id[2],
label: e.detail.value[2]
}];
},
@@ -121,6 +166,9 @@
}
if (that.form.region == []) {
return that.$toast('请选择所属地市')
+ }
+ let parame = {
+
}
AddressApi.add(that.form)
.then(result => {
@@ -146,8 +194,9 @@
if (that.form.region == []) {
return that.$toast('请选择所属地市')
}
- AddressApi.edit(that.form)
+ AddressApi.edit(that.addressId, that.form)
.then(result => {
+ return
that.$toast(result.message)
setTimeout(() => {
uni.navigateBack()
@@ -275,4 +324,68 @@
}
}
}
-
\ No newline at end of file
+
+ .list {
+ // border-bottom: 1rpx solid #eee;
+ padding: 0 0 0 18rpx;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
+ position: relative;
+
+ .picker {
+ height: 92rpx;
+ width: 33%;
+
+ .pbox {
+ width: 100%;
+ height: 92rpx;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
+ color: #808080;
+
+ view {
+ width: 100%;
+ text-align: right;
+ }
+
+ .icon-you {
+ font-size: 28rpx;
+ }
+ }
+
+ .pbox_hover {
+ color: #383838;
+ }
+
+ }
+
+ .name {
+ width: 168rpx;
+ font-size: 32rpx;
+ color: #383838;
+ }
+
+ .icon-you {
+ font-size: 28rpx;
+ color: #999999;
+ }
+
+ .input {
+ flex: 1;
+ height: 100%;
+ line-height: 92rpx;
+ color: #9080A1;
+ }
+
+ .textarea {
+ flex: 1;
+ height: 100%;
+ color: #A9A9A9;
+ }
+ }
+
diff --git a/pages/news1/MerchantSettlement.vue b/pages/news1/MerchantSettlement.vue
index 902c856..b3bc730 100644
--- a/pages/news1/MerchantSettlement.vue
+++ b/pages/news1/MerchantSettlement.vue
@@ -342,61 +342,101 @@ export default {
})
.finally()
},
+ onShowToast(t) {
+ uni.showToast({
+ title: t,
+ icon: 'none',
+ duration: 2000
+ })
+ },
sureSubmit() {
let tip_title = null
if (!this.form.store_name) {
- tip_title = '请输入主体公司名称!'
+ this.onShowToast('请输入主体公司名称!')
+ return
}
if (!this.form.store_cat) {
tip_title = '请选择主营类目体类目!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.form.store_address) {
tip_title = '请选择公司地址!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.form.store_brand) {
tip_title = '请输入合作品牌!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.brand_name) {
tip_title = '请选择代理入驻!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.authorize_name) {
tip_title = '请选择一二级授权!'
}
if (!this.rate_name) {
tip_title = '请选择可否含税!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.form.user_name) {
tip_title = '请输入联系人姓名!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.form.user_position) {
tip_title = '请选择联系人职位!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.form.user_mobile) {
tip_title = '请输入联系人手机号!'
+ this.onShowToast(tip_title)
+ return
}
if (this.form.user_mobile && (!/^\+?\d[\d -]{8,12}\d/.test(this.form.user_mobile))) {
tip_title = '手机号格式不正确!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.form.user_wx) {
tip_title = '请输入联系人微信!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.form.user_email) {
tip_title = '请输入联系人邮箱!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.form.store_model) {
tip_title = '请选择仓库模式!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.send_name) {
tip_title = '请选择周末是否发货!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.factory_name) {
tip_title = '请选择是否自有工厂!'
+ this.onShowToast(tip_title)
+ return
}
if (!this.offline_name) {
tip_title = '请选择是否有线下渠道'
+ this.onShowToast(tip_title)
+ return
}
if (!this.shop_name) {
tip_title = '请选择是否有电商店铺!'
+ this.onShowToast(tip_title)
+ return
}
let plat_form = []
this.btnList.map(item => {
@@ -407,19 +447,21 @@ export default {
this.form.store_type = plat_form
if (plat_form.length == 0 && this.form.has_online_shop == 1) {
tip_title = '请选择电商平台!'
- }
- if (tip_title != null) {
- uni.showToast({
- title: tip_title,
- icon: 'none',
- duration: 2000
- })
+ this.onShowToast(tip_title)
return
}
help.joinStore(this.form)
.then(res => {
if (res.status) {
this.popShow = true
+ this.form = this.$options.data().form
+ this.send_name = ''
+ this.factory_name = ''
+ this.offline_name = ''
+ this.shop_name = ''
+ this.btnList.map(item => {
+ item.active = false
+ })
} else {
uni.showToast({
title: '入驻失败',
@@ -429,14 +471,6 @@ export default {
}
})
.finally(() => {
- this.form = this.$options.data().form
- this.send_name = ''
- this.factory_name = ''
- this.offline_name = ''
- this.shop_name = ''
- this.btnList.map(item => {
- item.active = false
- })
})
},
}
diff --git a/pages/news1/feedback.vue b/pages/news1/feedback.vue
index 36d083b..0a2f103 100644
--- a/pages/news1/feedback.vue
+++ b/pages/news1/feedback.vue
@@ -1,61 +1,59 @@
-
+
我要反馈
-
+
反馈公示
-
+
我的反馈
-
+
-
+
- {{item.name}}
+ {{ item.name }}
-
+
- {{item.name}}
+ {{ item.name }}
-
+
-
+
-
-
-
-
+
+
-
-
+
+
@@ -68,504 +66,533 @@
提交
-
-
+
+
-
- 待处理
- 已完成
-
- 投诉
- 建议
- 表扬
+ 投诉
+ 建议
+ 表扬
- {{item.store_name}}
+ {{ item.shop_name }}
+
+
+ 待处理
+ 已完成
-
-
+
+
+
- {{item.created_at}}
+ {{ item.created_at }}
-
-
-
- {{item.replay_at}}
+
+
+
+ {{ item.replay_at }}
-
- {{item.content}}
+
+ {{ item.content }}
-
-
-
-
-
-
-
-
-
-
- {{item.replay_at}}
-
-
- {{item.content}}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ {{ item.replay_at }}
+
+
+ {{ item.content }}
+
+
+
+
-
-
+
+
+
+
+ 还没有反馈内容
+
diff --git a/pages/news1/setting.vue b/pages/news1/setting.vue
index 2b4a803..e89ccbc 100644
--- a/pages/news1/setting.vue
+++ b/pages/news1/setting.vue
@@ -172,8 +172,8 @@ export default {
},
onOut() {
uni.showModal({
- title: '友情提示',
- content: '确认要注销吗?',
+ title: '您是否要注销账号?',
+ content: '',
success(o) {
if (o.confirm) {
uni.removeStorage('token');
diff --git a/pages/news3/ManualEntry.vue b/pages/news3/ManualEntry.vue
index 9867d52..c21dc5a 100644
--- a/pages/news3/ManualEntry.vue
+++ b/pages/news3/ManualEntry.vue
@@ -62,8 +62,8 @@
转账记录最多上传6张
-
+
@@ -76,8 +76,8 @@
聊天记录最多上传6张
-
+
@@ -87,9 +87,6 @@
-
提交
@@ -318,6 +315,20 @@
}
}
},
+ transferRemove(file, fileList) {
+ this.form.transfer_image_id = this.handleRemove(file, fileList);
+ },
+ handleRemove: function(file, fileList) {
+ let idList = []
+ fileList.forEach(item => {
+ idList.push(item.response.data.fileInfo.file_id)
+ });
+ return idList.join(',')
+
+ },
+ chatRemove(file, fileList) {
+ this.form.transfer_image_id = this.handleRemove(file, fileList);
+ },
//接受上传返回的数据
chatSuccess(list) {
if (list.length > 0) {