diff --git a/api/store.js b/api/store.js index 4db9397..9f241a8 100644 --- a/api/store.js +++ b/api/store.js @@ -530,4 +530,7 @@ export function priceRuleApi(id) { noAuth: true }); } - +// 商户协议 +export function getConfigText(id) { + return request.get(`agreement/${id}`); +} diff --git a/api/user.js b/api/user.js index c6780ca..461b8c7 100644 --- a/api/user.js +++ b/api/user.js @@ -715,4 +715,4 @@ export function getUserGroup(data) { // 获取列表 export function getNoticeList() { return request.get(`notice/list`) -} \ No newline at end of file +} diff --git a/pages/store/settled/index.vue b/pages/store/settled/index.vue index a10907f..30e196b 100644 --- a/pages/store/settled/index.vue +++ b/pages/store/settled/index.vue @@ -102,7 +102,7 @@ 已阅读并同意 - + @@ -111,7 +111,7 @@ -
{{isType ? '店铺类型说明' : '商户入驻协议'}}
+
{{isType ? '店铺类型说明' : '品质与服务承诺书'}}
@@ -153,7 +153,8 @@ merClassifly, getGoodsDetails, updateGoodsRecord, - getStoreTypeApi + getStoreTypeApi, + getConfigText } from '@/api/store.js'; import { getCaptcha, @@ -199,7 +200,8 @@ successful: false, keyCode: "", codeVal: "", - protocol: this.sys_intention_agree, + // protocol: this.sys_intention_agree, + protocol:"", timer: "", index: 0, index1: 0, @@ -219,6 +221,7 @@ }, mer_i_id: null, // 商户申请id isType: false, + originText:'' }; }, beforeDestroy() { @@ -242,6 +245,7 @@ this.getGoodsDetails(options.mer_i_id) }) } + this.getConfigTextHandle() }, onShow() {}, onReady() {}, @@ -253,13 +257,15 @@ this.isType = false; this.showProtocol = true; // 获取配置 - this.protocol = this.sys_intention_agree + // this.protocol = this.sys_intention_agree + this.protocol = this.originText }, /*获取发票说明*/ getAgreement() { let that = this that.showProtocol = true; - that.isType = true + that.isType = true; + that.protocol = "" getAgreementApi('sys_merchant_type').then(res => { that.protocol = res.data.sys_merchant_type }) @@ -559,7 +565,7 @@ title: '请选择商户分类' }); if (!that.isAgree) return that.$util.Tips({ - title: '请勾选并同意入驻协议' + title: '请勾选并同意品质与服务承诺书' }); if (that.isShowCode && !that.codeVal) return that.$util.Tips({ title: '请填写图片验证码' @@ -567,6 +573,12 @@ that.validate = true; return true; }, + getConfigTextHandle(){ + getConfigText('sys_merchant_serve').then(res=>{ + + this.originText = res.data.sys_merchant_serve + }) + }, jumpToList() { uni.navigateTo({ url: "/pages/store/applicationRecord/index" @@ -584,7 +596,7 @@ title: '请输入正确的手机号码' }); if (!this.isAgree) return this.$util.Tips({ - title: '请勾选并同意入驻协议' + title: '请勾选并同意品质与服务承诺书' }); this.$refs.verify.show(); } diff --git a/pages/user/index.vue b/pages/user/index.vue index a5738f2..7d63250 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -57,6 +57,9 @@ + + 推荐人:{{recommendPeopleText}} + 绑定手机号
@@ -293,7 +296,8 @@ // | Author: CRMEB Team // +---------------------------------------------------------------------- let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px'; - import { getMenuList, getUserInfo, setVisit,getUserGroup } from '@/api/user.js'; + + import { getMenuList, getUserInfo, setVisit,getUserGroup, spreadPeople} from '@/api/user.js'; import { getVersion } from "@/api/public"; import { orderData } from '@/api/order.js' import { mapGetters } from "vuex"; @@ -414,12 +418,13 @@ contribution:0, huitong:0, }, - show:false + show:false, + recommendPeopleText:'-' } }, onLoad() { - + this.spreadPeopleHandle() }, onReady() { this.isNodes++; @@ -456,6 +461,15 @@ } }, methods: { + spreadPeopleHandle(){ + spreadPeople({page:1,limit:10}).then(res=>{ + + if(res.data.spread){ + this.recommendPeopleText = res.data.spread.nickname + } + + }) + }, closeHandle(){ this.show = false diff --git a/pages/users/promoter-list/index.vue b/pages/users/promoter-list/index.vue index c11b412..07cd159 100644 --- a/pages/users/promoter-list/index.vue +++ b/pages/users/promoter-list/index.vue @@ -1,7 +1,7 @@ diff --git a/static/images/reco.png b/static/images/reco.png new file mode 100644 index 0000000..3b1d9a2 Binary files /dev/null and b/static/images/reco.png differ