diff --git a/App.vue b/App.vue index 1f3bbeb..4996cd9 100644 --- a/App.vue +++ b/App.vue @@ -76,8 +76,15 @@ onLaunch: function(option) { this.globalData.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'; this.globalData.uid = this.$store.state.app.uid; - - this.$store.dispatch('INIT_CONFIG'); + let appkey = uni.getStorage({ + key: 'launchFlag' + }) + if (appkey) { + setTimeout(() => { + this.$store.dispatch('INIT_CONFIG'); + }, 6000) + } + // #ifdef APP-PLUS //监听uni小程序发送的事件 @@ -204,10 +211,11 @@ - this.checknetwork() + }, onShow() { + let that = this // 记录H5和公众号 if (this.$store.state.app.token) { diff --git a/api/user.js b/api/user.js index 7b806ed..1f1fce7 100644 --- a/api/user.js +++ b/api/user.js @@ -9,6 +9,14 @@ // +---------------------------------------------------------------------- import request from "@/utils/request.js"; import Cache from '@/utils/cache' +/** + * 获取版本信息 + */ +export function Appversion(data) { + return request.get(`app/version`, data, { + noAuth: true + }); +} /** * 提交提现 */ diff --git a/config/app.js b/config/app.js index f6c51a7..f083eab 100644 --- a/config/app.js +++ b/config/app.js @@ -24,8 +24,8 @@ if (process.env.NODE_ENV === "development") { // httpApiThree = 'baseUrlTest' // h5跨域配置 // #endif } else if (process.env.NODE_ENV === 'production') { - httpApi = 'https://shop.lihaink.cn' // 生产 - //httpApi = "https://crmeb-test.shop.lihaink.cn" + // httpApi = 'https://shop.lihaink.cn' // 生产 + httpApi = "https://crmeb-test.shop.lihaink.cn" httpApiTwo = 'https://nk.lihaink.cn' // 生产 httpApiThree = 'http://ceshi-oa.lihaink.cn' //生产 } diff --git a/pages.json b/pages.json index e80f645..397cbbd 100644 --- a/pages.json +++ b/pages.json @@ -225,8 +225,9 @@ }, { "path": "goods_list/index", "style": { - "navigationBarTitleText": "里海云仓", - "enablePullDownRefresh": true + "enablePullDownRefresh": true, + "navigationStyle": "custom" + } }, { @@ -303,8 +304,8 @@ }, { "path": "cloud_entrepot/index", "style": { - "navigationBarTitleText": "里海云仓", - "enablePullDownRefresh": false + "navigationStyle": "custom", + "enablePullDownRefresh": true } }, { @@ -355,6 +356,14 @@ "navigationStyle": "custom" } + }, { + "path": "tourism/indexa", + "style": { + "navigationBarTitleText": "特色文旅", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + } ] }, diff --git a/pages/commissionedSales/addDelegation/index.vue b/pages/commissionedSales/addDelegation/index.vue index 03783f3..86619ff 100644 --- a/pages/commissionedSales/addDelegation/index.vue +++ b/pages/commissionedSales/addDelegation/index.vue @@ -1,25 +1,29 @@ @@ -74,7 +85,9 @@ import eselect from '@/components/e-select/e-select.vue'; import { supplychain, - entrustchain + entrustchain, + editentrust, + entrustdetail } from '@/api/sale.js' export default { components: { @@ -85,8 +98,20 @@ return { value1: 1, value2: "", - options1: [], + options1: [{ + text: "Shenzhen1", + value: 1 + }, { + text: "Shenzhen2", + value: 2 + }, { + + + text: "Shenzhen3", + value: 3 + }], + date: 1, productList: [], info: { startDate: '', @@ -97,14 +122,6 @@ selected: [], showMonth: false }, - formData: { - entrust_mer_id: '', - entrust_day: 0, - is_type: "4", - product_info: [], - content: '' - }, - type: '' }; }, computed: { @@ -114,39 +131,46 @@ onLoad(e) { - this.id = e.id; this.type = e.type if (this.type) { - uni.setNavigationBarTitle({ title: '编辑打折' }) - } else { - + this.editlist(e.id) } }, mounted() { - this.list() + this.list() }, methods: { + change1(item) { + console.log(item); + }, list() { supplychain({ page: 1 }).then((res => { - + for (let i in res.data.list) { this.options1.push({ text: res.data.list[i].mer_name, value: res.data.list[i].mer_id }) } - // console.log(res) })) }, + editlist(id) { + entrustdetail(id).then((res) => { + this.formData.entrust_mer_id = res.data.entrust_mer_id + this.formData.entrust_day = res.data.entrust_day + this.productList = res.data.product_list + this.getProduct(res.data.product_list) + }) + }, calendar() { @@ -162,11 +186,11 @@ }, //获取商品信息 getProduct(data) { - console.log(data) + this.formData.product_info=[] if (data.length > 0) { - + for (let i in data) { - this.formData.content+=data[i].store_name+',' + this.formData.content += data[i].store_name + ',' this.formData.product_info.push({ product_attr_unique: data[i].product_attr_unique, number: Number(data[i].number), @@ -191,6 +215,38 @@ if (!value.entrust_mer_id) return that.$util.Tips({ title: '请添加商家' }); + this.type? + editentrust(this.id,value).then(res => { + if (res.status == '200') { + uni.hideLoading() + that.$util.Tips({ + title: '编辑成功', + icon: 'success' + }); + that.formData = { + entrust_mer_id: '', + entrust_day: 0, + is_type: "4", + product_info: [] + } + uni.redirectTo({ + url: '/pages/commissionedSales/initiateDelegation/index' + }) + + } else { + that.$util.Tips({ + title: res.messge, + icon: 'success' + }); + } + }).catch(err => { + + return that.$util.Tips({ + title: err + }); + }) + + : entrustchain(value).then(res => { if (res.status == '200') { uni.hideLoading() @@ -207,7 +263,7 @@ uni.redirectTo({ url: '/pages/commissionedSales/initiateDelegation/index' }) - + } else { that.$util.Tips({ title: res.messge, @@ -231,10 +287,6 @@ background: #F5F5F5; } - .content { - height: 100vh; - position: relative; - } .release_content { @@ -479,10 +531,6 @@ } .release_btn { - - position: absolute; - bottom: 150rpx; - left: 50%; - margin-left: -347rpx; + margin-top: 100rpx; } \ No newline at end of file diff --git a/pages/commissionedSales/delegation_details/index.vue b/pages/commissionedSales/delegation_details/index.vue index 3be7fef..05b293a 100644 --- a/pages/commissionedSales/delegation_details/index.vue +++ b/pages/commissionedSales/delegation_details/index.vue @@ -6,7 +6,8 @@ - 待处理 + + {{objinfo.mer_status==0?"待处理":""||objinfo.mer_status==2?"已拒绝":""||objinfo.mer_status==1?"已接受":""}} 2020-07-07 14:14:14 @@ -14,55 +15,35 @@ - + - + - 良品铺子肉松饼1000g/箱 面... + {{item.store_name}} - 委托价:¥34.90 + 委托价:¥{{item.price}} - 数量:100个 + 数量:{{item.number}}个 - - - - - - - - 良品铺子肉松饼1000g/箱 面... - - - - 委托价:¥34.90 - - - 数量:100个 - - - - - 委托方: - 通滩镇镇街店铺 + {{objinfo.mer_info.mer_name}} @@ -70,7 +51,7 @@ 被委托方: - 通滩镇镇街店铺 + {{objinfo.entrust_mer_info.mer_name}} @@ -78,7 +59,7 @@ 委托周期: - 通滩镇镇街店铺 + {{objinfo.entrust_day}} @@ -86,7 +67,7 @@ 结算周期: - 通滩镇镇街店铺 + {{objinfo.mer_info.settle_cycle}} @@ -94,7 +75,7 @@ 结算利息: - 通滩镇镇街店铺 + {{objinfo.mer_info.interest_rate}}% @@ -102,7 +83,8 @@ 状态: - 通滩镇镇街店铺 + + {{objinfo.mer_status==0?"待处理":""||objinfo.mer_status==2?"已拒绝":""||objinfo.mer_status==1?"已接受":""}} @@ -110,15 +92,15 @@ 是否结束委托: - 通滩镇镇街店铺 + {{objinfo.entrust_finish==0?'未结束':""||objinfo.entrust_finish==1?'已结束':""||objinfo.entrust_finish==2?'商家拒绝':""||objinfo.entrust_finish==3?'申请':""}} - + 拒绝原因: - 通滩镇镇街店铺通滩镇镇街店铺通滩镇镇街店铺通滩镇镇街店铺通滩镇镇街店铺通滩镇镇街店铺 + {{objinfo.entrust_finish_refusal}} @@ -130,36 +112,89 @@ - + - + - 良品铺子肉松饼1000g/箱 面包糕... - - - - - - - - 良品铺子肉松饼1000g/箱 面包糕... + {{item.store_name}} + - + + + \ No newline at end of file diff --git a/pages/commissionedSales/initiateDelegation/index.vue b/pages/commissionedSales/initiateDelegation/index.vue index bbc03ad..4615473 100644 --- a/pages/commissionedSales/initiateDelegation/index.vue +++ b/pages/commissionedSales/initiateDelegation/index.vue @@ -6,7 +6,7 @@ - + @@ -14,10 +14,10 @@ - {{item.title}} + {{item.content}} - 委托周期:{{item.credit_buy}} + 委托周期:{{item.day}} @@ -25,79 +25,84 @@ - + 待处理 + - + + + 编辑 删除 - + 详情 - + + + 已接受 + 结束委托 - + 详情 - + + + 已拒绝 - + 删除 - + 详情 + + 已完成 - + 删除 - + 详情 - - - - - - 新增委托 - - - + + - + @@ -109,16 +114,19 @@ 委托申请处理 - 结算周期: {{obj.settle_cycle}}天 + 结算周期: 30天 + + - 利息比例: {{obj.interest_rate}}% + 利息比例: 0.05% + - + 拒绝 - + 接受 @@ -128,6 +136,7 @@ + @@ -147,11 +156,15 @@ + + + + @@ -164,10 +177,13 @@ 结算周期: 30天 + + 利息比例: 0.05% + 拒绝 @@ -195,15 +211,20 @@ 结算周期: 30天 + + 利息比例: 0.05% + 拒绝原因: +