瀏覽代碼

no message

DaMoWang 3 年之前
父節點
當前提交
8d472e4bfa
共有 5 個文件被更改,包括 104 次插入4 次删除
  1. 6 0
      src/pages.json
  2. 93 0
      src/pages/account/conversion.vue
  3. 3 2
      src/pages/account/giveAsPresent.vue
  4. 1 0
      src/pages/my/index.vue
  5. 1 2
      src/request/config.js

+ 6 - 0
src/pages.json

@@ -96,6 +96,12 @@
 				"navigationBarTitleText": "赠送"
 			}
 		},
+		{
+			"path": "pages/account/conversion",
+			"style": {
+				"navigationBarTitleText": "余额转化"
+			}
+		},
 		{
 			"path": "pages/speed-up/index",
 			"style": {

+ 93 - 0
src/pages/account/conversion.vue

@@ -0,0 +1,93 @@
+<template>
+  <div class='conversion'>
+        <view class="list flex_r flex_ac flex_jb mar_t16">
+            <view class="list_name">需要转化的金额:</view>
+            <view class="list_text">
+                <input type="text" v-model="give_num" placeholder="请输入需要转化的金额" placeholder-style="color:#ddd;" />
+            </view>
+        </view>
+        <view class="list flex_r flex_ac flex_jb mar_t16">
+            <view class="list_name">你将得到的茶宝:</view>
+            <view class="list_text ">200</view>
+        </view>
+        <view class="btn flex_r flex_ac flex_jc" @tap="giveIntegral">立即转化</view>
+  </div>
+</template>
+<script>
+import { get, post } from '@/request/api.js';
+export default {
+  name: 'conversion',
+  data () {
+    return {}
+  },
+  onLoad (option) {},
+  onLaunch () {},
+  onShow () {},
+  onHide () {},
+  methods: {},
+  computed: {},
+  watch: {}
+}
+</script>
+<style scoped lang='scss'>
+.conversion{
+
+}
+
+// 页面配置
+page {
+    background: #f4f4f4;
+}
+
+// 页面配置-end
+
+
+.list {
+    width: 100%;
+    height: 86rpx;
+    padding: 0 30rpx;
+    box-sizing: border-box;
+    background: #fff;
+}
+
+.list_text {
+    flex: 1;
+    font-family: "SourceHanSansCN-Bold";
+    text-align: right;
+}
+
+.list_name {
+    flex: 1;
+    color: #333333;
+    font-size: 28rpx;
+    font-family: "SourceHanSansCN-Medium";
+    font-weight: 500;
+}
+
+.list_text input {
+    font-size: 30rpx;
+    color: #333;
+    text-align: right;
+    font-weight: bold;
+    // margin-left: 20rpx;
+}
+
+.list_text text {
+    font-family: "SourceHanSansCN-Medium";
+    font-size: 36rpx;
+    font-weight: bold;
+    color: #17bb87;
+}
+
+.btn {
+    width: 689rpx;
+    height: 92rpx;
+    background: #17bb87;
+    color: #fff;
+    font-size: 42rpx;
+    font-family: "SourceHanSansCN-Medium";
+    font-weight: 500;
+    margin: 132rpx auto 0;
+    border-radius: 10rpx;
+}
+</style>

+ 3 - 2
src/pages/account/giveAsPresent.vue

@@ -106,7 +106,7 @@ page {
 .list {
     width: 100%;
     height: 86rpx;
-    padding: 0 30rpx;
+    padding: 0 36rpx;
     box-sizing: border-box;
     background: #fff;
 }
@@ -141,7 +141,8 @@ page {
 }
 
 .btn {
-    width: 689rpx;
+    // width: 689rpx;
+    width: calc(100% - 72rpx);
     height: 92rpx;
     background: #17bb87;
     color: #fff;

+ 1 - 0
src/pages/my/index.vue

@@ -85,6 +85,7 @@
             >账号余额¥<text>{{ userinfo.user_money }}</text></view
           >
           <view class="C flex_r flex_ac">
+            <navigator class="recharge flex_r flex_ac flex_jc" url="/pages/account/conversion" hover-class="none">转化</navigator>
             <!-- <navigator class="recharge flex_r flex_ac flex_jc" url="/pages/top-up/index" hover-class="none">
 							充值</navigator> -->
             <view class="withdraw flex_r flex_ac flex_jc" @tap="getToCash"

+ 1 - 2
src/request/config.js

@@ -12,8 +12,7 @@ if(process.env.UNI_PLATFORM==="h5"){
 
 export default apis==1?{
 	Hhost: "https://shop-api.haocha13.cn/v1/",
-	// Hhost: "https://shop.haocha13.cn/",
 }:{
 	Hhost: "https://test-api.haocha13.cn/v1/",
-	// Hhost: "https://shop.haocha13.cn/",
+	// Hhost: "https://shop-api.haocha13.cn/v1/",
 }