| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <template>
- <view>
- <view class="text-base padding-30 text-lg">
- 构建您的私域流量 牢牢锁住您的客户
- </view>
- <view class="bg-white padding-30 flex justify-between">
- <text class="bold">会员门槛</text>
- <text class="desc center">完成一笔任意金额交易即成会员</text>
- </view>
- <view class="card">
- <view class="title">
- <text class="bold">积分设置</text>
- <text class="desc center">积分为本平台通用,可在任意场景使用</text>
- </view>
- <view class="padding-30 u-border-bottom">
- <u-form :model="form" ref="uForm" label-width="180" label-align="right">
- <u-form-item label="积分兑率" :border-bottom="false">
- <view class="margin-left-20">
- <u-slider :min="1" height="10" v-model="value" active-color="#EF9944" :use-slot="true" >
- <view class="">
- <view class="" >
- <view class="badge-button">
- {{value}}
- </view>
- </view>
- </view>
- </u-slider>
- <!-- <u-slider v-model="value" ></u-slider> -->
- <!-- <u-input height="60" @click="show=!show" disabled :border="true" :clearable="false"
- v-model="form.consumeOnePoint" placeholder="请选择返利比例" /> -->
- </view>
- </u-form-item>
- <u-form-item label="消费1元赠送" :border-bottom="false">
- <view class="center" style="justify-content: flex-start;margin-left: 20rpx;">
- <u-input type="digit" style="width: 90%;" height="60" :border="true" :clearable="false"
- v-model="form.consumeOnePoint" placeholder="请输入积分数" />
- <view class="cu-tag bg-color radius" style="height: 60rpx;">
- 积分
- </view>
- </view>
- </u-form-item>
- </u-form>
- </view>
- <view class="title" style="margin-top: 20rpx;">
- <text class="bold">积分价值</text>
- <text class="desc">1积分={{value / 100}}元</text>
- </view>
- <view class="desc" style="margin-top: 60rpx;" v-if="false">
- 提示:消费返利赠送积分比例建议不超过30%,如超过30%需要另外
- 进行申请,审批通过后即可。
- <text class="text-base">申请更高返利</text>
- <text class="cuIcon-right text-base"></text>
- </view>
- </view>
- <view class="tips">
- 从公域聚合投放到私域流量的沉淀,智能化数字化的数据管理,联兑通帮助企业在裂变获客、私域留存、营销转化、客户管理各个环节提供帮助和辅助,形成一个完整的私域闭环,能有效的提高企业的私域运营效率,减少了客户的流失以及提升产品的转化和复购。
- </view>
- <view class="center flex-direction" style="margin: 70rpx 0;">
- <view class="margin-bottom-30 text-sm">
- <text>提交代表已同意</text>
- <text style="color: #3099F1;">会员中心规则说明</text>
- </view>
- <view @click="submit" class="cu-btn bg-color round" style="width: 70%;height: 90rpx;font-size: 36rpx;">
- 提交
- </view>
- </view>
- <u-select confirm-color="#EF9944" v-model="show" :list="list"></u-select>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- value:1,
- show:false,
- list: [{
- value: '0.01',
- label: '10%'
- },
- {
- value: '0.02',
- label: '20%'
- },
- {
- value: '0.03',
- label: '30%'
- }
- ],
- form:{
- consumeOnePoint:'0.01'
- }
- }
- },
- methods: {
- submit(){
- if (this.$isEmpty(this.form.consumeOnePoint)) {
- this.$u.toast('请输入积分规则')
- return
- }
- let id=this.vuex_shopId
- let params={
- id,
- sendPointUnit: this.form.consumeOnePoint,
- pointRate: this.value / 100,
- isOpenMember: 1
- }
- this.$api.shop.submit(params).then(res=>{
- if (res.success) {
- this.$dialog.showModal('创建成功',false).then(res=>{
- uni.redirectTo({
- url:"/pages/member/member"
- })
- })
- }else{
- this.$u.toast(res.msg)
- }
- })
- }
- }
- }
- </script>
- <style>
- page {
- background-color: #f4f5f7;
- }
- </style>
- <style lang="scss">
- .bold {
- font-size: 34rpx;
- color: #1C1C1C;
- font-weight: 800;
- }
- .desc {
- color: #8f8f8f;
- font-size: 26rpx;
- font-weight: 400;
- line-height: 40rpx;
- }
- .bg-color {
- background-color: #EE9230;
- color: #FFFFFF;
- }
- .card {
- padding: 40rpx 30rpx;
- margin-top: 20rpx;
- background-color: #FFFFFF;
- .title {
- display: flex;
- justify-content: space-between;
- }
- }
- .tips {
- font-size: 24rpx;
- padding: 30rpx;
- line-height: 46rpx;
- color: #b3b3b3;
- }
-
- .badge-button {
- padding: 14rpx 16rpx;
- background-color: $base-color;
- color: #fff;
- border-radius: 10rpx;
- font-size: 22rpx;
- line-height: 1;
- }
- </style>
|