Browse Source

云店 “余额” 改 “云宝”

DaMowang 2 years ago
parent
commit
d4f4df03a0

+ 5 - 5
src/pages/account/conversion.vue

@@ -1,16 +1,16 @@
 <template>
   <div class="conversion">
     <view class="list flex_r flex_ac flex_jb mar_t16">
-      <view class="list_name">可转化余额:</view>
+      <view class="list_name">可转化云宝:</view>
       <view class="list_text">{{ userinfo.user_money }}</view>
     </view>
     <view class="list flex_r flex_ac flex_jb mar_t16">
-      <view class="list_name">需要转化的余额:</view>
+      <view class="list_name">需要转化的云宝:</view>
       <view class="list_text">
         <input
           type="number"
           v-model="give_num"
-          placeholder="请输入需要转化的余额"
+          placeholder="请输入需要转化的云宝"
           placeholder-style="color:#ddd;"
         />
       </view>
@@ -57,10 +57,10 @@ export default {
         appEv.errTips("赠送数量不得为0");
         return;
       } else if (this.give_num > Number(this.userinfo.user_money)) {
-        appEv.errTips("转化数量不得超过余额");
+        appEv.errTips("转化数量不得超过云宝");
         return;
       } else {
-        let content = `您将转化${this.give_num}余额为${
+        let content = `您将转化${this.give_num}云宝为${
           this.give_num * (1 - this.fee)
         }茶宝`;
         let that = this;

+ 6 - 6
src/pages/account/giveAsPresent.vue

@@ -11,12 +11,12 @@
         <div class="option-i" @click="value = 0">
           <img src="@/static/img/xuanzhong_icon.png" v-if="value === 0" class="ico" alt="" />
           <img src="@/static/img/weixuanzhong_icon.png" v-else class="ico" alt="" />
-          <span class="txt">余额</span>
+          <span class="txt">云宝</span>
         </div>
       </view>
     </view>
     <view class="list flex_r flex_ac flex_jb mar_t16" v-if="value == 0">
-      <view class="list_name">当前余额:</view>
+      <view class="list_name">当前云宝:</view>
       <view class="list_text"><text>{{ userinfo.user_money }}</text></view>
     </view>
     <view class="list flex_r flex_ac flex_jb mar_t16" v-else>
@@ -79,13 +79,13 @@ export default {
         this.give_num > Number(this.userinfo.cha_bao) &&
         this.value == 1
       ) {
-        appEv.errTips("赠送数量不得超过茶宝余额");
+        appEv.errTips("赠送数量不得超过茶宝云宝");
         return;
       } else if (
         this.give_num > Number(this.userinfo.user_money) &&
         this.value == 0
       ) {
-        appEv.errTips("赠送数量不得超过余额");
+        appEv.errTips("赠送数量不得超过云宝");
         return;
       } else if (this.id == "") {
         appEv.errTips("请输入赠送账号");
@@ -93,11 +93,11 @@ export default {
       } else {
         let content = "";
         if (this.value == 0) {
-          content = `你将赠送给${this.id}余额${
+          content = `你将赠送给${this.id}云宝${
             this.give_num
           },扣除手续费后对方将收到${
             this.$h.Mul(this.give_num, (1 - this.list[this.value].fee))
-          }余额`;
+          }云宝`;
         } else {
           content = `你将赠送给${this.id}茶宝${
             this.give_num

+ 1 - 1
src/pages/account/wealth.vue

@@ -3,7 +3,7 @@
     <!-- 财富列表 -->
     <view class="con flex_r flex_ac flex_jb mar_t16">
       <view class="list flex_c flex_ac" @click="goto('/pages/accountDetails/running')">
-        <view class="list_name">余额</view>
+        <view class="list_name">云宝</view>
         <view class="list_text dinB">{{ userinfo.user_money }}</view>
       </view>
       <view class="list flex_c flex_ac" @click="goto('/pages/accountDetails/integral')">

+ 1 - 1
src/pages/accountDetails/running.vue

@@ -108,7 +108,7 @@ export default {
           case 4: return "社区消费奖励";
           case 5: return "合伙人分红收益";
           case 6: return "寄卖成功收益";
-          case 7: return "退款到余额";
+          case 7: return "退款到云宝";
           case 8: return "赠送支出";
           case 9: return "转化支出";
           case 10: return "联合创始人分红收益";

+ 1 - 1
src/pages/accountDetails/teaBaby.vue

@@ -112,7 +112,7 @@ export default {
           case 6: return "兑换产品使用茶宝";
           case 7: return "手动调整茶宝";
           case 8: return "核销后送茶宝";
-          case 9: return "余额转化茶宝";
+          case 9: return "云宝转化茶宝";
           case 10: return "收到赠送茶宝";
           case 11: return is ? "实名送茶宝" : "注册送茶宝";
           case 12: return "分享用户送茶宝";

+ 1 - 1
src/pages/accountDetails/withdraw.vue

@@ -26,7 +26,7 @@
 			</view>
 			<view class="list_con flex_r flex_ac">
 				<view class="list_name flex_r flex_ac flex_jb"><text>提</text><text>现</text><text>类</text><text>型</text>:</text></view>
-				<view class="list_text y_color">余额提现</view>
+				<view class="list_text y_color">云宝提现</view>
 			</view>
 			<view class="list_con flex_r flex_ac">
 				<view class="list_name flex_r flex_ac flex_jb"><text>申</text><text>请</text><text>时</text><text>间</text>:</text></view>

+ 213 - 212
src/pages/cash/index.vue

@@ -1,268 +1,269 @@
 <template>
-  <view class="container">
-    <view class="content">
-      <view class="moeny flex_r flex_ae"
-        >¥
-        <input
-          type="number"
-          :maxlength="12"
-          v-model="inputMoney"
-          placeholder="请输入提现金额"
-        />
-      </view>
-      <view class="option flex_r flex_ac flex_jb">
-        <view class="balance flex_r flex_ac"
-          >账户余额¥{{ user_money }}</view
-        >
-        <view class="option_text" @tap="getListPage">提现记录</view>
-      </view>
-      <view class="hint">支持余额提现</view>
+    <view class="container">
+        <view class="content">
+            <view class="moeny flex_r flex_ae">¥
+                <input type="number" :maxlength="12" v-model="inputMoney" placeholder="请输入提现金额" />
+            </view>
+            <view class="option flex_r flex_ac flex_jb">
+                <view class="balance flex_r flex_ac">账户余额¥{{ user_money }}</view>
+                <view class="option_text" @tap="getListPage">提现记录</view>
+            </view>
+            <view class="hint">支持余额提现</view>
+        </view>
+        <view class="upload flex_c flex_jc flex_ac">
+            <block v-if="imgs == '' || imgs == undefined">
+                <view class="upload_con flex_c flex_ac flex_jc" @tap="uploadImg"><text>+</text></view>
+            </block>
+            <block v-else>
+                <image class="upload_img" :src="imgs" mode="" @tap="uploadImg"></image>
+            </block>
+            <view class="upload_text">请上传本人收款码</view>
+        </view>
+        <view class="btn flex_r flex_ac flex_jc" @tap="onSubForm">申请提现</view>
+        <view class="showlist" v-for="(item, index) in show" :key="index">{{ item }}</view>
     </view>
-    <view class="upload flex_c flex_jc flex_ac">
-      <block v-if="imgs == '' || imgs == undefined">
-        <view class="upload_con flex_c flex_ac flex_jc" @tap="uploadImg"
-          ><text>+</text></view
-        >
-      </block>
-      <block v-else>
-        <image class="upload_img" :src="imgs" mode="" @tap="uploadImg"></image>
-      </block>
-      <view class="upload_text">请上传本人收款码</view>
-    </view>
-    <view class="btn flex_r flex_ac flex_jc" @tap="onSubForm">申请提现</view>
-    <view class="showlist" v-for="(item, index) in show" :key="index"
-      >{{ item }}</view
-    >
-  </view>
 </template>
-
 <script>
 let app = getApp();
 var appEv = app.$vm.$options;
 import { post } from "@/request/api.js";
 export default {
-  data() {
-    return {
-      show: [],
-      inputMoney: "",
-      imgs: "",
-      index: 0,
-      userinfo: undefined, // 获取用户信息
-      local_uinfo: undefined,
+    data() {
+        return {
+            show: [],
+            inputMoney: "",
+            imgs: "",
+            index: 0,
+            userinfo: undefined, // 获取用户信息
+            local_uinfo: undefined,
 
-      user_money: 0, //余额
+            user_money: 0, //余额
 
-      islocal: false
-    };
-  },
-  onLoad: function (e) {
-    if(e.type == "local"){
-      this.getLU();
-      this.islocal = true;
-    }else{
-      this.getU();
-      this.islocal = false;
-    }
-    this.getExolain();
-  },
-  methods: {
-    getExolain(){
-      let url = this.islocal ? "local/withdrawDesc" : "v1/withdrawdesc"
-      post(url).then(res => {
-        this.show = this.islocal ? res.data[0] : res.data.data[0]
-      })
+            islocal: false
+        };
     },
-    onSubForm() {
-      let that = this;
-      let url = this.islocal ? "local/withdraw" : "v1/user/withdraw"
-      if (this.inputMoney == "") {
-        appEv.errTips("请输入金额");
-        return;
-      }
-      if (!this.imgs) {
-        uni.showModal({
-          content: `请上传您的收款码`,
-          showCancel: false,
-          success(res) {},
-        });
-        return;
-      }
-      if (Number(this.inputMoney) > Number(this.user_money)) {
-        uni.showModal({
-          content: `当前可提现${that.user_money}`,
-          showCancel: false,
-          success(res) {},
-        });
-        return;
-      }
-
-      uni.showLoading({
-        mask: true,
-      });
-      let data = {
-        money: this.inputMoney,
-        pay_code: this.imgs,
-        w_type: 1,
-      };
-      post(url, data).then((res) => {
-        uni.hideLoading();
-        if (res.code === 0) {
-          this.inputMoney = "";
-          uni.showModal({
-            content: `提交成功,请等待审核!`,
-            confirmText: "知道了",
-            showCancel: false,
-            success(res) {},
-          });
-          if(this.islocal) this.getLU()
-          else this.getU()
+    onLoad: function(e) {
+        if (e.type == "local") {
+            this.getLU();
+            this.islocal = true;
         } else {
-          appEv.errTips(res.msg || "");
+            this.getU();
+            this.islocal = false;
         }
-      });
+        this.getExolain();
     },
-    // 上传图片uploadImg
-    uploadImg() {
-      let that = this;
-      uni.chooseImage({
-        count: 1, // 最多可以选择的图片张数,默认9
-        sizeType: ["compressed"], // original 原图,compressed 压缩图,默认二者都有
-        sourceType: ["album", "camera"], // album 从相册选图,camera 使用相机,默认二者都有
-        success: function (res) {
-          var arr = res.tempFiles;
-          that.uploadImgs(arr[0].path);
+    methods: {
+        getExolain() {
+            let url = this.islocal ? "local/withdrawDesc" : "v1/withdrawdesc"
+            post(url).then(res => {
+                this.show = this.islocal ? res.data[0] : res.data.data[0]
+            })
         },
-      });
-    },
-    uploadImgs(img) {
-      var that = this;
-      uni.uploadFile({
-        url: that.$hosts.Hhost + "v1/user/upload",
-        filePath: img,
-        name: "image",
-        header: {
-          token: uni.getStorageSync("token"),
+        onSubForm() {
+            let that = this;
+            let url = this.islocal ? "local/withdraw" : "v1/user/withdraw"
+            if (this.inputMoney == "") {
+                appEv.errTips("请输入金额");
+                return;
+            }
+            if (!this.imgs) {
+                uni.showModal({
+                    content: `请上传您的收款码`,
+                    showCancel: false,
+                    success(res) {},
+                });
+                return;
+            }
+            if (Number(this.inputMoney) > Number(this.user_money)) {
+                uni.showModal({
+                    content: `当前可提现${that.user_money}`,
+                    showCancel: false,
+                    success(res) {},
+                });
+                return;
+            }
+
+            uni.showLoading({
+                mask: true,
+            });
+            let data = {
+                money: this.inputMoney,
+                pay_code: this.imgs,
+                w_type: 1,
+            };
+            post(url, data).then((res) => {
+                uni.hideLoading();
+                if (res.code === 0) {
+                    this.inputMoney = "";
+                    uni.showModal({
+                        content: `提交成功,请等待审核!`,
+                        confirmText: "知道了",
+                        showCancel: false,
+                        success(res) {},
+                    });
+                    if (this.islocal) this.getLU()
+                    else this.getU()
+                } else {
+                    appEv.errTips(res.msg || "");
+                }
+            });
         },
-        success: function (res) {
-          uni.hideToast();
-        let resTwo = JSON.parse(decodeURIComponent(res.data))
-          if (resTwo.code === 0) {
-            that.imgs = resTwo.data.src;
-          } else {
-            appEv.errTips(resTwo.msg);
-          }
+        // 上传图片uploadImg
+        uploadImg() {
+            let that = this;
+            uni.chooseImage({
+                count: 1, // 最多可以选择的图片张数,默认9
+                sizeType: ["compressed"], // original 原图,compressed 压缩图,默认二者都有
+                sourceType: ["album", "camera"], // album 从相册选图,camera 使用相机,默认二者都有
+                success: function(res) {
+                    var arr = res.tempFiles;
+                    that.uploadImgs(arr[0].path);
+                },
+            });
+        },
+        uploadImgs(img) {
+            var that = this;
+            uni.uploadFile({
+                url: that.$hosts.Hhost + "v1/user/upload",
+                filePath: img,
+                name: "image",
+                header: {
+                    token: uni.getStorageSync("token"),
+                },
+                success: function(res) {
+                    uni.hideToast();
+                    let resTwo = JSON.parse(decodeURIComponent(res.data))
+                    if (resTwo.code === 0) {
+                        that.imgs = resTwo.data.src;
+                    } else {
+                        appEv.errTips(resTwo.msg);
+                    }
+                },
+            });
+        },
+        getListPage() {
+            uni.navigateTo({
+                url: "/pages/accountDetails/withdraw",
+            });
+        },
+
+        async getU() {
+            this.userinfo = await uni.userfun();
+            this.user_money = this.userinfo.user_money;
+        },
+        async getLU() {
+            this.local_uinfo = await uni.Luserfun()
+            this.user_money = this.local_uinfo.property;
         },
-      });
-    },
-    getListPage() {
-      uni.navigateTo({
-        url: "/pages/accountDetails/withdraw",
-      });
-    },
-    
-    async getU() {
-      this.userinfo = await uni.userfun();
-      this.user_money = this.userinfo.user_money;
-    },
-    async getLU() {
-      this.local_uinfo = await uni.Luserfun()
-      this.user_money = this.local_uinfo.property;
     },
-  },
 };
 </script>
-
 <style lang="scss" scoped>
 // 页面配置
 .container {
-  border-top: 20rpx solid #f5f5f5;
-  padding: 43rpx 30rpx;
-  box-sizing: border-box;
+    border-top: 20rpx solid #f5f5f5;
+    padding: 43rpx 30rpx;
+    box-sizing: border-box;
 }
+
 // 页面配置-end
 
 .title_select {
-  margin-left: 36rpx;
+    margin-left: 36rpx;
 }
+
 .upload {
-  width: 100%;
-  overflow: hidden;
+    width: 100%;
+    overflow: hidden;
 }
+
 .balance {
-  font-size: 28rpx;
-  color: #7c838d;
+    font-size: 28rpx;
+    color: #7c838d;
 }
+
 .option_text {
-  font-size: 28rpx;
-  color: #18bb88;
+    font-size: 28rpx;
+    color: #18bb88;
 }
+
 .upload_con text {
-  color: #898989;
-  font-size: 40rpx;
+    color: #898989;
+    font-size: 40rpx;
 }
+
 .hint {
-  font-size: 26rpx;
-  color: #8f8f8f;
-  margin-top: 40rpx;
+    font-size: 26rpx;
+    color: #8f8f8f;
+    margin-top: 40rpx;
 }
+
 .upload_img {
-  width: 200rpx;
-  height: 200rpx;
-  margin-top: 60rpx;
+    width: 200rpx;
+    height: 200rpx;
+    margin-top: 60rpx;
 }
+
 .title {
-  font-size: 28rpx;
-  color: #7c838d;
-  margin-bottom: 40rpx;
+    font-size: 28rpx;
+    color: #7c838d;
+    margin-bottom: 40rpx;
 }
+
 .upload_text {
-  font-size: 26rpx;
-  color: #898989;
-  margin-top: 20rpx;
+    font-size: 26rpx;
+    color: #898989;
+    margin-top: 20rpx;
 }
+
 .showlist {
-  font-size: 26rpx;
-  color: #7c838d;
-  margin-bottom: 20rpx;
+    font-size: 26rpx;
+    color: #7c838d;
+    margin-bottom: 20rpx;
 }
+
 .moeny input {
-  color: #121922;
-  font-size: 56rpx;
-  height: 56rpx;
-  margin-left: 10rpx;
+    color: #121922;
+    font-size: 56rpx;
+    height: 56rpx;
+    margin-left: 10rpx;
 }
+
 .upload_con {
-  width: 200rpx;
-  height: 200rpx;
-  border: 3rpx solid #898989;
-  border-radius: 10rpx;
-  margin-top: 60rpx;
+    width: 200rpx;
+    height: 200rpx;
+    border: 3rpx solid #898989;
+    border-radius: 10rpx;
+    margin-top: 60rpx;
 }
+
 .moeny {
-  font-size: 42rpx;
-  color: #121922;
-  line-height: 1;
-  height: 56rpx;
-  border-bottom: 3rpx solid #e4e4ee;
-  margin-bottom: 70rpx;
-  padding: 37rpx 0;
+    font-size: 42rpx;
+    color: #121922;
+    line-height: 1;
+    height: 56rpx;
+    border-bottom: 3rpx solid #e4e4ee;
+    margin-bottom: 70rpx;
+    padding: 37rpx 0;
 }
+
 .content {
-  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
-  width: 100%;
-  overflow: hidden;
-  padding: 40rpx;
-  box-sizing: border-box;
-  border-radius: 20rpx;
+    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
+    width: 100%;
+    overflow: hidden;
+    padding: 40rpx;
+    box-sizing: border-box;
+    border-radius: 20rpx;
 }
+
 .btn {
-  width: 348rpx;
-  height: 80rpx;
-  background: #18bb88;
-  color: #fff;
-  font-size: 40rpx;
-  border-radius: 10rpx;
-  box-shadow: 0px 8px 22px 2px rgba(24, 187, 136, 0.22);
-  margin: 64rpx auto;
+    width: 348rpx;
+    height: 80rpx;
+    background: #18bb88;
+    color: #fff;
+    font-size: 40rpx;
+    border-radius: 10rpx;
+    box-shadow: 0px 8px 22px 2px rgba(24, 187, 136, 0.22);
+    margin: 64rpx auto;
 }
-</style>
+</style>

+ 1 - 1
src/pages/szw-order-list/index.vue

@@ -163,7 +163,7 @@ export default {
       let that = this;
       uni.showModal({
         title: "温馨提示",
-        content: "取消订单后,微信支付部分也将退至余额账户",
+        content: "取消订单后,微信支付部分也将退至云宝账户",
         // showCancel: false,
         confirmText: "知道了",
         confirmColor: "#f02f2f",

+ 2 - 2
src/pages/to-pay-list/index.vue

@@ -106,7 +106,7 @@
                 <view class="list_con">¥{{ CommodityPrice || 0 }}</view>
             </view>
             <view class="order_list flex_r flex_ac flex_jb" v-if="['1','2','3'].includes(Data.type)">
-                <view class="list_name">可用余额</view>
+                <view class="list_name">可用云宝</view>
                 <view class="list_con p_color">¥{{ userinfo.user_money }}</view>
             </view>
             <view class="order_list flex_r flex_ac flex_jb" v-if="Data.type==4 && isAct">
@@ -283,7 +283,7 @@ export default {
             if (that.obligation == 0) {
                 uni.showModal({
                     title: "温馨提示",
-                    content: "你将使用余额支付该订单",
+                    content: "你将使用云宝支付该订单",
                     showCancel: true,
                     confirmText: "确认",
                     confirmColor: "#f02f2f",

+ 3 - 3
src/pages/top-up/index.vue

@@ -2,8 +2,8 @@
     <view class="container">
         <view class="con">
             <view class="list flex_r flex_ac">
-                <view class="list_name">当前余额:</view>
-                <input class="list_input flex_grow" type="text" v-model="userinfo.user_money" readonly placeholder="当前余额" />
+                <view class="list_name">当前云宝:</view>
+                <input class="list_input flex_grow" type="text" v-model="userinfo.user_money" readonly placeholder="当前云宝" />
             </view>
             <view class="list flex_r flex_ac">
                 <view class="list_name">充值金额:</view>
@@ -46,7 +46,7 @@ export default {
             price: "",
             isSelect: 1,
             detail: {},
-            array: ["余额充值"],
+            array: ["云宝充值"],
             index: 0,
             userinfo: undefined, // 获取用户信息
             isDisabled: false, //是否选中协议

+ 1 - 1
src/pagesB/specialregion/index.vue

@@ -19,7 +19,7 @@
                 </view>
                 <div class="p2 flex_r flex_jse flex_ac">
                     <div class="i_num">
-                        <p>余额</p>
+                        <p>云宝</p>
                         <p class="dinB">{{ userinfo.user_money }}</p>
                     </div>
                     <div class="i_num">